1$(function () { 2 $('.accordion__button').on('click', function () { 3 $(this).toggleClass('active'); 4 $(this).parent().next('.accordion__items').toggleClass('active'); 5 }); 6 $(window).on('load', function () { 7 if ($(window).width() > 768) { 8 $('.accordion__items').addClass('active'); 9 } 10 }); 11}); 12 13$(function () { 14 // ç½®æã®å¯¾è±¡ã¨ããclass屿§ã 15 var $elem = $('.js-image-switch'); 16 // ç½®æã®å¯¾è±¡ã¨ããsrc屿§ã®æ«å°¾ã®æååã 17 var sp = '_sp.'; 18 var pc = '_pc.'; 19 // ç»åãåãæ¿ããã¦ã£ã³ãã¦ãµã¤ãºã 20 var replaceWidth = 768; 21 22 function imageSwitch() { 23 // ã¦ã£ã³ãã¦ãµã¤ãºãåå¾ããã 24 var windowWidth = parseInt(window.innerWidth); 25 26 // ãã¼ã¸å ã«ãããã¹ã¦ã®`.js-image-switch`ã«é©å¿ãããã 27 $elem.each(function () { 28 var $this = $(this); 29 // ã¦ã£ã³ãã¦ãµã¤ãºã768px以ä¸ã§ããã°_spã_pcã«ç½®æããã 30 if (windowWidth >= replaceWidth) { 31 $this.attr('src', $this.attr('src').replace(sp, pc)); 32 33 // ã¦ã£ã³ãã¦ãµã¤ãºã768pxæªæºã§ããã°_pcã_spã«ç½®æããã 34 } else { 35 $this.attr('src', $this.attr('src').replace(pc, sp)); 36 } 37 }); 38 } 39 imageSwitch(); 40}); 41 42$(function () { 43 $('.product__gallery').slick({ 44 slidesToShow: 4, 45 slidesToScroll: 4, 46 infinite: false, 47 arrow: true, 48 49 responsive: [{ 50 51 breakpoint: 768, 52 settings: { 53 slidesToShow: 1, 54 slidesToScroll: 1, 55 rows: 2, 56 slidesPerRow: 2, 57 } 58 }] 59 }); 60});
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.