PageSourceSearch

http://jnxcb120.com/template/new/js/adaptive.js

js jnxcb120.com collected 2026-10-09 23:37:01 UTC 1,687 bytes, 42 lines download raw bytes

1// !(function(win, doc){�
2//     function setFontSize(){�
3// 		var docEl = doc.documentElement;�
4// 		var winWidth = docEl.clientWidth;�
5//        if(winWidth <= 1000){�
6//             docEl.style.fontSize = (winWidth / 1000) * 100 + 'px' ;�
7//         }else{�
8// 			//docEl.style.fontSize = winWidth * 100 / 640 +"px";�
9//             docEl.style.fontSize = 100 + "px";�
10// 		}�
11//     } �
12//     var evt = 'onorientationchange' in win ? 'orientationchange' : 'resize';    �
13//     var timer = null; �
14//     win.addEventListener(evt, function () {�
15//         clearTimeout(timer); �
16//         timer = setTimeout(setFontSize, 300);�
17//     }, false);    �
18//     win.addEventListener("pageshow", function(e) {�
19//         if (e.persisted){�
20//             clearTimeout(timer); �
21//             timer = setTimeout(setFontSize, 300);�
22//         }�
23//     }, false);�
24//     setFontSize();    �
25// }(window, document));�
26// �
27(function () {            �
28    //windows�
29    var dpr = window.devicePixelRatio;�
30    var meta = document.createElement('meta');�
31    var scale = 1 / dpr;�
32    meta.setAttribute('name', 'viewport');�
33    meta.setAttribute('content', 'width=device-width, user-scalable=no, initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale);�
34    document.getElementsByTagName('head')[0].appendChild(meta);�
35    // 动态设置的缩放大小会影响布局视口的尺寸�
36    function resize() {�
37        var deviceWidth  = document.documentElement.clientWidth;�
38        document.documentElement.style.fontSize = (deviceWidth / 19.2) +'px';�
39    }�
40    resize();�
41    window.onresize = resize;�
42})();�

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.