Sha256: 4e12ce5c5c2b6be964865c04d434c2d3310a0ad346d574bc90755365aa1f33f5
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
/** * created by: salilwadnerkar * Date: 11/4/12 */ $(function () { $('#resource_index input').keyup(function(event) { if ( event.keyCode == 13 ) { event.preventDefault(); } else { var search_txt = $(this).val(); var search_regex = new RegExp(search_txt, 'g'); $("#resource_index ul li").each ( function() { var elem = $(this) var h_elem = elem.find('a')[0]; var link_txt = h_elem.text; var match = link_txt.match(search_regex); match ? elem.show() : elem.hide(); }); } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapi_doc-0.4.0 | templates/scripts.js |