PageSourceSearch

https://www.nsz.be/src/Frontend/Themes/Custom/Core/Js/nav-search.js?m=1777365214

js nsz.be collected 2026-09-26 02:19:40 UTC 1,264 bytes, 40 lines download raw bytes

1(function() {
2  $(function() {
3    $('html').on('click', function(e) {
4      var target;
5      target = $(e.target);
6      if (!$('.nav-search').hasClass('mobile') && !target.closest('.nav-search').length > 0) {
7        if (target.hasClass('icon-search')) {
8          e.preventDefault();
9          $('.nav-search').slideToggle();
10          target.hasClass('icon-search') && target.toggleClass('open');
11          if ($('.nav-search').is(':visible')) {
12            return $('#qWidget').focus();
13          }
14        } else {
15          return $('.nav-search').slideUp();
16        }
17      }
18    });
19    $('.navbar-ex1-collapse').on('show.bs.collapse', function() {
20      return $('.nav-search').slideDown();
21    });
22    $('.navbar-ex1-collapse').on('hide.bs.collapse', function() {
23      return $('.nav-search').slideUp();
24    });
25    return enquire.register('screen and (max-width: 768px)', {
26      match: function() {
27        $('.nav-search').addClass('mobile');
28        if (!$('.navbar-ex1-collapse').hasClass('in')) {
29          return $('.nav-search').hide();
30        } else {
31          return $('.nav-search').show();
32        }
33      },
34      unmatch: function() {
35        return $('.nav-search').removeClass('mobile').hide();
36      }
37    });
38  });
39
40}).call(this);

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.