PageSourceSearch

https://vodavorle.ru/mg-core/script/standard/js/layout.search.js?rev=1585054194

js vodavorle.ru collected 2026-10-07 18:01:58 UTC 1,181 bytes, 43 lines download raw bytes

1$(document).ready(function() {
2
3
4  // Обработка ввода поисковой фразы в поле поиска
5  $('body').on('keyup', 'input[name=search]', function() {
6
7    var text = $(this).val();
8    if (text.length >= 2) {
9      var url = $(this).closest('form').attr('action');
10      $.ajax({
11        type: "POST",
12        url:  url,
13        data: {
14          fastsearch: "true",
15          text: text
16        },
17        dataType: "json",
18        cache: false,
19        success: function(data) {
20          if ('success' == data.status && data.item.items.catalogItems.length > 0) {
21            $('.fastResult').html(data.html);
22            $('.fastResult').show();
23            $('.wraper-fast-result').show();
24          } 
25          else {
26            $('.fastResult').hide();
27          }
28        }
29      });
30    } else {
31      $('.fastResult').hide();
32    }
33  });
34
35  // клик вне поиска
36  $(document).mousedown(function(e) {
37    var container = $(".wraper-fast-result");
38    if (container.has(e.target).length === 0 && $(".search-block").has(e.target).length === 0) {
39      container.hide();
40    }
41  });
42
43});  

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.