1!(function (win, doc) { 2 function setFontSize () { 3 var winWidth = window.innerWidth; 4 var size = (winWidth / 750) * 100; 5 doc.documentElement.style.fontSize = (size < 100 ? size : 100) + 'px'; 6 document.documentElement.setAttribute('screen', winWidth < 767 ? 'mobile' : 'pc') 7 } 8 9 var evt = 'onorientationchange' in win ? 'orientationchange' : 'resize'; 10 11 var timer = null; 12 13 win.addEventListener(evt, function () { 14 clearTimeout(timer); 15 16 timer = setTimeout(setFontSize, 100); 17 }, false); 18 19 win.addEventListener("pageshow", function (e) { 20 if (e.persisted) { 21 clearTimeout(timer); 22 23 timer = setTimeout(setFontSize, 100); 24 } 25 }, false); 26 // åå§å 27 setFontSize(); 28 window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", function () { 29 setFontSize(); 30 31 }, false); 32}(window, document));
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.