PageSourceSearch

https://shcm.gov.cn/elder/js/libs/rem.js

js shcm.gov.cn collected 2026-10-02 16:28:43 UTC 740 bytes, 20 lines download raw bytes

1/* 页面交互效果 */
2
3// 随屏幕大小变化元素比例变化
4(function(doc, win) {
5    var docEl = doc.documentElement,
6        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
7        recalc = function() {
8            var clientWidth = docEl.clientWidth;
9            if (!clientWidth) return;
10            if (clientWidth >= 750) {
11                docEl.style.fontSize = '100px';
12            } else {
13                docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
14            }
15        };
16    recalc();
17    if (!doc.addEventListener) return;
18    win.addEventListener(resizeEvt, recalc, false);
19    doc.addEventListener('DOMContentLoaded', recalc, false);
20})(document, window);

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.