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.