chenhuipeng

clone

Jul 11th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.44 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Mintergral Interactive Ad</title>
  6. <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no"/>
  7. <meta name="apple-mobile-web-app-capable" content="yes"/>
  8. <meta name="full-screen" content="true"/>
  9. <meta name="screen-orientation" content="portrait"/>
  10. <meta name="x5-fullscreen" content="true"/>
  11. <meta name="360-fullscreen" content="true"/>
  12.  
  13. <style>
  14. * {
  15. padding: 0;
  16. margin: 0
  17. }
  18.  
  19. body,html {
  20. background-color: #000;
  21. overflow: hidden;
  22. touch-action: none;
  23. -ms-touch-action: none;
  24. width: 100%;
  25. height: 100%
  26. }
  27.  
  28. #wrap {
  29. width: 100%;
  30. height: 100%
  31. }
  32.  
  33. #loader {
  34. width: 230px;
  35. height: 246px;
  36. position: absolute;
  37. top: 50%;
  38. left: 50%;
  39. margin-left: -115px;
  40. margin-top: -123px;
  41. z-index: 1;
  42. color: #fff;
  43. font-weight: 700;
  44. font-family: Arial,sans-serif;
  45. font-size: 20px
  46. }
  47.  
  48. #loader img {
  49. width: 100px
  50. }
  51.  
  52. #loader * {
  53. display: block;
  54. margin: 20px auto
  55. }
  56.  
  57. #loader .fallback,#loader .icon {
  58. border-radius: 10px;
  59. width: 122px;
  60. height: 122px
  61. }
  62.  
  63. #loader .fallback {
  64. background-size: 122px 122px
  65. }
  66.  
  67. #loader .icon {
  68. background-size: 122px 122px
  69. }
  70.  
  71. #loader span {
  72. text-align: center
  73. }
  74.  
  75. #MV_logo {
  76. z-index: 9999;
  77. position: absolute;
  78. right:-40px;
  79. bottom:0px;
  80. }
  81.  
  82. #c2canvasdiv {
  83. z-index: 8888;
  84. position: absolute;
  85. top: 0;
  86. left: 0;
  87. width: 100%;
  88. height: 100%
  89. }
  90.  
  91. canvas {
  92. min-height: 100px;
  93. touch-action-delay: none;
  94. touch-action: none;
  95. -ms-touch-action: none
  96. }
  97.  
  98. .al_mraid_close_area {
  99. position: fixed;
  100. top: 0;
  101. right: 0;
  102. width: 53px;
  103. height: 53px;
  104. z-index: 99999;
  105. display: none;
  106. font-family: Helvetica,Arial,sans-serif;
  107. font-weight: 700;
  108. color: #fff
  109. }
  110.  
  111. .al_mraid_close {
  112. position: absolute;
  113. left: 18px;
  114. bottom: 18px;
  115. display: block;
  116. border-radius: 13px;
  117. width: 26px;
  118. height: 26px
  119. }
  120.  
  121. .al_mraid_close_anchor {
  122. text-decoration: none;
  123. display: block;
  124. width: 100%;
  125. height: 100%;
  126. padding-top: 2px;
  127. box-sizing: border-box;
  128. font-size: 12px;
  129. background-size: 25px 25px
  130. }
  131.  
  132. .al_mraid_close_x {
  133. text-align: center;
  134. margin-top: 5px;
  135. display: block;
  136. width: 25px;
  137. height: 25px
  138. }
  139.  
  140. .al_mraid_close_active {
  141. text-align: center;
  142. width: 25px;
  143. height: 25px;
  144. display: block
  145. }
  146. </style>
  147.  
  148.  
  149. <style>
  150. html, body {
  151. -ms-touch-action: none;
  152. background: #000000;
  153. padding: 0;
  154. border: 0;
  155. margin: 0;
  156. height: 100%;
  157. }
  158. </style>
  159.  
  160. <!--这个标签为通过egret提供的第三方库的方式生成的 javascript 文件。删除 modules_files 标签后,库文件加载列表将不会变化,请谨慎操作!-->
  161. <!--modules_files_start-->
  162. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/egret/egret.min.js"></script>
  163. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/egret/egret.web.min.js"></script>
  164. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/eui/eui.min.js"></script>
  165. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/res/res.min.js"></script>
  166. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/tween/tween.min.js"></script>
  167. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/game/game.min.js"></script>
  168. <!--modules_files_end-->
  169.  
  170. <!--这个标签为不通过egret提供的第三方库的方式使用的 javascript 文件,请将这些文件放在libs下,但不要放在modules下面。-->
  171. <!--other_libs_files_start-->
  172. <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/polyfill/promise.min.js"></script>
  173. <!--other_libs_files_end-->
  174.  
  175. <!--这个标签会被替换为项目中所有的 javascript 文件。删除 game_files 标签后,项目文件加载列表将不会变化,请谨慎操作!-->
  176. <!--game_files_start-->
  177. <script src="https://dsp.rayjump.com/playable/CloneEvolution3/main.min.js"></script>
  178. <!--game_files_end-->
  179. <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/jquery-2.1.1.min.js"></script>
  180.  
  181.  
  182. <script>
  183. eui.sys.useLocalMode = true; // true是用解决跨域的模式 false是用正常加载模式。
  184. function getAssestByKey(key)
  185. {
  186. return assestPackage[key];
  187. }
  188. </script>
  189.  
  190. </head>
  191. <body mark="mobvista">
  192. <script src="https://dsp.rayjump.com/playable/CloneEvolution3/statistics.js"></script>
  193. <div id="mobvista_flag" data-notice-url="%%mv_notice_url%%"></div>
  194. <div id="mv_stats" data-url="%%mv_impression_url%%" style="display:none;opacity:0"></div>
  195. <div id="mv_play" data-url="%%mv_play_url%%" style="opacity:0;display:none"></div>
  196. <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/base64.js"></script>
  197. <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/util.js"></script>
  198. <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/windvane.debug.js"></script>
  199. <script id = "assest"></script>
  200. <script type="text/javascript">
  201.  
  202.  
  203.  
  204.  
  205. var endscreen_type;
  206. var cid;
  207. var unit_id;
  208. var deviceid;
  209. var network_type;
  210. var request_id;
  211. // var jsstr;
  212. var devicetype;
  213. document.addEventListener('DOMContentLoaded', function(){
  214. eventInit();
  215. toggleCloseBtn2();
  216. }, false);
  217.  
  218. function urlParse(url)
  219. {
  220. var arr = [],obj={};
  221. if(url.indexOf('?') != -1)
  222. {
  223. var parseStr = url.split("?")[1];
  224. if(parseStr.indexOf("&") != -1)
  225. {
  226. arr = parseStr.split("&");
  227. for(var i = 0;i < arr.length;i++){
  228. obj[arr[i].split("=")[0]] = arr[i].split("=")[1];
  229. }
  230. }else{
  231. obj[parseStr.split("=")[0]] = parseStr.split("=")[1];
  232. }
  233. }
  234. return obj;
  235. }
  236.  
  237.  
  238. var campaignMap = {}
  239. function eventInit(){
  240. //alert("初始化");
  241. console.log("初始化")
  242.  
  243. utils.hybirdEvent({
  244. sClass: 'RewardJs',
  245. hybirdFn: 'getEndScreenInfo',
  246. params: {
  247. pageNo: 1,
  248. exclude_ids: []
  249. },
  250. succ: function (res) {
  251. //alert("初始化成功");
  252. if (res.campaignList && res.campaignList.length)
  253. {
  254. if (location.protocol === 'https:') {
  255. util.http2https(res);
  256. }
  257. // jsstr = JSON.stringify(res);
  258. var campaign = res.campaignList[0];
  259. document.body.setAttribute('campaignId', campaign.id);
  260. var device = res.device;
  261. campaignMap[campaign['id']] = campaign;
  262. endscreen_type = "H5";
  263. cid = campaign.id;
  264. unit_id = res.unit_id;
  265. var urlob = urlParse(campaign.notice_url);
  266. if(urlob)
  267. {
  268. request_id = urlob.k;//再解析
  269. }
  270. if(device)
  271. {
  272. network_type = device.network_type;
  273. deviceid = device.idfa;
  274. devicetype = device.plantform;
  275. }else
  276. {
  277. devicetype = "android";
  278. }
  279.  
  280.  
  281. } else {
  282. // me.noData()
  283. }
  284. },
  285. err: function (err) {
  286. // me.noData()
  287. }
  288. })
  289.  
  290. // document.addEventListener('webviewshow', function () {
  291. // console.log("30秒后关闭按钮出现")
  292. // }, false)
  293. }
  294.  
  295. function install()
  296. {
  297. console.log("安装软件")
  298. winSendGaByClickAD();
  299. }
  300.  
  301. function toggleCloseBtn()
  302. {
  303. console.log("出现关闭按钮")
  304. utils.hybirdEvent({
  305. sClass: 'RewardJs',
  306. hybirdFn: 'toggleCloseBtn',
  307. params: {
  308. "state": 1 // 出现
  309. },
  310. succ: function (res) {
  311.  
  312. },
  313. err: function () {
  314. // util.tips('Sorry, network error...');
  315. }
  316. })
  317. }
  318. function toggleCloseBtn2()
  319. {
  320. console.log("提示sdk不要出现关闭按钮")
  321. utils.hybirdEvent({
  322. sClass: 'RewardJs',
  323. hybirdFn: 'toggleCloseBtn',
  324. params: {
  325. "state": 2 // 不出现
  326. },
  327. succ: function (res) {
  328.  
  329. },
  330. err: function () {
  331. // util.tips('Sorry, network error...');
  332. }
  333. })
  334. }
  335. </script>
  336. <script>
  337. var isH = -1;
  338. function resizeGame()
  339. {
  340. var context = egret.MainContext.instance;
  341. context.stage.dispatchEventWith("resizeGame", false);
  342. }
  343. jQuery(window).resize(function() {
  344. // console.log("Size Changed");
  345. resizeGame();
  346. }),
  347. document.addEventListener("orientationchange", function() {
  348. console.log("Orientation Changed");
  349. resizeGame();
  350. }),
  351. jQuery(document).ready(function() {
  352. console.log("ready!");
  353. resizeGame();
  354. });
  355.  
  356. </script>
  357.  
  358.  
  359. <script type="text/javascript">
  360. document.addEventListener('webviewshow', function(){
  361. setTimeout(function () {
  362. toggleCloseBtn();
  363. }, 15000)
  364. }, false)
  365. </script>
  366.  
  367.  
  368. <div id=wrap>
  369. <div id=loader>
  370. <img src="https://dsp.rayjump.com/playable/CloneEvolution3/loading.gif" alt="">
  371. <span>LOADING...</span>
  372. </div>
  373. </div>
  374.  
  375.  
  376. <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
  377. data-entry-class="Main"
  378. data-orientation="auto"
  379. data-scale-mode="noScale"
  380. data-frame-rate="30"
  381. data-content-width="750"
  382. data-content-height="1334"
  383. data-show-paint-rect="false"
  384. data-multi-fingered="2"
  385. data-show-fps="false" data-show-log="false"
  386. data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
  387. </div>
  388. <script>
  389. /**
  390. * {
  391. * "renderMode":, //引擎渲染模式,"canvas" 或者 "webgl"
  392. * "audioType": "" //使用的音频类型,0:默认,1:qq audio,2:web audio,3:audio
  393. * "antialias": //WebGL模式下是否开启抗锯齿,true:开启,false:关闭,默认为false
  394. * }
  395. **/
  396. var baseUrl = "https://dsp.rayjump.com/playable/CloneEvolution3/";
  397. winTryPlayGame();
  398. egret.runEgret({renderMode:"webgl", audioType:2});
  399.  
  400. </script>
  401. </body>
  402. </html>
Add Comment
Please, Sign In to add comment