1$('body').on('click', '.nav-btn', function () { 2 $("nav").toggleClass("open"); 3 $(".nav-btn").toggleClass("close"); 4 5}); 6 7$(function(){ 8 $('nav a[href^="#"]').click(function(){ 9 let speed = 500; 10 let href= $(this).attr("href"); 11 let target = $(href == "#" || href == "" ? 'html' : href); 12 let position = target.offset().top; 13 $("html, body").animate({scrollTop:position}, speed, "swing"); 14 $("nav").removeClass("open"); 15 $(".nav-btn").removeClass("close"); 16 return false; 17 }); 18}); 19 20 21$('body').on('click', '.slide-list h3', function () { 22 $(this).toggleClass("open"); 23 $(this).next().slideToggle(); 24 25}); 26 27 28const $slider = $('.slider'); 29 30// å·¦å³ã®ééã®2å¨ç®ãããã¤ãå¯¾å¿ 31$slider.on("beforeChange", (event, slick, currentSlide, nextSlide) => { 32 33 $slider.find(".slick-slide").each((index, el) => { 34 const $this = $(el), 35 slickindex = $this.attr("data-slick-index"); 36 if (nextSlide == slick.slideCount - 1 && currentSlide == 0) { 37 // ç¾å¨ã®ã¹ã©ã¤ããæåã®ã¹ã©ã¤ãã§ããããæå¾ã®ã¹ã©ã¤ãã«æ»ãå ´å 38 if (slickindex == "-1") { 39 // æå¾ã®ã¹ã©ã¤ãã«å¯¾ãã¦ã¯ã©ã¹ãä»ä¸ 40 $this.addClass("is-active-next"); 41 } else { 42 // ãã以å¤ã¯åé¤ 43 $this.removeClass("is-active-next"); 44 } 45 } else if (nextSlide == 0) { 46 // 次ã®ã¹ã©ã¤ããæåã®ã¹ã©ã¤ãã®å ´å 47 if (slickindex == slick.slideCount) { 48 // æåã®ã¹ã©ã¤ãã«å¯¾ãã¦ã¯ã©ã¹ãä»ä¸ 49 $this.addClass("is-active-next"); 50 } else { 51 // ãã以å¤ã¯åé¤ 52 $this.removeClass("is-active-next"); 53 } 54 } else { 55 // ãã以å¤ã¯åé¤ 56 $this.removeClass("is-active-next"); 57 } 58 }); 59}); 60 61$slider.on("afterChange", (event, slick, currentSlide, nextSlide) => { 62 $(".slider iframe").hide(); 63 $(".slider iframe").attr("src", ""); 64 65}); 66 67$('body').on('click', '.slick-active', function () { 68 var movieurl = $(this).data('target'); 69 $(this).find("iframe").show(); 70 $(this).find("iframe").attr("src", movieurl); 71 72}); 73// ã¹ã©ã¤ãã¼ 74$slider.slick({ 75 dots: false, 76 infinite: true, 77 slidesToShow: 1, 78 autoplay: false, 79 autoplaySpeed: 5000, 80 centerMode:true, 81 centerPadding:'24%', 82 responsive: [{ 83 breakpoint: 896, //ãã¬ã¤ã¯ãã¤ã³ããæå® 84 settings: { 85 centerPadding:'20%', 86 arrows:true, 87 } 88 }] 89}); 90 91const $slider2 = $('.bnr-area'); 92let lastWidth = window.innerWidth; 93 94function slider2Init() { 95 const slideCount = $slider2.children().length; // ããã¼ææ° 96 97 // 1æä»¥ä¸ãªã常㫠slick ããªã 98 if (slideCount <= 1) { 99 if ($slider2.hasClass('slick-initialized')) { 100 $slider2.slick('unslick'); 101 } 102 return; 103 } 104 105 if (window.matchMedia('(max-width: 895px)').matches) { 106 // 895pxä»¥ä¸ ã㤠2æä»¥ä¸ã®ã¨ãã®ã¿ slick 107 if (!$slider2.hasClass('slick-initialized')) { 108 $slider2.slick({ 109 slidesToShow: 1, 110 centerMode: true, 111 centerPadding: '20%', // è¦åãå¹ 112 arrows: false, 113 autoplay: true, 114 autoplaySpeed: 3000 115 }); 116 } 117 } else { 118 // 896px以ä¸ã¯ slick è§£é¤ 119 if ($slider2.hasClass('slick-initialized')) { 120 $slider2.slick('unslick'); 121 } 122 } 123} 124 125// åæè¡¨ç¤º 126slider2Init(); 127 128// ãªãµã¤ãºæï¼æ¨ªå¹ ãå¤ãã£ãã¨ãã®ã¿ï¼ 129$(window).on('resize', function () { 130 const currentWidth = window.innerWidth; 131 132 if (currentWidth !== lastWidth) { 133 lastWidth = currentWidth; 134 slider2Init(); 135 } 136});
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.