PageSourceSearch

https://corexpand.io/resizeWidth.js

js corexpand.io collected 2026-10-08 11:54:02 UTC 796 bytes, 20 lines download raw bytes

1function updateBaseWidth() {
2    const width = window.innerWidth;
3
4    // 根据视口宽度动态设置基准宽度
5    if (width <= 800) {
6      document.documentElement.style.setProperty('--base-width', 430);
7    } else if (width <= 1024) {
8      document.documentElement.style.setProperty('--base-width', 1024);
9    } else if (width <= 1200) {
10      document.documentElement.style.setProperty('--base-width', 1800);
11    } else if (width <= 1300) {
12      document.documentElement.style.setProperty('--base-width', 1920);
13    } else if (width <= 1500) {
14      document.documentElement.style.setProperty('--base-width', 1920);
15    } else {
16      document.documentElement.style.setProperty('--base-width', 1920);
17    }
18  }
19  updateBaseWidth();
20  window.addEventListener('resize',updateBaseWidth);

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.