-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.haml
177 lines (164 loc) · 7.16 KB
/
index.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
!!! 1.1
%html{ "xmlns" => "http://www.w3.org/1999/xhtml", "xml:lang" => "en" }
%head
%meta{ "http-equiv" => "content-type", "content" => "text/html;charset=UTF-8" }
%meta{ "name" => "description", "content" => "For all those people who find it more convenient to bother you with their question rather than google it for themselves." }
%meta{ "name" => "keywords", "content" => "google, search, funny, comedy" }
%meta{ "name" => "microid", "content" => "mailto+http:sha1:359d8b83150288115fa3d70bc929b599ede7fdd4" }
%meta{ "name" => "verify-v1", "content" => "I9eu/xLrRL55X1KF8yY5VGBzNQKAzj/Vrne6Cwg4Eq8=" }
%link{ :rel => "icon", :type => "image/x-icon", :href => "favicon.ico" }
%link{ :rel => "search", :type => "application/opensearchdescription+xml", :title => "LMGTFY", :href => "lmgtfy.xml" }
%title Let me google that for you
%script{ :src => "http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js", :type => "text/javascript" }
%script{ :src => "bundle.js?#{File.mtime("bundle.js").to_i}", :type => "text/javascript" }
%style{ :rel => "text/css" }
- require 'sass'
- require 'compass'
- require 'fancy-buttons'
- Compass.configuration do |config|
- config.project_path = File.dirname(__FILE__)
= Sass::Engine.new(open("style.sass").read, { :style => :compact }.merge(Compass.sass_engine_options)).render
%body
%center.primary
.logo
%span{ :rel => "localize[pre_logo]" } let me
%img#logo{ :src => "http://www.google.com/intl/en_ALL/images/srpr/logo1w.png" }
%span{ :rel => "localize[post_logo]" } that for you
%br
%br
%br
%form
%input.text{ :type => "text", :size => 55, :title => "Google Search", :value => "" }
%br
%span.button_wrapper
.inner
%input#search{ :type => "button", :value => "Google Search", :rel => "localize[search_button]" }
%span.button_wrapper
.inner
%input#lucky{ :type => "button", :value => "I'm Feeling Lucky", :rel => "localize[lucky_button]" }
#alert{ :style => "display:none; color:#666;" }
#instructions
%div
Enable javascript to use LMGTFY.
#link_placeholder
#link
%input.link.copyable{ :type => "text", :readonly => true }
#link_message
#link_buttons
%a#copy.link_button{ :href => "#", :rel => "localize[link.copy]" } copy
%a#reset.link_button{ :href => "#", :rel => "localize[link.reset]" } reset
%a#tiny.link_button{ :href => "#", :rel => "localize[link.shorten]" } tinyurl
%a#go.link_button{ :href => "#", :rel => "localize[link.go]" } go
-# %a.deal
-# .pitch
-# .region_name Region
-# .title $XX to spend on title
-# .numbers
-# .block.savings
-# .value XX%
-# .label savings
-# .block.remaining
-# .value XX:XX:XX
-# .label remaining
-# .action
-# .button
-# %span.price $XX
-# buy now!
.banner
#footer
%a.about{ :href => "#", :name => "about", :rel => "localize[about]" } About
%a{ :rel => "localize[privacy]", :href => "privacy.html" } Privacy
%a{ :href => "http://twitter.com/lmgtfy" } @LMGTFY
%a{ :rel => "localize[live]", :href => "http://live.lmgtfy.com" } Live Stream
%a{ :rel => "localize[contact]", :href => "mailto:%73%74%61%66%66@%6c%6d%67%74%66%79.%63%6f%6d?body=Jim%20and%20Ryan%20are%20awesome%21&subject=I%20love%20LMGTFY%21" } Contact
%a{ :rel => "localize[advertise]", :href => "http://buysellads.com/buy/detail/30626" } Advertise
#about{ :style => "display: none" }
%p{ :rel => "localize[pitch]" } This is for all those people who find it more convenient to bother you with their question rather than google it for themselves.
%p{ :rel => "localize[credit]" } Created by @coderifous and @rmm5t.
%p{ :rel => "localize[genesis]" } Inspired during a lunch conversation with @coderifous, @tmassing, @rmm5t, @EricStratton, and @methodvon.
%p{ :rel => "localize[translated_by]" }
:ruby
def options_from_hash(hash)
hash.sort { |a, b| a[1] <=> b[1] }.each do |k, v|
haml_concat "<option value=\"#{k}\">#{v}</option>"
end
end
#language
%select
%option{ :value => "" } LMGTFY Worldwide
:ruby
options_from_hash(
"af" => "Afrikaans",
"ar" => "Arabic",
"be" => "Belarusian",
"bg" => "Bulgarian",
"bs" => "Bosnian",
"ca" => "Catalan",
"cs" => "Czech",
"cy" => "Welsh",
"da" => "Danish",
"de" => "German",
"el" => "Greek",
"en" => "English",
"eo" => "Esperanto",
"es" => "Spanish",
"et" => "Estonian",
"fa" => "Persian",
"fi" => "Finnish",
"fr" => "French",
"he" => "Hebrew",
"hi" => "Hindi",
"hr" => "Croatian",
"hy" => "Armenian",
"hu" => "Hungarian",
"id" => "Indonesian",
"it" => "Italian",
"ja" => "Japanese",
"ka" => "Georgian",
"klingon" => "Klingon",
"kk" => "Kazakh",
"ko" => "Korean",
"ku" => "Kurdish",
"lt" => "Lithuanian",
"lv" => "Latvian",
"mk" => "Macedonian",
"mn" => "Mongolian",
"ms" => "Malay",
"nl" => "Dutch",
"no" => "Norwegian",
"pl" => "Polish",
"pt" => "Portuguese",
"pt-BR" => "Portuguese (Brazil)",
"ro" => "Romanian",
"rs" => "Serbian",
"ru" => "Russian",
"sl" => "Slovene",
"sk" => "Slovak",
"sv" => "Swedish",
"th" => "Thai",
"tl" => "Tagalog",
"tr" => "Turkish",
"uk" => "Ukrainian",
"ur" => "Urdu",
"vi" => "Vietnamese",
"zh" => "Chinese",
"zh-HK" => "Chinese (Hong Kong)",
"zh-TW" => "Chinese (Taiwan)"
)
#copyright
© LMGTFY, 2009-2011
==|
%span{ :rel => "localize[google_owns_google]" } GOOGLE is a trademark of Google Inc.
==|
%span{ :rel => "localize[disclaimer]" } Not associated with Google™ in any way.
%img#fake_mouse{ :src => "images/mouse_arrow.png", :style => "display: none" }
:plain
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6370983-1");
pageTracker._trackPageview();
} catch(err) {}</script>