Advertisement
qiuyunxia

Untitled

Aug 16th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.27 KB | None | 0 0
  1. <!-- PLAYABLE_VIDEO_V02 v1 -->
  2. <!-- Playable Video Ad build 02.47A -->
  3. <!DOCTYPE html>
  4. <html>
  5.  
  6. <head>
  7. <base href="https://interactive.mintegral.com/qa_task/t340/v3/Applovin_22c5b3/">
  8. <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no">
  9. <meta charset="UTF-8">
  10. <script type="text/javascript" src="mraid.js"></script>
  11. <script src="https://assets.applovin.com/jquery-2.1.1.min.js"></script>
  12. <script src="https://assets.applovin.com/playable/c2_pathfind_02.min.js"></script>
  13. <style>
  14. * {
  15. padding: 0;
  16. margin: 0;
  17. }
  18.  
  19. html,
  20. body {
  21. background-color: black;
  22. overflow: hidden;
  23. touch-action: none;
  24. -ms-touch-action: none;
  25. width: 100%;
  26. height: 100%;
  27. }
  28.  
  29. #wrap {
  30. width: 100%;
  31. height: 100%;
  32. background-color: #3c3a45;
  33. }
  34.  
  35. #loader {
  36. width: 230px;
  37. height: 246px;
  38. position: absolute;
  39. top: 50%;
  40. left: 50%;
  41. margin-left: -115px;
  42. margin-top: -123px;
  43. z-index: 1;
  44. color: #fff;
  45. font-weight: bold;
  46. font-family: "Arial", "sans-serif";
  47. font-size: 20px;
  48. }
  49.  
  50. #loader * {
  51. display: block;
  52. margin: 20px auto;
  53. }
  54.  
  55. #loader .fallback,
  56. #loader .icon {
  57. border-radius: 10px;
  58. width: 122px;
  59. height: 122px;
  60. }
  61.  
  62. #loader .fallback {
  63. background-image: url('https://assets.applovin.com/playable/playable_fallback.png');
  64. background-size: 122px 122px;
  65. }
  66.  
  67. #loader .icon {
  68. background-image: url('');
  69. background-size: 122px 122px;
  70. }
  71.  
  72. #loader span {
  73. text-align: center;
  74. }
  75.  
  76. #c2canvasdiv {
  77. z-index: 8888;
  78. position: absolute;
  79. top: 0;
  80. left: 0;
  81. width: 100%;
  82. height: 100%;
  83. }
  84.  
  85. canvas {
  86. min-height: 100px;
  87. touch-action-delay: none;
  88. touch-action: none;
  89. -ms-touch-action: none;
  90. }
  91.  
  92. .al_mraid_close_area {
  93. position: fixed;
  94. top: 0;
  95. right: 0;
  96. width: 53px;
  97. height: 53px;
  98. z-index: 99999;
  99. display: none;
  100. font-family: "Helvetica", "Arial", "sans-serif";
  101. font-weight: bold;
  102. color: #fff;
  103. }
  104.  
  105. .al_mraid_close {
  106. position: absolute;
  107. left: 18px;
  108. bottom: 18px;
  109. display: block;
  110. border-radius: 13px;
  111. width: 26px;
  112. height: 26px;
  113. }
  114.  
  115. .al_mraid_close_anchor {
  116. text-decoration: none;
  117. display: block;
  118. width: 100%;
  119. height: 100%;
  120. padding-top: 2px;
  121. box-sizing: border-box;
  122. font-size: 12px;
  123. background: url('https://assets.applovin.com/playable/playable_close.png') no-repeat top left;
  124. background-size: 25px 25px;
  125. }
  126.  
  127. .al_mraid_close_x {
  128. text-align: center;
  129. margin-top: 5px;
  130. display: block;
  131. width: 25px;
  132. height: 25px;
  133. }
  134.  
  135. .al_mraid_close_active {
  136. text-align: center;
  137. width: 25px;
  138. height: 25px;
  139. display: block;
  140. }
  141. </style>
  142. <script type="text/javascript">
  143. window["AppLovinGameState"] = {
  144. isLandscape: false,
  145. isInitializing: false,
  146. clickInProgress: false,
  147. currentRuntime: 0,
  148. currentCanvas: 0,
  149. consoleCount: 0,
  150. reinitialize: function() {
  151. if (this.isInitializing) return;
  152. this.isInitializing = true;
  153. var canvasHome = document.getElementById("c2canvasdiv");
  154. while (canvasHome.firstChild) { canvasHome.removeChild(canvasHome.firstChild); } this.currentCanvas = 0;
  155. if (this.currentRuntime) { try { this.currentRuntime.setSuspended(true); } catch (e) { console.error(e) } this.currentRuntime = 0; } this.currentCanvas = document.createElement("canvas");
  156. this.currentCanvas.width = jQuery(window).width();
  157. this.currentCanvas.height = jQuery(window).height();
  158. this.currentCanvas.id = (0 | Math.random() * 9e6).toString(36);
  159. document.getElementById("c2canvasdiv").appendChild(this.currentCanvas);
  160. this.isLandscape = window.innerWidth > window.innerHeight;
  161. console.log("Re-init in " + (this.isLandscape ? "landscape" : "portrait"));
  162. if (this.isLandscape) { this.loadGame("Unicorn3D_V1_l_05.js", "crl_createRuntime"); } else { this.loadGame(("Unicorn3D_V1_p_04.js"), "crp_createRuntime"); }
  163. },
  164. maybeReinitialize: function() {
  165. if (!AppLovinMraidManager.hasMraid) {
  166. setTimeout(function() {
  167. if (AppLovinGameState.currentRuntime) {
  168. console.log("Resuming existing game");
  169. AppLovinGameState.resumeGame();
  170. } else {
  171. console.log("Initializing a regular game");
  172. AppLovinGameState.reinitialize();
  173. }
  174. }, 50);
  175. } else { console.log("Not re-initializing, running in MRAID mode"); }
  176. },
  177. loadGame: function(source, createRuntimeFuncName) {
  178. console.log("Loading " + source + "...");
  179. var self = this;
  180. var head = document.getElementsByTagName('head')[0];
  181. var script = document.createElement('script');
  182. script.type = 'text/javascript';
  183. script.src = source;
  184. script.onreadystatechange = script.onload = function() {
  185. try {
  186. console.log("Creating " + createRuntimeFuncName + "...");
  187. var createRuntimeFunc = window[createRuntimeFuncName];
  188. self.currentRuntime = createRuntimeFunc(self.currentCanvas.id);
  189. console.log("Created " + createRuntimeFuncName);
  190. if (!AppLovinMraidManager.isCloseVisible) {
  191. setTimeout(function() {
  192. console.log("Game Loaded: showing custom close");
  193. AppLovinMraidManager.showCustomCloseWithDelay(true);
  194. }, 250);
  195. }
  196. } catch (e) { console.error(e) } self.isInitializing = false;
  197. };
  198. head.appendChild(script);
  199. },
  200. pauseGame: function() { if (this.currentRuntime) this.currentRuntime.setSuspended(true); },
  201. resumeGame: function() { if (this.currentRuntime) this.currentRuntime.setSuspended(false); },
  202. resizeGame: function() {
  203. var isNowLandscape = window.innerWidth > window.innerHeight;
  204. if (this.currentRuntime) {
  205. if (isNowLandscape == this.isLandscape) {
  206. console.log("Forwarding size change");
  207. this.currentRuntime.setSize(jQuery(window).width(), jQuery(window).height());
  208. } else {
  209. console.log("Re-initing from resizeGame()");
  210. this.reinitialize();
  211. }
  212. }
  213. },
  214. 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); } }
  215. };
  216. </script>
  217. <script type="text/javascript">
  218. window["AppLovinMraidManager"] = {
  219. mraid: 0,
  220. hasMraid: false,
  221. isMraidVisible: false,
  222. isMraidReady: false,
  223. isCloseVisible: false,
  224. initialize: function() {
  225. console.log("MRAID Initializing...");
  226. try {
  227. this.hasMraid = window.mraid ? 1 : 0;
  228. this.mraid = window.mraid;
  229. if (this.hasMraid) {
  230. console.log("MRAID found");
  231. this.mraid.useCustomClose(true);
  232. this.isMraidReady = (this.mraid.getState() != "loading");
  233. this.isMraidVisible = this.mraid.isViewable();
  234. var self = this;
  235. this.mraid.addEventListener("viewableChange", function() {
  236. console.log("MRAID viewable chaneg: " + self.mraid.isViewable());
  237. self.isMraidVisible = self.mraid.isViewable();
  238. self.maybeDisplayAd();
  239. });
  240. this.mraid.addEventListener("ready", function() {
  241. console.log("MRAID ready: " + true);
  242. self.isMraidReady = true;
  243. self.maybeDisplayAd();
  244. });
  245. this.maybeDisplayAd();
  246. } else { console.log("MRAID not found") }
  247. } catch (e) { console.log("MRAID error") }
  248. },
  249. maybeDisplayAd: function() {
  250. if (this.isMraidVisible && this.isMraidReady) {
  251. AppLovinGameState.reinitialize();
  252. this.hideCloseButton();
  253. }
  254. },
  255. hideCloseButton: function() {
  256. console.log("MRAID Hiding close button");
  257. this.mraid.useCustomClose(true);
  258. setTimeout(function() {
  259. if (AppLovinGameState.currentRuntime == 0) {
  260. console.log("Showing close due to slower connection");
  261. AppLovinMraidManager.showCustomCloseWithDelay(false);
  262. } else { console.log("Runtime created: no preempt for close button ") }
  263. }, 6000);
  264. },
  265. showCustomCloseWithDelay: function(showCountdown) {
  266. try {
  267. this.hasMraid = window.mraid ? 1 : 0;
  268. if (this.hasMraid) {
  269. console.log("MRAID Showing close button with delay");
  270. jQuery("#al_mraid_close_area").show();
  271. var count = 5;
  272. var closeArea = document.getElementById("al_mraid_close_area");
  273. var closeBtn = document.getElementById("al_mraid_close");
  274. var xButtonHTML = "<div class='al_mraid_close_active'><a href='#' id='al_mraid_close_anchor' class='al_mraid_close_anchor'></a></div>";
  275. var self = this;
  276. self.isCloseVisible = true;
  277. if (showCountdown) {
  278. var countdownDelayTimer = setInterval(function() {
  279. count--;
  280. if (count > 0) {
  281. try {
  282. console.log("MRAID Close count down at " + count);
  283. var text = document.createTextNode(count);
  284. var node = document.createElement('span');
  285. node.className = "al_mraid_close_x";
  286. node.appendChild(text);
  287. closeBtn.innerHTML = "";
  288. closeBtn.appendChild(node);
  289. } catch (err) { console.log(err); }
  290. } else {
  291. console.log("MRAID Showing close");
  292. closeBtn.innerHTML = xButtonHTML;
  293. closeArea.addEventListener("click", function() { self.mraid.close(); }, false);
  294. clearInterval(countdownDelayTimer);
  295. }
  296. }, 1000);
  297. } else {
  298. console.log("Displaying close button without countdown");
  299. closeBtn.innerHTML = xButtonHTML;
  300. closeArea.addEventListener("click", function() { self.mraid.close(); }, false);
  301. }
  302. } else { console.log("No MRAID, no custom close needed"); }
  303. } catch (e) { console.log("MRAID error from close button"); }
  304. }
  305. };
  306. </script>
  307. </head>
  308.  
  309. <body>
  310. <div id="wrap">
  311. <div id="loader">
  312. <div class="fallback">
  313. <div class="icon"></div>
  314. </div> <img src="https://assets.applovin.com/playable/playable_loader.gif" /> <span>Loading Demo Game</span> </div>
  315. <div id="c2canvasdiv"> </div>
  316. </div>
  317. <div id="al_mraid_close_area" class="al_mraid_close_area">
  318. <div id="al_mraid_close" class="al_mraid_close"> <span class="al_mraid_close_x">5</span> </div>
  319. </div> <a class="URL over" href="javascript: void(0)" style="display: none"></a>
  320. <script type="text/javascript">
  321. var isClickCooldown = 0;
  322.  
  323. function al_redirect() {
  324. console.log("点击安装");
  325. if (isClickCooldown) { return; } else { isClickCooldown = 1; } setTimeout(function() { isClickCooldown = 0; }, 2000);
  326. window.location.href = 'https://us01.rayjump.com/click?k=5b3a51be2eada967aaa93e9d&p=NjAyOHwyODUwMHwwfDkwM3wyMDI1NzMxNDl8MjQ3NTExMjgzNXxub3JtYWx8bG9vcG1lfDQ4MHgzMjB8OHxpb3N8MTEuNHx8aXBhZHx8fFVTfHwyfHxqdXN0Y29uc3x8aWRjb20ucGVyay5saXZldHYuaXBob25lfGUzNDhlNTZjNmN8NWIzYTUxYmUyZWFkYTk2N2FhYTkzZTlkfHx8fHx8NWIzYTUxYmUyZWFkYTk2N2FhYTkzZTlkfDcxLjE3Mi4xNTAuMTUzfHx8fHx8MHwwfHwxODJDQUE1OC1BQ0E5LTQ1ODYtOUJDRS00NDI5QkFGODlEQzZ8fGFwcGxlfHx8cmFua19tb2RlbF9jYW1wfHwxfHx8LHJ5LHJifHsiY2FycmllciI6IiIsImNpdHkiOiJlYXN0IHJ1dGhlcmZvcmQiLCJjdHlwZSI6IjEiLCJwYXJzZSI6IjAiLCJyZXF0eXBlIjoidnJlIiwidHJhZmZpY190eXBlIjoiYXBwIiwidnRhIjoiMSJ9fDE1MzA1NDg2NzB8fDg5ZmQ0ODcyYThhOTljNzI4ZGE4NTgzOGE5MjMwNDljfDU2NDF8fHx8fHxpZGNvbS5wZXJrLmxpdmV0di5pcGhvbmV8fHx8fHwyNjYyMDc2MTQwNTkzMjl8fHx8fHx8fHx8MHx8fHx8fHx8fFsyLjcxLDIuNzEsMSwxXQ==&r=eyJnaWQiOiIiLCJ0cGlkIjoxMDksImNyYXQiOjgsImFkdl9jcmlkIjoyMDE2MDYxLCJpY2MiOjEsImdsaXN0IjoiMTAzLDIzMTk4NDA2NDUsMCw0ODB4MzIwfDIwMSwyNDc1MTEyODM1LDIwMTYwNjEsMTI4MHg3MjAifQ==';
  327. };
  328. </script> <a onclick="al_redirect()" class="URL over" href="javascript: void(0)"></a>
  329. <script type="text/javascript">
  330. jQuery(window).resize(function() {
  331. console.log("Size Changed");
  332. AppLovinGameState.resizeGame();
  333. });
  334. document.addEventListener("orientationchange", function() {
  335. console.log("Orientation Changed");
  336. AppLovinGameState.resizeGame();
  337. });
  338. jQuery(document).ready(function() {
  339. console.log("Document Ready");
  340. jQuery("#wrap").parents().each(function() { jQuery(this).removeClass(); });
  341. jQuery("#wrap").parents().each(function() { jQuery(this).removeAttr('id'); });
  342. AppLovinMraidManager.initialize();
  343. 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(); } });
  344. });
  345. var wrap = document.getElementById("wrap");
  346. wrap.innerWidth = window.innerWidth;
  347. wrap.innerHeight = window.innerHeight;
  348. </script>
  349. <div id="optOut" onclick="oO()" style="width:30px; height:15px; padding-top:15px;">
  350. <div id="panel"></div>
  351. </div>
  352. <div id="bigOptOut">
  353. <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 &raquo;</strong><span id="closeOptOut" onclick="cO()" style="z-index:99999"></span></div>
  354. <script type="text/javascript">
  355. function oO() { optOut.className = "show" }
  356.  
  357. function cO() { optOut.className = "" }
  358. var css = document.createElement("style");
  359. 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);
  360. var panel = document.getElementById("panel"),
  361. optOut = document.getElementById("bigOptOut");
  362. document.getElementById("optOut").style.display = "none";
  363. document.getElementById("optOut").offsetHeight;
  364. document.getElementById("optOut").style.display = "block";
  365. setTimeout(function() { document.getElementById("optOut").style.position = "fixed"; }, 500);
  366. </script>
  367. <script>
  368. setTimeout(function() {
  369. var img = new Image();
  370. 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'
  371. }, 100);
  372. </script>
  373. <script>
  374. setTimeout(function() {
  375. var img = new Image();
  376. img.src = 'https://sg01.rayjump.com/impression?k=5b7640bd13e2d30daf52eb86&p=fHx8fHx8fGpzX25hdGl2ZV92aWRlb3xWSURFT3x8aW9zfDQuMi4xfGpzXzEuMS4xMHxpcGhvbmV8MTI4M3g2MTZ8Mnx8emgtQ058NGd8fHx8TU5vcm1hbEFscGhhTW9kZWxSYW5rZXI7MTM7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ts=1534476491949'
  377. }, 100);
  378. </script>
  379. </body>
  380.  
  381. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement