PageSourceSearch

https://www.ottohub.cn/assets/useWindowWidth-BPOgIc3r.js

js ottohub.cn collected 2026-10-06 13:14:40 UTC 463 bytes, 1 lines download raw bytes

1import{it as e,rt as t}from"./vendor-vue-Bu-KQjoC.js";var n=768,r=1024;function i(){return typeof window>`u`?r:window.innerWidth}var a=e(i()),o=!1;function s(){a.value=window.innerWidth}function c(){o||typeof window>`u`||(o=!0,a.value=window.innerWidth,window.addEventListener(`resize`,s,{passive:!0}))}c();function l(){return c(),{windowWidth:t(a),width:()=>a.value,isDesktop:()=>a.value>=r,isPad:()=>a.value>=n&&a.value<r,isMobile:()=>a.value<n}}export{l as t};

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.