-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (95 loc) · 4.29 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic Tac Toe Spooky Edition</title>
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ranchers&display=swap">
<!-- Materialize.css -->
<link rel="stylesheet" type="text/css" href="styles/materialize.min.css" media="screen,projection"/>
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="styles/style.css">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
</head>
<body>
<!-- Game Menu Modal -->
<div id="game-menu-modal" class="modal modal-fixed-footer">
<div class="modal-content">
<h2 class="title">Tic Tac Toe</h3>
<h4 class="sub-title">Spooky Edition</h4>
<p class="description">Tic-Tac-Toe is a simple game in which 2 players alternate diferent markings in a 3x3 grid. The first to complete either a full straight line (row or column) or a diagonal with its markings, wins!</p>
<p>
<label>
<input class="with-gap" name="game-mode" id="human-v-human" type="radio" />
<span class="game-option-text">Human vs Human</span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="game-mode" id="human-v-computer" type="radio" checked/>
<span class="game-option-text">Human vs Monster</span>
</label>
</p>
</div>
<div class="modal-footer">
<button id="next-button" class="waves-effect waves-light btn-small blue-grey darken-4">Next</button>
</div>
</div>
<!-- Choose Character Modal -->
<div id="choose-character-modal" class="modal modal-fixed-footer">
<div class="modal-content">
<h2 class="title">Player One</h2>
<h4 class="sub-title">Choose Character:</h4>
<div class="character-container">
<div data="ghost" class="character"><i class="fas fa-ghost"></i></div>
<div data="cat" class="character"><i class="fas fa-cat"></i></div>
<div data="spider" class="character"><i class="fas fa-spider"></i></div>
<div data="skull" class="character"><i class="fas fa-skull"></i></div>
</div>
</div>
<div class="modal-footer">
<button id="start-game-button" class="waves-effect waves-light btn-small blue-grey darken-4">Start Game</button>
</div>
</div>
<!-- Game Board -->
<div class="game-container">
<h2 class="game-title">Tic Tac Toe</h2>
<h4 class="sub-title">Spooky Edition</h4>
<div class="game-board">
<div data-index="0" class="game-spot"></div>
<div data-index="1" class="game-spot"></div>
<div data-index="2" class="game-spot"></div>
<div data-index="3" class="game-spot"></div>
<div data-index="4" class="game-spot"></div>
<div data-index="5" class="game-spot"></div>
<div data-index="6" class="game-spot"></div>
<div data-index="7" class="game-spot"></div>
<div data-index="8" class="game-spot"></div>
</div>
</div>
<!-- Results Modal -->
<div id="results-modal" class="modal modal-fixed-footer">
<div class="modal-content">
<h2 class="title">The Winner is:</h2>
<p id="winner-icon"></p>
<p id="winner-display"></p>
</div>
<div class="modal-footer">
<button id="play-again-button" class="waves-effect waves-light btn-small blue-grey darken-4">Play Again</button>
</div>
</div>
<!-- Materialize.js -->
<script type="text/javascript" src="scripts/materialize.min.js"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/829b98cafe.js" crossorigin="anonymous"></script>
<!-- Custom JS -->
<script type="text/javascript" src="scripts/index.js"></script>
</body>
</html>