PageSourceSearch

https://daishinkimura.com/common/js/common.js?3

js daishinkimura.com collected 2026-09-30 19:50:54 UTC 11,615 bytes, 557 lines download raw bytes

1
2$(window).load(function() {
3var box01 = document.getElementById('box01');
4if (box01) {
5box01Height = box01.offsetHeight;
6}
7if (box02) {
8var box02 = document.getElementById('box02');
9box02.style.height = box01Height + 'px';
10}
11if (box02) {
12var box02 = document.getElementById('box03');
13box03.style.height = box01Height + 'px';
14}
15if (box02) {
16var box02 = document.getElementById('box04');
17box04.style.height = box01Height + 'px';
18}
19});
20
21$(window).resize(function() {
22if (box01) {
23var box01 = document.getElementById('box01'); 
24box01Height = box01.offsetHeight;
25}
26if (box02) {
27var box02 = document.getElementById('box02');
28box02.style.height = box01Height + 'px';
29}
30if (box02) {
31var box02 = document.getElementById('box03');
32box03.style.height = box01Height + 'px';
33}
34if (box02) {
35var box02 = document.getElementById('box04');
36box04.style.height = box01Height + 'px';
37}
38});
39
40
41$(document).ready(function(){
42$('.sp_slide_btn').click(function() {
43
44if($(this).is(".selected")){
45$(this).removeClass("selected");
46}else {
47$(this).addClass("selected");
48}
49
50$(".sp_slide_on").slideToggle();
51}).next().hide();
52});
53
54
55
56
57$(function () {
58
59var parent = $('.search_region h5');
60parent.each(function(){
61	var self = $(this);
62	self.on('click',function(){
63		parent.not(self).removeClass("selected");
64		parent.not(self).next('.search_region_list').slideUp(300);
65		self.toggleClass("selected");
66		self.next('.search_region_list').slideToggle(300);
67		
68	});
69});
70
71});
72
73
74
75
76
77$(function() {
78	//=================================================
79	// クリッカブルマップのマウスオーバー設定
80	//=================================================
81	$("#mapArea area").hover(function(e){
82		var classname = $(this).attr("class");
83		var area_on = classname+"_on";
84		var area_pop = classname+"_pop";
85		console.log(area_pop)
86
87		$("."+area_on).fadeIn(100);
88		$("."+area_pop).addClass("active");
89
90	},function(){
91		var classname = $(this).attr("class");
92		var area_on = classname+"_on";
93		var area_pop = classname+"_pop";
94
95		$("."+area_on).fadeOut(0);
96		$("."+area_pop).removeClass("active");
97    });
98	
99	$(".pop").hover(function(e){
100		var idname = $(this).attr("id");
101		var area_on = idname+"_on";
102		var area_pop = idname+"_pop";
103		console.log(area_pop)
104		
105		$("."+area_on).fadeIn(100);
106		$("."+area_pop).addClass("active");
107
108	},function(){
109		var idname = $(this).attr("id");
110		var area_on = idname+"_on";
111		var area_pop = idname+"_pop";
112
113		$("."+area_on).fadeOut(0);
114		$("."+area_pop).removeClass("active");
115    });
116
117	//=================================================
118	// クリック時の点線を削除
119	//=================================================
120	var ua = navigator.userAgent;
121	var chkFF = ua.indexOf("Firefox",0);
122	if(chkFF>0){
123	  if($("#mapArea area").length){
124		$("#mapArea area").attr("onFocus","");
125	  }
126	}
127
128});
129
130
131
132$(function () {
133// 要素の取得
134const tabItem = document.querySelectorAll('.tab-item');
135const tabContent = document.querySelectorAll('.tab-content');
136
137// tabItemに対してクリックイベントを追加
138// クリックした時にtabToggle関数を発火
139for (let i = 0; i < tabItem.length; i++) {
140  tabItem[i].addEventListener('click', tabToggle);
141}
142
143function tabToggle() {
144  // tabItemとtabContentの.activeを削除する
145  for (let i = 0; i < tabItem.length; i++) {
146    tabItem[i].classList.remove('active');
147  }
148  for (let i = 0; i < tabContent.length; i++) {
149    tabContent[i].classList.remove('active');
150  }
151  
152  // クリックしたtabItemに.activeを追加
153  this.classList.add('active');
154  
155  // tabItemを配列にする、下記のようになる
156  // [<li class="tab-item active">About</li>, <li class="tab-item">Works</li>, <li class="tab-item">Contact</li>]
157  const aryTabs = Array.prototype.slice.call(tabItem);
158  
159  // 配列に格納したキーワードと最初一致したインデックスを格納
160  // <li class="tab-item active">About</li>の場合は「0」が返ってくる
161  const index = aryTabs.indexOf(this);
162  
163  // インデックスに対応したtabContentに.activeを追加
164  tabContent[index].classList.add('active');
165}
166
167});
168
169
170
171$(function () {
172
173var parent = $('.recinfo_wrap h3');
174parent.each(function(){
175	var self = $(this);
176	self.on('click',function(){
177		parent.not(self).removeClass("selected");
178		parent.not(self).next('.recinfo_content').slideUp(300);
179		self.toggleClass("selected");
180		self.next('.recinfo_content').slideToggle(300);
181		
182	});
183});
184
185});
186
187
188
189
190$(document).ready(function(){
191$('.sp_tap1').click(function() {
192
193if($(this).is(".selected")){
194$(this).removeClass("selected");
195}else {
196$(this).addClass("selected");
197}
198
199$(".sp_toggle1").slideToggle();
200}).next().hide();
201});
202
203
204
205$(document).ready(function(){
206$('.sp_tap2').click(function() {
207
208if($(this).is(".selected")){
209$(this).removeClass("selected");
210}else {
211$(this).addClass("selected");
212}
213
214$(".sp_toggle2").slideToggle();
215}).next().hide();
216
217});
218
219$(document).ready(function(){
220$('.sp_tap2').click(function() {
221
222$(".check_area2").slideToggle();
223}).next().hide();
224
225});
226
227
228$(function () {
229
230var parent = $('div.slide_toggle');
231parent.each(function(){
232	var self = $(this);
233	self.on('click',function(){
234
235		self.toggleClass("selected");
236		self.next('div.slide_box').slideToggle(300);
237		
238	});
239});
240
241});
242
243
244
245
246$(function () {
247$(window).scroll(function () {
248if ($(this).scrollTop() > 85) {
249$('.fix_nav').addClass('fixed');
250} else {
251$('.fix_nav').removeClass('fixed');
252}
253}
253);
254});
255
256
257
258
259
260$(function(){
261$(".has-sub").hover(function(){
262$(this).children(".sub").stop().slideToggle();
263});
264});
265
266$(function(){
267$(".q_block").on("click", function() {
268$(this).next().slideToggle();
269});
270});
271
272	$(function() {
273			var touch = false;
274			$('div.btn_menu').on('click touchstart',function(e){
275				switch (e.type) {
276					case 'touchstart':
277						drawerToggle();
278						touch = true;
279						return false;
280					break;
281					case 'click':
282						if(!touch)
283							 drawerToggle();
284						return false;
285					break;
286				 }
287				function drawerToggle(){
288					$('body').toggleClass('drawer-opened sp-opened');
289					touch = false;
290				}
291			})
292			$('#overlay').on('click',function(){
293				$('body').removeClass('drawer-opened sp-opened');
294			})
295			$('#humberger').on('click',function(){
296				$('body').removeClass('drawer-opened sp-opened');
297			})
298	});
299
300$(function () {
301
302var parent = $('div.slide_on');
303parent.each(function(){
304	var self = $(this);
305	self.on('click',function(){
306		parent.not(self).removeClass("selected");
307		parent.not(self).next('ul').slideUp(300);
308		self.toggleClass("selected");
309		self.next('ul').slideToggle(300);
310		
311	});
312});
313
314});
315
316$(window).load(function() {
317//画面高さ取得
318h = $(window).height();
319h = h - 0 ;
320$("ul.slidemenu").css("height", h + "px");
321});
322$(window).resize(function() {
323//画面リサイズ時の高さ取得
324h = $(window).height();
325h = h - 0 ;
326$("ul.slidemenu").css("height", h + "px");
327});
328
329$(function(){
330	$("ul.g_nav_list").hide();
331	$("ul#g_nav > li").hover(function(){
332		$(">ul:not(:animated)",this).fadeIn(1)
333	},
334	function(){
335		$(">ul",this).fadeOut(1);
336	})
337});
338
339
340$(function(){
341    $('.scroll-down').click(function () {
342        var speed = 800;
343        var href = $(this).attr("href");
344        var target = $(href == "#" || href == "" ? 'html' : href);
345        var position = target.offset().top;
346        $("html, body").animate({scrollTop: position}, speed, "easeOutExpo");
347        return false;
348    });
349});
350
351
352$(function(){
353	$("ul.g_nav_list").hide();
354	$("ul#g_nav > li").hover(function(){
355		$(">ul:not(:animated)",this).fadeIn(1)
356	},
357	function(){
358		$(">ul",this).fadeOut(1);
359	})
360});
361
362
363
364	$(function() {
365			var touch = false;
366			$('.btn_nav').on('click touchstart',function(e){
367				switch (e.type) {
368					case 'touchstart':
369						drawerToggle();
370						touch = true;
371						return false;
372					break;
373					case 'click':
374						if(!touch)
375							 drawerToggle();
376						return false;
377					break;
378				 }
379				function drawerToggle(){
380					$('body').toggleClass('drawer-opened');
381					touch = false;
382				}
383			})
384			$('#overlay').on('click',function(){
385				$('body').removeClass('drawer-opened');
386			})
387			$('#humberger').on('click',function(){
388				$('body').removeClass('drawer-opened');
389			})
390	});
391
392$(function() {
393var topBtn = $('#page-top');
394topBtn.hide();
395//スクロールが150に達したらボタン表示
396$(window).scroll(function () {
397if ($(this).scrollTop() > 150) {
398topBtn.fadeIn();
399} else {
400topBtn.fadeOut();
401}
402});
403//スクロールしてトップ
404topBtn.click(function () {
405$('body,html').animate({
406scrollTop: 0
407}, 500);
408return false;
409});
410});
411
412/**********************************************************
413pageScroll
414--------
415ページスクロール
416**********************************************************/
417function pageScroll() {
418	$("a[href*=#]").click(function() {
419		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
420			var $target = $(this.hash);
421			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
422			if ($target.length) {
423				var targetOffset = $target.offset().top;
424				$('html,body').animate({scrollTop: targetOffset}, 500);
425				return false;
426			}
427		}
428	});
429}
430
431
432/**********************************************************
433実行処理
434**********************************************************/
435$(document).ready(pageScroll);
436
437$(function(){
438	$('img.nav_on').each(
439		function(){
440			$(this).hover(
441				function(){
442				$(this).stop().animate({'opacity': '0'}, 200);
443				},
444				function(){
445				$(this).stop().animate({'opacity': '1'}, 600);
446				}
447			)
448		}
449	)
450});
451
452$(function(){
453	$('img.nav_half').each(
454		function(){
455			$(this).hover(
456				function(){
457				$(this).stop().animate({'opacity': '0.7'}, 200);
458				},
459				function(){
460				$(this).stop().animate({'opacity': '1'}, 600);
461				}
462			)
463		}
464	)
465});
466
467$(function(){
468  $('img.btn_on').each(
469    function(){
470      this.onImage = $(this).attr('src').replace(/^(.+)(\.[a-z]+)$/,"$1"+'_on'+"$2");
471      this.onHtml = $('<img src="'+this.onImage+'" alt="" class="img_pc" style="position:absolute; opacity:0;" />');
472      $(this).before(this.onHtml);
473
474      $(this.onHtml).hover(
475        function(){
476          $(this).stop().animate({'opacity': '1'}, 200);
477        },
478        function(){
479          $(this).stop().animate({'opacity': '0'}, 600);
480        }
481      )
482    }
483  )
484});
485
486$(function(){
487  $('img.btn_on2').each(
488    function(){
489      this.onImage = $(this).attr('src').replace(/^(.+)(\.[a-z]+)$/,"$1"+'_on'+"$2");
490      this.onHtml = $('<img src="'+this.onImage+'" alt="" class="img_sp" style="position:absolute; opacity:0;" />');
491      $(this).before(this.onHtml);
492
493      $(this.onHtml).hover(
494        function(){
495          $(this).stop().animate({'opacity': '1'}, 200);
496        },
497        function(){
498          $(this).stop().animate({'opacity': '0'}, 600);
499        }
500      )
501    }
502  )
503});
504
505$(function(){
506	$('div.bnr_half').each(
507		function(){
508			$(this).hover(
509				function(){
510				$(this).stop().animate({'opacity': '0.7'}, 200);
511				},
512				function(){
513				$(this).stop().animate({'opacity': '1'}, 600);
514				}
515			)
516		}
517	)
518});
519
520$(function(){
521	$('.bnr_txt').each(
522		function(){
523			$(this).hover(
524				function(){
525				$(this).stop().animate({'opacity': '0.7'}, 200);
526				},
527				function(){
528				$(this).stop().animate({'opacity': '1'}, 600);
529				}
530			)
531		}
532	)
533});
534
535$(function(){
536	$('div.news_linkArea').each(
537		function(){
538			$(this).hover(
539				function(){
540				$(this).stop().animate({'opacity': '0.7'}, 200);
541				},
542				function(){
543				$(this).stop().animate({'opacity': '1'}, 600);
544				}
545			)
546		}
547	)
548});
549
550
551$(function(){
552$('.spec_inner').hide();
553$('.spec_wrap h2').on('click', function(){
554$(this).next().slideToggle();
555$(this).toggleClass("opend");
556});
557});

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.