1$(function () { 2 browWidth = $(window).width(); 3 browHeight = $(window).height(); 4}); 5 6 7 8$(window).on('load', function () { 9 10 // 11 // main visual slick slider 12 // ------------------------------- 13 14 var topMv = $('.page-toppage #main_visual'); 15 var mvSlider = $('.page-toppage #main_visual .mv_slider'); 16 var slideValue; 17 mvSlider.slick({ 18 autoplay: true, 19 speed: 2000, // ã¹ã©ã¤ãããã§ã¼ãã¢ãã¡ã¼ã·ã§ã³ã®é度2000ããªç§ 20 autoplaySpeed: 4000, // 次ã®ã¹ã©ã¤ãã«è¡ãã¹ãã¼ã 21 dots: true, 22 arrows: false, 23 fade: true, 24 pauseOnFocus: false,//ãã©ã¼ã«ã¹ã§ä¸æåæ¢ 25 pauseOnHover: false,//ãã¦ã¹ããã¼ã§ä¸æåæ¢ 26 pauseOnDotsHover: false//ãããããããã¦ã¹ããã¼ã§ä¸æåæ¢ 27 }).on({ 28 beforeChange: function (event, slick, currentSlide, nextSlide) { 29 // 表示ããã¦ããã¹ã©ã¤ãã«"slide-animation"ã®classãã¤ãã 30 $(".slick-slide", this).eq(nextSlide).addClass("slide-animation"); 31 // ãã¨ã§"slide-animation"ã®classãæ¶ãããã®"remove-animation"classãä»ãã 32 $(".slick-slide", this).eq(currentSlide).addClass("remove-animation"); 33 34 if (slideValue !== $(".slick-slide", this).eq(nextSlide).data('slide-product')) { 35 topMv.find('[data-txt-product],.btn').removeClass('on'); 36 } 37 38 }, afterChange: function (event, slick, currentSlide, nextSlide) { 39 // 表示ãã¦ããªãã¹ã©ã¤ãã¯ã¢ãã¡ã¼ã·ã§ã³ã®classãå¤ã 40 setTimeout(()=> { 41 $(".remove-animation", this).removeClass( 42 "remove-animation slide-animation" 43 ); 44 },1500); 45 46 // ããã¹ãã®è¡¨ç¤ºå¤ãã 47 if (slideValue !== $(".slick-slide", this).eq(currentSlide).data('slide-product')) { 48 slideValue = $(".slick-slide", this).eq(currentSlide).data('slide-product'); 49 $('#main_visual').attr('data-prod-value', slideValue); 50 topMv.find('[data-txt-product*=' + slideValue + '],.btn[data-btn-product*=' + slideValue + ']').addClass('on'); 51 } 52 }, 53 }); 54 55 // slickãæºåå®äºããã夿 56 $('.page-toppage #main_visual').addClass('js-slide_load'); 57 // ããã¹ãé¢ä¿ æåã®å¤ãåå¾ 58 slideValue = $('.page-toppage .slick-slide.slick-current').data('slide-product'); 59 // æåã®ã¢ãã¡ã¼ã·ã§ã³é¢ä¿ 60 $('.page-toppage .mv_slider .slide_img:first-of-type').addClass('slide-animation remove-animation'); 61 // pagenation mv txtã®ä¸ 使 62 var pagenation = $('.page-toppage .js-mv_slide_pagenation'); 63 // pagenation.html($('.slick-dots').html()).find('button').prepend('0'); 64 pagenation.html($('.slick-dots').html()); 65 pagenation.find('button').each(function (i, elem) { 66 $(this).val(i); 67 }); 68 pagenation.find('li').each(function (i, elem) { 69 if (i !== 0) { 70 pagenation.find('li').eq(i).before('<span>/</span>'); 71 } 72 }); 73 74 $(pagenation.find('button')).on('click', function () { 75 mvSlider.slick('slickGoTo', $(this).val(), false); 76 }); 77}); 78 79 80// ------------------------------- 81// scroll 82// ------------------------------- 83$(window).on('scroll', function () { 84 scrTop = $(window).scrollTop(); 85 86 // nav fixed PCã®ã¿ 87 if (scrTop > $('.mv_txt_wrap').offset().top) { 88 $('.sp_device .nav_wrap').addClass('onmv'); 89 } else { 90 $('.sp_device .nav_wrap').removeClass('onmv'); 91 } 92});
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.