1// FAQ archive search field. 2jQuery(document).ready(function ($) { 3 4 $('.search-faq form').on('submit', function(e) { 5 6 e.preventDefault(); 7 8 var value = $('.advgb-search-bar-input').val().toLowerCase(); 9 10 $( '.uagb-faq-item' ).each(function( index ) { 11 12 var found = false; 13 14 var title = $(this).find('.uagb-question').text(); 15 var content = $(this).find('.uagb-faq-content p').text(); 16 17 if (title.indexOf(value) >= 0) { 18 found = true; 19 } 20 21 if (content.indexOf(value) >= 0) { 22 found = true; 23 } 24 25 if( found === false ) { 26 $(this).hide(); 27 } 28 29 if( found === true ) { 30 $(this).show(); 31 } 32 33 }); 34 35 if((($('.uagb-faq-questions').children(':visible').length == 0))) { 36 $('.faq-search-no-results').show(); 37 } else { 38 $('.faq-search-no-results').hide(); 39 } 40 }); 41});
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.