if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) { var Request = new Object(); Request = GetRequest(); if (Request.change == "false") { setCookie("change", "false") } else { if (getCookie("change") != "false") { var metas = document.getElementsByTagName("meta"); for (i = 0; i< metas.length; i++) { if (metas[i].getAttribute("name") == "mobile-agent") { var content = metas[i].getAttribute("content"); var url = content.replace(/^format=html5;url=(.+)/, "$1"); location = url } } } } } function GetRequest() { var b = location.search; var a = new Object(); if (b.indexOf("?") != -1) { var d = b.substr(1); strs = d.split("&"); for (var c = 0; c< strs.length; c++) { a[strs[c].split("=")[0]] = unescape(strs[c].split("=")[1]) } } return a } function setCookie(a, b) { document.cookie = a + "=" + escape(b) } function getCookie(b) { var a, c = new RegExp("(^| )" + b + "=([^;]*)(;|$)"); if (a = document.cookie.match(c)) { return unescape(a[2]) } else { return null } };
您好,欢迎来到重庆中国青年旅行社
旅游热线:023-88217323
特价QQ群:812543610