-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (69 loc) · 3.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/main.css" type="text/css">
<title>Mis typescript game :D</title>
</head>
<body>
<div class="container">
<div id="A-1" style="display: none">
<h1 class="text-center">My JS Game</h1>
<hr>
<div class="form-group">
<label for="name">Your name:</label>
<input type="text" class="form-control" id="name" placeholder="Enter your Name">
<div class="alert alert-danger" id ='errorMessage'>
<strong>Invalid Name!</strong>
</div>
</div>
<div class="form-group">
<label for="difficulty">Difficulty:</label>
<select class="form-control select-background" id="difficulty">
<optgroup label="Level">
<option value="0">Easy</option>
<option value="1">Normal</option>
<option value="2">Hard</option>
</optgroup>
</select>
</div>
<button id="newStart" class="btn btn-primary btn-block btn-lg">Start</button>
</div>
<div id="A-2" style="display: none">
<h1 class="text-center">Welcome</h1>
<hr>
<p class="text-center">Welcome <span id="playerName">d</span> !</p>
<p class="text-center">Selected diffculty is <span id="playerDifficulty"></span></p>
<p class="text-center">High Score : <span id="highestScore"></span></p>
<button id="forgetMe" class="btn btn-warning btn-block btn-lg">Forget Me</button>
<button id="startAgain" class="btn btn-primary btn-block btn-lg">Start</button>
</div>
<div id="B-1" style="display: none">
<div id="game"></div>
<p>Score : <span id="score">0</span></p>
<p>Missed green boxes : <span id="missedBoxes">0</span></p>
</div>
<div id="C-1" style="display: none">
<h1>My Game</h1>
<hr>
<p><span id="player"></span>!, You got a new high score!</p>
<br>
<p><span id="highScore"></span></p>
<button id="playAgain" class="btn btn-primary btn-block btn-lg">Play Again</button>
</div>
<div id="C-2" style="display: none">
<h1>My Game</h1>
<hr>
<p><span id="loserName"></span>!, You Lost.</p>
<p>current score : <span id="current-Score"></span></p>
<p>High score : <span id="High-Score"></span></p>
<button id="play-again" class="btn btn-primary btn-block btn-lg">Play Again</button>
</div>
</div>
<script src="js/classes.js"></script>
<script src="js/views.js"></script>
</body>
</html>