PageSourceSearch

https://www.katolec.com/wordpress/wp-content/themes/katolec/common/js/script.js

js katolec.com collected 2026-09-24 13:02:21 UTC 6,266 bytes, 276 lines download raw bytes

1$(function() {
2	
3	$("li.parent").hover(function(){
4		$(".subMenu",this).slideToggle("fast");
5		return false;
6	});
7	
8
9    $("#menuButton").click(function(){
10	$(this).toggleClass("active"); //メニューボタンの切り替え
11	$("#spDDMenu").slideToggle();
12        return false;
13    });
14    	
15	$('.sub_menu').hide();        
16	    $('.main_menu').click(function(){
17	        $('ul.sub_menu').slideUp();
18	        if($('ul.sub_menu',this).css('display') == 'none'){
19                $('ul.sub_menu',this).slideDown();
20        }
21    });
22    
23    $(".searchBtn").click(function(){
24	    $("#searchStack").slideToggle();
25	    return false;
26	});
27    
28    $(".animsition").animsition({
29	    inClass: 'fade-in',
30	    outClass: 'fade-out',
31	    inDuration: 1500,
32	    outDuration: 800,
33	    linkElement: '.animsition-link',
34	    // e.g. linkElement: 'a:not([target="_blank"]):not([href^=#])'
35	    loading: true,
36	    loadingParentElement: 'body', //animsition wrapper element
37	    loadingClass: 'animsition-loading',
38	    loadingInner: '', // e.g '<img src="loading.svg" />'
39	    timeout: false,
40	    timeoutCountdown: 5000,
41	    onLoadEvent: true,
42	    browser: [ 'animation-duration', '-webkit-animation-duration'],
43	    // "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
44	    // The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
45	    overlay : false,
46	    overlayClass : 'animsition-overlay-slide',
47	    overlayParentElement : 'body',
48	    transition: function(url){ window.location.href = url; }
49	});
50  
51});
52
53$(function(){
54	$(".tabButton .btn").click(function(){
55		$('.panels>article').attr('data-visible','false');
56		$('a.pointCircle').attr('data-visible','false');
57		if(!$(this).hasClass("current")){
58			$("button.current").removeClass("current");
59			$(this).addClass("current");
60			
61			var filt = $(this).data('filter');
62			$('.panels>article.' + filt).attr('data-visible','true');
63			$('a.' + filt).attr('data-visible','true');
64			
65			$('[data-visible="false"]').css('display','none');
66			$('[data-visible="true"]').css('display','block');
67
68		}
69	});	
70});
71
72//$('.covervid-video').coverVid(1920, 1080);
73
74//スクロール値で表示をコントロール
75$(function(){
76	var scrollPosition = 100;
77	var navBottomPosition = 0;
78
79	var navWidth = $( '#deliveryStack' ).width();
80	var navHoverWidth = $( '#deliveryStack_hover' ).width();
81	var flg = false;
82	$('#deliveryStack').css({
83		'position': 'fixed',
84		'bottom': navBottomPosition,
85		'right': '0px'
86	});
87	$('#deliveryStack_hover').css({
88		'position': 'fixed',
89		'bottom': navBottomPosition,
90		'right': -navWidth
91	});
92
93	$(window).scroll(function(){
94		if ($(window).scrollTop() > scrollPosition) {
95			if(flg == false){
96				flg = true;
97				$('#deliveryStack').stop().animate({'right': -navWidth});
98				$('#deliveryStack_hover').stop().animate({'right': '0px'});
99			}
100		} else {
101			if(flg){
102				flg = false;
103				$('#deliveryStack').stop().animate({'right': '0px'});
104				$('#deliveryStack_hover').stop().animate({'right': -navHoverWidth});
105			}
106		}
107	});
108
109	$('#deliveryStack_hover').hover(
110		function (e) {
111		   if(flg){
112			   flg = false;
113			   $('#deliveryStack').stop().animate({'right': '0px'});
114			   $('#deliveryStack_hover').stop().animate({'right': -navHoverWidth})
115		   }
116		}
117   );
118});
119
120$(function(){
121	$('.faq_question').on("click", function(){
122		if( $(this).next().hasClass("faq_off") ){
123			$(this).removeClass("faq_off");
124			$(this).addClass("faq_on");
125			$(this).next().removeClass("faq_off");
126			$(this).next().addClass("faq_on");
127		}else{
128			$(this).removeClass("faq_on");
129			$(this).addClass("faq_off");
130			$(this).next().removeClass("faq_on");
131			$(this).next().addClass("faq_off");
132		}
133	});
134});
135
136
137/*-------------------------------------------------
138			スマホ対策
139-------------------------------------------------*/
140
141
142if(!navigator.userAgent.match(/(iPhone|Android|Mobile)/)){
143	//Parallax
144	$(window).bind('load', function() {
145		parallaxInit();
146	});
147	
148	function parallaxInit() {
149		$('#one-parallax').parallax("30%", 0.1);
150		$('#two-parallax').parallax("30%", 0.1);
151		$('#three-parallax').parallax("30%", 0.1);
152		$('#fourth-parallax').parallax("30%", 0.1);
153	}
154	
155	// Number Counter
156	$(function() {
157		var Core = {
158			initialized : false,
159			initialize : function() {
160				if (this.initialized)
161					return;
162				this.initialized = true;
163				this.build();
164			},
165			build : function() {
166				this.animations();
167			},
168			animations : function() {
169				// Count To
170				$(".number-counters [data-to]").each(function() {
171					var $this = $(this);
172					$this.appear(function() {
173						$this.countTo({});
174					}, {
175						accX : 0,
176						accY : -150
177					});
178				});
179			},
180		};
181		Core.initialize();
182	});
183 
184	$(function(){
185		$('.appear1').appearAnimate({
186			// before style
187			opacity: 0,
188			top: -50,
189			position: 'relative'
190			},{
191			// after style
192			opacity: 1,
193			top: 0
194			}, 500, 'linear'
195		);
196		$('.appear1_1').appearAnimate({
197			// before style
198			opacity: 0,
199			top: -100,
200			position: 'relative'
201			},{
202			// after style
203			opacity: 1,
204			top: 0
205			}, 500, 'linear'
206		);
207		$('.appear1_2').appearAnimate({
208			// before style
209			opacity: 0,
210			top: -100,
211			position: 'relative'
212			},{
213			// after style
214			opacity: 1,
215			top: 0
216			}, 800, 'linear'
217		);
218		$('.appear1_3').appearAnimate({
219			// before style
220			opacity: 0,
221			top: -100,
222			position: 'relative'
223			},{
224			// after style
225			opacity: 1,
226			top: 0
227			}, 1200, 'linear'
228		);
229		
230		$('.appear2').appearAnimate({
231			// before style
232			opacity: 0,
233			left:-150,
234			position: 'relative'
235			},{
236			// after style
237			opacity: 1,
238			left:0
239			}, 800, 'linear'
240		);
241		$('.appear3').appearAnimate({
242			// before style
243			opacity: 0,
244			left:-150,
245			position: 'relative'
246			},{
247			// after style
248			opacity: 1,
249			left:0
250			}, 1200, 'linear'
251		);
252		$('.appear3_1').appearAnimate({
253			// before style
254			opacity: 0,
255			left:-150,
256			position: 'relative'
257			},{
258			// after style
259			opacity: 1,
260			left:0
261			}, 1500, 'linear'
262		);
263			
264		$('.appearend').appearFunction(function() {
265			// before function
266			return 'no function';
267			}, function() {
268			// after function
269			$('body').animate({
270			  scrollTop: 0
271			});
272		});
273	});
274 
275} 
276

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.