-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
57 lines (57 loc) · 2.89 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
<!--*************************************************************************************************************
* @description Markup used for the Tic-Tac-Toe game
* @createdDate 05/21/2020
* @author Aggie Wheeler Bateman
*****************************************************************************************************************
* Modification Log
* Developer name Date Description of changes
* Steven Bateman 05/23/2020 Added the toggle-container element and its children to hold a toggle button
* for enabling and disabling hard mode, with a click listener added in the
* hard-mode.js file. Additionally added a CSS stylesheet to be imported for
* use with the hard mode toggle, as well as a small script tag that sets
* a global module variable to make the hard-mode.js file compatible with
* Node environments to reach 100% test coverage
**************************************************************************************************************-->
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<link href="css/style.css" rel="stylesheet">
<link href="css/hard-mode-toggle.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Galindo&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta meta charset="UTF-8">
</head>
<body>
<h1>Tic Tac Toe</h1>
<p>Select cross or nought:</p>
<div id="selection">
<div id="cross"><img src="media/cross.png" alt=""></div>
<div id="nought"><img src="media/nought.png" alt=""></div>
</div>
<div id="board-hide">
<div id="a-box" class="unmarked"></div>
<div id="b-box" class="unmarked"></div>
<div id="c-box" class="unmarked"></div>
<div id="d-box" class="unmarked"></div>
<div id="e-box" class="unmarked"></div>
<div id="f-box" class="unmarked"></div>
<div id="g-box" class="unmarked"></div>
<div id="h-box" class="unmarked"></div>
<div id="i-box" class="unmarked"></div>
</div>
<button type="button" id="button-hide">Play Again?</button>
<div class="toggle-container hide">
<p>Rage Mode</p>
<div class="hard-mode-toggle">
<div class="toggle-button"></div>
</div>
</div>
<footer></footer>
<script>
var module = {}; // Used for 100% coverage of the hard-mode.js file
</script>
<script src="js/hard-mode.js"></script>
<script src="js/tic-tac-toe.js"></script>
</body>
</html>