PageSourceSearch

https://nazk.gov.ua/main/assets/js/menu.js?v=1751456593

js nazk.gov.ua collected 2026-10-01 09:07:14 UTC 1,493 bytes, 65 lines download raw bytes

1//Shadow window on menu click
2//let isMenuOpen = false;
3
4$("input#menu_input").on("change", function () {
5  $(".menu-toggler").toggleClass("cross")
6  $("main").toggleClass("shadow")
7})
8
9//Footer menu
10$("footer .menu-column h4").click(function () {
11  documentWidth = $(document).width()
12
13  if (documentWidth < 1368) {
14    //Bottom menu
15    $(this).find(".plus").toggleClass("active")
16    $(this).next().slideToggle("fast")
17  }
18})
19
20//Top menu on mobile
21$(".top-menu-item").click(function () {
22  documentWidth = $(document).width()
23  console.log($(this))
24  console.log(documentWidth)
25
26  if (documentWidth < 768) {
27    //Top menu
28    $(this).find(".plus").toggleClass("active")
29    $(this).next().slideToggle("fast")
30  }
31})
32
33$("#datepicker").datepicker({
34  maxDate: 0,
35  beforeShow: function (textbox, instance) {
36    $(".dp-div").append(instance.dpDiv)
37  },
38  onSelect: function (date, instance) {
39    let url = new URL(instance.input.data("url"))
40    let name = instance.input.data("name")
41    url.searchParams.set(name, date)
42    location.href = url.href
43  },
44})
45
46/*$(window).resize(function () {
47  createMenu();
48});*/
49
50$(document).on("click", function (e) {
51  if (
52    !$(e.target).closest(".second-level-menu").length &&
53    $(".menu-toggler.cross").length
54  ) {
55    if (
56      $(e.target).hasClass("menu-label") ||
57      $(e.target).attr("id") == "menu_input" ||
58      $(e.target).hasClass("menu-toggler")
59    ) {
60      return
61    }
62    $("#menu_input").click()
63  }
64  e.stopPropagation()
65})

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.