1/** 2 * YIKES Full Page Search Scripts 3 * @since 1.0.0 4 */ 5jQuery(function () { 6 /** 7 * When clicking on an <li> OR <a> tag with the class 'yikes-full-page-search-toggle', toggle the container 8 * This means users can define there own links. 9 * Example: <a href="#" class="yikes-full-page-search-toggle">Open Search Container</a> 10 */ 11 jQuery('li[class*="yikes-full-page-search-toggle"], a[class*="yikes-full-page-search-toggle"]').on('click', function(event) { 12 event.preventDefault(); 13 jQuery('#yikes-search-container').addClass( 'open' ); 14 jQuery('#yikes-search-container > form > input[type="search"]').focus(); 15 }); 16 17 jQuery('#yikes-search-container, #yikes-search-container button.close').on('click keyup', function(event) { 18 if (event.target == this || event.target.className == 'close' || event.keyCode == 27) { 19 jQuery(this).removeClass('open'); 20 } 21 }); 22});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.