Sha256: c5c35e2e5baf175542460a7db74216f8e41a1ea627ccd9922567fbb279487694
Contents?: true
Size: 870 Bytes
Versions: 32
Compression:
Stored size: 870 Bytes
Contents
# search_form.rb English resource. def google_form( button_name = "Google Search", size = 20, default_text = "" ) first = %Q[<a href="https://www.google.com/"> <img src="https://www.google.com/logos/Logo_40wht.gif" style="border-width: 0px; vertical-align: middle;" alt="Google"></a>] search_form( "https://www.google.com/search", "q", button_name, size, default_text, first, '' ) end def yahoo_form( button_name = "Yahoo! Search", size = 20, default_text = "" ) first = %Q[<a href="https://www.yahoo.com/"> <img src="http://us.i1.yimg.com/us.yimg.com/i/yahootogo/ytg_search.gif" style="border-width: 0px; vertical-align: middle;" alt="[Yahoo!]"></a>] search_form( "https://search.yahoo.com/search", "p", button_name, size, default_text, first, "" ) end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End:
Version data entries
32 entries across 25 versions & 1 rubygems