1$(function(){ 2 $('.slider').slick({ 3 dots: true, 4 arrows: false, 5 fade: true, 6 pauseOnHover: false, 7 autoplay: true, 8 slidesToShow: 1, 9 slidesToScroll: 1, 10 speed: 2000, 11 centerPadding: 0 12 }); 13 14 //詳細éé 15 $(".more_detail").on('click',function(){ 16 $(this).next().slideDown(); 17 $(this).addClass('open'); 18 }); 19 20 $(".detail .close").on('click',function(){ 21 22 var w = $(window).width(); 23 24 $(this).parent().hide(); 25 $(this).parent().prev().removeClass('open'); 26 if(w < 768 ){ 27 $("html,body").animate({scrollTop:$(this).parent().parent().parent().offset().top - 30}); 28 } else if(w < 1298) { 29 $("html,body").animate({scrollTop:$(this).parent().parent().parent().offset().top - 150}); 30 } else { 31 $("html,body").animate({scrollTop:$(this).parent().parent().parent().offset().top - 100}); 32 } 33 }); 34 35 $(window).on('load resize', function(){ 36 $('.scene_images_more li').matchHeight(); 37 //$('#index_carousel02 li a').matchHeight(); 38 }); 39 40 41}); 42 43window.addEventListener("scroll", function () { 44 // ã¢ãã¡ã¼ã·ã§ã³ãå®è¡ãããã¨ã¬ã¡ã³ããåå¾ 45 const elements = document.getElementsByClassName("image_anime"); 46 var w = $(window).width(); 47 var offsetH = 500; 48 49 // è¤æ°ã®ã¨ã¬ã¡ã³ãã«å¯¾ãã¦ãã¢ãã¡ã¼ã·ã§ã³ãå®è¡ãã 50 Array.prototype.forEach.call(elements, function (element) { 51 if(w < 768 ){ 52 offsetH = -400 53 } else if(w < 1298) { 54 offsetH = 300 55 } 56 57 // ã¦ã£ã³ãã¦ã®ä¸ç«¯ã¨ã¨ã¬ã¡ã³ãã®ä¸ç«¯ã®è·é¢ãåå¾ 58 const elementTop = element.getBoundingClientRect().top + offsetH; 59 const windowHeight = window.innerHeight; 60 61 // ã¢ãã¡ã¼ã·ã§ã³ã®æ¡ä»¶ããã§ã㯠62 if (elementTop - windowHeight <= 0) { 63 // ã¢ãã¡ã¼ã·ã§ã³ãå®è¡ããããã®ã³ã¼ããããã«è¨è¿° 64 element.classList.add("animated"); 65 } 66 }); 67});
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.