-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgame.html
55 lines (53 loc) · 1.68 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="scripts/game.js"></script>
<script src="scripts/scores.js"></script>
</head>
<body bgcolor="#345">
<div class="navbar">
<a class="active" href="game.html">Game</a>
<a href="scores.html">Score Board</a>
<a href="about.html">About</a>
</div>
<div id="titleContainer">
<img src="images/title.png" style="width: 608px">
</div>
<div id="mainContainer">
<div id="canvasContainer">
<div id="inputContainer" style="position:absolute; left: 100px; display: none">
<h3>You got to the leaderboard!</h3>
<h4 id="scoreShow">Your score is: </h4>
<table id="inputTable">
<tr>
<td>Enter your name:</td>
<td><input id="nameField" type="text" style="width:300px"/></td>
</tr>
<tr>
<td>Enter your email:</td>
<td><input id="mailField" type="email" style="width:300px"/></td>
</tr>
<tr>
<td></td>
<td><button id="sendButton" onClick="sendInfo()">Send</button></td>
</tr>
</table>
<h4 id="inputError">
</div>
<div id="looseContainer" style="position:absolute; left: 195px; top: 50px; display: none">
<h1 style="margin-bottom: -20px">You lost!<h1>
<h1 id="scoreDisplay">Your score is: </h1>
</div>
</div>
<img id="canvasBase" src="images/base.png">
<div id="buttonsContainer">
<button id="restartButton" onClick="restartGame()">Restart</button>
<button id="pauseButton">Pause</button>
<select id="countrySelector"></select>
</div>
</div>
</body>
</html>