-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (73 loc) · 2.37 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
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<!-- Nathan Kanigsberg
Project 1 - Juno College JavaScript Course
August 3, 2020 -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mastermind Game</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
<!-- Stylesheet -->
<link rel="stylesheet" href="./styles/styles.css">
</head>
<body>
<!-- header -->
<header>
<h1>Project 1 - Mastermind Game</h1>
<h2>by Nathan Kanigsberg</h2>
</header>
<!-- main -->
<main>
<div class="wrapper">
<div class="left-column">
<!-- instructions -->
<div class="container instructions-container">
<div class="instructions">
<h3>Instructions:</h3>
<p>Guess the secret code!</p>
<p>Click on a circle in the active row to change its colour. There are six colours:</p>
<div class="colours">
<span class="game-piece red"></span>
<span class="game-piece green"></span>
<span class="game-piece blue"></span>
<span class="game-piece yellow"></span>
<span class="game-piece orange"></span>
<span class="game-piece purple"></span>
</div>
<p>After each guess you will see:</p>
<div class="score-pips">
<p><span class="score-pip correctColour"></span> if a colour is correct, but in the wrong location</p>
<p><span class="score-pip correctLocation"></span> if both the colour & location are correct</p>
</div>
<p>The order of the scoring pegs does not matter.</p>
<p class="good-luck">Good luck!</p>
</div>
</div>
<!-- 'give up' button and solution -->
<div class="container give-up-container">
<button class="give-up">
I give up!
</button>
</div>
</div>
<!-- game board -->
<div class="container game-container">
<div class="game-board">
<!-- game content generated here -->
</div>
<button class="submit">Submit Row</button>
</div>
</div>
</main>
<!-- footer -->
<footer>
<p>Created at <a href="https://junocollege.com/">Juno College</a></p>
</footer>
<!-- jQuery -->
<script src='https://code.jquery.com/jquery-3.5.1.min.js' integrity='sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=' crossorigin='anonymous'></script>
<!-- script -->
<script src="./script.js"></script>
</body>
</html>