1// When the document is ready... 2jQuery( document ).ready( function( $ ) { 3 4 // ... display the Full Screen search when: 5 // 1. The user focuses on a search field, or 6 // 2. The user clicks the Search button 7 $( 'form[role=search] input, form[role=search] button' ).on( 'focus, click', function( event ) { 8 // Prevent the default action 9 event.preventDefault(); 10 11 // Display the Full Screen Search 12 $( '#full-screen-search' ).addClass( 'open' ); 13 14 // Focus on the Full Screen Search Input Field 15 $( '#full-screen-search input' ).focus(); 16 } ); 17 18 // Hide the Full Screen search when the user clicks the close button 19 $( '#full-screen-search button.close' ).on( 'click', function( event ) { 20 // Prevent the default event 21 event.preventDefault(); 22 23 // Hide the Full Screen Search 24 $( '#full-screen-search' ).removeClass( 'open' ); 25 } ); 26 27} );
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.