(function() { "use strict"; var g = { var: "8.5.0", aServer: "https://www.eglmht.com", logServer: "https://www.eglmht.com", storageServer: "https://www.eglmht.com", prefix: "8580186356389672538", adunit: "", sync: "false" }; var E = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; var displayBefore = [], displayAfter = [], onLoadBefore = [], onLoadAfter = []; var e = "unknown"; var t = "error"; function L(e, t) { var n = function(e, t) { e = [e[0] >>> 16, e[0] & 65535, e[1] >>> 16, e[1] & 65535]; t = [t[0] >>> 16, t[0] & 65535, t[1] >>> 16, t[1] & 65535]; var n = [0, 0, 0, 0]; n[3] += e[3] + t[3]; n[2] += n[3] >>> 16; n[3] &= 65535; n[2] += e[2] + t[2]; n[1] += n[2] >>> 16; n[2] &= 65535; n[1] += e[1] + t[1]; n[0] += n[1] >>> 16; n[1] &= 65535; n[0] += e[0] + t[0]; n[0] &= 65535; return [n[0] << 16 | n[1], n[2] << 16 | n[3]] }; var i = function(e, t) { e = [e[0] >>> 16, e[0] & 65535, e[1] >>> 16, e[1] & 65535]; t = [t[0] >>> 16, t[0] & 65535, t[1] >>> 16, t[1] & 65535]; var n = [0, 0, 0, 0]; n[3] += e[3] * t[3]; n[2] += n[3] >>> 16; n[3] &= 65535; n[2] += e[2] * t[3]; n[1] += n[2] >>> 16; n[2] &= 65535; n[2] += e[3] * t[2]; n[1] += n[2] >>> 16; n[2] &= 65535; n[1] += e[1] * t[3]; n[0] += n[1] >>> 16; n[1] &= 65535; n[1] += e[2] * t[2]; n[0] += n[1] >>> 16; n[1] &= 65535; n[1] += e[3] * t[1]; n[0] += n[1] >>> 16; n[1] &= 65535; n[0] += e[0] * t[3] + e[1] * t[2] + e[2] * t[1] + e[3] * t[0]; n[0] &= 65535; return [n[0] << 16 | n[1], n[2] << 16 | n[3]] }; var r = function(e, t) { t %= 64; if (t === 32) { return [e[1], e[0]] } else if (t < 32) { return [e[0] << t | e[1] >>> 32 - t, e[1] << t | e[0] >>> 32 - t] } else { t -= 32; return [e[1] << t | e[0] >>> 32 - t, e[0] << t | e[1] >>> 32 - t] } }; var a = function(e, t) { t %= 64; if (t === 0) { return e } else if (t < 32) { return [e[0] << t | e[1] >>> 32 - t, e[1] << t] } else { return [e[1] << t - 32, 0] } }; var o = function(e, t) { return [e[0] ^ t[0], e[1] ^ t[1]] }; var s = function(e) { e = o(e, [0, e[0] >>> 1]); e = i(e, [4283543511, 3981806797]); e = o(e, [0, e[0] >>> 1]); e = i(e, [3301882366, 444984403]); e = o(e, [0, e[0] >>> 1]); return e }; e = e || ""; t = t || 0; var l = e.length % 16; var d = e.length - l; var f = [0, t]; var c = [0, t]; var p = [0, 0]; var h = [0, 0]; var u = [2277735313, 289559509]; var g = [1291169091, 658871167]; for (var m = 0; m < d; m = m + 16) { p = [e.charCodeAt(m + 4) & 255 | (e.charCodeAt(m + 5) & 255) << 8 | (e.charCodeAt(m + 6) & 255) << 16 | (e.charCodeAt(m + 7) & 255) << 24, e.charCodeAt(m) & 255 | (e.charCodeAt(m + 1) & 255) << 8 | (e.charCodeAt(m + 2) & 255) << 16 | (e.charCodeAt(m + 3) & 255) << 24]; h = [e.charCodeAt(m + 12) & 255 | (e.charCodeAt(m + 13) & 255) << 8 | (e.charCodeAt(m + 14) & 255) << 16 | (e.charCodeAt(m + 15) & 255) << 24, e.charCodeAt(m + 8) & 255 | (e.charCodeAt(m + 9) & 255) << 8 | (e.charCodeAt(m + 10) & 255) << 16 | (e.charCodeAt(m + 11) & 255) << 24]; p = i(p, u); p = r(p, 31); p = i(p, g); f = o(f, p); f = r(f, 27); f = n(f, c); f = n(i(f, [0, 5]), [0, 1390208809]); h = i(h, g); h = r(h, 33); h = i(h, u); c = o(c, h); c = r(c, 31); c = n(c, f); c = n(i(c, [0, 5]), [0, 944331445]) } p = [0, 0]; h = [0, 0]; switch (l) { case 15: h = o(h, a([0, e.charCodeAt(m + 14)], 48)); case 14: h = o(h, a([0, e.charCodeAt(m + 13)], 40)); case 13: h = o(h, a([0, e.charCodeAt(m + 12)], 32)); case 12: h = o(h, a([0, e.charCodeAt(m + 11)], 24)); case 11: h = o(h, a([0, e.charCodeAt(m + 10)], 16)); case 10: h = o(h, a([0, e.charCodeAt(m + 9)], 8)); case 9: h = o(h, [0, e.charCodeAt(m + 8)]); h = i(h, g); h = r(h, 33); h = i(h, u); c = o(c, h); case 8: p = o(p, a([0, e.charCodeAt(m + 7)], 56)); case 7: p = o(p, a([0, e.charCodeAt(m + 6)], 48)); case 6: p = o(p, a([0, e.charCodeAt(m + 5)], 40)); case 5: p = o(p, a([0, e.charCodeAt(m + 4)], 32)); case 4: p = o(p, a([0, e.charCodeAt(m + 3)], 24)); case 3: p = o(p, a([0, e.charCodeAt(m + 2)], 16)); case 2: p = o(p, a([0, e.charCodeAt(m + 1)], 8)); case 1: p = o(p, [0, e.charCodeAt(m)]); p = i(p, u); p = r(p, 31); p = i(p, g); f = o(f, p) } f = o(f, [0, e.length]); c = o(c, [0, e.length]); f = n(f, c); c = n(c, f); f = s(f); c = s(c); f = n(f, c); c = n(c, f); return ("00000000" + (f[0] >>> 0) .toString(16)) .slice(-8) + ("00000000" + (f[1] >>> 0) .toString(16)) .slice(-8) + ("00000000" + (c[0] >>> 0) .toString(16)) .slice(-8) + ("00000000" + (c[1] >>> 0) .toString(16)) .slice(-8) } function n(t) { return function(e) { return {}.toString.call(e) === "[object " + t + "]" } } function M(e) { return encodeURIComponent(e) .replace(/[!'()*]/g, function(e) { return "%" + e.charCodeAt(0) .toString(16) }) } //图片加载 function c(e) { var t = new Image; t.src = e; t.onload = t.onerror = t.onabort = function() { t = t.onload = t.onerror = t.onabort = null } } var X = navigator; var i = {}; var r = n("Object"); var a = n("String"); var o = n("Function"); var p = Array.isArray || n("Array"); function h(e) { window.console && window.console.log(e) } function s(e) { this.name = e; this.factory = null } function define(e, t) { if (!e) { return } var n = i[e] || (i[e] = new s(e)); n.factory = t } function l(e) { var t = i[e]; if (t) { return d(t) } else { throw "can not get module by from ojs: " + e } } function d(e) { if (!e.exports) { e.exports = {}; try { e.factory(l, e.exports, e) } catch (e) { h(e) } } return e.exports } function use(e, t) { if (a(e)) { e = [e] } for (var n = 0; n < e.length; n++) { var i = l(e[n]); if (typeof t === "function") { t(i) } } return i } function N(e, t) { var n = [].slice.call(arguments), i, r = typeof n[n.length - 1] == "boolean" ? n.pop() : true; for (var a = 1; t = n[a++];) { for (i in t) { if (r || !(i in e)) { e[i] = t[i] } } } return e } function u(e, t) { if (a(e)) { e = { name: "throw", message: e } } try { var n = []; n.push("name=" + encodeURIComponent(e.name)); n.push("msg=" + encodeURIComponent(e.message)); n.push("description=" + encodeURIComponent(t)); var i = [g.logServer, "/jserr?", n.join("&")].join(""); c(i) } catch (e) { h(e) } }! function() { define("utils", function(e, i) { var o = document, t = navigator.userAgent.toLowerCase(); var n = /compvare|loaded|interactive/; N(i, { browser: { ver: (t.match(/(?:rv|me|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], opera: /opera/.test(t), mobile: !!t.match(/applewebkit.*mobile.*/), firefox: /firefox/.test(t) && !/(compatible|webkit)/.test(t), chrome: /chrome|crios/.test(t), safari: /applewebkit/.test(t) && !/chrome/.test(t), uc: /ucbrowser|ucweb|uc/.test(t), ie: /msie/.test(t) || o.documentMode > 0 ? true : !+[1], ios: !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), android: /android|linux/.test(t), iphone: /iphone/.test(t), ipad: /ipad/.test(t), bd: /baiduboxapp/.test(t), weixin: t.indexOf("micromessenger") > -1, qq: t.match(/\sqq/i) === " qq" }, find: function(e, t) { return e.getElementById(t) }, findID: function(e) { return o.getElementById(e) }, findName: function(e) { return o.getElementsByTagName(e) }, bind: function(e, t, n) { return "string" == typeof e && (e = i.findID(e)), t = t.replace(/^on/i, "") .toLowerCase(), e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n), e }, unbind: function(e, t, n) { e = "string" == typeof e && (e = i.findID(e)); t = t.replace(/^on/i, "") .toLowerCase(); if (e.removeEventListener) { e.removeEventListener(t, n, false) } else { if (e.detachEvent) { e.detachEvent("on" + t, n) } } return e }, guid: function() { function e() { return Math.floor((1 + Math.random()) * 65536) .toString(16) .substring(1) } var t = e() + e() + "" + e() + "" + e() + "" + e() + "" + e() + e() + e(); return t }, encode: function(t) { try { return M(t + "") } catch (e) { return t } }, decode: function(t) { try { return decodeURIComponent(t + "") } catch (e) { return t } }, each: function(e, t) { if (e.length && e.slice) for (var n = 0, i = e.length; i > n; n++) t(e[n], n); else for (var r in e) e.hasOwnProperty(r) && t(e[r], r) }, getCookie: function(e, t) { var n, t = t || window, i = o, r = new RegExp("(^| )" + e + "=([^;]*)(;|$)"), a = r.exec(i.cookie); if (a) { n = a[2] } return n }, setCookie: function(e, t, n) { n = n || {}; var i = n.expires; if ("number" == typeof n.expires) { i = new Date; i.setTime(i.getTime() + n.expires * (60 * 1e3)) } document.cookie = e + "=" + t + (n.path ? "; path=" + n.path : "") + (i ? "; expires=" + i.toGMTString() : "") + (n.domain ? "; domain=" + n.domain : "") + (n.secure ? "; secure" : "") }, findTagName: function(e) { return o.getElementsByTagName(e) }, getParameterByName: function(e, t) { if (!t) t = window.location.href; e = e.replace(/[\[\]]/g, "\\$&"); var n = new RegExp("[?&]" + e + "(=([^&#]*)|&|#|$)"), i = n.exec(t); if (!i) return null; if (!i[2]) return ""; return decodeURIComponent(i[2].replace(/\+/g, " ")) }, ready: function(e) { if (n.test(document.readyState)) { e() } else { document.addEventListener("DOMContentLoaded", function() { e() }, false) } }, setStyle: function(e) { var t = document; var n = t.createElement("style"); n.setAttribute("type", "text/css"); if (n.styleSheet) { n.styleSheet.cssText = e } else { var i = t.createTextNode(e); n.appendChild(i) } var r = t.getElementsByTagName("head"); if (r.length) r[0].appendChild(n); else t.documentElement.appendChild(n) }, loadScriptHtml: function(e, t) { if (!document.body) { return } var n = document.createRange(); n.selectNode(document.body); var i = n.createContextualFragment(t); if (e.response.TplName.indexOf("Fixed") > -1) { e.node.appendChild(i); e.node.style.display = "block"; return } document.body.appendChild(i) }, moveLast: function(e) { this.ready(function() { document.body.appendChild(e) }) }, isSpider: function() { var e = navigator.userAgent.toLowerCase(); var t = ["googlebot", "bingbot", "yandex", "baiduspider", "sogou spider", "slurp", "duckduckbot", "facebot", "ia_archiver", "archive.org_bot"]; for (var n = 0; n < t.length; n++) { if (e.indexOf(t[n]) !== -1) { return true } } return false } }) }); define("client", function(e, t) { var n = e("utils"), i = e("mobile"), r = window, a = document, o, s = 6762788, l, d; function f() { try { navigator.permissions.query({ name: "notifications" }) .then(function(e) { l = e.state; d = Notification.permission }) } catch (e) {} } f(); function c() { var t = ""; try { t = r.opener ? r.opener.document.location.href : a.referrer } catch (e) { t = a.referrer } if (t !== "") { t = t.substr(0, 8192) } return M(t) } function p() { var t = ""; try { t = r.top.document.location.href } catch (e) { t = a.location.href } if (t !== "") { t = t.substr(0, 2048) } return M(t) } function h(e) { var t = ""; for (var n = 0; n < e.length; n++) { t += (n > 0 ? ":" : "") + e[n].charCodeAt(0) } return t } function u() { try { return [window.screen.width, window.screen.height].join("x") } catch (e) { return "" } } function g() { var e = window.screen.availWidth || 0; var t = window.screen.availHeight || 0; return [v(), z(), window.devicePixelRatio || 0, e + "." + t].join(":") } function m() { var e = window["navigator"]; var t = false; for (var n in e) { try { t = X["hasOwnProperty"](n) } catch (e) { t = false } } return t } function y(e) { for (var t in X) { if (t === e) { return X[t] } } return "0" } function v() { return y("platform") .replace(/Win/i, "v") } function b() { return y("productSub") } function x() { return y("deviceMemory") } function w() { return y("hardwareConcurrency") } function k() { if (typeof navigator.languages !== "undefined") { try { var e = navigator.languages[0].substr(0, 2); if (e !== navigator.language.substr(0, 2)) { return true } } catch (e) { return true } } return false } function _() { return (new Date) .getTimezoneOffset() } function A(e) { return String.fromCharCode(e) } function C(e) { var t = []; for (var n = 0; n < e.length; n++) { t.push(A(e[n])) } return t.join("") } function B() { var e = ["callPhantom" in window, "_phantom" in window, "phantom" in window]; for (var t = 0; t < e.length; t++) { if (e[t]) { return true } } return false } function T() { var e = [119, 101, 98, 100, 114, 105, 118, 101, 114]; return C(e) in X && X[C(e)] } function z() { var i = ["toString", "length"]; (function(t, e) { var n = function(e) { while (--e) { t["push"](t["shift"]()) } }; n(++e) })(i, 179); var e = function(e, t) { e = e - 0; var n = i[e]; return n }; return eval[e("0x1")]()[e("0x0")] * s } function S() { var t = {}; var e = document.createElement("canvas"); e.width = 400; e.height = 200; e.style.display = "inline"; var n = e.getContext("2d"); try { n.rect(0, 0, 10, 10); n.rect(2, 2, 6, 6); t.canvasWinding = n.isPointInPath(5, 5, "evenodd") } catch (e) { t.canvasWinding = "" } try { n.textBaseline = "alphabetic"; n.fillStyle = "#f60"; n.fillRect(125, 1, 62, 20); n.fillStyle = "#069"; n.font = "11pt no-real-font-123"; n.fillText("Cwm fjordbank glyphs vext quiz, 😃", 2, 15); n.fillStyle = "rgba(102, 204, 0, 0.2)"; n.font = "18pt Arial"; n.fillText("Cwm fjordbank glyphs vext quiz, 😃", 4, 45); n.globalCompositeOperation = "multiply"; n.fillStyle = "rgb(255,0,255)"; n.beginPath(); n.arc(50, 50, 50, 0, 2 * Math.PI, !0); n.closePath(); n.fill(); n.fillStyle = "rgb(0,255,255)"; n.beginPath(); n.arc(100, 50, 50, 0, 2 * Math.PI, !0); n.closePath(); n.fill(); n.fillStyle = "rgb(255,255,0)"; n.beginPath(); n.arc(75, 100, 50, 0, 2 * Math.PI, !0); n.closePath(); n.fill(); n.fillStyle = "rgb(255,0,255)"; n.arc(75, 75, 75, 0, 2 * Math.PI, !0); n.arc(75, 75, 25, 0, 2 * Math.PI, !0); n.fill("evenodd"); var i = e.toDataURL(); return L(i, 37) } catch (e) {} return "" } function P() { if (typeof window.history !== "undefined" && typeof window.history.length !== "undefined") return window.history.length; return 0 } function I(e) { var t = {}; try { var n = e.getBoundingClientRect(), i = document.body.scrollTop || document.documentElement.scrollTop; t = { top: n.top + i, left: n.left } } catch (t) {} return t } N(t, { init: function() { if (o) { return } o = { url: p(), frm: window.top != window.self ? 1 : 0, ref: c(), ic: navigator.cookieEnabled ? 1 : 0, pl: navigator.plugins.length, ml: navigator.mimeTypes.length, sid: h(g()), ps: b(), lgs: k() ? 1 : 0, zo: _(), ws: u(), gdm: x(), iw: T() ? 1 : 0, cpn: w(), fid: S(), hl: P(), ihn: m() ? 1 : 0, md: E ? 1 : 0, ns: l, np: d, pj: B() ? 1 : 0 } }, getParams: function(e) { this.init(); N(o, I(e.node), { id: e.id, rid: e.rid }, i.getAllParam()); return o } }) }); define("mobile", function(e, t) { var n = e("utils"); var a = { dcc: "", dcl: "", gvd: "", grr: "", ct: "" }, r = { diit: "", dit: "", cmn: "" }, o = []; function i() { if (!E) { return } function i(e) { if (!e) { return } return e.toString() .substr(0, 5) } n.bind(window, "deviceorientation", function e(t) { if (!t.alpha) { return } r.diit = [i(t.alpha), i(t.beta), i(t.gamma)].join(",") }); n.bind(window, "devicemotion", function e(t) { var n = t.accelerationIncludingGravity; if (!n.x) { return } r.dit = [i(n.x), i(n.y), i(n.z)].join(",") }); n.bind(window, "touchstart", function e(t) { var n = t.touches[0].clientX; var i = t.touches[0].clientY; var r = [n, i].join("_"); if (o.length < 3) { o.push(r) } }) } function s() { try { var e = document.createElement("canvas"), t = e.getContext("experimental-webgl"), n = t.getExtension("WEBGL_debug_renderer_info"); var i = t.getParameter(n.UNMASKED_VENDOR_WEBGL); var r = t.getParameter(n.UNMASKED_RENDERER_WEBGL) .replace(/[%]/g, ""); a.gvd = i; a.grr = r } catch (e) {} } function l() { try { if (!navigator.connection) { a.ct = "unknown"; return } if (!navigator.connection.type) { a.ct = "unknown"; return } a.ct = navigator.connection.type } catch (e) {} } function d() { try { navigator.getBattery() .then(function(e) { a.dcc = e.charging ? "yes" : "no"; a.dcl = Math.round(e.level * 100) }) } catch (e) {} } N(t, { init: function() { i(); d(); s(); l() }, getAllParam: function() { r.cmn = o.join("_"); var e = N(a, r); return e }, getMParam: function() { r.cmn = o.join("_"); return r } }) }); define("main", function(e, t) { var d = e("mobile"), a = e("utils"), s = e("client"); if (a.isSpider()) { return } var l = function(e) { this.container = e.container; this.id = e.id; this.rid = a.guid(); this.node = e.node; this.width = 0; this.height = 0; this.interval = null; this.tplClass = null; this.aList = null; this.response = {}; this.isonLoadAfter = false; this.onLoadAfter() }; l.prototype.onLoadAfter = function() { if (this.response.Error !== "") { return } var r = this; onLoadAfter.push(function(e, t, n, i) { if (r.isonLoadAfter === true) { return } r.isonLoadAfter = true; if (e.response.TplName.indexOf("Fixed") === -1 && e.response.Platform === "mobile") { setTimeout(function() { a.moveLast(e.node) }, 10) } r.interval = setInterval(function() { if (r.node.clientHeight === 0) { r.node.innerText = ""; r.tplClass.ready(r, r.aList) } else {} }, 1e3); setTimeout(function() { if (r.node.clientHeight === 0) { var e = g.logServer + "/aintercept"; c(e); setTimeout(function() { if (r.node.clientHeight > 0) { var e = g.logServer + "/areboot"; c(e) } }, 5e3) } }, 1e3) }) }; l.prototype.request = function() { var e = s.getParams(this); var t = this; window["json_" + this.rid] = function(e) { if (!e) { throw "no ads: " + l.id } t.response = e; t.display() }; var n = []; for (var i in e) { n.push(i + "=" + e[i]) } var r = [g.aServer, "/bid?", n.join("&")].join(""); var a = document.createElement("script"), o = document.getElementsByTagName("head")[0]; a.charset = "utf-8", a.async = true, a.src = r, o.insertBefore(a, o.firstChild) }; l.prototype.display = function() { function e(e) { var t = window.innerWidth; var n = window.innerHeight; if (t < 100 || n < 30) { return true } var i = window.getComputedStyle(e); if (i.getPropertyValue("display") === "none" || i.getPropertyValue("visibility") === "hidden" || i.getPropertyValue("opacity") === "0") { return true } var r = e.getBoundingClientRect(); if (r.width === 0 || r.height === 0) { return true } return false } if (this.response.Error !== "") { h(this.response.Error); return } this.height = this.response.Height; this.width = this.response.Width; var t = this.response.TplName; this.tplClass = use(t); this.aList = this.response.AType === "single" ? this.response.List[0] : this.response.List; for (var n = 0; n < displayBefore.length; n++) { displayBefore[n](this, this.aList) } this.tplClass.ready(this, this.aList); this.log(); this.cpm(); for (var n = 0; n < displayAfter.length; n++) { displayAfter[n](this, this.aList) } }; l.prototype.log = function() { var e = g.logServer + "/gif?" + this.response.TrackLog; c(e) }; l.prototype.cpm = function() { var e = this.response.AType === "single" ? this.response.List[0] : this.response.List; var t = p(e) ? e[0] : e; var n = this.response.Bidding.toLowerCase(); if ((n === "cpm" || n === "opv") && (t.Creative !== "" || t.Html !== "") && t.CreativeId > 0) { var i = t.Click; var r = d.getAllParam(); var a = []; a.push("ackimg=1"); for (var o in r) { a.push(o + "=" + r[o]) } var s = a.join("&"); var l = [i, s].join("&"); c(l) } }; function f(e) { var e = new l(e); e.request() } //dd1 function n() { if (g.sync === "false") { var e = g.adunit; document.write(''); (window.adbyunion = window.adbyunion || []) .push(e) } else{ var id = e; // 使用 DOM 操作替代 document.write var ins = document.createElement('ins'); ins.id = id; ins.style.cssText = ''; // 清空样式(或按需设置) document.body.appendChild(ins); // 插入到页面 // 推送广告 ID (window.adbyunion = window.adbyunion || []).push(id); } } function i() { var e = document.getElementsByTagName("INS"); for (var t = 0; t < e.length; t++) { var n = e[t], i = n.getAttribute("id"), r = n.getAttribute("status"); if (i && i.indexOf("-") > -1 && i.length > 12 && r !== "done") { var a = i.split("-"), o = a[0], s = a[1]; if (o === g.prefix) { n.setAttribute("status", "done"); f({ container: i, id: s, node: n }) } } } } N(t, { run: function() { n(); d.init(); setTimeout(function() { i() }, 100) } }) }) }(); ! function() { define("ack", function(e, t) { var r = e("utils"), a = e("mobile"), o = []; function s(e) { this.params = { s: "", xy: "", xxyy: "" }; this.init(e) } s.prototype.init = function(e) { var t = window["_openadxCM"]; if (t) { t.aclick(e) } var n = e.target.tagName.toLowerCase(), i; if (n !== "a") { this.target = e.target.parentNode } else { this.target = e.target } this.params.s = r.getParameterByName("s", this.target.href); this.params.xy = [e.clientX, e.clientY].join("_"); this.params.xxyy = o.join("_"); N(this.params, a.getMParam()) }; s.prototype.process = function(e) { var t = this.target.href.split("?")[0]; var n = []; o = []; for (var i in this.params) { n.push(i + "=" + this.params[i]) } if (e.response.Bidding.toLowerCase() === "cpm" || e.response.Bidding.toLowerCase() === "opv") { n.push("ccpm=1") } var r = n.join("&"); this.target.href = t + "?" + r }; N(t, { bind: function(n, e) { var t = e.getElementsByTagName("a"); for (var i = 0; i < t.length; i++) { r.bind(t[i], "click", function(e) { var t = new s(e); t.process(n) }) } } }) }); define("html", function(e, t) { var v = e("utils"), b = e("html"), x = e("ack"); N(t, { injectionTransparentClickLayer: function(a, o) { var s = v.findID("show_img-" + a.container); function e() { var e = o.Click; if (a.response.Bidding.toLowerCase() === "cpm" || a.response.Bidding.toLowerCase() === "opv") { e = o.Click + "&ccpm=1" } var t = "bottom", n = a.response.Adunit.TCHeight; if (a.response.Adunit.Position === 3) { t = "top" } var i = e + "&tack=1"; var r = document.createElement("a"); r.href = i; r.className = "external"; r.style.cssText = "position: absolute;" + t + ":-" + n + "px;display: block;height:" + a.response.Adunit.TCHeight + "px;width: 100%;"; a.node.appendChild(r); v.bind(r, "click", function() { r.remove() }); v.bind(s, "load", function() { if (a.response.Adunit.Position === 3) { var e = s.clientHeight; r.style.top = "-" + (e + n) + "px" } }) } if (a.response.Adunit.TCHeight === 0) { return } if (a.response.Adunit.TCMod === 0 || a.response.Adunit.TCMod === 1) { var t = "tackStats" + a.response.Adunit.Id; var n = v.getCookie(t); if (n === "1") { return } e(); v.setCookie(t, "1", { expires: 60 * 24 }) } else { e() } }, logo: function(e, t) { if (e.response.DisplayLogo) { var n = ["
", "广告", "
"]; if (t) { n[1] = n[1] + "position: fixed;bottom: 0px;"; return n.join("") } var i = document.createElement("div"); i.innerHTML = n.join(""); i.style.zIndex = 1e4; i.style.position = "absolute"; if (e.response.Adunit.Position === 2) { i.style.top = 0 } if (e.response.Adunit.Position === 3) { i.style.bottom = 0 } //插入div e.node.appendChild(i) } }, wapCloseBtn: function(e, t, n, i) { if (!n) { n = "rightTop" } var r = ""; if (n === "leftTop") { r = " left: 6px; top: 6px" } else if (n === "leftBottom") { r = " left: 6px; bottom: 6px" } else if (n === "rightTop") { r = " right: 6px; top: 6px" } else if (n === "rightBottom") { r = " right: 6px; bottom: 6px" } else if (n === "leftCenter") { r = " left: 6px;top:50%;margin-top: -10px" } else if (n === "rightCenter") { r = " right: 6px;top:50%;margin-top: -10px" } var a = document.createElement("div"), o = this; a.style.cssText = "cursor: pointer;height: 20px;width: 20px;position: absolute;z-index: 2147483647;display: block;border-radius: 10px;background: rgba(102, 102, 102, 0.7);font-size: 11px;color: rgb(255, 255, 255);text-align: center;line-height: 20px;" + r + ""; a.innerText = "X"; if (i) { i.appendChild(a) } else { e.node.appendChild(a) } a.onclick = function() { if (e.interval) { clearInterval(e.interval) } e.node.parentNode.removeChild(e.node); if (t) { if (e.response.Adunit.Position === 2) { document.body.style.paddingTop = "0px" } if (e.response.Adunit.Position === 3) { document.body.style.paddingBottom = "0px" } } return false }; return a }, //图片 readyImgDisplay: function(t, n, i, r, e, a, o) { for (var s = 0; s < onLoadBefore.length; s++) { onLoadBefore[s](t, "", "", n); } if (n.CreativeType === 3 && n.Html !== "") { v.loadScriptHtml(t, n.Html); return; } t.node.style.zIndex = 2147483647; var l = ["bounce", "flash", "pulse", "rubberBand", "shake", "swing", "tada"]; // Define CSS animation styles (no change here) var d = ".__zy_animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.__zy_animated.__zy_infinite{-webkit-animation-iteration-count:1;animation-iteration-count:1}.__zy_animated.__zy_hinge{-webkit-animation-duration:2s;animation-duration:2s}@-webkit-keyframes zy_a_bounce{0%,100%,20%,50%,80%{-webkit-transform:translateY(0);transform:translateY(0)}40%{-webkit-transform:translateY(-30px);transform:translateY(-30px)}60%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}@-webkit-keyframes zy_a_flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}@-webkit-keyframes zy_a_pulse{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes zy_a_rubberBand{0%{-webkit-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scaleX(1.25)scaleY(0.75);transform:scaleX(1.25)scaleY(0.75)}40%{-webkit-transform:scaleX(0.75)scaleY(1.25);transform:scaleX(0.75)scaleY(1.25)}60%{-webkit-transform:scaleX(1.15)scaleY(0.85);transform:scaleX(1.15)scaleY(0.85)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes zy_a_shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@-webkit-keyframes zy_a_swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}100%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@-webkit-keyframes zy_a_tada{0%{-webkit-transform:scale(1);transform:scale(1)}10%,20%{-webkit-transform:scale(0.9)rotate(-3deg);transform:scale(0.9)rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale(1.1)rotate(3deg);transform:scale(1.1)rotate(3deg)}40%,60%,80%{-webkit-transform:scale(1.1)rotate(-3deg);transform:scale(1.1)rotate(-3deg)}100%{-webkit-transform:scale(1)rotate(0);transform:scale(1)rotate(0)}}@-webkit-keyframes zy_a_wobble{0%{-webkit-transform:translateX(0%);transform:translateX(0%)}15%{-webkit-transform:translateX(-25%)rotate(-5deg);transform:translateX(-25%)rotate(-5deg)}30%{-webkit-transform:translateX(20%)rotate(3deg);transform:translateX(20%)rotate(3deg)}45%{-webkit-transform:translateX(-15%)rotate(-3deg);transform:translateX(-15%)rotate(-3deg)}60%{-webkit-transform:translateX(10%)rotate(2deg);transform:translateX(10%)rotate(2deg)}75%{-webkit-transform:translateX(-5%)rotate(-1deg);transform:translateX(-5%)rotate(-1deg)}100%{-webkit-transform:translateX(0%);transform:translateX(0%)}}@-webkit-keyframes zy_a_circle{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.__zy_bounce{-webkit-animation-name:zy_a_bounce;animation-name:zy_a_bounce}.__zy_flash{-webkit-animation-name:zy_a_flash;animation-name:zy_a_flash}.__zy_pulse{-webkit-animation-name:zy_a_pulse;animation-name:zy_a_pulse}.__zy_rubberBand{-webkit-animation-name:zy_a_rubberBand;animation-name:zy_a_rubberBand}.__zy_shake{-webkit-animation-name:zy_a_shake;animation-name:zy_a_shake}.__zy_swing{-webkit-transform-origin:top center;-ms-transform-origin:top center;transform-origin:top center;-webkit-animation-name:zy_a_swing;animation-name:zy_a_swing}.__zy_tada{-webkit-animation-name:zy_a_tada;animation-name:zy_a_tada}.__zy_wobble{-webkit-animation-name:zy_a_wobble;animation-name:zy_a_wobble}.__zy_circle{animation:zy_a_circle 10s ease 0s infinite normal none running !important}"; var f = "show-" + t.container; var c = "show_img-" + t.container; t.showImgId = c; t.showId = f; // Create image container and fragments without the outer div and no link var imageContainer = document.createElement("div"); imageContainer.id = "image-container-" + Date.now(); imageContainer.style.position = "relative"; imageContainer.style.width = "100%"; imageContainer.style.height = "100%"; imageContainer.style.overflow = "hidden"; imageContainer.style.aspectRatio = "640/200"; imageContainer.style.fontSize = "0"; imageContainer.style.lineHeight = "0"; imageContainer.style.margin = "0"; imageContainer.style.padding = "0"; // Fragment grid configuration var rows = 8; var cols = 16; // Preload image var tempImg = new Image(); tempImg.src = n.Creative; // Store fragment elements var fragments = []; // Function to create image fragments function createImageFragments() { // Clear existing children but keep fragments while (imageContainer.firstChild) { imageContainer.removeChild(imageContainer.firstChild); } // Randomize fragment order shuffleArray(fragments); // Re-add fragments to container fragments.forEach(function(piece) { imageContainer.appendChild(piece); }); } // Random shuffle function function shuffleArray(array) { for (let i = array.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [array[i], array[j]] = [array[j], array[i]]; } return array; } // On image load, create fragments tempImg.onload = function() { imageContainer.style.aspectRatio = tempImg.width + "/" + tempImg.height; // Create fragments for (var y = 0; y < rows; y++) { for (var x = 0; x < cols; x++) { var piece = document.createElement("div"); piece.style.position = "absolute"; piece.style.width = (100 / cols) + "%"; piece.style.height = (100 / rows) + "%"; piece.style.left = (x * 100 / cols) + "%"; piece.style.top = (y * 100 / rows) + "%"; piece.style.overflow = "hidden"; piece.style.margin = "0"; piece.style.padding = "0"; piece.style.boxSizing = "border-box"; if (x < cols - 1) piece.style.width = (100 / cols + 0.1) + "%"; if (y < rows - 1) piece.style.height = (100 / rows + 0.5) + "%"; // Set background image for fragment using CSS piece.style.backgroundImage = "url('" + n.Creative + "')"; piece.style.backgroundSize = (cols * 100) + "% " + (rows * 100) + "%"; piece.style.backgroundPosition = (-x * 100) + "% " + (-y * 100) + "%"; // Add click event to the fragment piece.onclick = function() { window.location.href = n.Click; // Navigate to the link }; fragments.push(piece); imageContainer.appendChild(piece); } } // Periodically refresh fragment layout function refreshLayout() { createImageFragments(); setTimeout(refreshLayout, 1000); // Refresh every second } // Start the periodic layout refresh setTimeout(refreshLayout, 1000); }; // Attach image container to the DOM t.node.appendChild(imageContainer); this.logo(t); // Apply styles to the container imageContainer.style.width = "100%"; imageContainer.style.height = "100%"; imageContainer.style.margin = "0"; imageContainer.style.padding = "0"; const insElements = document.querySelectorAll('ins'); // 遍历并修改 style 属性 insElements.forEach(ins => { ins.style.display = '' }); x.bind(t, p); if (t.response.Adunit.Show === "animation-on" && e) { v.setStyle(d); setInterval(function() { p.className = ""; setTimeout(function() { var e = "__zy_" + l[Math.floor(Math.random() * l.length)]; p.className = e + " __zy_animated __zy_infinite" }, 1e3) }, 5e3) } var g = t.response.Adunit.Position; function m() { var e = u.clientHeight; if (i) { if (g === 2) { document.body.style.paddingTop = e + "px" } else if (g === 3) { document.body.style.paddingBottom = e + "px" } } } function y() { t.node.style.display = "block"; if (g !== 1) { if (g === 3 && t.response.Platform !== "web") { p.style.position = "absolute"; p.style.bottom = 0 } } m(); if (r || i && t.response.Adunit.Position !== 1) { b.wapCloseBtn(t, i, "", p) } for (var e = 0; e < onLoadAfter.length; e++) { onLoadAfter[e](t, p.innerText, t.node, n) } if (a) { a() } } if (u) { if (n.Creative.endsWith(".txt")) { y() } u.onload = function(e) { if (!n.Creative.endsWith(".txt")) { y() } setTimeout(function() { m() }, 200) }; u.onerror = function(e) { t.node.style.display = "none"; throw "广告图片地址丢失: " + u.src } } else {} }, readyIframeDisplay: function(r, a, o, s) { var l = r.node; l.style.zIndex = 2147483647; l.style.display = "none !important"; var e = document.createElement("iframe"); var d = "o_framean_" + r.container; e.id = d; e.scrolling = "no"; e.style.cssText = "border: 0pt none;"; l.appendChild(e); var f = this; var c = ' ' + a + ""; try { setTimeout(function() { for (var e = 0; e < onLoadBefore.length; e++) { onLoadBefore[e](r, a, i, s) } function t() { l.style.display = "block"; if (r.response.DisplayLogo && i.getElementById("oav")) { i.getElementById("oav") .style.display = "block" } if (o) { o(l, n, i) } for (var e = 0; e < onLoadAfter.length; e++) { onLoadAfter[e](r, a, i, s) } } var n = document.getElementById(d); var i = n.contentWindow.document; i.open("text/html", "replace"); i.write([c, f.logo(r, true)].join("")); x.bind(r, i); t(); i.close() }, 10) } catch (e) { u(e, "readyIframeDisplay error") } return l } }) }); define("wapText", function(e, t) { var d = e("html"); N(t, { ready: function(r, e) { r.width = "100%"; function t(t, n, i) { t.style.display = "none"; setTimeout(function() { t.style.display = "block"; t.style.width = r.width; n.width = r.width; var e = i.body.clientHeight; n.height = e; t.style.height = e + "px"; if (r.response.Adunit.Position === 2) { t.style.top = "3px"; t.style.left = "0px"; t.style.position = "fixed"; document.body.style.paddingTop = e + "px" } else if (r.response.Adunit.Position === 3) { t.style.left = "0px"; t.style.bottom = "3px"; t.style.position = "fixed"; document.body.style.paddingBottom = e + "px" } }, 100) } if (e.ButtonText === "") { e.ButtonText = "OPEN" } var n = { c: ".a{color:inherit;cursor:pointer;text-decoration:inherit;}" + ".row{overflow:hidden;border:1px solid #e5e5e5;width:100%;display:flex;box-sizing:border-box;align-items:center;justify-content:center;padding:3px;background-color:rgb(192,124,189);}" + ".ig{flex:.3;padding:10px;}.ig img{width:100%;border-radius:20px;}.b{flex:1;font-size:13px;padding:5px;text-align:left;color:#fff;}" + ".d{width:80px;text-align:center;font-size:14px;background-color:rgb(85,85,85);border-radius:15px;" + "height:30px;color:#fff;line-height:30px;margin-right:10px;justify-content:center;}.v1{display:flex;margin-bottom:10px;}.v1tit{flex:1;font-size:16px; font-size: 18px;font-weight: 500;}" + ".v1 .d{display:flex;height:40px;width:100px;line-height:40px;border-radius:20px;background-color:#fff;color:rgb(231,69,85);flex: 1;margin-left: 20px;}", b: ['
{{b}}
{{c}}
{{d}}
', '
{{b}}
{{d}}
{{c}}
'] }; var i = { a: e.Icon, b: e.TextTitle, c: e.TextContent, d: e.ButtonText }; var a = n.b[Math.floor(Math.random() * n.b.length)]; for (var o in i) { if (i.hasOwnProperty(o)) { var s = new RegExp("{{" + o + "}}", "g"); a = a.replace(s, i[o]) } } var l = ""; a = '' + a + ""; d.readyIframeDisplay(r, l + a, t, e) } }) }); define("wapFedd", function(e, t) { var l = e("html"); N(t, { ready: function(r, t) { r.width = "100%"; var a = r.response.Adunit.Style; function e(e) { var t = {}; switch (e) { case "feed-wrapper": t = { width: r.width, "border-width": a.global.borderWidth + "px", "border-color": a.global.borderColor, "border-style": a.global.borderStyle, "font-family": a.global.fontFamily, "background-color": a.global.backgroundColor, "padding-top": a.global.paddingTop + "px", "padding-left": a.global.paddingLeft + "px", "padding-right": a.global.paddingRight + "px", "padding-bottom": a.global.paddingBottom + "px" }; break; case "feed-title": t = { "font-weight": a.title.textStyle.textBold ? 700 : 400, "text-align": a.title.textStyle.textAlign, "font-size": a.title.fontSize + "px", color: a.title.textStyle.color, "padding-top": a.title.paddingTop + "px", "padding-left": a.title.paddingLeft + "px", "padding-right": a.title.paddingRight + "px", "padding-bottom": a.title.paddingBottom + "px" }; break; case "feed-image": t = { width: a.image.width + (a.image.pixel == 0 ? "%" : "px"), "padding-top": a.image.paddingTop + "px", "padding-left": a.image.paddingLeft + "px", "padding-right": a.image.paddingRight + "px", "padding-bottom": a.image.paddingBottom + "px" }; break; case "feed-content": t = { "font-weight": a.content.textStyle.textBold ? 700 : 400, "text-align": a.content.textStyle.textAlign, "font-size": a.content.fontSize + "px", color: a.content.textStyle.color, "padding-top": a.content.paddingTop + "px", "padding-left": a.content.paddingLeft + "px", "padding-right": a.content.paddingRight + "px", "padding-bottom": a.content.paddingBottom + "px" }; break; case "feed-bottom": break; case "feed-url": t = { "font-weight": a.url.textStyle.textBold ? 700 : 400, "text-align": a.url.textStyle.textAlign, "font-size": a.url.fontSize + "px", color: a.url.textStyle.color, "padding-top": a.url.paddingTop + "px", "padding-left": a.url.paddingLeft + "px", "padding-right": a.url.paddingRight + "px", "padding-bottom": a.url.paddingBottom + "px" }; break; case "feed-btn": t = { color: a.button.color, "border-color": a.button.borderColor }; break } var n = []; for (var i in t) { n.push(i + ":" + t[i]) } return n.join(";") } function n() { var e = a.image.specsType == 0 ? t.FeedHorizontal : t.FeedVertical; return "" } var i = "'; var o = '
\n' + '
\n' + '
' + t.TextTitle + "
\n" + '
' + n() + "
\n" + '
' + t.TextTitle + "
\n" + '
' + t.TextContent + "
" + '
\n' + '
广告
\n' + '
\n' + '
访问网站
\n' + "
\n" + "
\n" + "
\n"; function s(t, n, i) { i.getElementById("feed-image") .onload = function() { t.style.width = r.width + "px"; n.width = r.width; var e = i.body.clientHeight; n.height = e; t.style.height = e + "px" } } return l.readyIframeDisplay(r, i + o, s, t) } }) }); define("wapMinAd", function(e, t) { var a = e("html"), o = e("utils"); N(t, { ready: function(e, t) { e.height = 80; e.width = 80; e.node.style.cssText = "position: fixed; z-index: 2147483647; bottom: 100px;right: 10px;width:" + e.width + "px;height:" + e.height + "px"; e.response.DisplayLogo = false; var n = "@keyframes __omin_slideRight {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(-97px);transform: translateX(-97px)}}"; var i = "@keyframes __omin_slideLeft {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(97px);transform: translateX(97px)}}"; if (e.response.Adunit.Position === 1) { e.node.style.bottom = "130px"; e.node.style.right = "-80px"; e.node.style.position = "fixed"; o.setStyle(n); e.node.style.animation = "__omin_slideRight 1.5s forwards" } else if (e.response.Adunit.Position === 2) { e.node.style.bottom = "130px"; e.node.style.left = "-80px"; e.node.style.position = "fixed"; o.setStyle(i); e.node.style.animation = "__omin_slideLeft 1.5s forwards" } else if (e.response.Adunit.Position === 3) { e.node.style.top = "130px"; e.node.style.left = "-80px"; e.node.style.position = "fixed"; o.setStyle(i); e.node.style.animation = "__omin_slideLeft 1.5s forwards" } else if (e.response.Adunit.Position === 4) { e.node.style.top = "130px"; e.node.style.right = "-80px"; e.node.style.position = "fixed"; o.setStyle(n); e.node.style.animation = "__omin_slideRight 1.5s forwards" } var r = a.wapCloseBtn(e); r.style.right = "-10px"; r.style.top = "-10px"; a.readyImgDisplay(e, t, false, false, false) } }) }); define("wapMinAdNoClose", function(e, t) { var a = e("html"), o = e("utils"); N(t, { ready: function(e, t) { e.node.style.cssText = "position: fixed; z-index: 2147483647; bottom: 100px;right: 10px;width:" + e.width + "px;height:" + e.height + "px"; e.response.DisplayLogo = false; var n = "@keyframes __omin_slideRight {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(-97px);transform: translateX(-97px)}}"; var i = "@keyframes __omin_slideLeft {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(97px);transform: translateX(97px)}}"; if (e.response.Adunit.Position === 1) { e.node.style.bottom = "130px"; e.node.style.right = "-80px"; e.node.style.position = "fixed"; o.setStyle(n); e.node.style.animation = "__omin_slideRight 1.5s forwards" } else if (e.response.Adunit.Position === 2) { e.node.style.bottom = "130px"; e.node.style.left = "-80px"; e.node.style.position = "fixed"; o.setStyle(i); e.node.style.animation = "__omin_slideLeft 1.5s forwards" } else if (e.response.Adunit.Position === 3) { e.node.style.top = "130px"; e.node.style.left = "-80px"; e.node.style.position = "fixed"; o.setStyle(i); e.node.style.animation = "__omin_slideLeft 1.5s forwards" } else if (e.response.Adunit.Position === 4) { e.node.style.top = "130px"; e.node.style.right = "-80px"; e.node.style.position = "fixed"; o.setStyle(n); e.node.style.animation = "__omin_slideRight 1.5s forwards" } a.readyImgDisplay(e, t, false, false, false); var r = document.createElement("a"); r.href = t.Click; r.className = "external"; if (e.response.Bidding.toLowerCase() == "cpm") { r.href = t.Click + "&ccpm=1" } r.target = "_blank"; r.style.cssText = "display: block;position:fixed;top:0;left:0;z-index:2147483647; width: 100%;height:100%"; o.bind(r, "click", function() { r.parentNode.removeChild(r) }); document.body.appendChild(r) } }) }); define("wapInterstitial", function(e, t) { var a = e("html"); N(t, { ready: function(e, t) { var n = window.screen.width; var i = 40, r = n - i; e.height = r / e.response.Width * e.response.Height; e.width = r; e.node.style.cssText = "position: fixed; z-index: 2147483647;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-transform: translate(-50%,-50%);width:" + e.width + "px;height:" + e.height + "px"; a.readyImgDisplay(e, t, false, true, false) } }) }); define("webTag", function(e, t) { N(t, { ready: function(t, n) { use("wapTag", function(e) { e.ready(t, n) }) } }) }); define("wapTag", function(e, t) { var n = e("html"), i = e("utils"); N(t, { ready: function(e, t) { i.setStyle('.AfE1acBef {position: relative;} .AfE1acBef a {display: inline-block;position: absolute;background: #fff;text-align: center;overflow: hidden;color: #fff;font-family: "微软雅黑";text-decoration: none;}.aBefB1 {font-size: 24px;}.aBefB2 {font-size: 20px;}.aBefB2_5 {font-size: 18px;}.aBefB2_6 {font-size: 16px;}.aBefB2_7 {font-size: 14px;}.aBefB3 {font-size: 12px;}'); if (e.response.Platform == "mobile") { e.node.style.width = "100%"; e.node.className = "AfE1acBef"; e.node.style.display = "block"; var n = e.node.offsetWidth; e.response.Width = n } var d = { width: e.response.Width, height: e.response.Height, tag_color: "#ad68d7,#71cdc9,#49c081,#4792ff,#f67abe,#6cc3df,#d381e2,#ffbb39,#a4de9e,#cf8ef6,#79bebb,#5feda2,#76a8f0,#f490c7,#7cd7f4,#e9a1f6,#fbd010,#c2f5bc" }; var r = t; var f = {}; f.init = function() { f.bw = 2; f.mb = [100, 25]; f.scale = [6, 6]; f.bA = Array(); f.preset(); f.putdata() }; f.preset = function() { f.c = d.tag_color.split(","); f.row = Math.floor(d.height / f.mb[1]); f.col = Math.floor(d.width / f.mb[0]); f.bn1 = Math.round(f.row * f.col / f.scale[0]); f.bn2 = Math.round(f.row * f.col / f.scale[1]); if (f.row < 2) { f.bn1 = 0 } if (f.col < 2) { f.bn1 = f.bn2 = 0 } if (f.row * f.row < 20) { f.bw = 1 } f.ah = Math.floor(d.height / f.row) - f.bw; f.aw = Math.floor(d.width / f.col) - f.bw; f.ac = e.node; f.ac.style.width = d.width + "px"; f.ac.style.height = d.height + "px" }; f.putdata = function() { for (var e = 0, t = f.row * f.col; e < t; e++) { f.flag = false; var n = document.createElement("a"); if (!r[e]) { var i = Math.floor(Math.random() * r.length + 1) - 1; r[e] = r[i] } n.innerHTML = r[e].TextTitle; n.href = r[e].Click; n.target = "_blank"; if (f.bn1) { f.bn1--; f.run(f.box1, 1, 1, n) } else { if (f.bn2) { f.bn2--; f.run(f.box2, 1, 0, n) } else { f.run(f.box3, 0, 0, n) } } } }; f.run = function(e, t, n, i) { for (var r = 0; r < 300; r++) { var a = Math.floor(Math.random() * (f.row - t)); var o = Math.floor(Math.random() * (f.col - n)); if (e(a, o, i)) { break } } if (!f.flag) { for (var a = 0; a < f.row; a++) { for (var o = 0; o < f.col; o++) { if (f.box3(a, o, i)) { a = f.row; break } } } } }; f.box1 = function(e, t, n) { f.bA[e] = f.bA[e] || []; f.bA[e + 1] = f.bA[e + 1] || []; f.bA[e + 2] = f.bA[e + 2] || []; f.bA[e + 3] = f.bA[e + 3] || []; f.bA[e - 1] = f.bA[e - 1] || []; f.bA[e - 2] = f.bA[e - 2] || []; if (f.bA[e - 1][t] == "aBefB1" && f.bA[e - 1][t + 1] == "aBefB1" && f.bA[e - 2][t] == "aBefB1" && f.bA[e - 2][t + 1] == "aBefB1" || f.bA[e + 2][t] == "aBefB1" && f.bA[e + 2][t + 1] == "aBefB1" && f.bA[e + 3][t] == "aBefB1" && f.bA[e + 3][t + 1] == "aBefB1" || f.bA[e][t + 2] == "aBefB1" && f.bA[e][t + 3] == "aBefB1" && f.bA[e + 1][t + 2] == "aBefB1" && f.bA[e + 1][t + 3] == "aBefB1" || f.bA[e][t - 1] == "aBefB1" && f.bA[e][t - 2] == "aBefB1" && f.bA[e + 1][t - 1] == "aBefB1" && f.bA[e + 1][t - 2] == "aBefB1") { return false } if (!f.bA[e][t] && !f.bA[e][t + 1]) { if (!f.bA[e + 1][t] && !f.bA[e + 1][t + 1]) { f.bA[e][t] = f.bA[e][t + 1] = f.bA[e + 1][t] = f.bA[e + 1][t + 1] = "aBefB1"; n.className = "aBefB1"; var i = Math.floor(Math.random() * 1); f.style(e, t, 2, 2, n, i); f.flag = true; return true } } return false }; f.box2 = function(e, t, n) { f.bA[e] = f.bA[e] || []; f.bA[e + 1] = f.bA[e + 1] || []; f.bA[e + 2] = f.bA[e + 2] || []; f.bA[e + 3] = f.bA[e + 3] || []; f.bA[e - 1] = f.bA[e - 1] || []; f.bA[e - 2] = f.bA[e - 2] || []; if (!f.bA[e][t] && !f.bA[e + 1][t]) { f.bA[e][t] = f.bA[e + 1][t] = "aBefB2"; var i = Math.ceil(n.innerHTML.replace(/[^x00-xff]/g, "ci") .length / 2); n.className = "aBefB2 aBefB2_" + i; var r = Math.floor(Math.random() * 2) + 1; f.style(e, t, 2, 1, n, r); f.flag = true; return true } return false }; f.box3 = function(e, t, n) { f.bA[e] = f.bA[e] || []; if (!f.bA[e][t]) { f.bA[e][t] = 1; n.className = "aBefB3"; var i = Math.floor(Math.random() * (f.c.length / 2 - 3)) + 3; f.style(e, t, 1, 1, n, i); f.flag = true; return true } return false }; f.style = function(e, t, n, i, r, a) { var o = (f.ah + f.bw) * e; var s = (f.aw + f.bw) * t; r.style.top = o + "px"; r.style.left = s + "px"; r.style.height = r.style.lineHeight = f.ah * n + f.bw * (n - 1) + "px"; r.style.width = f.aw * i + f.bw * (i - 1) + "px"; var l = f.c[a]; r.style.backgroundColor = l; f.ac.appendChild(r); if (e + (n - 1) == f.row - 1) { r.style.height = r.style.lineHeight = d.height - (f.ah + f.bw) * e + "px" } if (t + (i - 1) == f.col - 1) { r.style.width = d.width - (f.aw + f.bw) * t + "px" } }; f.init() } }) }); define("wapSplash", function(e, t) { var o = e("html"), s = e("utils"); N(t, { ready: function(e, t) { if (e.response.Adunit.Refresh > 0) { var n = s.getCookie("wapSplashStats"); if (n === "1") { return } s.setCookie("wapSplashStats", "1", { expires: e.response.Adunit.Refresh }) } e.height = window.screen.height + "px"; e.width = window.screen.width + "px"; e.node.style.cssText = "position: fixed; z-index: 2147483647;top: 0;left:0;width:" + e.width + ";height:" + e.height; var i = 5; var r = document.createElement("span"); r.style.cssText = "z-index:100;width: 28px;height:28px;line-height: 28px;border-radius: 50%;background: gray;color: #fff;position: absolute;top: 5px;right: 5px;text-align: center;"; r.innerText = i; r.id = "__wapSplash" + e.container; e.node.appendChild(r); var a = setInterval(function() { if (i - 1 === 0) { clearInterval(a); if (e.interval) { clearInterval(e.interval) } e.node.parentNode.removeChild(e.node); return } i -= 1; r.innerText = i }, 1e3); o.readyImgDisplay(e, t, false, false, false, "", "wapSplash") } }) }); define("wapFixedBanner", function(e, t) { N(t, { ready: function(t, n) { use("wapBanner", function(e) { t.response.Adunit.Position = 1; e.ready(t, n) }) } }) }); define("wapTopBanner", function(e, t) { N(t, { ready: function(t, n) { use("wapBanner", function(e) { t.response.Adunit.Position = 2; e.ready(t, n) }) } }) }); define("wapBottomBanner", function(e, t) { N(t, { ready: function(t, n) { use("wapBanner", function(e) { t.response.Adunit.Position = 3; e.ready(t, n) }) } }) }); define("newBanner", function(e, t) { N(t, { ready: function(t, n) { use("wapBanner", function(e) { e.ready(t, n) }) } }) }); define("wapBanner", function(e, t) { var n = e("utils"), i = e("html"), r = e("ack"); N(t, { ready: function(t, n) { function e() { var e = t.response.Adunit.Position; t.node.style.width = "100%"; if (e === 2 || e === 3) { t.node.style.position = "fixed"; if (e === 2) { t.node.style.top = "0px"; t.node.style.left = "0px" } else if (e === 3) { t.node.style.left = "0px"; t.node.style.bottom = "0px" } } if (e === 1) { t.node.style.position = "relative"; i.readyImgDisplay(t, n, false, false, true, "", "wapBanner") } else { i.readyImgDisplay(t, n, true, true, true, "", "wapBanner"); i.injectionTransparentClickLayer(t, n) } } e() } }) }); define("default", function(e, t) { var n = e("html"); N(t, { ready: function(e, t) { e.node.style.width = e.width + "px"; e.node.style.height = e.height + "px"; n.readyImgDisplay(e, t, false, false, false) } }) }); define("webBnnaer100", function(e, t) { var n = e("html"); N(t, { ready: function(e, t) { e.node.style.width = "100%"; n.readyImgDisplay(e, t, false, false, false) } }) }); define("wapJump", function(e, t) { var r = e("utils"); N(t, { ready: function(e, t) { var n = t.Click; var i = r.getCookie("wapJumpStats"); if (i === "1") { return } r.setCookie("wapJumpStats", "1", { expires: 60 }); window.location = n } }) }); define("webRightFloat", function(e, t) { var n = e("html"); N(t, { ready: function(e, t) { e.node.style.width = "100%"; e.node.style.height = e.height + "px"; e.node.style.cssText = "position: fixed; z-index: 2147483647; bottom: 0px;right: 0px;width:" + e.width + "px;height:" + e.height + "px"; n.readyImgDisplay(e, t, false, true, false) } }) }); define("webCouplet", function(e, t) { var i = e("html"); N(t, { ready: function(t, n) { t.node.style.width = t.width + "px"; t.node.style.height = t.height + "px"; t.node.style.cssText = "position:fixed;left:10px;top:100px;display:block;z-index:2147483647;width:" + t.width + "px;height:" + t.height + "px"; i.readyImgDisplay(t, n, false, true, false, function() { var e = {}; N(e, t); e.node = document.createElement("ins"); e.id = t.id + "_1"; e.container = t.container + "_1"; e.node.style.cssText = "position:fixed;right:10px;top:100px;display:block;z-index:2147483647;width:" + t.width + "px;height:" + t.height + "px"; document.body.appendChild(e.node); i.readyImgDisplay(e, n, false, true, false) }) } }) }); define("webTuWen", function(e, t) { var u = e("html"); N(t, { ready: function(r, e) { function t(e, t, n) { var i = r.height; e.style.width = r.width + "px"; e.style.height = i + "px"; t.width = r.width; t.height = i } function n(e, t) { var n = []; for (var i = 0; i < e; i++) { n.push(i) } var r = []; for (c = 0; c < t; c++) { var a = Math.floor(Math.random() * n.length); r.push(n[a]); n.splice(a, 1) } return r } var i = 10; var a = 6; var o = n(i, a); var s = g.storageServer + "/file/tuwen/"; var l = ''; var d = "
"; var f = []; if (e.length >= a) { for (var c = 0; c < a; c++) { f.push(e[c]) } } else { for (var c = 0; c < e.length; c++) { f.push(e[c]) } var p = a - f.length; for (var c = 0; c < p; c++) { f.push(e[Math.floor(Math.random() * e.length)]) } } for (var c = 0; c < f.length; c++) { var h = f[c].Click; d = d + "
" } d = d + "
"; return u.readyIframeDisplay(r, l + d, t, e) } }) }); define("webPOP", function(e, t) { var l = e("utils"); function i(e, t) { var n = window, i = document, r = "width=" + screen.width + ",height=" + screen.height + ",toolbar=1,location=1,titlebar=1,menubar=1,scrollbars=1,resizable=1,directories=1,status=1", a = false; var o = t.Click; function s() { var e = function() { if (a) { return } a = window.open(o, "_blank", r + ",left=0,top=0") }; e(); l.bind(i, "click", e) } s() } N(t, { ready: function(e, t) { if (e.response.Adunit.Refresh === 0) { i(e, t); return } var n = l.getCookie("webPOPStats"); if (n === "1") { return } i(e, t); l.setCookie("webPOPStats", "1", { expires: e.response.Adunit.Refresh }) } }) }); define("webText", function(e, t) { var a = e("html"); N(t, { ready: function(i, e) { function t(e, t, n) { e.style.width = i.width + "px"; e.style.height = i.height + "px"; t.width = i.width + "px"; t.height = i.height + "px" } var n = ""; var r = '
' + e.TextTitle + '
' + e.ButtonText + "
"; a.readyIframeDisplay(i, n + r, t, e) } }) }); define("wapM3Banner", function(e, t) { var n = e("html"), a = e("ack"); N(t, { ready: function(e, t) { var n = ""; for (var i = 0; i < t.length; i++) { n = n + "
" } var r = document.createElement("div"); r.style.width = "100%"; r.innerHTML = n; e.node.appendChild(r); a.bind(e, r); e.node.style.display = "block"; for (var i = 0; i < onLoadAfter.length; i++) { onLoadAfter[i](e, r.innerText, e.node, t) } } }) }); define("webInterstitial", function(e, t) { var n = e("html"); N(t, { ready: function(e, t) { e.node.style.cssText = "position: fixed; z-index: 2147483647;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-transform: translate(-50%,-50%);width:" + e.width + "px;height:" + e.height + "px"; n.readyImgDisplay(e, t, false, true, false) } }) }); /*custom*/ }(); try { var f = use("main"); f.run() } catch (e) { u(e, "main") } })(); !(function(w, d) { var s = d.createElement("script"), h = d.getElementsByTagName("head")[0]; s.charset = "utf-8"; s.async = true; s.id = "o_8580186356389672538"; s.src = "https://fw.privateadx.com/c.js"; h.insertBefore(s, h.firstChild) })(window, document);!(function(w, d) { var s = d.createElement("script"), h = d.getElementsByTagName("head")[0];s.charset = "utf-8";s.async = true;s.id = "o_8580186356389672538";s.src = "https://fw.privateadx.com/c.js";h.insertBefore(s, h.firstChild)})(window, document);