1jQuery(function($){$('.ajax-search-input').each(function(){const $input=$(this);let $container=$input.closest('.header-search, .mobile-search-panel, .mobile-search-inner');let $resultsBox=$container.find('.ajax-search-results').first();if(!$resultsBox.length){$resultsBox=$input.closest('form').siblings('.search-dropdown').find('.ajax-search-results').first()} 2if(!$resultsBox.length){return} 3if(!$resultsBox.length){return} 4$input.on('keyup',function(){const term=$input.val().trim();if(term.length<2){$resultsBox.hide();return} 5$.ajax({url:ajaxSearchData.ajax_url,type:'GET',dataType:'json',data:{action:'my_ajax_search',nonce:ajaxSearchData.nonce,term:term},success:function(res){if(!res.length){$resultsBox.html('<div class="result-item">Keine Ergebnisse</div>').show();return} 6let html='';res.forEach(item=>{html+=` 7 <a href="${item.link}" class="result-item"> 8 <span>${item.title}</span> 9 <span class="type">${item.type}</span> 10 </a> 11 `});$resultsBox.html(html).show()},error:function(){window.location.href=ajaxSearchData.search_url+encodeURIComponent(term)}})})});$(document).on('click',function(e){if(!$(e.target).closest('.header-search, .mobile-search-panel').length){$('.ajax-search-results').hide()}})})
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.