PageSourceSearch

https://www.tsuruyagolf.co.jp/tsuruya-wp/wp-content/themes/tsuruya_v2025-10/js/common.js?1762979745

js tsuruyagolf.co.jp collected 2026-10-02 06:14:48 UTC 2,640 bytes, 99 lines download raw bytes

1
2$('.header .sp-menu').on('click' , function() {
3  $(this).toggleClass('active');
4  $('.header nav').toggleClass('active')
5})
6
7$('.header nav .header-btn li.onlineshop a').on('click' , function() {
8  $(this).next().fadeIn();
9})
10
11$('.header nav .header-btn li.onlineshop .fade-content i').on('click' , function() {
12  $('.header nav .header-btn li.onlineshop .fade-content').fadeOut();
13})
14
15$('.link-btn a').append('<i></i>')
16
17//ゴルフ練習場・フィッティング一覧のタイトル部分
18$('.fitting--txt h2').append('<i></i>')
19
20//PC ヘッダーのONLINESHOPをクリックした時の挙動
21$('#pc-menu').on('click' , function() {
22  $(this).next().toggleClass('view')
23})
24
25//詳細情報の.item内のaタグ
26// $('.shop-list__item-info-link .item a').append('<i></i>')
27
28$('.online-shop-link .close').on('click' , function() {
29  $('.online-shop-link').toggleClass('view')
30})
31
32
33
34
35//header検索窓
36$('.search-btn .search-icon').on('click' , function() {
37  $('.search-box').addClass('view');
38});
39$('.search-box__inner .close').on('click' , function() {
40  $('.search-box').removeClass('view');
41});
42
43
44//pagetop
45const pageTop = $("#page-top");
46  pageTop.hide(); // 最初はボタンを非表示にする
47  $(window).scroll(function () {
48    if ($(this).scrollTop() > 100) { // 100pxスクロールしたら表示
49      pageTop.fadeIn(); // 100px以上スクロールしたらボタンをフェードイン
50    } else {
51      pageTop.fadeOut(); // 100px以下になったらボタンをフェードアウト
52    }
53  });
54  pageTop.click(function () {
55    $("body,html").animate(
56      {
57        scrollTop: 0, // 上から0pxの位置に戻る
58      },
59      500 // 500ミリ秒かけて戻る
60    );
61    return false;
62  });
63
64  $('.accordion-trigger').on('click' , function() {
65    $(this).toggleClass('active');
66    $(this).next().slideToggle();
67  })
68
69
70
71$(function() {
72  // スクロールアニメーション関数
73  function scrollProcess() {
74    var pos = $(window).scrollTop();
75    var wh = $(window).innerHeight();
76
77    $(".scrollItem").each(function () {
78      var startPos = 0.8; // デフォルトの開始位置
79      if ($(this).attr('data-spos') !== undefined) {
80        startPos = parseFloat($(this).data('spos')); // 属性値を数値化
81      }
82
83      if ($(this).offset().top < pos + wh * startPos) {
84        $(this).addClass("scrollActive");
85      }
86    });
87  }
88
89  // 初回チェック(ページロード時)
90  scrollProcess();
91
92  // スクロールイベント
93  $(window).on('scroll', function() {
94    scrollProcess();
95  });
96
97  // フォームサジェストOFF
98  $('[name="s"]').attr("autocomplete", "off");
99});

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.