-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (68 loc) · 3.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tic Tac Toe</title>
<!-- font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;700;800;900&display=swap" rel="stylesheet">
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<!-- jquery color
<script src="./jquery-color/jquery.color.js"></script>
<script src="http://code.jquery.com/jquery-3.5.1.min.js"></script>
-->
<!-- select2 (for styling selections) -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
<!-- main js (generated by webkit -- requires game functionality files) -->
<script src="./dist/main.js"></script>
<!-- main stylesheet -->
<link rel="stylesheet" type="text/css" href="./ttt.css">
<!-- icons -->
<script src="https://kit.fontawesome.com/a63b3398b9.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class = 'winner-modal modal hidden'>
<h1 class = 'winner-header'></h1>
<input type="button" class = 'new-game-button' name="new-game-btn" value = 'New Game'>
</div>
<div class ='game-menu modal hidden'>
<form class = 'new-game-form' action="">
<label for="opponent">Opponent</label>
<select class = 'selection-dropdown' name ='opponent' id = 'opponent'>
<optgroup label = ''>
<option value="Human" selected>Human</option>
<option value="AI" >AI</option>
</optgroup>
</select>
<div class = 'play-AI-options hidden'>
<label class = 'ai-option' for="player-mark">Choose Your Mark: </label>
<select class = 'selection-dropdown ai-option' name="player-mark" id="player-mark">
<optgroup>
<option class = 'X-played' value="X" selected>X</option>
<option class = 'O-played' value="O">O</option>
</optgroup>
</select>
<label class = 'ai-option' for ='ai-level'>AI Difficulty Level: </label>
<select class = 'selection-dropdown ai-option' name = 'ai-level' id = 'ai-level'>
<optgroup>
<option value="1">Beginner</option>
<option value="2">Easy</option>
<option value="3" selected>Normal</option>
<option value="4">Hard</option>
<option value="5">Pro</option>
<option value="8">Impossible</option>
</optgroup>
</select>
</div>
<input type="button" class = 'start-game-button' name="play-game" value = 'Start Game'>
</form>
</div>
<figure class="ttt center">
<h1 class = 'ttt-header'>Tic Tac Toe</h1>
</figure>
</body>
</html>