forked from nethz/do-him
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdh.html
More file actions
134 lines (87 loc) · 3.22 KB
/
dh.html
File metadata and controls
134 lines (87 loc) · 3.22 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<script>
var WIDTH ,HEIGHT ;
;(function(scope){
if (window.screen){
var h=window.screen.availHeight;
var w=window.screen.availWidth;
if (h<1000){
WIDTH=960;
HEIGHT=600;
}else{
WIDTH=1024;
if (window.navigator.standalone){
HEIGHT=748;
}else{
HEIGHT=672;
}
}
}
var pixelRatio=window.devicePixelRatio || 1;
var vp=null;
if (pixelRatio==2){
vp='<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5" />';
}else{
vp='<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1" />';
}
// alert(window.screen.availHeight+"--"+window.innerHeight+"---"+vp);
document.write(vp);
})(this);
</script>
<!--
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1" />
-->
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Do Him</title>
<link rel="stylesheet" href="./client/ui/css/base.css" type="text/css" media="screen" />
<script type="text/javascript" src="./client/ui/js/base.js"></script>
<link href="main.css" rel="stylesheet" charset="utf-8" />
<script src="./client/client.js"></script>
<script src="./client/toucher/Controller.js"></script>
<script src="./client/toucher/TouchWrapper.js"></script>
<script src="./client/toucher/Listener.js"></script>
<script src="./client/toucher/custom/Tap.js"></script>
<script src="./client/toucher/custom/Joystick.js"></script>
<script src="./common/Base.js"></script>
<script src="./common/Timer.js"></script>
<script src="./common/Stage.js"></script>
<script src="./common/Person.js"></script>
<script src="./client/ClientBase.js"></script>
<script src="./client/Map.js"></script>
<script src="./client/PersonRender.js"></script>
<script src="./client/MapRender.js"></script>
<script src="./client/Game.js"></script>
<script src="main.js"></script>
<script>
</script>
<style>
</style>
</head>
<body >
<div id="info">info</div>
<div id="Stage">
<div class="joystick" >
<div id="slot1" class="slot">
<div id="stick1" class="stick">
</div>
</div>
</div>
<div id="did-text" class="did-text">你被 null 干了</div>
<div id="power-bar" class="power-bar"></div>
<div id="stick2" class="stick">
<span id="sticktext" style="display:block;margin:25px;margin-top:10px;color:red;">J</span>
</div>
<span class="player-num"><strong>在线 : </strong><em>0</em></span>
<span class="cur-score"><strong>干了 : </strong><em>0</em></span>
<span class="hi-score"><strong>被干 : </strong><em>0</em></span>
</div>
</body>
</html>