Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Mintergral Interactive Ad</title>
- <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no"/>
- <meta name="apple-mobile-web-app-capable" content="yes"/>
- <meta name="full-screen" content="true"/>
- <meta name="screen-orientation" content="portrait"/>
- <meta name="x5-fullscreen" content="true"/>
- <meta name="360-fullscreen" content="true"/>
- <style>
- * {
- padding: 0;
- margin: 0
- }
- body,html {
- background-color: #000;
- overflow: hidden;
- touch-action: none;
- -ms-touch-action: none;
- width: 100%;
- height: 100%
- }
- #wrap {
- width: 100%;
- height: 100%
- }
- #loader {
- width: 230px;
- height: 246px;
- position: absolute;
- top: 50%;
- left: 50%;
- margin-left: -115px;
- margin-top: -123px;
- z-index: 1;
- color: #fff;
- font-weight: 700;
- font-family: Arial,sans-serif;
- font-size: 20px
- }
- #loader img {
- width: 100px
- }
- #loader * {
- display: block;
- margin: 20px auto
- }
- #loader .fallback,#loader .icon {
- border-radius: 10px;
- width: 122px;
- height: 122px
- }
- #loader .fallback {
- background-size: 122px 122px
- }
- #loader .icon {
- background-size: 122px 122px
- }
- #loader span {
- text-align: center
- }
- #MV_logo {
- z-index: 9999;
- position: absolute;
- right:-40px;
- bottom:0px;
- }
- #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: 700;
- 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-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>
- <style>
- html, body {
- -ms-touch-action: none;
- background: #000000;
- padding: 0;
- border: 0;
- margin: 0;
- height: 100%;
- }
- </style>
- <!--这个标签为通过egret提供的第三方库的方式生成的 javascript 文件。删除 modules_files 标签后,库文件加载列表将不会变化,请谨慎操作!-->
- <!--modules_files_start-->
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/egret/egret.min.js"></script>
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/egret/egret.web.min.js"></script>
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/eui/eui.min.js"></script>
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/res/res.min.js"></script>
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/tween/tween.min.js"></script>
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/libs/modules/game/game.min.js"></script>
- <!--modules_files_end-->
- <!--这个标签为不通过egret提供的第三方库的方式使用的 javascript 文件,请将这些文件放在libs下,但不要放在modules下面。-->
- <!--other_libs_files_start-->
- <script egret="lib" src="https://dsp.rayjump.com/playable/CloneEvolution3/polyfill/promise.min.js"></script>
- <!--other_libs_files_end-->
- <!--这个标签会被替换为项目中所有的 javascript 文件。删除 game_files 标签后,项目文件加载列表将不会变化,请谨慎操作!-->
- <!--game_files_start-->
- <script src="https://dsp.rayjump.com/playable/CloneEvolution3/main.min.js"></script>
- <!--game_files_end-->
- <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/jquery-2.1.1.min.js"></script>
- <script>
- eui.sys.useLocalMode = true; // true是用解决跨域的模式 false是用正常加载模式。
- function getAssestByKey(key)
- {
- return assestPackage[key];
- }
- </script>
- </head>
- <body mark="mobvista">
- <script src="https://dsp.rayjump.com/playable/CloneEvolution3/statistics.js"></script>
- <div id="mobvista_flag" data-notice-url="%%mv_notice_url%%"></div>
- <div id="mv_stats" data-url="%%mv_impression_url%%" style="display:none;opacity:0"></div>
- <div id="mv_play" data-url="%%mv_play_url%%" style="opacity:0;display:none"></div>
- <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/base64.js"></script>
- <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/util.js"></script>
- <script src="https://dsp.rayjump.com/playable/CloneEvolution3/js/windvane.debug.js"></script>
- <script id = "assest"></script>
- <script type="text/javascript">
- var endscreen_type;
- var cid;
- var unit_id;
- var deviceid;
- var network_type;
- var request_id;
- // var jsstr;
- var devicetype;
- document.addEventListener('DOMContentLoaded', function(){
- eventInit();
- toggleCloseBtn2();
- }, false);
- function urlParse(url)
- {
- var arr = [],obj={};
- if(url.indexOf('?') != -1)
- {
- var parseStr = url.split("?")[1];
- if(parseStr.indexOf("&") != -1)
- {
- arr = parseStr.split("&");
- for(var i = 0;i < arr.length;i++){
- obj[arr[i].split("=")[0]] = arr[i].split("=")[1];
- }
- }else{
- obj[parseStr.split("=")[0]] = parseStr.split("=")[1];
- }
- }
- return obj;
- }
- var campaignMap = {}
- function eventInit(){
- //alert("初始化");
- console.log("初始化")
- utils.hybirdEvent({
- sClass: 'RewardJs',
- hybirdFn: 'getEndScreenInfo',
- params: {
- pageNo: 1,
- exclude_ids: []
- },
- succ: function (res) {
- //alert("初始化成功");
- if (res.campaignList && res.campaignList.length)
- {
- if (location.protocol === 'https:') {
- util.http2https(res);
- }
- // jsstr = JSON.stringify(res);
- var campaign = res.campaignList[0];
- document.body.setAttribute('campaignId', campaign.id);
- var device = res.device;
- campaignMap[campaign['id']] = campaign;
- endscreen_type = "H5";
- cid = campaign.id;
- unit_id = res.unit_id;
- var urlob = urlParse(campaign.notice_url);
- if(urlob)
- {
- request_id = urlob.k;//再解析
- }
- if(device)
- {
- network_type = device.network_type;
- deviceid = device.idfa;
- devicetype = device.plantform;
- }else
- {
- devicetype = "android";
- }
- } else {
- // me.noData()
- }
- },
- err: function (err) {
- // me.noData()
- }
- })
- // document.addEventListener('webviewshow', function () {
- // console.log("30秒后关闭按钮出现")
- // }, false)
- }
- function install()
- {
- console.log("安装软件")
- winSendGaByClickAD();
- }
- function toggleCloseBtn()
- {
- console.log("出现关闭按钮")
- utils.hybirdEvent({
- sClass: 'RewardJs',
- hybirdFn: 'toggleCloseBtn',
- params: {
- "state": 1 // 出现
- },
- succ: function (res) {
- },
- err: function () {
- // util.tips('Sorry, network error...');
- }
- })
- }
- function toggleCloseBtn2()
- {
- console.log("提示sdk不要出现关闭按钮")
- utils.hybirdEvent({
- sClass: 'RewardJs',
- hybirdFn: 'toggleCloseBtn',
- params: {
- "state": 2 // 不出现
- },
- succ: function (res) {
- },
- err: function () {
- // util.tips('Sorry, network error...');
- }
- })
- }
- </script>
- <script>
- var isH = -1;
- function resizeGame()
- {
- var context = egret.MainContext.instance;
- context.stage.dispatchEventWith("resizeGame", false);
- }
- jQuery(window).resize(function() {
- // console.log("Size Changed");
- resizeGame();
- }),
- document.addEventListener("orientationchange", function() {
- console.log("Orientation Changed");
- resizeGame();
- }),
- jQuery(document).ready(function() {
- console.log("ready!");
- resizeGame();
- });
- </script>
- <script type="text/javascript">
- document.addEventListener('webviewshow', function(){
- setTimeout(function () {
- toggleCloseBtn();
- }, 15000)
- }, false)
- </script>
- <div id=wrap>
- <div id=loader>
- <img src="https://dsp.rayjump.com/playable/CloneEvolution3/loading.gif" alt="">
- <span>LOADING...</span>
- </div>
- </div>
- <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
- data-entry-class="Main"
- data-orientation="auto"
- data-scale-mode="noScale"
- data-frame-rate="30"
- data-content-width="750"
- data-content-height="1334"
- data-show-paint-rect="false"
- data-multi-fingered="2"
- data-show-fps="false" data-show-log="false"
- data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
- </div>
- <script>
- /**
- * {
- * "renderMode":, //引擎渲染模式,"canvas" 或者 "webgl"
- * "audioType": "" //使用的音频类型,0:默认,1:qq audio,2:web audio,3:audio
- * "antialias": //WebGL模式下是否开启抗锯齿,true:开启,false:关闭,默认为false
- * }
- **/
- var baseUrl = "https://dsp.rayjump.com/playable/CloneEvolution3/";
- winTryPlayGame();
- egret.runEgret({renderMode:"webgl", audioType:2});
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment