PageSourceSearch

https://yanagidamasahiro.club/contents/1/YM/NEW/js/script_5.js

js yanagidamasahiro.club collected 2026-10-02 18:50:39 UTC 4,687 bytes, 3 lines download raw bytes

1"use strict";$(window).on("load",function(){var e=$(".main-visual__slider");null!==$(e)&&e.addClass("is-show")}),function(){
2/*if(navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/i))return;document.addEventListener("contextmenu",function(e){return e.preventDefault()});*/
3var e=window.innerWidth-document.body.clientWidth,t=document.getElementById("js-buttonHamburger"),n=document.getElementById("header"),i=document.getElementsByTagName("body")[0];t.addEventListener("click",function(){i.classList.contains("is-drawerActive")?n.style["padding-right"]=0:n.style["padding-right"]=e+"px"})}(),$("#js-buttonHamburger").click(function(){$("body").toggleClass("is-drawerActive"),"false"==$(this).attr("aria-expanded")?$(this).attr("aria-expanded",!0):$(this).attr("aria-expanded",!1)}),$(".js-accordion-btn").on("click",function(){var e=$(this).siblings(".js-accordion-content");$(e).slideToggle(),$(this).hasClass("is-open")?$(this).removeClass("is-open"):$(this).addClass("is-open")}),$(function(){var e=$("#modalArea");function t(e){var t,n=document.getElementsByTagName("body")[0],i=window.navigator.userAgent.toLowerCase(),o=-1<i.indexOf("iphone")||-1<i.indexOf("ipad")||-1<i.indexOf("macintosh")&&"ontouchend"in document,s=window.innerWidth-document.body.clientWidth;e?(n.style.paddingRight=s+"px",o?(t=-window.pageYOffset,n.style.position="fixed",n.style.width="100%",n.style.top=t+"px"):n.style.overflow="hidden"):e||(n.style.paddingRight="",o?(t=parseInt(n.style.top.replace(/[^0-9]/g,"")),n.style.position="",n.style.width="",n.style.top="",window.scrollTo(0,t)):n.style.overflow="")}$("#openModal").on("click",function(){e.fadeIn(),t(!0)}),$("#closeModal,#modalBg").on("click",function(){e.fadeOut(function(){t(!1)})})}),function(){var e=document.querySelectorAll(".js-scroll-effect");var t=new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(e.target.classList.add("is-show"),t.unobserve(e.target))})},{root:null,rootMargin:"-20% 0%",threshold:0});e.forEach(function(e){t.observe(e)})}(),$(document).ready(function(i){i('a[href^="#"]').click(function(){var e=i("#header").height(),t=i(this).attr("href"),n=i("#"==t||""==t?"html":t).offset().top-e;return i("html, body").animate({scrollTop:n},800,"swing"),!1});var e=i(".js-fc-link");i(window).on("scroll",function(){i(this).scrollTop()<400?e.removeClass("is-active"):e.addClass("is-active")}),i(function(){var e=!1,t=i("#js-spBgFixed");i(window).on("scroll",function(){30<i(this).scrollTop()&&(e||(e=!0,t.addClass("is-hidden"),t.removeClass("is-show"))),i(this).scrollTop()<30&&e&&(e=!1,t.addClass("is-show"),t.removeClass("is-hidden"))})})}),imagesLoaded(".swiper-bgimg",{background:!0},function(){var e=new Swiper(".js-slider-main",{loop:!0,speed:1e3,parallax:!0,loopAdditionalSlides:6,simulateTouch:!1,allowTouchMove:!1}),t=new Swiper(".js-slider-nav",{loop:!0,loopAdditionalSlides:6,speed:1600,autoplay:{delay:2500,disableOnInteraction:!1},allowTouchMove:!1,breakpoints:{520:{slidesPerView:2},768:{slidesPerView:2,spaceBetween:0},1e4:{slidesPerView:3,spaceBetween:0,centeredSlides:!0}},offsetSlidesBefore:2,touchRatio:.2,slideToClickedSlide:!0,direction:"horizontal",parallax:!0,on:{transitionStart:function(){$(".js-slider-nav .swiper-slide").addClass("is-change")},transitionEnd:function(){$(".js-slider-nav .swiper-slide").removeClass("is-change")}}});null!==document.querySelector(".js-slider-main")&&((e.controller.control=t).controller.control=e)}),function(){function n(){this.el.querySelector(".swiper-counter").innerHTML='<span class="count">'+(this.realIndex+1)+'</span><span class="slash">&#047;</span><span class="total">'+this.el.slidesQuantity+"</span>"}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".js-photo").forEach(function(e){e.slidesQuantity=e.querySelectorAll(".swiper-slide").length;var t=1<e.slidesQuantity;new Swiper(e,{containerModifierClass:t?"is-active swiper-container-":"swiper-container-",speed:800,loop:!0,allowTouchMove:!0,pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets"},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchOverflow:!1,on:{init:n,slideChange:n}})})})}(),document.addEventListener("DOMContentLoaded",function(){for(var s=document.querySelectorAll(".js-tab-trigger"),a=document.querySelectorAll(".js-tab-target"),e=0;e<s.length;e++)s[e].addEventListener("click",function(e){for(var t=e.currentTarget,n=document.getElementById(t.dataset.id),i=0;i<s.length;i++)s[i].classList.remove("is-active");t.classList.add("is-active");for(var o=0;o<a.length;o++)a[o].classList.remove("is-active");null!==n&&n.classList.add("is-active")})});

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.