Skip to content

Commit e7a8630

Browse files
author
keger
committed
update game
1 parent 1d0c53c commit e7a8630

File tree

2 files changed

+125
-26
lines changed

2 files changed

+125
-26
lines changed

.DS_Store

-2 KB
Binary file not shown.

index.html

Lines changed: 125 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,129 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta HTTP-EQUIV="pragma" CONTENT="no-cache" />
6-
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate" />
7-
<meta HTTP-EQUIV="expires" CONTENT="0" />
8-
<title>goujile游戏</title>
9-
<meta name="keywords" content="" />
10-
<meta name="description" content="GouJiLe游戏频道为您提供。" />
11-
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1.0, maximum-scale=1, user-scalable=no"/>
12-
</head>
13-
<body>
14-
<div style="display:none">
15-
<script type="text/javascript">
16-
function gogame9g(){
17-
18-
if(Math.random()>0){
19-
window.location="http://game.goujile.com";
20-
}
21-
else{
22-
23-
}
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport"
6+
content="width=device-width,user-scalable=no,initial-scale=1.0" />
7+
<meta name="apple-mobile-web-app-capable" content="yes" />
8+
<title>贱人配对</title>
9+
<link type="text/css" href="css/game_base.css" rel="stylesheet" />
10+
<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
11+
12+
<script type="text/javascript" src="js/game_base.js"></script>
13+
<script type="text/javascript" src="js/createjs-2013.12.12.min.js"></script>
14+
<script type="text/javascript" src="js/createjs_game.js"></script>
15+
<script type="text/javascript" src="js/jquery.cookie.js"></script>
16+
<script type="text/javascript" src="js/main.js"></script>
17+
18+
<style type="text/css">
19+
.follow {
20+
z-index: 100;
21+
position: absolute;
22+
left: -500px;
23+
bottom: 0px;
24+
width: 20%;
25+
opacity: 0;
26+
}
27+
28+
.follow img {
29+
width: 100%
2430
}
25-
window.setTimeout("gogame9g()",500)
26-
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
2731

28-
</script>
32+
.moreGames {
33+
z-index: 100;
34+
position: absolute;
35+
bottom: 10px;
36+
margin-left: auto;
37+
margin-right: auto;
38+
width: 100%;
39+
text-align: center;
40+
}
41+
42+
.moreGames a {
43+
font: 11px Arial;
44+
text-decoration: none;
45+
background-color: #C0C0C0;
46+
color: #FFFFFF;
47+
padding: 2px 10px 2px 10px;
48+
border-radius: 8px;
49+
-webkit-border-radius: 8px;
50+
}
51+
</style>
52+
</head>
53+
<body>
54+
<canvas id="stage">
55+
您的浏览器不支持html5, 请换用支持html5的浏览器
56+
</canvas>
57+
<script language=javascript>
58+
var mebtnopenurl = 'http://game.id87.com/youxi/index.html'; //更多游戏链接
59+
window.shareData = {
60+
"imgUrl": "./img/icon.png", //分享朋友圈时的图标
61+
"timeLineLink": "http://game.id87.com/youxi/jrpd/", //分享朋友圈时的URL
62+
"tTitle": "贱人配对", //分享朋友圈时的标题
63+
"tContent": "贱人就是矫情……我配我配我配配配" //分享朋友圈时的内容
64+
};
65+
66+
function goHome(){
67+
window.location=mebtnopenurl;
68+
}
69+
function dp_share(){
70+
document.title = "瞧瞧!我把"+myscore+"对贱人给办了!贱人配对我最牛,你敢来挑战吗?";
71+
document.getElementById("share").style.display="";
72+
window.shareData.tTitle = document.title;
73+
}
74+
function dp_Ranking(){
75+
//alert("到更多");
76+
window.location=mebtnopenurl;
77+
}
2978

30-
</div>
79+
function showAd(){
80+
}
81+
function hideAd(){
82+
}
83+
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
84+
85+
WeixinJSBridge.on('menu:share:appmessage', function(argv) {
86+
WeixinJSBridge.invoke('sendAppMessage', {
87+
"img_url": window.shareData.imgUrl,
88+
"link": window.shareData.timeLineLink,
89+
"desc": window.shareData.tContent,
90+
"title": window.shareData.tTitle
91+
}, onShareComplete);
92+
});
93+
94+
WeixinJSBridge.on('menu:share:timeline', function(argv) {
95+
WeixinJSBridge.invoke('shareTimeline', {
96+
"img_url": window.shareData.imgUrl,
97+
"img_width": "640",
98+
"img_height": "640",
99+
"link": window.shareData.timeLineLink,
100+
"desc": window.shareData.tContent,
101+
"title": window.shareData.tTitle
102+
}, onShareComplete);
103+
});
104+
}, false);
105+
</script>
106+
<div id=share style="display: none">
107+
<img width=100% src="img/share.png"
108+
style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
109+
ontouchstart="document.getElementById('share').style.display='none';">
110+
</div>
111+
<div style="display: none;">
112+
<script type="text/javascript">
113+
114+
var myData = {};
115+
function dp_submitScore(score){
116+
myscore=score;
117+
myData.score = score;
118+
myData.scoreName = score+"对贱人";
119+
if(score>5){
120+
if (confirm("真行,配成了"+score+"对贱人!要不要通知下小伙伴们呢?")){
121+
dp_share();
122+
}
123+
}
124+
}
125+
function onShareComplete(res) {
126+
}
127+
</script>
128+
</body>
129+
</html>

0 commit comments

Comments
 (0)