PageSourceSearch

https://songcast.com/discovery/wp-content/themes/musiks/assets/js/search.js?ver=4.8

js songcast.com collected 2026-10-02 15:52:13 UTC 1,117 bytes, 38 lines download raw bytes

1+function ($) {
2  var timeoutID = null;
3  function findMember(query) {
4    var $wrap = $('.navbar-form .dropdown-menu')
5    $.ajax({
6        type : 'post',
7        url : ajax_object.ajaxurl,
8        data : {
9            action : 'load_search_results',
10            query : query
11        },
12        beforeSend: function() {
13            $wrap.find('#ajax-search-loading').removeClass('hide');
14            $wrap.find('#ajax-search-results').html('');
15        },
16        success : function( response ) {
17            $wrap.find('#ajax-search-loading').addClass('hide');
18            $wrap.find('#ajax-search-results').html( response );
19        }
20    });
21  }
22
23  $(document).on('keyup', '.navbar-form input', function(e){
24    var $target = $(this);
25    if(!$target.val()){
26      if($('#ajax-search').hasClass('open')){
27        $("#ajax-search-toggle").dropdown('toggle');
28      }
29      return;
30    }
31    if(!$('#ajax-search').hasClass('open')){
32      $("#ajax-search-toggle").dropdown('toggle');
33    }
34    clearTimeout(timeoutID);
35    timeoutID = setTimeout(function() { findMember($target.val()); }, 500); 
36  });
37
38}(jQuery);

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.