forked from DroopCat/Scope
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
191 lines (187 loc) · 5.9 KB
/
index.html
File metadata and controls
191 lines (187 loc) · 5.9 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Scope</title>
<link rel="stylesheet" type="text/css" href="/main.css">
<link rel="stylesheet" type="text/css" href="/setup.css">
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400&display=swap" rel="stylesheet">
</head>
<body>
<!-- Splash -->
<div id="splash">
<img id="splashlogo" src="/imgs/droopcatlogo.svg" alt="hoi">
</div>
<!-- Splash -->
<div id="incompatable">
<h1>This browser/device is not compatable with Scope. :( <a href="https://github.com/DroopCat/Scope" style="color:#6495ed;">More info</a></h1>
</div>
<!-- Setup menus -->
<div id="ftsetup">
<div id="setupgun" class="setup">
<h1>Setup<br>your gun</h1>
<div id="power">
<img src="/icons/gun_power_button.svg" alt="power button">
<h2>Press the power button<br>on the side of your gun</h2>
</div>
<div class="btncontainer">
<div class="nextbtn greenbtn unselectable" id="connectGunbtn">
<h3>Connect Gun</h3>
</div>
</div>
</div>
<div id="setupphone" class="setup">
<h1>Setup<br>your phone</h1>
<div id="blegps">
<div class="permbox" id="fullscreenPerm">
<h3 class="permboxtext unselectable">Go Fullscreen</h3>
</div>
<div class="permbox" id="wakeLockPerm">
<h3 class="permboxtext unselectable">Turn on wake lock</h3>
</div>
<div class="permbox" id="locationPerm">
<h3 class="permboxtext unselectable">Allow Location</h3>
</div>
</div>
</div>
<div id="setupusername" class="setup">
<h1>Pick a<br>Username</h1>
<form onsubmit="submitUsername();return false">
<input id="username" type="text" placeholder="username..." autocomplete="off">
</form>
<div class="btncontainer">
<div onclick="submitUsername()" class="nextbtn greenbtn unselectable" id="usernamebtn">
<h3>Go</h3>
</div>
</div>
</div>
</div>
<!-- Reconnection menus -->
<div class="reconnect">
</div>
<!-- Leaderboard -->
<div id="leaderboard">
<div id="leaderboardTop">
<h1>Game over</h1>
</div>
<div id="leaderboardList">
<table>
<tr>
<th>Name</th>
<th>Kills</th>
<th>Assists</th>
<th>Deaths</th>
</tr>
<tbody id="scoreboardBody">
<span class="loader"></span>
</tbody>
</table>
</div>
<div id="leaderboardBottom">
<div id="continueButton">
<h1>Continue</h1>
</div>
</div>
</div>
<!-- Lobby -->
<div id="lobby">
<div id="lobbybar">
<img src="/icons/settings.svg" alt="settings">
<h1>Player Lobby</h1>
</div>
<div id="roster">
<div class="player">
<h3>Nobody :'(</h3>
</div>
</div>
<div id="readyContainer">
<div id="readyBtn">
<h1>Ready</h1>
</div>
</div>
</div>
<!-- In game overlay stuff -->
<div id="countdown">
<h1 id="startCountdownNumber">5</h1>
</div>
<div id="death">
<h1>You Died.</h1>
<h3>Killed by</h3>
<h2 id="killedBy">Invisible Man</h2>
<h3>With</h3>
<h2 id="killedWith">Magic :O</h2>
<h4>Respawning in</h4>
<h5 id="respawnTimer">🕙</h5>
</div>
<div id="hit"></div>
<div id="dragoverlay" ondragover="allowDrop(event)">
<h1>Send item to nearby player</h1>
</div>
<!-- Main screen -->
<div id="mainScreen">
<!-- <h1 id="ir">IrPacket</h1>
<h1 id="btn">IrPacket</h1>
<h1 id="voltage">IrPacket</h1>
<h1 id="flags">IrPacket</h1>
<h1 id="irsense">IrPacket</h1>
<button id="magicButton" type="button">Send packet</button>
<h1 id="health">Maximum Health!</h1>
<progress value="25" max="100"></progress>
<div id="dragthing" class="draggable">
<h1>drag test</h1>
</div> -->
<div id="mainTopBar">
<img src="/icons/settings.svg" alt="settings">
<div id="mainCountdown">
<h2 id="gameTimerElement">7:35</h2>
<h4>REMAINING</h4>
</div>
</div>
<div id="mainStatsBar">
<div>
<img src="/icons/crosshair.svg" alt="settings">
<h2 id="kills">3</h2>
</div>
<div>
<h2 id="ingameleaderboard">2nd</h2>
</div>
<div>
<img src="/icons/skull.svg" alt="settings">
<h2 id="deaths">1</h2>
</div>
</div>
<div id="middlePanel">
<div id="mapContainer">
<canvas id="mainCanvas">
</canvas>
</div>
</div>
<div>
</div>
<div id="mainBottomBar">
<div id="mainBottomBarLeft">
<div id="ammoBox">
<img src="/icons/ammo.svg" alt="ammo">
<h3 id=ammoDisplayElement>54/144</h3>
</div>
</div>
<div id="mainBottomBarMiddle">
<progress id="healthBar" value="25" max="100"></progress>
</div>
<div id="mainBottomBarRight">
<img src="/icons/backpack.svg" alt="backpack">
</div>
</div>
</div>
<!-- Scripts -->
<script src="/socket.io/socket.io.js"></script>
<script src="src/client/map.js"></script>
<script src="src/client/game.js"></script>
<script src="src/client/services/audio.js"></script>
<script src="src/client/services/recoilweapon.js"></script>
<script src="src/client/services/networking.js"></script>
<script src="src/client/utils/utils.js"></script>
<script src="src/client/utils/setup.js"></script>
</body>
</html>