-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (40 loc) · 2.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Memory</title>
<meta name="description" content="The classic game of memory">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=DM+Mono&display=swap" rel="stylesheet">
</head>
<body>
<div id="page-container">
<h1 id="page-header" title="Memory">Memory</h1>
<h2 id="page-subheader" title="Coding Edition"><Coding Edition/></h2>
<section id="menu">
<h3>Select amount of cards:</h3>
<input type="radio" id="radio-card-6" name="card-number" value="6">
<label for="radio-card-6">6 cards</label> <br>
<input type="radio" id="radio-card-12" name="card-number" value="12" checked>
<label for="radio-card-12">12 cards</label> <br>
<input type="radio" id="radio-card-16" name="card-number" value="16">
<label for="radio-card-16">16 cards</label> <br>
<button id="btn-start" onclick="startGame()">Start game</button>
</section>
<section id="game-wrapper"></section>
<section id="score-screen">
<h2>You completed the game!</h2> <br>
<p id="total-moves"></p> <br>
<p id="total-elapsed-time">Total elapsed time</p>
<button onclick="playAgain()">Play again</button>
</section>
<footer>Tip: Use TAB to navigate and ENTER to activate selected card!</footer>
</div>
<script src="main.js" async defer></script>
</body>
</html>