PageSourceSearch

https://kyoto.travel/wp-content/litespeed/js/209ced98aa23ac3c8ee3440e1b42120e.js?ver=2120e

js kyoto.travel collected 2026-09-24 08:58:02 UTC 2,672 bytes, 12 lines download raw bytes

1document.addEventListener('DOMContentLoaded',function(){const isInChina=cookieConsentSettings.isInChina;document.querySelectorAll('iframe').forEach((iframe)=>{iframe.classList.add('block-on-consent')});const overlay=document.getElementById('cookie-banner');const overlaySp=document.getElementById('cookie-popup');function setCookie(name,value,days){const expires=new Date(Date.now()+days*86400000).toUTCString();document.cookie=`${name}=${value}; expires=${expires}; path=/`}
2function getCookie(name){const value=`; ${document.cookie}`;const parts=value.split(`; ${name}=`);return parts.length===2?parts.pop().split(';').shift():null}
3function hideConsent(){if(overlay)overlay.style.display='none';if(overlaySp)overlaySp.style.display='none'}
4function handleAccept(){setCookie('cookie-consent','accepted',7);hideConsent();loadGTM();unhideIframes()}
5function handleReject(){setCookie('cookie-consent','essential_only',7);hideConsent()}
6const consent=getCookie('cookie-consent');if(!consent){const isMobile=window.matchMedia('(max-width: 1023px)').matches;if(isMobile&&overlaySp){overlaySp.style.display='block';if(overlay)overlay.style.display='none'}else if(overlay){overlay.style.display='block';if(overlaySp)overlaySp.style.display='none'}
7document.querySelectorAll('.accept-all').forEach((btn)=>{btn.onclick=handleAccept});document.querySelectorAll('.reject-all').forEach((btn)=>{btn.onclick=handleReject})}else{hideConsent();if(consent==='accepted'){unhideIframes()}}
8function loadGTM(){gtag('consent','update',{ad_storage:'granted',analytics_storage:'granted',ad_user_data:'denied',ad_personalization:'granted',});window.dataLayer.push({event:'consent_given',})}
9function unhideIframes(){if(isInChina)return;document.querySelectorAll('.block-on-consent').forEach((iframe)=>{iframe.classList.remove('block-on-consent')})}
10function toggleCookieBannerScrollButtons(){const container=document.getElementById('custom-scroll');const scrollUp=document.getElementById('scroll-up-sp');const scrollDown=document.getElementById('scroll-down-sp');if(!container||!scrollUp||!scrollDown)return;const isOverflowing=container.scrollHeight>container.clientHeight;if(isOverflowing){scrollUp.classList.remove('hidden');scrollDown.classList.remove('hidden')}else{scrollUp.classList.add('hidden');scrollDown.classList.add('hidden')}}
11window.addEventListener('resize',toggleCookieBannerScrollButtons);setTimeout(toggleCookieBannerScrollButtons,0)});function scrollContentCb(direction){const scrollContainer=document.getElementById('custom-scroll');const scrollAmount=100;if(scrollContainer){scrollContainer.scrollBy({top:direction==='up'?-scrollAmount:scrollAmount,behavior:'smooth',})}}
12;

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.