1$(function () { 2 3 let scroll; 4 let header = $('.l-header'); 5 let hh = header.outerHeight(); 6 function mainAjust() { 7 hh = header.outerHeight(); 8 $('main').css('padding-top', hh); 9 } 10 mainAjust(); 11 $(window).on("orientationchange resize", function () { 12 mainAjust(); 13 }); 14 //ã¹ã¯ãã¼ã« 15 $(window).scroll(function () { 16 scroll = $(this).scrollTop(); 17 if (hh < scroll) { 18 header.removeClass('is-wide'); 19 } 20 if (scroll < hh) { 21 header.addClass('is-wide'); 22 } 23 }) 24 25 26 //ãã¶ã¤ãã¼è©³ç´°ã®ã¹ã©ã¤ãã¼ 27 const designerSwiper = new Swiper('#designer-detail .swiper', { 28 // 以ä¸ã«ãªãã·ã§ã³ãè¨å® 29 loop: true, 30 //ããã²ã¼ã·ã§ã³ãã¿ã³ï¼ç¢å°ï¼è¡¨ç¤ºã®è¨å® 31 navigation: { 32 nextEl: '.swiper-button-next', //ãæ¬¡ã¸ãã¿ã³ãè¦ç´ ã®æå® 33 prevEl: '.swiper-button-prev', //ãåã¸ãã¿ã³ãè¦ç´ ã®æå® 34 }, 35 breakpoints: { 36 767.98: { 37 slidesPerView: 'auto', 38 centeredSlides: true, 39 }, 40 }, 41 }); 42 43 //ä½å詳細ã®ã¹ã©ã¤ãã¼ 44 const detailSwiper = new Swiper('#designer-achievement .swiper', { 45 //ããã²ã¼ã·ã§ã³ãã¿ã³ï¼ç¢å°ï¼è¡¨ç¤ºã®è¨å® 46 navigation: { 47 nextEl: '.swiper-button-next', //ãæ¬¡ã¸ãã¿ã³ãè¦ç´ ã®æå® 48 prevEl: '.swiper-button-prev', //ãåã¸ãã¿ã³ãè¦ç´ ã®æå® 49 }, 50 breakpoints: { 51 767.98: { 52 slidesPerView: 'auto', 53 centeredSlides: true, 54 }, 55 }, 56 }); 57 58 59 //ã®ã£ã©ãªã¼ã®ã¹ã©ã¤ãã¼ 60 const gallerySwiper = new Swiper('#gallery .swiper', { 61 loop: true, 62 pagination: { 63 el: '.swiper-pagination', 64 type: 'fraction', //ãã¼ã¸ãã¼ã·ã§ã³ã®ç¨®é¡ 65 }, 66 //ããã²ã¼ã·ã§ã³ãã¿ã³ï¼ç¢å°ï¼è¡¨ç¤ºã®è¨å® 67 navigation: { 68 nextEl: '.swiper-button-next', //ãæ¬¡ã¸ãã¿ã³ãè¦ç´ ã®æå® 69 prevEl: '.swiper-button-prev', //ãåã¸ãã¿ã³ãè¦ç´ ã®æå® 70 }, 71 breakpoints: { 72 767.98: { 73 slidesPerView: 'auto', 74 centeredSlides: true, 75 }, 76 }, 77 }); 78 79 //ç³ãè¾¼ã¿ãµã³ãã«ã®ã¹ã©ã¤ãã¼ 80 const consultationSwiper = new Swiper("#consultation .example.swiper", { 81 slidesPerView: 'auto', 82 centeredSlides: true, 83 autoHeight: true, 84 //ããã²ã¼ã·ã§ã³ãã¿ã³ï¼ç¢å°ï¼è¡¨ç¤ºã®è¨å® 85 navigation: { 86 nextEl: '.swiper-button-next', //ãæ¬¡ã¸ãã¿ã³ãè¦ç´ ã®æå® 87 prevEl: '.swiper-button-prev', //ãåã¸ãã¿ã³ãè¦ç´ ã®æå® 88 }, 89 }); 90 91 //ãã©ã¤ã¹ã®ã¹ã©ã¤ãã¼ 92 const priceSwiper = new Swiper('#price .swiper', { 93 loop: true, 94 on: { 95 slideChange: (priceSwiper) => { 96 detailShow(); 97 }, 98 }, 99 pagination: { 100 el: '.swiper-pagination', 101 type: 'fraction', //ãã¼ã¸ãã¼ã·ã§ã³ã®ç¨®é¡ 102 }, 103 //ããã²ã¼ã·ã§ã³ãã¿ã³ï¼ç¢å°ï¼è¡¨ç¤ºã®è¨å® 104 navigation: { 105 nextEl: '.swiper-button-next', //ãæ¬¡ã¸ãã¿ã³ãè¦ç´ ã®æå® 106 prevEl: '.swiper-button-prev', //ãåã¸ãã¿ã³ãè¦ç´ ã®æå® 107 }, 108 breakpoints: { 109 767.98: { 110 slidesPerView: 'auto', 111 centeredSlides: true, 112 }, 113 }, 114 }); 115 function detailShow() { 116 $('.swiper-slide').each(function () { 117 $(this).children('.l-swiper-inner').children('.l-create-detail').removeClass('is-detail-show'); 118 }); 119 $('.swiper-pagination').removeClass('is-pagenation-show'); 120 setTimeout(function () { 121 $('.swiper-slide-active .l-create-detail').addClass('is-detail-show'); 122 $('.swiper-pagination').addClass('is-pagenation-show'); 123 }, 100); 124 } 125}); 126//ä½å詳細ã®é ãã¦ããé«ã 127let listMargin; 128let sw; 129let clickCount = 1; 130let openHeight; 131let itemsLength; 132let clickCounter; 133function viewHeight() { 134 if (window.matchMedia('(min-width: 768px)').matches) { 135 //PCã®ã¨ãã¯ãã¼ã¸ã³ã40px 136 listMargin = 40; 137 } else { 138 //ã¹ããã¯ãã¼ã¸ã³ãªã 139 listMargin = 0; 140 } if (!$('#designer-detail .bl-achievement__list').hasClass('is-open')) { 141 //ãµã ãã¤ã«3ã¤åã®ãã¼ã¸ã³å«ãã é«ã 142 sw = ($('#designer-detail .bl-achievement__item').outerHeight() + listMargin) * 3; 143 //éãé«ãã¯3ã¤åã®ãã¼ã¸ã³å«ãã é«ãã¨ãã¿ã³ãã¯ãªãã¯ãããåæ° 144 openHeight = sw * clickCount; 145 $('#designer-detail .bl-achievement__list').css('max-height', openHeight); 146 } 147} 148$(window).on('load', function () { 149 //ãã¼ãæ 150 viewHeight(); 151 //ãµã ãã¤ã«ã®åæ°åå¾ 152 itemsLength = $('.bl-achievement__item').length; 153 //ãµã ãã¤ã«ã9以ä¸ã§ããã°moreãã¿ã³é表示 154 if (itemsLength <= 9) { 155 $('#designer-detail .m-button-more').addClass('is-hide'); 156 } else { 157 //ãµã ãã¤ã«ã3ã¤åã®é«ãã§å²ã£ã¦ä½åã¯ãªãã¯ãããã
158 clickCounter = Math.ceil(itemsLength / 9); 159 } 160}); 161$(window).resize(function () { 162 //ã¦ã£ã³ãã¦ãªãµã¤ãºã®åº¦ã«åè¨ç® 163 viewHeight(); 164}); 165 166$('#designer-detail .m-button-more').on('click', function () { 167 //ãã¿ã³ãã¯ãªãã¯ãããåæ° 168 clickCount++; 169 //ã¯ãªãã¯ãããåã ãmax-heightã夿´ 170 openHeight = sw + openHeight; 171 $('.bl-achievement__list').css('max-height', openHeight); 172 //ã¯ãªãã¯ãä¸éã«æ¥ãããã¿ã³é表示 173 if (clickCounter <= clickCount) { 174 $(this).addClass('is-hide'); 175 } 176}); 177 178 179let close = $('.modal-close'), 180 container = $('#modal01.modal-container'), 181 container2 = $('#modal02.modal-container'); 182 183//éããã¿ã³ãã¯ãªãã¯ãããã¢ã¼ãã«ã表示ãã 184function modalOpen() { 185 container.addClass('is-active'); 186}; 187function modalOpen2() { 188 container2.addClass('is-active'); 189}; 190//éãããã¿ã³ãã¯ãªãã¯ãããã¢ã¼ãã«ãéãã 191function modalClose() { 192 $('.modal-container').removeClass('is-active'); 193} 194//ã¢ã¼ãã«ã®å¤å´ãã¯ãªãã¯ãããã¢ã¼ãã«ãéãã 195$('.modal-bg').on('click', function () { 196 $(this).parent().removeClass('is-active'); 197})
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.