PageSourceSearch

https://suichoku.com/cms/wp-content/themes/suichoku-v3/js/common.js?v=1782984656

js suichoku.com collected 2026-10-06 08:17:45 UTC 2,998 bytes, 107 lines download raw bytes

1
2
3// page fade-in
4jQuery(document).ready(function () {
5	setTimeout(function(){
6		 jQuery("#wrapper").stop().addClass("active");
7	},800);
8});
9
10
11// headerAccodion
12jQuery(function(){
13    jQuery(".accBox span.btn").click(function(){
14        jQuery(this).toggleClass("active").next().slideToggle(800,'easeInOutQuint').toggleClass("active");
15    });
16// 	jQuery(".accBox ul li a").click(function(){
17// 		jQuery(this).parents(".accBox").find("span.btn").toggleClass("active");
18//     });
19	jQuery(".accBox ul li a.close").click(function(){
20		jQuery(this).parents(".accBox").find(".span.btn").toggleClass("active");
21		jQuery(this).parents(".accBox").find(".globalArea").slideToggle(800,'easeInOutQuint').toggleClass("active");
22    });
23	jQuery(".navBox span.open-btn").click(function(){
24		jQuery(this).toggleClass("active").next().slideToggle(600,'easeInOutQuint').toggleClass("active");
25    });
26	
27});
28
29
30// tellink
31jQuery(function(){
32    var ua = navigator.userAgent;
33    if(ua.indexOf('iPhone') < 0 && ua.indexOf('Android') < 0){
34        jQuery('.telhref .delete').each(function(){
35            jQuery(this).unwrap();
36        });
37    }
38});
39
40
41// header AddClass
42jQuery(window).scroll(function(){
43	var windowHeight = jQuery(window). height();
44	if (jQuery(window).scrollTop() > windowHeight) {
45		jQuery('header, main').addClass('scroll');
46	} else {
47		jQuery('header, main').removeClass('scroll');
48	}
49});
50
51
52// current addClass Active
53
54jQuery(document).ready(function() {
55  var activeUrl = location.pathname.split("/")[1];
56    navList = jQuery("header .navBox .globalNavi, footer nav").find("a");
57     
58  navList.each(function(){
59        if( jQuery(this).attr("href").split("/")[1] == activeUrl ) {
60      jQuery(this).addClass("active");
61    };
62  });
63});
64
65// toPageTop
66jQuery(function(){
67	var jQuerybtn = jQuery('.totop');
68	var isHidden = true;
69	
70	jQuerybtn.hide();
71	
72	jQuery(window).scroll(function () {
73		if( jQuery(this).scrollTop() > 300 ) {
74			if( isHidden ) {
75				jQuerybtn.stop(true,true).fadeIn();
76				isHidden = false;
77			}
78		} else {
79			if( !isHidden ) {
80				jQuerybtn.stop(true,true).fadeOut();
81				isHidden = true;
82			}
83		}
84	});
85});
86
87
88
89jQuery(function(){
90   jQuery('a[href^="#"]:not(.not)').click(function() {
91      var speed = 1200;
92      var href = jQuery(this).attr("href");
93      // 「#」のみのリンク(目次の表示/非表示トグル等)には干渉しない
94      if ( href === "#" || href === "" ) return;
95      // 数字始まり・日本語などのidはセレクタとして不正になるため getElementById で解決
96      var el = document.getElementById( decodeURIComponent( href.slice(1) ) );
97      if ( ! el ) return; // 対象が無ければブラウザ標準のジャンプに任せる
98      var target = jQuery( el );
99      var position = target.offset().top - 76;
100      var easing = ( jQuery.easing && jQuery.easing.easeInOutExpo ) ? 'easeInOutExpo' : 'swing';
101
102	  jQuery('body,html').stop().animate({scrollTop:position}, speed, easing);
103      return false;
104   });
105});
106
107

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.