PageSourceSearch

https://naritasika.com/wp-content/themes/DEN-PRO_Theme/js/denpro.js?ver=6.4.12

js naritasika.com collected 2026-10-04 15:48:08 UTC 3,524 bytes, 161 lines download raw bytes

1jQuery(window).on('load',function(){jQuery(function($) {
2
3//ページ内リンク
4var window_width = $(window).width();
5var gNavi_height = 80;
6if(window_width < 460){ gNavi_height = 60; }
7
8$('a[href^="#"]').click(function() {
9  //スピード調整
10  var speedRate = .1;
11  // アンカーの値取得
12  var href= $(this).attr('href');
13  // 移動先を取得
14  var target = $(href == '#' || href == '' ? 'html' : href);
15  // 移動先を数値で取得
16  var goal = target.offset().top - gNavi_height;
17  //現在位置を取得
18  var start = $( window ).scrollTop();
19  // スムーススクロール
20  $.when(
21    $('body,html').animate({scrollTop:goal}, Math.abs(start - goal) * speedRate, 'linear')
22  ).done(function() {
23    var diff = target.offset().top - gNavi_height;
24    if (diff === goal) {
25    } else {
26      $('body,html').animate({scrollTop:diff}, Math.abs(goal - diff) * speedRate, 'linear');
27    }
28  });
29  return false;
30});
31
32//ページ外からのアンカー
33var urlHash = location.hash;
34if(urlHash) {
35  $('body,html').stop().scrollTop(0);
36  setTimeout(function(){
37    var target = $(urlHash);
38    var position = target.offset().top - gNavi_height;
39    $.when(
40      $('body,html').stop().animate({scrollTop:position}, 500)
41    ).done(function() {
42      var diff = target.offset().top - gNavi_height;
43      if (diff === position) {
44      } else {
45        $('body,html').stop().animate({scrollTop:diff}, 100);
46      }
47    });
48  }, 100);
49}
50
51
52//fixed-navigation
53var showFlag = false;
54var fixedNavi = $('#fixed_navi');
55var page_top = $('#page_top');
56
57if(window_width > 750){
58
59  $(window).scroll(function () {
60    if ($(this).scrollTop() > 300) {
61      if (showFlag == false) {
62        showFlag = true;
63        fixedNavi.stop().animate({'bottom' : '0'}, 400);
64      }
65    } else {
66      if (showFlag) {
67        showFlag = false;
68        fixedNavi.stop().animate({'bottom' : '-70px'}, 300);
69      }
70    }
71  });
72
73  $(window).scroll(function () {
74    if ($(this).scrollTop() > 150) {
75      fixedNavi.addClass('fixed');
76    } else {
77      fixedNavi.removeClass('fixed');
78    }
79  });
80
81}
82
83$(window).scroll(function () {
84  if ($(this).scrollTop() > 150) {
85    page_top.fadeIn();
86  } else {
87    page_top.fadeOut();
88  }
89});
90
91//G-NAVI
92if( $('.menu-g_navi-container').length ) {
93
94  var gNaviFlag = false;
95  var gNavi = $('#header');
96  var gNavi_static = gNavi.offset().top;
97  var gNavi_fixed = gNavi_static + 100;
98  var gNavi_release = gNavi.height();
99
100  if(window_width > 960){
101
102    $(window).scroll(function(){
103      if($(this).scrollTop() > gNavi_fixed){
104        if(gNaviFlag == false){
105          $('body').addClass('fixed');
106          gNaviFlag = true;
107        }
108      }
109
110      if($(this).scrollTop() < gNavi_release){
111        if(gNaviFlag){
112          $('body').removeClass('fixed');
113          gNaviFlag = false;
114        }
115      }
116    });
117
118  }
119}
120
121
122//DRAWER
123$('#menu_btn, #overlay, #menu_act').on('click', function() {
124  $('body').toggleClass('open');
125  return false;
126});
127$('#overlay').on('click',function(){
128  $('body').removeClass('open');
129});
130
131
132//icon-box expansion
133$('.elementor-widget-icon-box.exp').on('click', function() {
134  var icon_box_link = $(this).find('.elementor-icon-box-icon a').attr('href');
135  window.location.href = icon_box_link;
136  return false;
137});
138
139
140//ログイン
141var press_cnt = 0;
142
143$(window).keyup(function(e){
144	if(e.keyCode == 27){
145    press_cnt++;
146    if(press_cnt >= 4){
147      window.location.href = '/dp-login.php';
148      press_cnt = 0;
149    }
150  } else {
151    press_cnt = 0;
152  }
153});
154
155
156
157
158
159
160});
161});

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.