(function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function () { var clientWidth = docEl.clientWidth; var clientHeight = docEl.clientHeight; if (!clientWidth) return; docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'; }; if (!doc.addEventListener) return; win.addEventListener(resizeEvt, recalc, false); recalc(); document.onreadystatechange = () => document.body.addEventListener('touchmove', function (e) { e.preventDefault(); }) win.setDocumentTitle = function (title) { document.title = title; if (/ip(hone|od|ad)/i.test(navigator.userAgent)) { var i = document.createElement('iframe'); // i.src = '/favicon.ico'; i.style.display = 'none'; i.onload = function () { setTimeout(function () { i.remove(); }, 9) } document.body.appendChild(i); } } })(document, window);