Sha256: 3c2cbf1929eb6f456a4b7fb3c17ac8b4641cabb2461352804236d68d37df3d2a
Contents?: true
Size: 993 Bytes
Versions: 18
Compression:
Stored size: 993 Bytes
Contents
<div id="search2"> <% @yardoc_org = "http://yardoc.org" %> <% @project = "yard" %> <div class="search2_center"> <form class="search2" onsubmit="return false;" action=""> <input name="q" type="search" placeholder="Search" id="search_box2" size="30" value="" /> </form> </div> <script type="text/javascript" charset="utf-8"> $('#search_box2').focus(function(){ var search_index = relpath + 'search_index.json'; jQuery.getJSON(search_index, go_data); function go_data(adata) { $('#search_box2').autocomplete(adata, { width: 300, matchContains: true, formatItem: function(item) { return item.text; } }).result(function(event, item) { if (window.location.search) { window.location.href = relpath + $(item.href_tag).attr("href"); } else { location.href = relpath + $(item.href_tag).attr("href"); } }); } }); </script> </div>
Version data entries
18 entries across 18 versions & 1 rubygems