1// File#: _1_expandable-search 2// Usage: codyhouse.co/license 3(function() { 4 var expandableSearch = document.getElementsByClassName('js-expandable-search'); 5 if(expandableSearch.length > 0) { 6 for( var i = 0; i < expandableSearch.length; i++) { 7 (function(i){ // if user types in search input, keep the input expanded when focus is lost 8 expandableSearch[i].getElementsByClassName('js-expandable-search__input')[0].addEventListener('input', function(event){ 9 event.target.classList.toggle('expandable-search__input--has-content', event.target.value.length > 0); 10 }); 11 })(i); 12 } 13 } 14}());
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.