PageSourceSearch

https://www.leaf-shonandai.com/common/js/viewport.min.js

js leaf-shonandai.com collected 2026-10-06 08:16:45 UTC 1,744 bytes, 1 lines download raw bytes

1"use strict";var windowWidth=window.innerWidth,windowHeight=window.innerHeight,clientWidth=document.documentElement.clientWidth,dom_body=document.body,dom_viewport=document.querySelector('meta[name="viewport"]'),isSP=windowWidth<=750,passiveSupport=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){passiveSupport=!0}}))}catch(t){}var sp2pc=document.createEvent("CustomEvent");sp2pc.initCustomEvent("sp2pc",!0,!0,null);var pc2sp=document.createEvent("CustomEvent");pc2sp.initCustomEvent("pc2sp",!0,!0,null);var scroll=document.createEvent("HTMLEvents");scroll.initEvent("scroll",!0,!0);var resize=document.createEvent("HTMLEvents");function responsive(){windowWidth=window.innerWidth,windowHeight=window.innerHeight,clientWidth=document.documentElement.clientWidth,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(dom_body.style.width="auto",dom_body.style.zoom="",windowWidth<windowHeight?(dom_viewport.setAttribute("content","width=750"),isSP||(isSP=!0,window.dispatchEvent(pc2sp))):(dom_viewport.setAttribute("content","width=1300"),isSP&&(isSP=!1,window.dispatchEvent(sp2pc)))):windowWidth<=750?(dom_viewport.setAttribute("content","width=750"),dom_body.style.width="750px",dom_body.style.zoom=clientWidth/750,isSP||(isSP=!0,window.dispatchEvent(pc2sp))):(dom_viewport.setAttribute("content","width=1300"),dom_body.style.width="auto",dom_body.style.zoom="",isSP&&(isSP=!1,window.dispatchEvent(sp2pc)))}resize.initEvent("resize",!0,!0),responsive();var ticking=!1;window.addEventListener("resize",function(){ticking||(ticking=!0,requestAnimationFrame(function(){window.innerWidth!=windowWidth&&responsive(),ticking=!1}))},!!passiveSupport&&{passive:!0});

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.