PageSourceSearch

https://www.macroeconomics.lv/modules/custom/economists/js/economists.js?tlwwlh

js macroeconomics.lv collected 2026-09-25 15:14:28 UTC 977 bytes, 26 lines download raw bytes

1(function($) {
2  $(document).ready(function(){
3    if($('#economists').length){
4      $('#economists').autocomplete({
5        minLength: 1,
6        source: function(request, response) {
7          var results = $.ui.autocomplete.filter(economists, request.term);
8          response(results.slice(0, 5))
9        },
10        focus: function(event, ui) {
11          $('#economists').val(ui.item.label);
12          return false;
13        },
14        select: function(event, ui) {
15          return false;
16        }
17      })
18      .autocomplete('instance')._renderItem = function(ul, item) {
19        ul.addClass('economists-search-container');
20        return $('<li class="economists-search-item">')
21          .append('<a class="economists-search-link" href="' + item.link + '"><div class="economists-search-image-container"><img src="' + item.image + '"/></div><span class="economists-search-name">' + item.label + '</span></a>')
22          .appendTo(ul);
23      };
24    }
25  });
26})(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.