1jQuery(function($){ 2 $('.js-tab').click(function(){ 3 $('.js-panel').hide(); 4 $('.jsSlideBtn').hide(); 5 $('.js-active').removeClass('js-active'); 6 $(this).addClass('js-active'); 7 $('.js-show').removeClass('js-show'); 8 // ã¯ãªãã¯ããã¿ãããã¤ã³ããã¯ã¹çªå·ãåå¾ 9 const index = $(this).index()-1; 10 if(index < 0){ 11 $('.js-panel').addClass('js-show').show(); 12 $('.jsSlideBtn').addClass('js-show').show(); 13 }else{ 14 $('.js-panel').eq(index).addClass('js-show').show(); 15 $('.jsSlideBtn').eq(index).addClass('js-show').show(); 16 } 17 // ã¯ãªãã¯ããã¿ãã¨åãã¤ã³ããã¯ã¹çªå·ããã¤ã³ã³ãã³ãã表示 18 19 }); 20 21 $('.slider-for').slick({ 22 slidesToShow: 1, 23 slidesToScroll: 1, 24 arrows: true, 25 variableWidth: false, 26 asNavFor: '.slider-nav', 27 prevArrow:'<div class="slide-arrow prev"><img src="/wp/wp-content/themes/custom/img/common/icon-slidearrow.svg" alt="ç¢å°"></div>', 28 nextArrow:'<div class="slide-arrow next"><img src="/wp/wp-content/themes/custom/img/common/icon-slidearrow.svg" alt="ç¢å°"></div>', 29 }); 30 $('.slider-nav').slick({ 31 slidesToShow: 5, 32 slidesToScroll: 1, 33 asNavFor: '.slider-for', 34 dots: false, 35 centerMode: false, 36 focusOnSelect: true, 37 variableWidth: true, 38 }); 39 40 $('.jsSlideBtn').on('click',function(){ 41 $(this).toggleClass('js-show'); 42 $(this).next('.js-panel').slideToggle(); 43 }); 44 45 // function spMenuChange(replaceWidth = 768) { 46 // // ã¦ã£ã³ãã¦ãµã¤ãºãåå¾ããã 47 // var windowWidth = parseInt(window.innerWidth); 48 // if(windowWidth < replaceWidth){ 49 // $('.js-panel').hide(); 50 // $('.js-tab-group-sphide').hide(); 51 // $('.js-spSlideBtn').show(); 52 // $('.sp-js-show').show(); 53 // $('.js-panel').each(function(){ 54 // $(this).addClass('sp-panel'); 55 // $(this).removeClass('pc-panel'); 56 // }); 57 // }else{ 58 // // $('.js-panel').hide(); 59 // // $('.js-show').show(); 60 // // $('.js-spSlideBtn').hide(); 61 // } 62 // } 63 spMenuChange(); 64});
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.