var uAgent = window.navigator.userAgent
  , isIOS = uAgent.match(/iphone/i)
  , isYIXIN = uAgent.match(/yixin/i)
  , is2345 = uAgent.match(/Mb2345/i)
  , ishaosou = uAgent.match(/mso_app/i)
  , isSogou = uAgent.match(/sogoumobilebrowser/gi)
  , isLiebao = uAgent.match(/liebaofast/i)
  , isGnbr = uAgent.match(/GNBR/i)
  , $fixed = document.getElementById("fixed");
function resizeRoot() {
    var e, i = screen.width > 0 && (window.innerWidth >= screen.width || 0 == window.innerWidth) ? screen.width : window.innerWidth, n = screen.height > 0 && (window.innerHeight >= screen.height || 0 == window.innerHeight) ? screen.height : window.innerHeight;
    window.devicePixelRatio && window.devicePixelRatio,
    isIOS && (i = screen.width,
    n = screen.height),
    i > n && (i = n),
    (e = (e = i > 1080 ? 144 : i / 7.5) > 32 ? e : 32) > 100 && (e = 100),
    window.screenWidth_ = i,
    isYIXIN || is2345 || ishaosou || isSogou || isLiebao || isGnbr ? setTimeout(function() {
        i = 0 < screen.width && (window.innerWidth >= screen.width || 0 == window.innerWidth) ? screen.width : window.innerWidth,
        n = 0 < screen.height && (window.innerHeight >= screen.height || 0 == window.innerHeight) ? screen.height : window.innerHeight,
        e = 32 < (e = 1080 < i ? 144 : i / 7.5) ? e : 32,
        document.getElementsByTagName("html")[0].style.fontSize = e + "px",
        $fixed && ($fixed.style.display = "none")
    }, 500) : (document.getElementsByTagName("html")[0].style.fontSize = e + "px",
    $fixed && ($fixed.style.display = "none"))
}

resizeRoot();
window.onresize = function() {
    resizeRoot();
};