<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">    var path = location.pathname.split('/')
    path = path.pop();
    var ua = navigator.userAgent.toLowerCase();
    var bIsIpad = ua.match(/ipad/i) == "ipad";
    var bIsIphoneOs = ua.match(/iphone/i) == "iphone";
    var bIsAndroid = ua.match(/android/i) == "android";
    var bIsWM = ua.match(/windows mobile/i) == "windows mobile";
    var lsktt = {
        talist: [],
        debug: 0
    };
    lsktt.talist = window.location.href.split("?");
    if (lsktt.talist[1]) {//å³å­˜åœ¨çš„è¯
        if (lsktt.talist[1].indexOf("debug=1") &gt;= 0) {
            lsktt.debug = 1;
        }
    }
    var host_pc = "https://www.zuowen23.com/";
    var host_mobile = "https://m.zuowen23.com/";
    if (lsktt.debug == 0) {//å³ä¸æ˜¯0ï¼Œè¦è·³è½¬
        if (bIsIphoneOs || bIsAndroid || bIsWM) {//æ‰‹æœºç«¯
            if (window.location.href.indexOf(host_mobile) &lt; 0) {
                window.location.href = window.location.href.replace(host_pc, host_mobile)
            }
        } else {//å¦‚æžœåœ¨ç”µè„‘ç«¯
            if (window.location.href.indexOf(host_pc) &lt; 0) {
                window.location.href = window.location.href.replace(host_mobile, host_pc)
            }
        }
    }</pre></body></html>