-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (72 loc) · 2.55 KB
/
index.html
File metadata and controls
73 lines (72 loc) · 2.55 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
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style.css" />
<noscript>
<div class="popup" style="display: block;">
<div class="popup-content">
<h3 style="color:red">JavaScript is not enabled!</h3>
<br>
<p>Please enable javascript in your browser and reload the page!</p>
</div>
</div>
</noscript>
<title>Memory</title>
</head>
<body>
<div class="centerDiv">
<h1>Memory</h1>
<div class="configuration" id="configuration">
<div class="columnContainer">
<p>Select Memory Pair Size:</p>
<div class="simpleContainer">
<p id="outputPairSize">5</p>
<input type="range" min="5" max="25" value="5" class="slider" id="pairRange" oninput="setPairRange()" />
</div>
</div>
<hr>
<div class="columnContainer">
<p>Select Players:</p>
<div class="simpleContainer">
<p id="outputPlayerSize">1</p>
<input type="range" min="1" max="4" value="1" class="slider" id="playerRange" oninput="setPlayerRange()" />
</div>
</div>
<hr>
<div class="playerNames columnContainer" id="playerNames">
<div class="playerSetup">
<p>Player 1</p>
<input type="text" id="player1" placeholder="Enter Name..."/>
</div>
</div>
<div class="rowContainer">
<button onclick="resetSettings()">Reset</button>
<button onclick="startGame()">Start Game!</button>
</div>
</div>
<div class="gameScreen" id="gameScreen">
<div class="gameContainer" id="game">
<div class="simpleContainer info">
<p id="time">00:12</p>
<p id="totalTries">Total Tries: 0</p>
</div>
<div id="playerAvatars"></div>
<div id="board" class="memory-game"></div>
</div>
<button class="resetGame" id="resetGame" onclick="resetGame()">Quit</button>
</div>
</div>
<div id="winnerPopup" class="popup">
<div class="popup-content">
<span class="close" onclick="closePopup()">×</span>
<h1>Congratulations</h1>
<p id="winner"></p>
<p id="highestPoints">Score: </p>
<p id="playerTries">Tries: </p>
<p id="playTime">Playtime: </p>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html