This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
76 lines (64 loc) · 2.47 KB
/
index.html
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
<!--=========================================================================-->
<!--= Pirate Ship Battles =-->
<!--=========================================================================-->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Title -->
<title>Pirate Ship Battles</title>
<!-- Styles -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" type="text/css" href="client/css/style.css" />
</head>
<body>
<!-- Form -->
<div id="signDiv">
<div class="signDiv-content">
<h1>Pirate Ship Battles</h1>
<p>Enter your name</p>
<input id="signdivusername" type="text" placeholder="Username"/>
<p id="errorLog"></p>
<div><input id="mobilecheckbox" type="checkbox" onclick="toggle();"><span>Mobile Mode</span></div>
<button id="entername" class="hidden">PLAY</button>
</div>
<div id="howto" class="howto">
<p><span>W</span>: Up</p>
<p><span>A</span>: Left</p>
<p><span>S</span>: Down</p>
<p><span>D</span>: Right</p>
<p><span>J</span>: Shoot Left</p>
<p><span>K</span>: Shoot Right </p>
</div>
</div>
<!-- Game -->
<div id="gameDiv" display="none"></div>
<!-- Scripts -->
<script src="client/lib/phaser.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="client/util.js"></script>
<script src="client/players.js"></script>
<script src="client/hud.js"></script>
<script src="client/item.js"></script>
<script src="client/login.js"></script>
<script src="client/main.js"></script>
<script src="client/game.js"></script>
<script>
signdivusername.onkeypress = function(e) {
if (e.keyCode == 13) entername.click();
}
function toggle() {
var howto = document.getElementById("howto");
if (document.getElementById('mobilecheckbox').checked){
howto.style.display = "none";
} else {
howto.style.display = "block";
}
}
</script>
</body>
</html>
<!--=========================================================================-->