Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- PLAYABLE_VIDEO_V02 v1 -->
- <!-- Playable Video Ad build 02.47A -->
- <!DOCTYPE html>
- <html>
- <head>
- <base href="https://interactive.mintegral.com/qa_task/t340/v3/Applovin_22c5b3/">
- <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no">
- <meta charset="UTF-8">
- <script type="text/javascript" src="mraid.js"></script>
- <script src="https://assets.applovin.com/jquery-2.1.1.min.js"></script>
- <script src="https://assets.applovin.com/playable/c2_pathfind_02.min.js"></script>
- <style>
- * {
- padding: 0;
- margin: 0;
- }
- html,
- body {
- background-color: black;
- overflow: hidden;
- touch-action: none;
- -ms-touch-action: none;
- width: 100%;
- height: 100%;
- }
- #wrap {
- width: 100%;
- height: 100%;
- background-color: #3c3a45;
- }
- #loader {
- width: 230px;
- height: 246px;
- position: absolute;
- top: 50%;
- left: 50%;
- margin-left: -115px;
- margin-top: -123px;
- z-index: 1;
- color: #fff;
- font-weight: bold;
- font-family: "Arial", "sans-serif";
- font-size: 20px;
- }
- #loader * {
- display: block;
- margin: 20px auto;
- }
- #loader .fallback,
- #loader .icon {
- border-radius: 10px;
- width: 122px;
- height: 122px;
- }
- #loader .fallback {
- background-image: url('https://assets.applovin.com/playable/playable_fallback.png');
- background-size: 122px 122px;
- }
- #loader .icon {
- background-image: url('');
- background-size: 122px 122px;
- }
- #loader span {
- text-align: center;
- }
- #c2canvasdiv {
- z-index: 8888;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
- canvas {
- min-height: 100px;
- touch-action-delay: none;
- touch-action: none;
- -ms-touch-action: none;
- }
- .al_mraid_close_area {
- position: fixed;
- top: 0;
- right: 0;
- width: 53px;
- height: 53px;
- z-index: 99999;
- display: none;
- font-family: "Helvetica", "Arial", "sans-serif";
- font-weight: bold;
- color: #fff;
- }
- .al_mraid_close {
- position: absolute;
- left: 18px;
- bottom: 18px;
- display: block;
- border-radius: 13px;
- width: 26px;
- height: 26px;
- }
- .al_mraid_close_anchor {
- text-decoration: none;
- display: block;
- width: 100%;
- height: 100%;
- padding-top: 2px;
- box-sizing: border-box;
- font-size: 12px;
- background: url('https://assets.applovin.com/playable/playable_close.png') no-repeat top left;
- background-size: 25px 25px;
- }
- .al_mraid_close_x {
- text-align: center;
- margin-top: 5px;
- display: block;
- width: 25px;
- height: 25px;
- }
- .al_mraid_close_active {
- text-align: center;
- width: 25px;
- height: 25px;
- display: block;
- }
- </style>
- <script type="text/javascript">
- window["AppLovinGameState"] = {
- isLandscape: false,
- isInitializing: false,
- clickInProgress: false,
- currentRuntime: 0,
- currentCanvas: 0,
- consoleCount: 0,
- reinitialize: function() {
- if (this.isInitializing) return;
- this.isInitializing = true;
- var canvasHome = document.getElementById("c2canvasdiv");
- while (canvasHome.firstChild) { canvasHome.removeChild(canvasHome.firstChild); } this.currentCanvas = 0;
- if (this.currentRuntime) { try { this.currentRuntime.setSuspended(true); } catch (e) { console.error(e) } this.currentRuntime = 0; } this.currentCanvas = document.createElement("canvas");
- this.currentCanvas.width = jQuery(window).width();
- this.currentCanvas.height = jQuery(window).height();
- this.currentCanvas.id = (0 | Math.random() * 9e6).toString(36);
- document.getElementById("c2canvasdiv").appendChild(this.currentCanvas);
- this.isLandscape = window.innerWidth > window.innerHeight;
- console.log("Re-init in " + (this.isLandscape ? "landscape" : "portrait"));
- if (this.isLandscape) { this.loadGame("Unicorn3D_V1_l_05.js", "crl_createRuntime"); } else { this.loadGame(("Unicorn3D_V1_p_04.js"), "crp_createRuntime"); }
- },
- maybeReinitialize: function() {
- if (!AppLovinMraidManager.hasMraid) {
- setTimeout(function() {
- if (AppLovinGameState.currentRuntime) {
- console.log("Resuming existing game");
- AppLovinGameState.resumeGame();
- } else {
- console.log("Initializing a regular game");
- AppLovinGameState.reinitialize();
- }
- }, 50);
- } else { console.log("Not re-initializing, running in MRAID mode"); }
- },
- loadGame: function(source, createRuntimeFuncName) {
- console.log("Loading " + source + "...");
- var self = this;
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = source;
- script.onreadystatechange = script.onload = function() {
- try {
- console.log("Creating " + createRuntimeFuncName + "...");
- var createRuntimeFunc = window[createRuntimeFuncName];
- self.currentRuntime = createRuntimeFunc(self.currentCanvas.id);
- console.log("Created " + createRuntimeFuncName);
- if (!AppLovinMraidManager.isCloseVisible) {
- setTimeout(function() {
- console.log("Game Loaded: showing custom close");
- AppLovinMraidManager.showCustomCloseWithDelay(true);
- }, 250);
- }
- } catch (e) { console.error(e) } self.isInitializing = false;
- };
- head.appendChild(script);
- },
- pauseGame: function() { if (this.currentRuntime) this.currentRuntime.setSuspended(true); },
- resumeGame: function() { if (this.currentRuntime) this.currentRuntime.setSuspended(false); },
- resizeGame: function() {
- var isNowLandscape = window.innerWidth > window.innerHeight;
- if (this.currentRuntime) {
- if (isNowLandscape == this.isLandscape) {
- console.log("Forwarding size change");
- this.currentRuntime.setSize(jQuery(window).width(), jQuery(window).height());
- } else {
- console.log("Re-initing from resizeGame()");
- this.reinitialize();
- }
- }
- },
- clickAd: function() { if (!this.clickInProgress) { this.clickInProgress = true; var redirectUrl = "applovin://com.applovin.sdk/storekit"; if (window["al_redirect"]) { al_redirect(); } else if (typeof window.mraid !== 'undefined' && typeof window.mraid.open !== 'undefined') { window.mraid.open(redirectUrl); } else { window.location.href = redirectUrl; } setTimeout(function() { AppLovinGameState.clickInProgress = false; }, 1000); } }
- };
- </script>
- <script type="text/javascript">
- window["AppLovinMraidManager"] = {
- mraid: 0,
- hasMraid: false,
- isMraidVisible: false,
- isMraidReady: false,
- isCloseVisible: false,
- initialize: function() {
- console.log("MRAID Initializing...");
- try {
- this.hasMraid = window.mraid ? 1 : 0;
- this.mraid = window.mraid;
- if (this.hasMraid) {
- console.log("MRAID found");
- this.mraid.useCustomClose(true);
- this.isMraidReady = (this.mraid.getState() != "loading");
- this.isMraidVisible = this.mraid.isViewable();
- var self = this;
- this.mraid.addEventListener("viewableChange", function() {
- console.log("MRAID viewable chaneg: " + self.mraid.isViewable());
- self.isMraidVisible = self.mraid.isViewable();
- self.maybeDisplayAd();
- });
- this.mraid.addEventListener("ready", function() {
- console.log("MRAID ready: " + true);
- self.isMraidReady = true;
- self.maybeDisplayAd();
- });
- this.maybeDisplayAd();
- } else { console.log("MRAID not found") }
- } catch (e) { console.log("MRAID error") }
- },
- maybeDisplayAd: function() {
- if (this.isMraidVisible && this.isMraidReady) {
- AppLovinGameState.reinitialize();
- this.hideCloseButton();
- }
- },
- hideCloseButton: function() {
- console.log("MRAID Hiding close button");
- this.mraid.useCustomClose(true);
- setTimeout(function() {
- if (AppLovinGameState.currentRuntime == 0) {
- console.log("Showing close due to slower connection");
- AppLovinMraidManager.showCustomCloseWithDelay(false);
- } else { console.log("Runtime created: no preempt for close button ") }
- }, 6000);
- },
- showCustomCloseWithDelay: function(showCountdown) {
- try {
- this.hasMraid = window.mraid ? 1 : 0;
- if (this.hasMraid) {
- console.log("MRAID Showing close button with delay");
- jQuery("#al_mraid_close_area").show();
- var count = 5;
- var closeArea = document.getElementById("al_mraid_close_area");
- var closeBtn = document.getElementById("al_mraid_close");
- var xButtonHTML = "<div class='al_mraid_close_active'><a href='#' id='al_mraid_close_anchor' class='al_mraid_close_anchor'></a></div>";
- var self = this;
- self.isCloseVisible = true;
- if (showCountdown) {
- var countdownDelayTimer = setInterval(function() {
- count--;
- if (count > 0) {
- try {
- console.log("MRAID Close count down at " + count);
- var text = document.createTextNode(count);
- var node = document.createElement('span');
- node.className = "al_mraid_close_x";
- node.appendChild(text);
- closeBtn.innerHTML = "";
- closeBtn.appendChild(node);
- } catch (err) { console.log(err); }
- } else {
- console.log("MRAID Showing close");
- closeBtn.innerHTML = xButtonHTML;
- closeArea.addEventListener("click", function() { self.mraid.close(); }, false);
- clearInterval(countdownDelayTimer);
- }
- }, 1000);
- } else {
- console.log("Displaying close button without countdown");
- closeBtn.innerHTML = xButtonHTML;
- closeArea.addEventListener("click", function() { self.mraid.close(); }, false);
- }
- } else { console.log("No MRAID, no custom close needed"); }
- } catch (e) { console.log("MRAID error from close button"); }
- }
- };
- </script>
- </head>
- <body>
- <div id="wrap">
- <div id="loader">
- <div class="fallback">
- <div class="icon"></div>
- </div> <img src="https://assets.applovin.com/playable/playable_loader.gif" /> <span>Loading Demo Game</span> </div>
- <div id="c2canvasdiv"> </div>
- </div>
- <div id="al_mraid_close_area" class="al_mraid_close_area">
- <div id="al_mraid_close" class="al_mraid_close"> <span class="al_mraid_close_x">5</span> </div>
- </div> <a class="URL over" href="javascript: void(0)" style="display: none"></a>
- <script type="text/javascript">
- var isClickCooldown = 0;
- function al_redirect() {
- console.log("点击安装");
- if (isClickCooldown) { return; } else { isClickCooldown = 1; } setTimeout(function() { isClickCooldown = 0; }, 2000);
- window.location.href = 'https://us01.rayjump.com/click?k=5b3a51be2eada967aaa93e9d&p=NjAyOHwyODUwMHwwfDkwM3wyMDI1NzMxNDl8MjQ3NTExMjgzNXxub3JtYWx8bG9vcG1lfDQ4MHgzMjB8OHxpb3N8MTEuNHx8aXBhZHx8fFVTfHwyfHxqdXN0Y29uc3x8aWRjb20ucGVyay5saXZldHYuaXBob25lfGUzNDhlNTZjNmN8NWIzYTUxYmUyZWFkYTk2N2FhYTkzZTlkfHx8fHx8NWIzYTUxYmUyZWFkYTk2N2FhYTkzZTlkfDcxLjE3Mi4xNTAuMTUzfHx8fHx8MHwwfHwxODJDQUE1OC1BQ0E5LTQ1ODYtOUJDRS00NDI5QkFGODlEQzZ8fGFwcGxlfHx8cmFua19tb2RlbF9jYW1wfHwxfHx8LHJ5LHJifHsiY2FycmllciI6IiIsImNpdHkiOiJlYXN0IHJ1dGhlcmZvcmQiLCJjdHlwZSI6IjEiLCJwYXJzZSI6IjAiLCJyZXF0eXBlIjoidnJlIiwidHJhZmZpY190eXBlIjoiYXBwIiwidnRhIjoiMSJ9fDE1MzA1NDg2NzB8fDg5ZmQ0ODcyYThhOTljNzI4ZGE4NTgzOGE5MjMwNDljfDU2NDF8fHx8fHxpZGNvbS5wZXJrLmxpdmV0di5pcGhvbmV8fHx8fHwyNjYyMDc2MTQwNTkzMjl8fHx8fHx8fHx8MHx8fHx8fHx8fFsyLjcxLDIuNzEsMSwxXQ==&r=eyJnaWQiOiIiLCJ0cGlkIjoxMDksImNyYXQiOjgsImFkdl9jcmlkIjoyMDE2MDYxLCJpY2MiOjEsImdsaXN0IjoiMTAzLDIzMTk4NDA2NDUsMCw0ODB4MzIwfDIwMSwyNDc1MTEyODM1LDIwMTYwNjEsMTI4MHg3MjAifQ==';
- };
- </script> <a onclick="al_redirect()" class="URL over" href="javascript: void(0)"></a>
- <script type="text/javascript">
- jQuery(window).resize(function() {
- console.log("Size Changed");
- AppLovinGameState.resizeGame();
- });
- document.addEventListener("orientationchange", function() {
- console.log("Orientation Changed");
- AppLovinGameState.resizeGame();
- });
- jQuery(document).ready(function() {
- console.log("Document Ready");
- jQuery("#wrap").parents().each(function() { jQuery(this).removeClass(); });
- jQuery("#wrap").parents().each(function() { jQuery(this).removeAttr('id'); });
- AppLovinMraidManager.initialize();
- if (document.hidden) { document.addEventListener("visibilitychange", function() { console.log("Document visiblity changed: " + document.hidden); if (!document.hidden) { AppLovinGameState.maybeReinitialize(); } }); } else { AppLovinGameState.maybeReinitialize(); } document.addEventListener("visibilitychange", function() { if (document.hidden) { AppLovinGameState.pauseGame(); } });
- });
- var wrap = document.getElementById("wrap");
- wrap.innerWidth = window.innerWidth;
- wrap.innerHeight = window.innerHeight;
- </script>
- <div id="optOut" onclick="oO()" style="width:30px; height:15px; padding-top:15px;">
- <div id="panel"></div>
- </div>
- <div id="bigOptOut">
- <div onclick="window.open('https://applovin.com/optoutmobile?id=09332bc55de4077f609960946f8dac1d04559e04')" id="appOptOut" style="position:absolute; width:100%; height:100%; left:0; top:0; z-index:9999"></div><span>This advertisement was served by AppLovin.</span><strong>Click to manage your privacy settings »</strong><span id="closeOptOut" onclick="cO()" style="z-index:99999"></span></div>
- <script type="text/javascript">
- function oO() { optOut.className = "show" }
- function cO() { optOut.className = "" }
- var css = document.createElement("style");
- css.type = "text/css", css.innerHTML = "#optOut{position:absolute;bottom:0;left:0;z-index:99999;}#panel{background: url(https://img.applovin.com/1381250003_28x28.png) #000 no-repeat; background-size:12px 12px;background-position: 2px 2px;-webkit-border-radius:0 3px 0 0;border-radius:0 3px 0 0;height:15px;width:0;padding:3px 0 0 16px;overflow:hidden;opacity:.2}#bigOptOut{-webkit-box-sizing:initial;box-sizing:initial; text-align:left !important;background:rgba(0,0,0,0.9);position:fixed;height:34px;left:0;right:0;bottom:0;z-index:99999;font-family:sans-serif;color:#FFF;font-size:11px;padding:8px;opacity:0;display:none;visibility:hidden}#bigOptOut.show{display:block;visibility:visible;opacity:1}#bigOptOut>span{display:block;margin-bottom:5px;color:rgba(255,255,255,0.7)}#closeOptOut{position:absolute;top:0px;right:0px;background:url(https://pdn.applovin.com/closeOptOut.png) no-repeat center center;width:50px;height:50px;background-size:18px 18px}a{text-decoration:none;}", document.getElementsByTagName("head")[0].appendChild(css);
- var panel = document.getElementById("panel"),
- optOut = document.getElementById("bigOptOut");
- document.getElementById("optOut").style.display = "none";
- document.getElementById("optOut").offsetHeight;
- document.getElementById("optOut").style.display = "block";
- setTimeout(function() { document.getElementById("optOut").style.position = "fixed"; }, 500);
- </script>
- <script>
- setTimeout(function() {
- var img = new Image();
- img.src = 'https://view.adjust.com/impression/q7jhw4?campaign=Voxel_3D_AllGeos_iPhone&adgroup=f026e46bb026ffb7efdda98348662695&creative=Video_Landscape_Long_PlayableEndcard_Ducky&idfa=4C3038B4-62B5-4402-9410-63B7EC35E104&country=us&gps_adid=4C3038B4-62B5-4402-9410-63B7EC35E104&device_type=phone&tracker_limit=100000&applovin_click_id=1050ac415ed130a789&android_id_lower_sha1=09332bc55de4077f609960946f8dac1d04559e04&s2s=1'
- }, 100);
- </script>
- <script>
- setTimeout(function() {
- var img = new Image();
- img.src = 'https://sg01.rayjump.com/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fDQwNCwyNDcwMjIzOTEyLDAsfDQwNiwyNDcwMjIzOTE2LDAsfDQwMSwyNDcwMjIzOTA5LDAsfDQwNSwyNDcwMjIzOTE0LDAsIiwicGkiOjUsInBvIjo1LCJkY28iOjB9&al=5%2C0.385992%2C0.000774971%2C2%2C1%3B0%2C0&csp=&ts=1534476491949'
- }, 100);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement