PageSourceSearch

https://sr-ohbanto.jp/wp-content/cache/autoptimize/js/autoptimize_single_70e1a548a4bc32b6e63f4682d8e59458.js

js sr-ohbanto.jp collected 2026-10-08 06:12:10 UTC 6,466 bytes, 12 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){var header=document.querySelector(".header");const gnav_trigger=document.querySelector(".header_nav_btn");gnav_trigger.addEventListener("click",function(){if(this.classList.contains("open")){this.classList.remove("open");header.classList.remove("open");}else{this.classList.add("open");header.classList.add("open");}});window.addEventListener("scroll",function(){var header=document.querySelector(".header");var scrollY=window.scrollY;if(scrollY>0){header.classList.add("is_scrolled");}else{header.classList.remove("is_scrolled");}});let target=document.querySelectorAll(".target");var scroll_animation=function(){for(let i=0;i<target.length;i++){const rect=target[i].getBoundingClientRect().top;const scroll=window.pageYOffset||document.documentElement.scrollTop;const offset=rect+scroll;const windowHeight=window.innerHeight;if(scroll>offset-windowHeight+200){target[i].classList.add("show");}}};window.addEventListener("load",scroll_animation);window.addEventListener("scroll",scroll_animation);if(document.querySelector(".top__column__pickup__list")){const prod__pickup__slider=new Splide(".top__column__pickup__list",{perPage:1,perMove:1,type:"loop",arrows:false,rewind:true,interval:4000,speed:1000,loop:true,pagination:{el:".prod__pickup__slider__pagination",clickable:true,},autoplay:{delay:5000,disableOnInteraction:false,},breakpoints:{480:{perPage:1,},900:{perPage:1,},1440:{perPage:1,},},}).mount();}
2if(document.querySelector(".top__voice__slider__main")){const thumb=".top__voice__img__list";const thumb_options={mediaQuery:"min",perMove:1,arrows:false,pagination:false,isNavigation:true,perPage:1,type:"fade",rewind:true,updateOnMove:true,speed:400,interval:15000,autoplay:{delay:15000,disableOnInteraction:false,},};const thumbSplide=new Splide(thumb,thumb_options);const main=".top__voice__slider__main";const main_options={mediaQuery:"min",type:"fade",pagination:false,rewind:true,speed:400,interval:15000,autoplay:{delay:15000,disableOnInteraction:false,},classes:{arrows:"splide__arrows top__voice__slider__main__arrow__list",arrow:"splide__arrow top__voice__slider__main__arrow__item",prev:"splide__arrow--prev --prev",next:"splide__arrow--next --next",},};const mainSplide=new Splide(main,main_options);mainSplide.sync(thumbSplide);mainSplide.mount();thumbSplide.mount();mainSplide.on("move",function(){const progressBar=document.querySelector(".splide__arrow--prev::before",);progressBar.style.animation="none";setTimeout(()=>{progressBar.style.animation="";},0);});}
3if(document.querySelector(".column__2")){window.addEventListener("scroll",function(){var windowHeight=window.innerHeight;var scrollTop=window.scrollY;var scrollBottom=scrollTop+windowHeight/2;var facilityItems=document.querySelectorAll(".page__content__section");var closestIndex=-1;var minDistance=Number.MAX_SAFE_INTEGER;facilityItems.forEach(function(item,index){var rect=item.getBoundingClientRect();var itemTop=rect.top+scrollTop;var itemBottom=itemTop+rect.height;var itemCenter=(itemTop+itemBottom)/2;var distance=Math.abs(scrollBottom-itemCenter);if(distance<minDistance){minDistance=distance;closestIndex=index;}});var navLinks=document.querySelectorAll(".page__sidebar__item");navLinks.forEach(function(link,index){if(index===closestIndex){link.classList.add("--current");}else{link.classList.remove("--current");}});});}
4if(document.querySelector(".labor-advice__price__item__option__header")){document.querySelectorAll(".labor-advice__price__item__option__header").forEach((header)=>{header.addEventListener("click",function(){const parent=this.closest(".labor-advice__price__item__option");const body=parent.querySelector(".labor-advice__price__item__option__body",);if(parent.classList.contains("--active")){parent.classList.remove("--active");body.style.height=body.scrollHeight+"px";setTimeout(()=>{body.style.height="0px";},10);}else{document.querySelectorAll(".labor-advice__price__item__option.--active").forEach((activeItem)=>{activeItem.classList.remove("--active");const activeBody=activeItem.querySelector(".labor-advice__price__item__option__body",);activeBody.style.height=activeBody.scrollHeight+"px";setTimeout(()=>{activeBody.style.height="0px";},10);});parent.classList.add("--active");body.style.height="auto";let height=body.scrollHeight+"px";body.style.height="0px";setTimeout(()=>{body.style.height=height;},10);}});});}
5if(document.querySelector(".dental-opening-support-fixed-banner")){document.body.classList.add("side-banner-hidden");let lastScrollTop=0;const header=document.querySelector(".header");const pageHeader=document.querySelector(".page__header");const fixedBanner=document.querySelector(".dental-opening-support-fixed-banner",);const sideBanners=document.querySelectorAll(".side-banner__item");window.addEventListener("scroll",function(){const currentScroll=window.pageYOffset;if(window.innerWidth>900){if(pageHeader){const headerBottom=pageHeader.getBoundingClientRect().bottom;if(headerBottom>0){fixedBanner.classList.add("hide");lastScrollTop=currentScroll;return;}}
6fixedBanner.classList.remove("hide");lastScrollTop=currentScroll;return;}
7if(currentScroll>lastScrollTop&&currentScroll>100){header.classList.add("header-hide");fixedBanner.classList.add("hide");document.body.classList.add("side-banner-hidden");
7sideBanners.forEach(function(item){item.classList.remove("show");});}
8else if(currentScroll<lastScrollTop){header.classList.remove("header-hide");fixedBanner.classList.remove("hide");document.body.classList.remove("side-banner-hidden");sideBanners.forEach(function(item){item.classList.add("show");});}
9lastScrollTop=currentScroll;});if(pageHeader){const headerBottom=pageHeader.getBoundingClientRect().bottom;if(headerBottom>0){fixedBanner.classList.add("hide");}}}
10else if(window.innerWidth<=900&&document.querySelector(".side-banner")){let lastScrollTop=0;const header=document.querySelector(".header");const sideBanners=document.querySelectorAll(".side-banner__item");sideBanners.forEach(function(item){item.classList.add("show");});window.addEventListener("scroll",function(){const currentScroll=window.pageYOffset;if(currentScroll>lastScrollTop&&currentScroll>100){header.classList.add("header-hide");sideBanners.forEach(function(item){item.classList.remove("show");});}
11else if(currentScroll<lastScrollTop){header.classList.remove("header-hide");sideBanners.forEach(function(item){item.classList.add("show");});}
12lastScrollTop=currentScroll;});}});

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.