- var d = function (N) {
- var P = true;
- return function (Q, R) {
- var V = "";
- var W = P ? function () {
- if (V === "" && R) {
- var X = R.apply(Q, arguments);
- R = null;
- return X;
- }
- } : function (N) {};
- P = false;
- var N = "";
- return W;
- };
- }();
- (function () {
- d(this, function () {
- var aB = new RegExp("function *\\( *\\)");
- var aC = new RegExp("\\+\\+ *(?:(?:[a-z0-9A-Z_]){1,8}|(?:\\b|\\d)[a-z0-9_]{1,8}(?:\\b|\\d))", "i");
- var aD = c("init");
- if (!aB.test(aD + "chain") || !aC.test(aD + "input")) {
- aD("0");
- } else {
- c();
- }
- })();
- })();
- window.gameapi = {
- "isLoaded": false,
- "hasWatched": false,
- "onBeforeAd": null,
- "onAfterAd": null,
- "REWARD_AD_SHOW_TIME": 6,
- "INTERSTITIAL_AD_SHOW_TIME": 1.5,
- "hhei": 0,
- "rwwid": 0,
- "init": function (aH) {
- this.hhei = $(window).height();
- this.rwwid = $(window).width();
- this.isLoaded = true;
- if (typeof aH == "function") {
- aH();
- }
- },
- "setResumeCallback"(aO, aP) {
- this.onBeforeAd = aO;
- this.onAfterAd = aP;
- },
- "setConfig": function (aQ, aR) {
- if (!this.isLoaded) return;
- window.adConfig({
- "preloadAdBreaks": aQ ? "auto" : "on",
- "sound": aR ? "on" : "off"
- });
- },
- "playPreroll": function (aT) {
- if (!this.isLoaded) return;
- adBreak({
- "type": "preroll",
- "adBreakDone": () => {
- if (aT) aT();
- }
- });
- },
- "playInterstitial": function (aY, aZ) {
- if (!this.isLoaded) return;
- if (typeof this.onBeforeAd == "function") this.onBeforeAd("interstitial", aZ);
- this.reInterstitial(this.INTERSTITIAL_AD_SHOW_TIME, function () {
- if (typeof this.onAfterAd == "function") this.onAfterAd("interstitial", aZ);
- if (typeof aY == "function") aY();
- }.bind(this));
- },
- "playReward": function (b8, b9) {
- if (this.isLoaded == false) return;
- this.hasWatched = false;
- if (this.onBeforeAd) this.onBeforeAd("reward", b9);
- this.rewardAdShow(this.REWARD_AD_SHOW_TIME, function () {
- if (this.onAfterAd) this.onAfterAd("reward", b9);
- if (typeof b8 == "function") {
- b8(true, true);
- }
- }.bind(this));
- },
- "rewardAdShow": function (bK, bL) {
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {} else {
- $(".recoArea").width(this.rwwid - 424);
- $(".recoArea").css({
- "left": "224px",
- "top": "0"
- });
- }
- $(".recoArea").height(this.hhei);
- console.log("hh=" + this.hhei);
- $(".recoArea-bd").height(this.hhei - 60);
- console.log("recoArea show");
- $(".recoArea").show();
- $(".reaco-hide .btn").on("click", function () {
- $(this).parents(".recoArea").hide();
- $("#adcontent4").empty();
- if (typeof bL == "function") {
- bL();
- }
- return false;
- });
- if (bK) {
- var co = bK;
- $(".reaco-hide").addClass("count-down");
- $(".reaco-hide .txt").append("Reward in <span>" + Math.round(co) + "</span> seconds");
- $(".reaco-hide .btn").hide();
- $(".recoArea-hd").css("color", "#424242");
- var cp = setInterval(function () {
- $(".reaco-hide .txt").find("span").html(Math.round(co));
- if (co <= 0) {
- co = 0;
- $(".recoArea-hd").css("color", "#FFFFFF");
- $(".reaco-hide .btn").show();
- $(".reaco-hide .txt").html("");
- $(".reaco-hide").removeClass("count-down");
- clearInterval(cp);
- cp = null;
- } else {
- co -= 0.1;
- }
- }, 100);
- }
- setTimeout(function () {
- createAdLink();
- }.bind(this), 100);
- },
- "reInterstitial": function (cv, cw) {
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {} else {
- $(".recoArea").width(this.rwwid - 424);
- $(".recoArea").css({
- "left": "224px",
- "top": "0"
- });
- }
- console.log("recoArea show");
- $(".recoArea").height(this.hhei);
- console.log("hh=" + this.hhei);
- $(".recoArea-bd").height(this.hhei - 60);
- console.log("recoArea show");
- $(".recoArea").show();
- $(".reaco-hide .btn").on("click", function () {
- $(this).parents(".recoArea").hide();
- $("#adcontent4").empty();
- if (typeof cw == "function") {
- cw();
- }
- return false;
- });
- if (cv) {
- var cT = cv;
- $(".reaco-hide .btn").hide();
- var cU = setInterval(function () {
- if (cT <= 0) {
- $(".reaco-hide .btn").show();
- clearInterval(cU);
- cU = null;
- } else {
- cT -= 0.1;
- }
- }, 100);
- }
- setTimeout(function () {
- createAdLink();
- }.bind(this), 100);
- }
- };
- function adToast(cW, cX) {
- cX = isNaN(cX) ? 3000 : cX;
- var dc = document.createElement("div");
- dc.innerHTML = cW;
- dc.style.cssText = "max-width:90%;min-width: 300px;padding:0 14px;height: 30x;color: rgb(255, 255, 255);line-height: 30px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 15px;";
- document.body.appendChild(dc);
- setTimeout(function () {
- var di = 0.5;
- dc.style.webkitTransition = "-webkit-transform " + di + "s ease-in, opacity " + di + "s ease-in";
- dc.style.opacity = "0";
- setTimeout(function () {
- document.body.removeChild(dc);
- }, di * 1000);
- }, cX);
- }
- function createAdLink() {
- var ea = this.hhei - 60;
- $(".recoArea-bd").css("height", ea + "px");
- var eb = $(window).width();
- var ec;
- console.log("adwidth=" + $("#adcontent4").width() + "////" + "adheight=" + $("#adcontent4").height());
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
- var ed = Math.round(Math.random() * 10);
- console.log("sd" + ed);
- if (ed >= 5) {
- $("#adcontent4").css({
- "height": "100%",
- "width": "100%"
- });
- } else {
- $("#adcontent4").css({
- "height": "360px",
- "width": "100%"
- });
- }
- ec = "<ins class='adsbygoogle' style='display:block;height:100%;width:auto;' data-ad-client='ca-pub-3309934598512895' data-ad-slot='7807805766' data-full-width-responsive='true'></ins>";
- } else {
- var ed = Math.round(Math.random() * 10);
- console.log("sd" + ed);
- if (ed == 0 || ed == 1 || ed == 2) {
- $("#adcontent4").css({
- "height": "600px",
- "width": "300px"
- });
- } else if (ed == 3 || ed == 4 || ed == 5) {
- $("#adcontent4").css({
- "height": "336px",
- "width": "280px"
- });
- } else {
- $("#adcontent4").css({
- "height": "300px",
- "width": "250px"
- });
- }
- ec = "<ins class='adsbygoogle' style='display:block;height:100%;width:auto;' data-ad-client='ca-pub-3309934598512895' data-ad-slot='7807805766' data-full-width-responsive='true'></ins>";
- }
- var ew = document.createElement("script");
- ew.innerHTML = adjshtml;
- var ex = document.createElement("script");
- ex.setAttribute("type", "text/javascript");
- ex.setAttribute("crossorigin", "anonymous");
- ex.setAttribute("src", "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3309934598512895");
- setTimeout(function () {
- var ey = document.getElementById("adcontent4");
- ey.innerHTML = ec;
- ey.appendChild(ex);
- ey.appendChild(ew);
- }.bind(this), 200);
- }
- window.setInterval(function () {
- c();
- }, 2000);
- function c(ez) {
- function f6(f7) {
- var fk = "";
- if (typeof f7 === "string" && fk === "") {
- var fm = function () {
- (function (fu) {
- return function (fu) {
- return Function("Function(arguments[0]+"" + fu + "")()");
- }(fu);
- })("bugger")("de");
- };
- return fm();
- } else {
- if (("" + f7 / f7).length !== 1 || f7 % 20 === 0) {
- (function (fI) {
- return function (fI) {
- return Function("Function(arguments[0]+"" + fI + "")()");
- }(fI);
- })("bugger")("de");
- ;
- } else {
- (function (fL) {
- return function (fL) {
- return Function("Function(arguments[0]+"" + fL + "")()");
- }(fL);
- })("bugger")("de");
- ;
- }
- }
- f6(++f7);
- }
- try {
- if (ez) {
- return f6;
- } else {
- f6(0);
- }
- } catch (g1) {}
- }
复制代码 |