PageSourceSearch

https://knock-la.com/wp-content/themes/knock-la-2020/page.js?ver=1790272782

js knock-la.com collected 2026-09-24 17:59:58 UTC 2,343 bytes, 68 lines download raw bytes

1(function ($) {
2  // Show our site navigation bar
3  $("#toggle-mobile-nav").click(function (event) {
4    event.preventDefault();
5    toggleNav();
6  });
7
8  $(document).keyup(function (e) {
9    if (e.key === "Escape" && $("body").hasClass("navigationShown")) {
10      // escape key maps to keycode `27`
11      toggleNav();
12    }
13  });
14
15  function toggleNav() {
16    if ($("body").hasClass("navigationShown")) {
17      $("ul#menu-main-menu").removeAttr("data-layers-deep");
18      $("ul .menu-item-has-children").removeClass("active");
19      $("body").removeClass("navigationShown");
20    } else {
21      $("body").addClass("navigationShown");
22    }
23  }
24
25  $(document).on("click", "body.navigationShown ul .menu-item-has-children > a", function (event) {
26    event.preventDefault();
27    $(this).parent(".menu-item-has-children").addClass("active");
28
29    var attr = $("body.navigationShown header #main-header-menu ul#menu-main-menu").attr("data-layers-deep");
30    if (typeof attr !== typeof undefined && attr !== false) {
31      var newDepth = Number(attr) + 1;
32      $(this).parents("ul#menu-main-menu").attr("data-layers-deep", newDepth);
33    } else {
34      $(this).parents("ul#menu-main-menu").attr("data-layers-deep", "1");
35    }
36  });
37
38  $(document).on("click", "body.navigationShown header #main-header-menu .menu-back", function (event) {
39    event.preventDefault();
40    var attr = $("body.navigationShown header #main-header-menu ul#menu-main-menu").attr("data-layers-deep");
41    if (typeof attr !== typeof undefined && attr !== false && Number(attr) > 0) {
42      // we are down layers
43      $(this).parents(".menu-item-has-children").removeClass("active");
44      var newDepth = Number(attr) - 1;
45      $(this).parents("ul#menu-main-menu").attr("data-layers-deep", newDepth);
46    } else {
47      // we are at the top
48      toggleNav();
49    }
50  });
51
52  $("figure.sensitive:has(img)").each(function () {
53    var sensitivity_string = $(this).children("img").attr("title") ? $(this).children("img").attr("title") : "Graphic Image Warning";
54    $(this).find(".sensitive-warning-copy").text(sensitivity_string);
55  });
56
57  /* Sensitive Images */
58
59  $("figure.sensitive:has(img)").click(function () {
60    $(this).toggleClass("show");
61  });
62
63  /* Search */
64
65  $("#header-search-button").click(function (event) {
66    event.preventDefault();
67  });
68})(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.