PageSourceSearch

https://kusanagi.tokyo/wp-content/plugins/ps-gmo-header-footer/assets/js/kusanagi-tokyo-menu-css.js?ver=2.3.0

js kusanagi.tokyo collected 2026-10-02 02:45:31 UTC 1,143 bytes, 35 lines download raw bytes

1(function () {
2  function fixStickyNav() {
3    const marginTop = document.body.classList.contains('admin-bar') ? '61px' : '29px';
4
5    document.querySelectorAll('#sticky-navigation, .navigation-stick').forEach(function (nav) {
6      if (!nav.classList.contains('is_stuck')) return;
7
8      nav.style.setProperty('margin-top', marginTop, 'important');
9      nav.style.setProperty('top', '0px', 'important');
10    });
11  }
12
13  window.addEventListener('scroll', function () {
14    requestAnimationFrame(fixStickyNav);
15    setTimeout(fixStickyNav, 50);
16    setTimeout(fixStickyNav, 150);
17  }, { passive: true });
18
19  window.addEventListener('resize', fixStickyNav);
20  document.addEventListener('DOMContentLoaded', fixStickyNav);
21
22  const observer = new MutationObserver(function () {
23    requestAnimationFrame(fixStickyNav);
24    setTimeout(fixStickyNav, 50);
25  });
26
27  document.addEventListener('DOMContentLoaded', function () {
28    document.querySelectorAll('#sticky-navigation, .navigation-stick').forEach(function (nav) {
29      observer.observe(nav, {
30        attributes: true,
31        attributeFilter: ['style', 'class']
32      });
33    });
34  });
35})();

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.