PageSourceSearch

https://www.tullys.co.jp/service/js/common.js

js tullys.co.jp collected 2026-10-02 03:03:05 UTC 2,457 bytes, 102 lines download raw bytes

1(function($){
2	
3	/* ----------------------------------------------------------------------------------
4	 Animation
5	---------------------------------------------------------------------------------- */
6
7
8	$(function(){
9
10		var flug = true;
11
12		var scTrig = $('.scTrig');
13
14		var scCue = 'scCue';
15		$(window).on("load scroll", function(){
16		  if(flug){
17		    flug = false;
18		    setTimeout(function(){
19		      scTrig.each(function() {
20				var o = $(this).offset().top;
21				$(window).scrollTop() >o - $(window).height() + 60 && $(this).addClass(scCue)
22			})
23		      flug = true;
24		      return flug;
25		    }, 100);
26		  }
27		});
28	});
29
30	
31	/* ----------------------------------------------------------------------------------
32	 PageScroll
33	---------------------------------------------------------------------------------- */
34	$.fn.pageScroll = function() {
35		const scroller = this;
36	
37		scroller.each(function(){
38			$(this).on('click',function(){
39				const speed = 800;
40				const href= $(this).attr('href');
41				const target = $(href == '#' || href == '' ? 'html' : href);
42				const position = target.offset().top;
43				$('html, body').not(':animated').animate({scrollTop:position}, speed, 'easeInOutCubic');
44				return false;
45			});
46		});
47	
48	
49	}
50	
51	/* ----------------------------------------------------------------------------------
52	 Slick
53	---------------------------------------------------------------------------------- */
54	
55	
56//	$(function(){
57//		
58//		
59//	    function sliderSetting(){
60//			var width = $(window).width();
61//	  
62//			if(width <= 750){
63//				// スマートフォンの場合
64//				$('.spCarousel').not('.slick-initialized').slick({
65//					autoplay: true,
66//					slidesToScroll: 1,
67//					fade: false,
68//					infinite: true,
69//					arrows: false,
70//					dots: false,
71//					centerMode: true,
72//					variableWidth: true,
73//					pauseOnHover: false,
74//					pauseOnFocus: false,
75//					speed: 500,
76//					autoplaySpeed: 4000,
77//				});
78//			} else {
79//				$('.spCarousel.slick-initialized').slick('unslick');
80//	        }
81//	    }
82//	  
83//	    sliderSetting();
84//	  
85//	    $(window).on('load resize',function() {
86//	        sliderSetting();
87//	    });
88//		
89//	});	
90	
91	
92	/* ----------------------------------------------------------------------------------
93	 Cue
94	---------------------------------------------------------------------------------- */
95	
96	$(function() {
97		$('.pSc').pageScroll();
98	});
99	
100	
101
102})(jQuery);

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.