PageSourceSearch

https://hunan.gov.cn/hnszf/xhtml/js/wap.js

js hunan.gov.cn collected 2026-10-02 02:40:00 UTC 1,910 bytes, 54 lines download raw bytes

1var docEle = document.documentElement, layoutView;
2function setRem() {
3    layoutView = docEle.getBoundingClientRect().width;
4    var desinWidth = 1200;
5    if (layoutView < 768) {
6        var newFontSize = 100 * layoutView / desinWidth;
7        docEle.style.fontSize = newFontSize + 'px';
8    } else {
9        docEle.style.fontSize = '16px';
10    }
11}
12(function () {
13    var meta;
14    var viewportContent = "width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no";
15    meta = document.querySelector("meta[name=viewport]");
16    if (meta) {
17        meta.setAttribute("content", viewportContent);
18    } else {
19        meta = document.createElement("meta");
20        meta.setAttribute("name", "viewport");
21        meta.setAttribute("content", viewportContent);
22        document.querySelector("head").insertBefore(meta, document.querySelector("meta").nextSibling);
23    }
24    setRem();
25})();
26window.addEventListener('resize', function () {
27    setRem();
28});
29//wap端标签页切换不跳转 
30window.addEventListener('load', function () {
31    var tabs_xxgk = document.querySelectorAll('.investigation .tab-head a'); 
32    if (tabs_xxgk.length > 0) { 
33        tabs_xxgk.forEach(function(tab) { 
34            tab.onclick = function(e) { console.log(e)
35                  if (docEle.getBoundingClientRect().width < 768) { 
36                         e.preventDefault(); 
37                  } 
38            } 
39        }); 
40    } 
41});
42//wap端标签页切换不跳转 
43window.addEventListener('load', function () {
44    var tabs_xxgk = document.querySelectorAll('.slideGroup .parHd ul li a'); 
45    if (tabs_xxgk.length > 0) { 
46        tabs_xxgk.forEach(function(tab) { 
47            tab.onclick = function(e) { console.log(e)
48                  if (docEle.getBoundingClientRect().width < 768) { 
49                         e.preventDefault(); 
50                  } 
51            } 
52        }); 
53    } 
54});

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.