Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
178 lines (164 sloc) 7.16 KB
!!! 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
&copy; LMGTFY, 2009-2011
==|
%span{ :rel => "localize[google_owns_google]" } GOOGLE is a trademark of Google Inc.
==|
%span{ :rel => "localize[disclaimer]" } Not associated with Google&trade; 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>