<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Benks点球大战</title>
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, 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>
html, body {
-ms-touch-action: none;
background: #888888;
padding: 0;
border: 0;
margin: 0;
height: 100%;
}
</style>
<!--这个标签为通过egret提供的第三方库的方式生成的 javascript 文件。删除 modules_files 标签后,库文件加载列表将不会变化,请谨慎操作!-->
<!--modules_files_start-->
<script egret="lib" src="libs/modules/egret/egret.js" src-release="libs/modules/egret/egret.min.js"></script>
<script egret="lib" src="libs/modules/egret/egret.web.js" src-release="libs/modules/egret/egret.web.min.js"></script>
<script egret="lib" src="libs/modules/game/game.js" src-release="libs/modules/game/game.min.js"></script>
<script egret="lib" src="libs/modules/game/game.web.js" src-release="libs/modules/game/game.web.min.js"></script>
<script egret="lib" src="libs/modules/tween/tween.js" src-release="libs/modules/tween/tween.min.js"></script>
<script egret="lib" src="libs/modules/res/res.js" src-release="libs/modules/res/res.min.js"></script>
<!--modules_files_end-->
<!--这个标签为不通过egret提供的第三方库的方式使用的 javascript 文件,请将这些文件放在libs下,但不要放在modules下面。-->
<!--other_libs_files_start-->
<!--other_libs_files_end-->
<!--这个标签会被替换为项目中所有的 javascript 文件。删除 game_files 标签后,项目文件加载列表将不会变化,请谨慎操作!-->
<!--game_files_start-->
<script egret="game" src="bin-debug/data/Data.js"></script>
<script egret="game" src="bin-debug/Main.js"></script>
<script egret="game" src="bin-debug/page/Game.js"></script>
<script egret="game" src="bin-debug/page/HomeGame.js"></script>
<script egret="game" src="bin-debug/tool/BitmapTool.js"></script>
<script egret="game" src="bin-debug/tool/GamePaiMing.js"></script>
<script egret="game" src="bin-debug/tool/GameTool.js"></script>
<script egret="game" src="bin-debug/tool/GameViewAnim.js"></script>
<script egret="game" src="bin-debug/tool/LoadIng.js"></script>
<script egret="game" src="bin-debug/tool/MessageTool.js"></script>
<script egret="game" src="bin-debug/tool/MyPhoto.js"></script>
<script egret="game" src="bin-debug/tool/MyUtils.js"></script>
<script egret="game" src="bin-debug/ulits/AnimationPeople.js"></script>
<!--game_files_end-->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?20a551695932be1e1da2f61954dd10b2";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<style>
body{position:relative;}
body img{position:absolute; top:35%; left:35%; display:none;}
</style>
</head>
<body>
<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="640"
data-content-height="1036"
data-show-paint-rect="false"
data-multi-fingered="2"
data-show-fps="false" data-show-log="false"
data-log-filter="" data-show-fps-style="x:0,y:0,size:30,textColor:0x00c200,bgAlpha:0.9">
</div>
<img src="er.png" id="imger">
<script>
//默认使用 WebGL 渲染模式
egret.runEgret({renderMode:"webgl"});
var sh = window.screen.height;
var sw = window.screen.width;
var imgid=document.getElementById("imger");
var img=new Image();
img.src=imgid.src;
var w = (sw/3);
imgid.style.width=w+"px";//;
imgid.style.height=w+"px";//;
function setyc(){
imgid.style.display = 'none';
}
function setxs(){
imgid.style.display = 'block';
}
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
wx.config({
debug: false,
appId: localStorage['appId'],
timestamp: localStorage['timestamp'],
nonceStr: localStorage['nonceStr'],
signature: localStorage['signature'],
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onVoiceRecordEnd',
'playVoice',
'onVoicePlayEnd',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
wx.ready(function () {
wx.onMenuShareAppMessage({
title: 'Benks点球大战',
desc: '亲!快来参加Benks点球大战!',
link: 'http://wap.i-h5.cn/hhs_game/dianqiudasai/weixin.php',
imgUrl: 'http://wap.i-h5.cn/hhs_game/dianqiudasai/fenxiang.png',
trigger: function (res) {
},
success: function (res) {
},
cancel: function (res) {
},
fail: function (res) {
}
});
// 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
wx.onMenuShareTimeline({
title: 'Benks点球大战',
desc: '亲!快来参加Benks点球大战!',
link: 'http://wap.i-h5.cn/hhs_game/dianqiudasai/weixin.php',
imgUrl: 'http://wap.i-h5.cn/hhs_game/dianqiudasai/fenxiang.png',
trigger: function (res) {
},
success: function (res) {
},
cancel: function (res) {
},
fail: function (res) {
}
});
});
window.getQueryString = function(name){
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
</script>
</body>
</html>