-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (57 loc) · 1.62 KB
/
index.html
File metadata and controls
70 lines (57 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>测测你的反应速度-----coding by loster</title>
<link rel="icon" type="image/GIF" href="res/favicon.ico"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="yes"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<style>
body, canvas, div {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
</style>
</head>
<body style="padding:0; margin: 0;">
<canvas id="gameCanvas" width="800" height="450"></canvas>
<script src="cocos2d.js"></script>
<script src="WeixinApi.js"></script>
<script type="text/javascript">
// 微信分享的数据
window.wxData = {
"appId": "",
"imgUrl":"",
"link":'http://iloveyoulhx.sinaapp.com/ReactionTime/',
"desc":"测测你的反应速度,快来试试吧",
"title":"测试反应速度"
};
function share(result){
};
WeixinApi.ready(function(Api) {
// 分享的回调
var wxCallbacks = {
ready : function() {
},
cancel : function(resp) {
},
fail : function(resp) {
},
confirm : function(resp) {
},
all : function(resp) {
}
};
Api.shareToFriend(wxData, wxCallbacks);
Api.shareToTimeline(wxData, wxCallbacks);
Api.shareToWeibo(wxData, wxCallbacks);
});
</script>
</body>
</html>