1$(function(){ 2 3var $window = $(window), 4 breakPoint = 820, //ãã¬ã¤ã¯ãã¤ã³ãã®è¨å® 5 winW = $window.width(), //ç»é¢ã®æ¨ªå¹ 6 winH = $window.height(), //ç»é¢ã®ç¸¦å¹ 7 // anchorSpeed = 400, //ã¢ã³ã«ã¼ãªã³ã¯ã®ã¹ã ã¼ãºã¹ã¯ãã¼ã«ã®ã¹ãã¼ã 8 resizeTimer = false, 9 menuOpenFlag = false; 10 11/* ãããaboutPCæè¤è£½ 12*********************************************/ 13function duplicateSlidesForPC() { 14 if (winW <= breakPoint) return; // PCã®ã¿ 15 if ($('.home-about-detail__item.is-duplicated').length) return; // äºéè¤è£½é²æ¢ 16 17 // detail 18 var $detailWrapper = $('.home-about-detail .swiper-wrapper'); 19 var $detailSlides = $('.home-about-detail__item.swiper-slide'); 20 21 $detailSlides.each(function() { 22 var $clone = $(this).clone(); 23 $clone.addClass('is-duplicated'); 24 $detailWrapper.append($clone); 25 }); 26 27 // image 28 var $imageWrapper = $('.home-about-image .swiper-wrapper'); 29 var $imageSlides = $('.home-about-image__item.swiper-slide'); 30 31 $imageSlides.each(function() { 32 var $clone = $(this).clone(); 33 $clone.addClass('is-duplicated'); 34 $imageWrapper.append($clone); 35 }); 36} 37 38// ååå®è¡ 39duplicateSlidesForPC(); 40 41/* swiper 42*********************************************/ 43//ãããaboutããã¹ã 44var homeAboutDetailSwiper = new Swiper('.home-about-detail', { 45 // loop: true, 46 freeMode: true, 47 watchSlidesProgress: true, 48 watchSlidesVisibility: true, 49 effect: 'fade', 50 allowTouchMove: false, 51 fadeEffect: { 52 crossFade: true, 53 }, 54}); 55 56//ãããaboutç»å 57var homeAboutImageSwiper = new Swiper('.home-about-image', { 58 loop: true, 59 slidesPerView: 1, 60 spaceBetween: '3.6%', 61 speed: 700, 62 navigation: { 63 nextEl: '.swiper-button-next', 64 prevEl: '.swiper-button-prev', 65 }, 66 thumbs: { 67 swiper: homeAboutDetailSwiper, 68 }, 69 pagination: { //ãããé¨åããµã ãã¤ã«ã«ããè¨è¿° 70 el: '.swiper-pagination', 71 clickable: true, 72 renderBullet: function(index, className) { 73 var src = $('.home-about-image__item').eq(index+1).find('img').attr('src'); 74 var alt = $('.home-about-image__item').eq(index+1).find('img').attr('alt'); 75 return '<div class="home-about-image__thumb__item ' + className + '"><img src="'+src+'" alt="'+alt+'"></div>'; 76 } 77 }, 78 breakpoints: { 79 821: { //821pxä»¥ä¸ 80 slidesPerView: 5.25, 81 } 82 } 83}); 84 85//ãããmustsees 86var homeMustsees = new Swiper('.home-mustsees-slide', { 87 loop: true, 88 navigation: { 89 nextEl: '.home-mustsees-slide-wrap .swiper-button-next', 90 prevEl: '.home-mustsees-slide-wrap .swiper-button-prev', 91 }, 92}); 93 94 95/******************************************** 96 [PC ONLY] 97*********************************************/ 98function pcSizeOnly(){ 99 100 /* HOMEãã¿ã³DOMç§»å 101 *********************************************/ 102 $('.home-links').each(function() { 103 const btn = $(this).find('.home-links__button'); 104 const head = $(this).find('.home-links__head'); 105 btn.appendTo(head); 106 }); 107 108 /* HOME INFORMATION ãã¿ã³DOMç§»å 109 *********************************************/ 110 $('.home-information').each(function() { 111 const btn = $(this).find('.home-information__button-wrap'); 112 const head = $(this).find('.home-information__head'); 113 btn.appendTo(head); 114 }); 115 116 /* Things to do ã¿ã¤ãã«DOMç§»å 117 *********************************************/ 118 $('.home-things-to-do').each(function() { 119 const title = $(this).find('.home-things-to-do__title'); 120 const pcHead = $(this).find('.home-things-to-do__head'); 121 title.prependTo(pcHead); 122 }); 123 124} 125// PCã¡ãã¥ã¼ãµã¤ãºç¨åå² 126// function pcMenuSizeOnly(){ 127 128// } 129 130/******************************************** 131 [SP ONLY] 132*********************************************/ 133function spSizeOnly(){ 134 135 /* HOMEãã¿ã³DOMç§»å 136 *********************************************/ 137 $('.home-links').each(function() { 138 const btn = $(this).find('.home-links__button'); 139 const list = $(this).find('.home-links__list'); 140 btn.insertAfter(list); 141 }); 142 143 /* HOME INFORMATION ãã¿ã³DOMç§»å 144 *********************************************/ 145 $('.home-information').each(function() { 146 const btn = $(this).find('.home-information__button-wrap'); 147 const banners = $(this).find('.home-information__banners');
148 btn.insertAfter(banners); 149 }); 150 151 /* Things to do ã¿ã¤ãã«DOMç§»å 152 *********************************************/ 153 $('.home-things-to-do').each(function() { 154 const title = $(this).find('.home-things-to-do__title'); 155 const spContainer = $(this).find('.home-things-to-do'); 156 title.prependTo(spContainer); 157 }); 158} 159// SPã¡ãã¥ã¼ãµã¤ãºç¨åå² 160// function spMenuSizeOnly(){ 161 162// } 163 164/******************************************** 165 [PC/SPåãæ¿ã] 以ä¸ç·¨éä¸å¯ 166*********************************************/ 167function descriminateBp(){ 168 winW = $window.width(); 169 if(winW <= breakPoint){ 170 spSizeOnly(); 171 }else if(winW > breakPoint){ 172 pcSizeOnly(); 173 } 174 // ãã¬ã¤ã¯ãã¤ã³ããå¢ããå ´å 175 // if(winW <= 1000){ 176 // spMenuSizeOnly(); 177 // }else if(winW > 1000){ 178 // pcMenuSizeOnly(); 179 // } 180} 181descriminateBp(); 182$window.resize(function() { 183 if(winW > $window.width() || winW < $window.width()){ 184 if (resizeTimer !== false) { 185 clearTimeout(resizeTimer); 186 } 187 resizeTimer = setTimeout(descriminateBp, 200); 188 } 189}); 190 191});
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.