PageSourceSearch

https://fiby.ai/wp-content/themes/fiby-master_2025/assets/js/common.js?ver=7.0.6

js fiby.ai collected 2026-10-05 14:15:09 UTC 1,668 bytes, 65 lines download raw bytes

1/* ===================================================================
2
3 * スムーススクロール
4
5=================================================================== */
6
7$(document).ready(function () {
8  const menuBtn = $(".header-nav-list a");
9  menuBtn.click(function(e) {
10    // ハッシュリンクの場合のみ処理
11    const href = $(this).attr('href');
12    if (href && href.indexOf('#') !== -1 && !href.match(/^[http:|https:|\/\/]/)) {
13      setTimeout(() => {
14        removeHash();
15      }, 5);
16    }
17  });
18  function removeHash() {
19    history.replaceState(
20      "",
21      document.title,
22      window.location.origin + window.location.pathname + window.location.search
23    );
24  }
25});
26
27/* ===================================================================
28
29 * ナビゲーション調整 - .header
30
31=================================================================== */
32
33(function () {
34  window.addEventListener("click", check_click);
35
36  function check_click(e) {
37    let target = e.target;
38    if (!target || target.tagName !== "A") {
39      return;
40    }
41    let href = target.getAttribute("href");
42    if (href.indexOf("#") === -1) {
43      return;
44    }
45    if (href.match(/^[http:|https:|\/\/]/)) {
46      return;
47    }
48    setTimeout(hash_link_url_adjust, 0);
49  }
50
51  function hash_link_url_adjust(href) {
52    let sp = location.href.split("#");
53    history.pushState(null, null, sp[0]);
54  }
55})();
56
57$(function () {
58    let currentUrl = window.location.href;
59    $('.js-category-link').each(function () {
60        let linkUrl = $(this).attr('href');
61        if (currentUrl == linkUrl) {
62            $(this).addClass('active');
63        }
64    });
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.