PageSourceSearch

https://www.schlagerplanet.com/wp-content/cache/min/1/wp-content/t…/assets/js/ajax-search.js?ver=1790855119

js schlagerplanet.com collected 2026-10-02 07:35:19 UTC 1,356 bytes, 11 lines download raw bytes

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.