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

Version Path
tdiary-5.3.0 misc/plugin/en/search_form.rb
tdiary-5.2.4 misc/plugin/en/search_form.rb
tdiary-5.2.3 misc/plugin/en/search_form.rb
tdiary-5.2.2 misc/plugin/en/search_form.rb
tdiary-5.2.1 misc/plugin/en/search_form.rb
tdiary-5.2.0 misc/plugin/en/search_form.rb
tdiary-5.1.7 misc/plugin/en/search_form.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/misc/plugin/en/search_form.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/misc/plugin/en/search_form.rb
tdiary-5.1.6 misc/plugin/en/search_form.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/misc/plugin/en/search_form.rb
tdiary-5.1.5 misc/plugin/en/search_form.rb
tdiary-5.1.4 misc/plugin/en/search_form.rb
tdiary-5.1.3 misc/plugin/en/search_form.rb
tdiary-5.1.2 misc/plugin/en/search_form.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/tdiary-5.0.14/misc/plugin/en/search_form.rb
tdiary-5.1.1 misc/plugin/en/search_form.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/tdiary-5.0.14/misc/plugin/en/search_form.rb
tdiary-5.1.0 misc/plugin/en/search_form.rb
tdiary-5.0.14 misc/plugin/en/search_form.rb