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.