qiuyunxia

Untitled

Jul 6th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.87 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/Fzqb_Mod/libs/modules/egret/egret.min.js"></script>
  163. <script egret="lib" src="https://dsp.rayjump.com/playable/Fzqb_Mod/libs/modules/egret/egret.web.min.js"></script>
  164. <script egret="lib" src="https://dsp.rayjump.com/playable/Fzqb_Mod/libs/modules/eui/eui.min.js"></script>
  165. <script egret="lib" src="https://dsp.rayjump.com/playable/Fzqb_Mod/libs/modules/res/res.min.js"></script>
  166. <script egret="lib" src="https://dsp.rayjump.com/playable/Fzqb_Mod/libs/modules/tween/tween.min.js"></script>
  167. <script egret="lib" src="https://dsp.rayjump.com/playable/Fzqb_Mod/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/Fzqb_Mod/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/Fzqb_Mod/main.min.js"></script>
  178. <!--game_files_end-->
  179. <script src="https://dsp.rayjump.com/playable/Fzqb_Mod/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/Fzqb_Mod/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/Fzqb_Mod/js/base64.js"></script>
  197. <script src="https://dsp.rayjump.com/playable/Fzqb_Mod/js/util.js"></script>
  198. <script src="https://dsp.rayjump.com/playable/Fzqb_Mod/js/windvane.debug.js"></script>
  199. <script id = "assest"></script>
  200. <script type="text/javascript">
  201. var endscreen_type;
  202. var cid;
  203. var unit_id;
  204. var deviceid;
  205. var network_type;
  206. var request_id;
  207. // var jsstr;
  208. var devicetype;
  209. document.addEventListener('DOMContentLoaded', function(){
  210. eventInit();
  211. toggleCloseBtn2();
  212. }, false);
  213.  
  214. function urlParse(url)
  215. {
  216. var arr = [],obj={};
  217. if(url.indexOf('?') != -1)
  218. {
  219. var parseStr = url.split("?")[1];
  220. if(parseStr.indexOf("&") != -1)
  221. {
  222. arr = parseStr.split("&");
  223. for(var i = 0;i < arr.length;i++){
  224. obj[arr[i].split("=")[0]] = arr[i].split("=")[1];
  225. }
  226. }else{
  227. obj[parseStr.split("=")[0]] = parseStr.split("=")[1];
  228. }
  229. }
  230. return obj;
  231. }
  232.  
  233.  
  234. var campaignMap = {}
  235. function eventInit(){
  236. //alert("初始化");
  237. console.log("初始化")
  238.  
  239. utils.hybirdEvent({
  240. sClass: 'RewardJs',
  241. hybirdFn: 'getEndScreenInfo',
  242. params: {
  243. pageNo: 1,
  244. exclude_ids: []
  245. },
  246. succ: function (res) {
  247. //alert("初始化成功");
  248. if (res.campaignList && res.campaignList.length)
  249. {
  250. if (location.protocol === 'https:') {
  251. util.http2https(res);
  252. }
  253. // jsstr = JSON.stringify(res);
  254. var campaign = res.campaignList[0];
  255. document.body.setAttribute('campaignId', campaign.id);
  256. var device = res.device;
  257. campaignMap[campaign['id']] = campaign;
  258. endscreen_type = "H5";
  259. cid = campaign.id;
  260. unit_id = res.unit_id;
  261. var urlob = urlParse(campaign.notice_url);
  262. if(urlob)
  263. {
  264. request_id = urlob.k;//再解析
  265. }
  266. if(device)
  267. {
  268. network_type = device.network_type;
  269. deviceid = device.idfa;
  270. devicetype = device.plantform;
  271. }else
  272. {
  273. devicetype = "android";
  274. }
  275.  
  276.  
  277. } else {
  278. // me.noData()
  279. }
  280. },
  281. err: function (err) {
  282. // me.noData()
  283. }
  284. })
  285.  
  286. // document.addEventListener('webviewshow', function () {
  287. // console.log("30秒后关闭按钮出现")
  288. // }, false)
  289. }
  290.  
  291. function install()
  292. {
  293. console.log("安装软件")
  294. winSendGaByClickAD();
  295. <!-- var campaignId = document.body.getAttribute('campaignId') -->
  296. <!-- utils.hybirdEvent({ -->
  297. <!-- sClass: 'RewardJs', -->
  298. <!-- hybirdFn: 'install', -->
  299. <!-- params: campaignMap[campaignId], // offerId -->
  300. <!-- succ: function (res) { -->
  301. <!-- console.log(res) -->
  302.  
  303. <!-- }, -->
  304. <!-- err: function () { -->
  305. <!-- // util.tips('Sorry, network error...'); -->
  306. <!-- } -->
  307. <!-- }) -->
  308. }
  309.  
  310. function toggleCloseBtn()
  311. {
  312. console.log("出现关闭按钮")
  313. utils.hybirdEvent({
  314. sClass: 'RewardJs',
  315. hybirdFn: 'toggleCloseBtn',
  316. params: {
  317. "state": 1 // 出现
  318. },
  319. succ: function (res) {
  320.  
  321. },
  322. err: function () {
  323. // util.tips('Sorry, network error...');
  324. }
  325. })
  326. }
  327. function toggleCloseBtn2()
  328. {
  329. console.log("提示sdk不要出现关闭按钮")
  330. utils.hybirdEvent({
  331. sClass: 'RewardJs',
  332. hybirdFn: 'toggleCloseBtn',
  333. params: {
  334. "state": 2 // 不出现
  335. },
  336. succ: function (res) {
  337.  
  338. },
  339. err: function () {
  340. // util.tips('Sorry, network error...');
  341. }
  342. })
  343. }
  344. </script>
  345. <script>
  346. var isH = -1;
  347. function resizeGame()
  348. {
  349. var context = egret.MainContext.instance;
  350. if(context && context.stage)
  351. {
  352. context.stage.dispatchEventWith("resizeGame", false);
  353. }
  354. }
  355. jQuery(window).resize(function() {
  356. // console.log("Size Changed");
  357. resizeGame();
  358. }),
  359. document.addEventListener("orientationchange", function() {
  360. console.log("Orientation Changed");
  361. resizeGame();
  362. }),
  363. jQuery(document).ready(function() {
  364. console.log("ready!");
  365. resizeGame();
  366. });
  367.  
  368.  
  369. </script>
  370.  
  371.  
  372. <script type="text/javascript">
  373. document.addEventListener('webviewshow', function(){
  374. setTimeout(function () {
  375. toggleCloseBtn();
  376. }, 15000);
  377. winTryPlayGame();
  378. }, false)
  379. </script>
  380.  
  381.  
  382. <div id=wrap>
  383. <div id=loader>
  384. <img src="https://dsp.rayjump.com/playable/Fzqb_Mod/loading.gif" alt="">
  385. <span>LOADING...</span>
  386. </div>
  387. </div>
  388.  
  389.  
  390. <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
  391. data-entry-class="Main"
  392. data-orientation="auto"
  393. data-scale-mode="noScale"
  394. data-frame-rate="30"
  395. data-content-width="750"
  396. data-content-height="1334"
  397. data-show-paint-rect="false"
  398. data-multi-fingered="2"
  399. data-show-fps="false" data-show-log="false"
  400. data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
  401. </div>
  402. <script>
  403. var baseUrl = "https://dsp.rayjump.com/playable/Fzqb_Mod/";
  404. window.addEventListener('load', function (e) {
  405. setTimeout(function() {
  406. /**
  407. * {
  408. * "renderMode":, //引擎渲染模式,"canvas" 或者 "webgl"
  409. * "audioType": "" //使用的音频类型,0:默认,1:qq audio,2:web audio,3:audio
  410. * "antialias": //WebGL模式下是否开启抗锯齿,true:开启,false:关闭,默认为false
  411. * }
  412. **/
  413. egret.runEgret({renderMode:"webgl", audioType:2});
  414. }, 5000)
  415. }, false);
  416.  
  417.  
  418. </script>
  419. </body>
  420. </html>
Add Comment
Please, Sign In to add comment