PageSourceSearch

http://www.ahu.edu.cn/_upload/tpl/07/cc/1996/template1996/js/rem.js

js ahu.edu.cn collected 2026-10-02 04:44:17 UTC 447 bytes, 18 lines download raw bytes

1// 设计稿宽度
2const designWidth = 1920;
3function setRem() {
4  const html = document.documentElement;
5  const clientWidth = html.clientWidth;
6  if (clientWidth) {
7    html.style.fontSize = (clientWidth / designWidth) * 100 + "px";
8  }
9}
10// 初始化
11setRem();
12// 监听窗口大小变化
13window.addEventListener("resize", setRem);
14window.addEventListener("pageshow", function (e) {
15  if (e.persisted) {
16    setRem();
17  }
18});

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.