1// ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 2$(function(){ 3 $(document).on("click", "a[href*='#']:not(.no_scroll)", function(){ 4 if(!sizeSp){ 5 var headerHeight = 0; // åºå®ãããã®é«ãï¼PCï¼ 6 }else{ 7 var headerHeight = 0; // åºå®ãããã®é«ãï¼SPï¼ 8 } 9 var speed = 500; // ã¹ã¯ãã¼ã«ã®éã 10 var href= $(this).attr("href"); 11 var target = $(href == "#" || href == "" ? 'html' : href); 12 var position = target.offset().top-headerHeight; 13 $("html, body").animate({scrollTop:position}, speed, "swing"); 14 // lazyLoad対ç 15 setTimeout(function(){ 16 var positionBefore = position; 17 position = target.offset().top-headerHeight; 18 var positionGap = Math.abs(positionBefore - position); 19 if(positionGap > 10){ 20 $("html, body").scrollTop(position); 21 } 22 },1000); 23 return false; 24 }); 25}); 26 27//å¥ãã¼ã¸ããã®ã¢ã³ã«ã¼ãªã³ã¯ 28$(window).on('load', function() { 29 if(!sizeSp){ 30 var headerHeight = 0; // åºå®ãããã®é«ãï¼PCï¼ 31 }else{ 32 var headerHeight = 0; // åºå®ãããã®é«ãï¼SPï¼ 33 } 34 var urlHash = location.hash; 35 if(urlHash){ 36 var target = $(urlHash); 37 if(target.length){ 38 var position = target.offset().top-headerHeight; 39 $("html, body").scrollTop(position); 40 // lazyLoad対ç 41 setTimeout(function(){ 42 var positionBefore = position; 43 position = target.offset().top-headerHeight; 44 var positionGap = Math.abs(positionBefore - position); 45 if(positionGap > 10){ 46 $("html, body").scrollTop(position); 47 } 48 },1000); 49 } 50 } 51}); 52 53// ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ããã§ã㯠54var agent = navigator.userAgent; 55 56var spFlag = false; 57if(agent.indexOf("iPhone") > 0){ 58 // iphoneå¦ç 59 spFlag = true; 60}else if(agent.indexOf("Android") > 0){ 61 // androidå¦ç 62 spFlag = true; 63} 64 65//============================================================ 66// ã¬ã¹ãã³ã·ãç¨(ä¸è¦ãªå ´åã¯åé¤) 67//============================================================ 68// ç»é¢ãµã¤ãºåå¾ 69var breakpoint = 767; 70var sizeSp = false; 71if(window.matchMedia('(max-width:'+ breakpoint + 'px)').matches){ 72 sizeSp = true; 73}else{ 74 sizeSp = false; 75} 76 77// LazyLoadç¨ 78$(function(){ 79 $('img[data-src]').not('.swiper-lazy').addClass('lazyload'); 80 window.lazySizesConfig = window.lazySizesConfig || {}; 81 lazySizesConfig.srcAttr = 'data-src'; 82}); 83 84//============================================================ 85// ãµã¤ãæ¯ã«å ±éåä½ãè¨è¿°ããå ´åã¯ããããä¸ã§è¡ãã㨠86//============================================================ 87// ã¦ã£ã³ãã¦ã®ã¹ã¯ãã¼ã«ã®æå¹ï¼ç¡å¹ 88var defaultPosition; 89var windowScrollTop; 90function windowScrollToggle() { 91 var target = $('#container'); 92 if (target.css('position') == 'fixed') { 93 target.css({ 'position': defaultPosition, 'top': '0' }); 94 $('html,body').scrollTop(windowScrollTop); 95 } else { 96 defaultPosition = target.css('position'); 97 windowScrollTop = $(window).scrollTop(); 98 target.css({ 'position': 'fixed', 'top': -windowScrollTop }); 99 } 100} 101 102// ã¹ã©ã¤ãã¼ãåæåï¼å¼æ°minSlidesSpã¯çç¥å¯ï¼ 103function initSlider(elementName, settings, enabledLazy, minSlides, minSlidesSp) { 104 // èªåã§åæåããªããªãã·ã§ã³ã追å 105 settings.init = false; 106 // IEã§object-fitã®ç»åã®å ´åã¯ç»åã®é å»¶èªã¿è¾¼ã¿ãç¡å¹ã«è¨å® 107 var userAgent = window.navigator.userAgent.toLowerCase(); 108 var objectFitClass = 'imgCover2'; 109 if (userAgent.indexOf('msie') != -1 || userAgent.indexOf('trident') != -1) { 110 // IEã®å ´å 111 if ($(elementName + ' .' + objectFitClass).length > 0) { 112 // objext-fitã®å ´å 113 enabledLazy = false; 114 } 115 } 116 // ã¹ã©ã¤ãã¼ã®ç»åã®é å»¶èªã¿è¾¼ã¿ãè¨å® 117 if (enabledLazy) { 118 settings.lazy = { loadPrevNext: true }; 119 $(elementName + ' img[data-src]').addClass('swiper-lazy').removeClass('lazyload'); 120 } 121 // ã¹ã©ã¤ãã¼ã®å¤æ°ãè¨å® 122 var slider = new Swiper(elementName + ' .swiper-container', settings); 123 // ã¹ããã®æå°ã®ã¹ã©ã¤ãææ°ãè¨å® 124 if (minSlidesSp != undefined && sizeSp) { 125 minSlides = minSlidesSp; 126 } 127 // æå°ã®ã¹ã©ã¤ãææ°ããã¹ã©ã¤ãææ°ãå¤ããå¤å® 128 if (getSliderCount(elementName) > minSlides) { 129 // ã¹ã©ã¤ãã¼ãåæå 130 try { slider.init(); } catch (e) { } 131 } else { 132 // ã¹ã©ã¤ãã¼ã®ãã¼ããé表示 133 $(elementName + ' .swiper-button-prev,' + elementName + ' .swiper-button-next,' + elementName + ' .swiper-pagination').css({ 'cssText': 'display: none !important;' }); 134 $(elementName).addClass('disabled'); 135 if (enabledLazy) { 136 $(elementName).find('.swiper-lazy').removeClass('swiper-lazy').addClass('lazyload'); 137 } 138 } 139 return slider; 140} 141 142// ã¹ã©ã¤ãã¼ã®ææ°ãã«ã¦ã³ã 143function getSliderCount(elementName) { 144 return $(elementName + ' .swiper-slide:not(.swiper-slide-duplicate)').length; 145} 146 147// ã«ã¼ãæå®ã®ã¹ã©ã¤ãã¼ã®Lightboxãæ£ããåä½ããããã«ãã 148function setSliderLightbox(elementName) { 149 // æåã®ã¹ã©ã¤ãã®åã»æå¾ã®ã¹ã©ã¤ãã®å¾ã«æ¿å ¥ãããã¯ãã¼ã³ã®Lightboxãåé¤ 150 $(elementName + ' .swiper-slide.swiper-slide-duplicate a').removeAttr('data-lightbox'); 151 $(elementName + ' .swiper-slide.swiper-slide-duplicate a').attr('href', 'javascript:void(0)'); 152 // ã¯ãã¼ã³ã®Lightboxãã¯ãªã㯠153 $(elementName + ' .swiper-slide.swiper-slide-duplicate a').on('click', function () { 154 // ã¯ãã¼ã³ã§ã¯ãªãã¹ã©ã¤ãã®Lightboxãå®è¡ãã 155 var index = $(this).closest('.swiper-slide').attr('data-swiper-slide-index'); 156 $(elementName + ' .swiper-slide:not(.swiper-slide-duplicate):eq(' + index + ') a').trigger('click'); 157 }); 158} 159 160$('#btnNavi a, #spNavi .btnClose02').click(function () { 161 if ($('#header').hasClass('naviOpen')){ 162 $('#header').removeClass('naviOpen'); 163 $('#btnNavi').removeClass('naviOpen'); 164 }else{ 165 $('#header').addClass('naviOpen'); 166 $('#btnNavi').addClass('naviOpen'); 167 } 168 $('#container').toggleClass('naviOpen'); 169 windowScrollToggle(); 170}); 171 172//ã¿ãã¬ããå¤å® 173var ua = navigator.userAgent 174var sp = ua.indexOf('iPhone') > -1 || 175 (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1) 176var isTablet = !sp && ( 177 ua.indexOf('iPad') > -1 || 178 (ua.indexOf('Macintosh') > -1 && 'ontouchend' in document) || 179 ua.indexOf('Android') > -1 180) 181$(function () { 182 if (isTablet) { 183 $('meta[name="viewport"]').attr('content', 'width=1400') 184 } 185}); 186 187// ã¹ã¯ãã¼ã«ã§ç¾ããåçã¨è¨äºã®è¡¨ç¤º 188$(function(){ 189 jsShow(); 190 $(window).scroll(function(e){ 191 jsShow(); 192 }); 193}); 194function jsShow(){ 195 $('.jsHide').each(function (index, el) { 196 var windowTop = $(window).scrollTop(); 197 var windowHeight = $(window).height(); 198 var tabHeight = (parseInt($('body').css('min-width')) / $(window).width()) * windowHeight; 199 var $el = $(el); 200 if (!$el.is('.jsShow')) { 201 var y = $el.offset().top; 202 if (sizeSp) { 203 var oy = windowTop + (windowHeight / 1.25); 204 } else if (isTablet) { 205 var oy = windowTop + (tabHeight / 1.25); 206 } else { 207 var oy = windowTop + (windowHeight / 1.25); 208 } 209 if (y < oy) { 210 $el.addClass('jsShow'); 211 } 212 } 213 }); 214} 215 216$(function () { 217 // animeWrapperããã¹ã¦åå¾ãã 218 const sliderList = document.querySelectorAll(".animeWrapper"); 219 const observer = new IntersectionObserver((entries) => {
220 entries.forEach((entry) => { 221 if (entry.isIntersecting) { 222 entry.target.classList.add("jsShow"); 223 } 224 }); 225 }); 226 // animeWrapperãç£è¦ãã 227 sliderList.forEach((item) => { 228 observer.observe(item); 229 }); 230 231}); 232 233//ãã¹ã¯ãããç¨Webãµã¤ãã表示ï¼iPadï¼å¤å® 234var ua = navigator.userAgent 235var sp = ua.indexOf('iPhone') > -1 || 236 (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1) 237var isDesktopIpad = !sp && (ua.indexOf('Macintosh') > -1 && 'ontouchend' in document); 238$(function () { 239 if (isDesktopIpad) { 240 $('body').addClass('isDesktopIpad'); 241 } 242}); 243 244$(function () { 245 $('#gNavi .item').hover(function () { 246 $(".boxSubList:not(:animated)", $(this)).slideDown(); 247 }, function () { 248 $(".boxSubList", $(this)).slideUp(); 249 }); 250}); 251 252//ãã¹ã¯ãããç¨Webãµã¤ãã表示ï¼iPadï¼å¤å® 253var ua = navigator.userAgent 254var sp = ua.indexOf('iPhone') > -1 || 255 (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1) 256var isDesktopIpad = !sp && (ua.indexOf('Macintosh') > -1 && 'ontouchend' in document); 257$(function () { 258 if (isDesktopIpad) { 259 $('body').addClass('isDesktopIpad'); 260 } 261}); 262 263$(() => { 264 // ä¼å¡å°ç¨ãµã¤ãã®ããã°ã¢ã¦ãããã¿ã³ã¯ãªã㯠265 $(".member-site-logout-button").on("click", function (e) { 266 e.preventDefault(); 267 $(this).siblings("form").submit(); 268 }); 269}); 270 271// 確èªãã¼ã¸ã®éä¿¡ãã¿ã³é£æé²æ¢ 272$(function () { 273 $(".btnSendCo").click(function(){ 274 $(this).addClass("no_tap"); 275 $('.btnSendCoBack').addClass("no_tap"); 276 }); 277}); 278window.onpageshow = function() { 279 $('.btnSendCo').removeClass("no_tap"); 280 $('.btnSendCoBack').removeClass("no_tap"); 281};
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.