PageSourceSearch

https://www.jynarque.com/sites/g/files/qhldwo12166/themes/site/the…/assets/build/js/menu/menu.main.js

js jynarque.com collected 2026-10-08 00:25:01 UTC 1,653 bytes, 51 lines download raw bytes

1"use strict";
2
3(function ($, Drupal) {
4  Drupal.behaviors.otsukaMenuMain = {
5    attach: function (context) {
6
7      $(once('mobile-menu-open', '.mobile-menu-open-btn', context)).on('click', function (e) {
8        e.preventDefault();
9
10        const headerHeight = $('header').outerHeight();
11        const windowHeight = $(window).height();
12
13        $('body').addClass('mobile-menu-opened');
14        $('#mobile-menu').css('max-height', windowHeight - headerHeight);
15      });
16
17      $(once('mobile-menu-close', '.mobile-menu-close-btn', context)).on('click', function (e) {
18        e.preventDefault();
19        $('body').removeClass('mobile-menu-opened');
20      });
21
22      $(once('menu-expand-link', '.menu-item--expanded > a', context)).on('click', function (e) {
23        e.preventDefault();
24
25        const $parent = $(this).parent('.menu-item');
26        const isExpanded = $parent.hasClass('expanded');
27
28        $('.menu-item').removeClass('expanded');
29        if (!isExpanded) {
30          $parent.addClass('expanded');
31        }
32      });
33
34      $(once('menu-expand-span-mobile', '.region-mobile-menu .menu-item--expanded > span', context))
35        .on('click', function (e) {
36          e.preventDefault();
37          $(this).parent('.menu-item').toggleClass('expanded');
38        });
39
40      $(once('menu-expand-span-desktop', '.region-header-bottom .menu-item--expanded > span', context))
41        .on('click', function (e) {
42          e.preventDefault();
43
44          const $parent = $(this).parent('.menu-item');
45          $parent.siblings().removeClass('expanded');
46          $parent.toggleClass('expanded');
47        });
48    }
49  };
50})(jQuery, Drupal);
51 

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.