PageSourceSearch

https://www.nantatsu.co.jp/mt-static/support/theme_static/dc_nantatsu/js/common1204.js

js nantatsu.co.jp collected 2026-10-02 17:16:11 UTC 843 bytes, 24 lines download raw bytes

1
2
3// ハンバーガーメニューを閉じる処理
4function closeHamburgerMenu() {
5  const hum = document.querySelector('.hum');
6  const container = document.querySelector('.header__nav__container');
7  const logo = document.querySelector('.header__logo__link');
8
9  if (hum) hum.classList.remove('is-active');
10  if (container) container.classList.remove('is-active');
11  if (logo) logo.classList.remove('is-active');
12}
13
14// ページ内リンククリックで閉じる処理
15document.addEventListener('click', function (e) {
16  const link = e.target.closest('.nav-main__item--sp .nav-sub__list .nav-sub__link');
17  if (!link) return;
18
19  const href = link.getAttribute('href');
20  // href が https://~#link のように # を含む場合のみ閉じる
21  if (href && href.includes('#')) {
22    closeHamburgerMenu();
23  }
24});

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.