HEX
Server: nginx/1.16.1
System: Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 8.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/1.scey.cn/wp-content/themes/Leading/static/js/fontsize.js
;(function (factory) {
    window.msw = typeof window.msw !== "undefined" ? window.msw : {};
    factory(window.msw, window, document);
}(function (msw, win, doc, undefined) {
    var designWidth = 640;
    var rate = 1;
    var docEl = doc.documentElement,
        resizeEvt = 'orientationchange' in win ? 'orientationchange' : 'resize';
    msw.util = typeof msw.util !== "undefined" ? msw.util : {};
    var isPC = msw.util.isPC = function () {
        //
        var system = {
            win: false,
            mac: false,
            xll: false
        };
        //
        var p = navigator.platform;
        system.win = p.indexOf("Win") == 0;
        system.mac = p.indexOf("Mac") == 0;
        system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
        if (system.win || system.mac || system.xll) {
            return true;
        } else {
            return false;
        }
    };
    var initRem = msw.util.initRem = function () {
        var clientWidth = docEl.clientWidth;
        if (!clientWidth) return;
        if (clientWidth > designWidth && isPC()) {
            clientWidth = designWidth;
        }
        rate = clientWidth / designWidth * 100;
        docEl.style.fontSize = rate + 'px';
    };
    var init1px = msw.util.init1px = function () {
        if (isPC()) return;
        if (win.devicePixelRatio && devicePixelRatio > 1) {
            var testEle = doc.createElement('div');
            testEle.style.border = '.5px solid transparent';
            doc.body.appendChild(testEle);
            if (testEle.offsetHeight == 1) {
                doc.querySelector('html').classList.add('hairlines');
            }
            doc.body.removeChild(testEle);
        }
    };
    var init = function () {
        if (!doc.addEventListener) return;
        doc.addEventListener('DOMContentLoaded', function () {
            initRem();
            init1px();
            win.addEventListener(resizeEvt, initRem, false);
        }, false);
        initRem();
        init1px();
    };
    init();
    msw.util.rate = rate;
    msw.util.designWidth = designWidth;
}));