PageSourceSearch

https://daiyufreeze.co.jp/wp-content/themes/daiyu-corp/js/script.js?v260610

js daiyufreeze.co.jp collected 2026-10-08 02:54:44 UTC 3,236 bytes, 110 lines download raw bytes

1$(function(){
2
3  /*========================================
4   component
5  ========================================*/
6
7  /*== hamburger ====================*/
8  $('.menu-trigger').click(function(){
9    $(this).toggleClass('active');
10    $('.toggle-menu').slideToggle();
11  });
12  // ページ内リンクをクリックしたらメニューを閉じる
13  $('.toggle-menu a[href^="#"]').click(function(){
14    $('.menu-trigger').removeClass('active');
15    $('.toggle-menu').slideUp();
16  });
17
18  /*== smooth scroll ====================*/
19  var headerHeight = $('.header').outerHeight();
20  var urlHash = location.hash;
21  if(urlHash) {
22      $('body,html').stop().scrollTop(0);
23      setTimeout(function(){
24          var target = $(urlHash);
25          var position = target.offset().top - headerHeight;
26          $('body,html').stop().animate({scrollTop:position}, 500);
27      }, 100);
28  }
29  $('a[href^="#"]').click(function() {
30      var href= $(this).attr("href");
31      var target = $(href);
32      var position = target.offset().top - headerHeight;
33      $('body,html').stop().animate({scrollTop:position}, 500);   
34  });
35
36  /*== link-disabled ====================*/
37  $('a.link-disabled').click(function() { 
38      return false; 
39  });
40
41  /*== map ====================*/
42  var map = $('.map');
43  map.css('pointer-events', 'none');
44  $('.map-wrap').click(function() {
45      map.css('pointer-events', 'auto');
46  });
47  map.mouseout(function() {
48      map.css('pointer-events', 'none');
49  });
50
51  /*== object fit img ====================*/
52  objectFitImages('ofi');
53
54
55  /*========================================
56   header
57  ========================================*/
58
59
60  /*========================================
61   home
62  ========================================*/
63
64  /*== slick ====================*/
65  // slick
66  $('.slider').slick({
67    dots: true,
68    arrows: false,
69    speed: 100,
70    autoplay: true,
71    slidesToShow: 1,
72    slidesToScroll: 1,
73  });
74
75// end function
76});
77
78/*== table-tab ====================*/
79$(function(){
80  // クリックしたときの関数
81  $('.tab-btn').click(function() {
82    //クリックされたタブの番号をindexに格納。
83    var index = $('.tab-btn').index(this);
84    //コンテンツを一旦全て非表示に。
85    $('.tab-content').css('display','none');
86    // クリックされた番号のコンテンツを表示。
87    $('.tab-content').eq(index).fadeIn();
88    // 一度タブについている'tab_current'を消し
89    $('.tab-btn').removeClass('tab-btn--current');
90    //クリックされたタブのみに'tab_current'をつける。
91    $(this).addClass('tab-btn--current');
92  });
93});
94
95$(function(){
96  $('.tab-btn2').click(function() {
97    //クリックされたタブの番号をindexに格納。
98    var index = $('.tab-btn2').index(this);
99    //コンテンツを一旦全て非表示に。
100    $('.tab-area').css('display','none');
101    // クリックされた番号のコンテンツを表示。
102    $('.tab-area').eq(index).fadeIn();
103    // 一度タブについている'tab_current'を消し
104    $('.tab-btn2').removeClass('tab-btn--current');
105    //クリックされたタブのみに'tab_current'をつける。
106    $(this).addClass('tab-btn--current');
107  });
108});
109
110

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.