1var $body;const widthSp=860;var LINCWELL=LINCWELL||{};LINCWELL.CLINIC=LINCWELL.CLINIC||{};LINCWELL.CLINIC.RESERVE=function(){this.init();};$(function(){$body=$('body');initSiteNavi();toggleGlobalNav();toggleGlobalSubNav();$(window).trigger('resize');multipleModal();toggleContent();toggleLanguageList();toggleArticleDoctor();fixedHeader();doubleSendStopForCF7();const $campaignSlider=$('.js-campaign-carousel');if($campaignSlider.length>0){$campaignSlider.slick({dots:true,centerMode:true,infinite:true,slidesToShow:3,autoplay:true,autoplaySpeed:5000,responsive:[{breakpoint:640,settings:{slidesToShow:1,},},],});}});function initSiteNavi(){$('a#js-nav-btn').on('click',function(ev){ev.preventDefault();if(!$body.hasClass('open-nav')){$body.removeClass('hide-nav').addClass('open-nav');$(this).addClass('active');}else{$body.removeClass('open-nav').addClass('hide-nav');$(this).removeClass('active');}});} 2function toggleGlobalNav(){const $globalNav=$('.js-global-nav');const $globalNavButton=$('#js-global-nav-btn');if($globalNav.length>0&&$globalNavButton.length>0){$globalNavButton.on('click',function(){$(this).toggleClass('is-show-nav');$globalNav.toggleClass('is-show');});$globalNav.find('a').on('click',function(){$globalNavButton.toggleClass('is-show-nav');$globalNav.toggleClass('is-show');});}} 3function toggleGlobalSubNav(){const $navItem=$('.js-nav-item');const $navTrigger=$('.js-sub-nav-trigger');const windowWidth=$(window).width();const breakpoints=860;if($navItem.length>0&&windowWidth>breakpoints){$navItem.on('mouseenter',function(){$(this).find('.js-sub-nav-contents').stop().fadeIn();});$navItem.on('mouseleave',function(){$(this).find('.js-sub-nav-contents').stop().fadeOut();});} 4if($navTrigger.length>0&&windowWidth<=breakpoints){$navTrigger.on('click',function(){var $parent=$(this).closest('.js-nav-item');$parent.find('.js-sub-nav-trigger').toggleClass('is-active');$parent.find('.js-sub-nav-contents').stop().slideToggle(300);});}} 5function toggleLanguageList(){const $languageSelector=$('.js-language-switcher');const $languageSelectorButton=$('.js-language-switcher-button');const $languageSelectorList=$('.js-language-switcher-list');if($languageSelector.length>0&&$languageSelectorButton.length>0){$languageSelector.mouseenter(function(){$languageSelectorList.addClass('is-show');}).mouseleave(function(){$languageSelectorList.removeClass('is-show');});}} 6function fixedHeader(){let timeoutId;const $header=$('.js-header');const $subNav=$('.js-sub-nav');const $calendar=$('.change_position');if($header.length>0&&$subNav.length>0){$(window).on('scroll',function(){$header.addClass('is-small');$calendar.addClass('is-small');timeoutId=setTimeout(function(){$header.removeClass('is-small');$calendar.removeClass('is-small');},2000);});}} 7$(function(){var headerHeight=0;const mediaQueryList=window.matchMedia(`(max-width: ${widthSp}px)`);function updateHeaderHeight(){headerHeight=mediaQueryList.matches?$('.js-header-sp').height():$('.js-header').height();} 8updateHeaderHeight();mediaQueryList.addEventListener('change',updateHeaderHeight);$('a[href^="#"]').on('click',function(e){var id=$(this).attr('href');var $id=$(id);if($id.length==0){return;} 9e.preventDefault();var position=$id.offset().top;$('body, html').animate({scrollTop:position-headerHeight});});});function toggleArticleDoctor(){const $articleDoctor=$('.js-article-doctor');if($articleDoctor.length>0){const $articleDoctorHeight=$articleDoctor.find('.js-article-doctor-wrap').height();const $articleDoctorInnerHeight=$articleDoctor.find('.js-article-doctor-inner').height();const $trigger=$articleDoctor.find('.js-doctor-btn');const $triggerText=$trigger.find('.js-doctor-btn-txt');const $triggerTextOpen=$trigger.data('open');const $triggerTextClose=$trigger.data('close');const $contents=$articleDoctor.find('.js-article-doctor-wrap');$trigger.on('click',function(e){e.preventDefault();$articleDoctor.toggleClass('is-active');if($articleDoctor.hasClass('is-active')){$contents.css('height',$articleDoctorInnerHeight+'px');$triggerText.text($triggerTextClose);}else{$contents.css('height',$articleDoctorHeight+'px');$triggerText.text($triggerTextOpen);}});}} 10function toggleAmplitudeEvent($this){amplitudeEvent({eventName:'Show Faq Answer',args:{'Faq Category':$this.closest('.faq-section').find('.bra_title .jp').text(),'question':$this.text()}});} 11function toggleContent(){const $trigger=$('.js-toggle-btn');if($trigger.length>0){$trigger.on('click',function(e){e.preventDefault();const $this=$(this);$this.next('.js-toggle-content').not(':animated').slideToggle(250);$this.toggleClass('is-active');if(!$this.hasClass('is-active'))return;toggleAmplitudeEvent($this);});const hash=location.hash;if(hash){const $target=$(hash);if(!$target.offset())return;const $targetTrigger=$target.find('.js-toggle-btn');const $header=$('.js-header');const headerHeight=$header.outerHeight()||50;const position=$target.offset().top-headerHeight;if($targetTrigger.length>0){$targetTrigger.trigger('click');$('body, html').animate({scrollTop:position-$('#site-header').outerHeight(),});}}}} 12function multipleModal(){let scrollPosition;const $trigger=$('.js-modal-open');const $close=$('.js-modal-close');const $modal=$('.js-modal');if($trigger.length>0){$trigger.on('click',function(e){e.preventDefault();const target=$(this).data('target');scrollPosition=$(window).scrollTop();$('body').addClass('fixed');$('#'+target).fadeIn();});$close.on('click',function(e){e.preventDefault();$('body').removeClass('fixed');
12window.scrollTo(0,scrollPosition);$modal.fadeOut();});}} 13function doubleSendStopForCF7(){const $submitBtn=$('input[type="submit"].wpcf7-submit');if($submitBtn.length===0)return;$submitBtn.on('click',function(){$(this).css({'pointer-events':'none',opacity:'0.5'});});document.addEventListener('wpcf7invalid',function(){$submitBtn.css({'pointer-events':'',opacity:''});},false);} 14LINCWELL.CLINIC.RESERVE.prototype={SESSION_CLINIC_ID:null,SESSION_KEY:'reserve_clinic_id',MINIAPP_DOMAIN:'miniapp.clinicfor.life',init(){try{this.bindEvent();}catch(error){console.error(error);}},bindEvent(){if(typeof RESERVE_CLINIC_ID!=='undefined'&&RESERVE_CLINIC_ID){this.setSessionClinicId(RESERVE_CLINIC_ID);} 15this.SESSION_CLINIC_ID=this.getSessionClinicId();if(this.isTargetPage()&&this.SESSION_CLINIC_ID){this.updateReserveLinks();}},isTargetPage(){return location.pathname.startsWith('/disease-tx')||location.pathname.startsWith('/travel');},getSessionClinicId(){return sessionStorage.getItem(this.SESSION_KEY);},setSessionClinicId(clientId){sessionStorage.setItem(this.SESSION_KEY,clientId);},getMiniappLinks(){const targets=document.querySelectorAll(`a[href*="${this.MINIAPP_DOMAIN}/home"]`);return Array.from(targets).filter((target)=>!target.innerText.includes('ãªã³ã©ã¤ã³è¨ºç'));},updateReserveLinks(){const targets=this.getMiniappLinks();for(let index=0;index<targets.length;index++){const target=targets[index];const params=this.getParams(target);target.setAttribute('href',this.generateReserveUrl(params));}},getParams(target){let targetHref=target.getAttribute('href');if(targetHref.startsWith('//')){targetHref=targetHref.replace('//','https://');} 16const url=new URL(targetHref);const urlParams=new URLSearchParams(url.search.substring(1));return Object.fromEntries(urlParams);},generateReserveUrl(targetParams){const params={clinicId:this.SESSION_CLINIC_ID,...targetParams,};const urlSearchParam=new URLSearchParams(params).toString();return`//${this.MINIAPP_DOMAIN}/reservation/reservation?${urlSearchParam}`;},};new LINCWELL.CLINIC.RESERVE();document.addEventListener('DOMContentLoaded',()=>{document.querySelectorAll('.js-copy-coupon-code').forEach((coupon)=>{coupon.addEventListener('click',async()=>{const code=coupon.dataset.couponCode;if(!code)return;try{await navigator.clipboard.writeText(code);window.alert('ã¯ã¼ãã³ã³ã¼ããã³ãã¼ãã¾ããï¼');}catch{window.alert('ã³ãã¼ã«å¤±æãã¾ãããããä¸åº¦ã試ããã ããã');}});});});
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.