forked from ChromeGaming/Dot-Box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
184 lines (171 loc) · 6.54 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="styles/default.style.css">
<link rel="stylesheet" href="styles/index.style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script defer src="./js/edge.js"></script>
<script defer src="./js/box.js"></script>
<script defer src="./js/board.js"></script>
<script defer src="./js/game.js"></script>
<script defer src="./js/validation.js"></script>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<!-- JavaScript files -->
<script defer src="./js/index.js"></script>
<!-- Logo of the game -->
<link rel="icon" href="favicon.ico?" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico?" type="image/x-icon">
con" href="./favicon.ico" type="image/x-icon">
<title>Dots & Boxes Game</title>
</head>
<body>
<audio id="background-music" autoplay loop>
<source src="sounds/bgMusic.mp3" type="audio/mpeg">
</audio>
<div class="settings">
<video autoplay muted class="video" loop id="myVideo">
<source src="./assets/default.mp4" type="video/mp4" />
</video>
<div class="whole-background">
<nav class="navbarr">
<div class="logo">
<a href="#">Dots & Boxes ⚄</a>
</div>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="./about.html">About Us</a></li>
<li><a href="./contributors.html">Contributors</a></li>
<button><a href="#">Let's Go</a></button>
</ul>
<div class="hamburger ">
<i class="fas fa-bars"></i>
</div>
</nav>
<div class="form">
<!-- <h1 class="heading">▂ ▄ ▅ ▆ ▇ █ MAXIMISE BOXES!! █ ▇ ▆ ▅ ▄ ▂</h1> -->
<h1 class="heading">▂ ▄ █ MAXIMISE BOXES!! █ ▄ ▂</h1>
<h3 class="instructions-heading">Instructions</h3>
<p class="instructions">
1. Select the number of rows, columns and players. <br />
2. The player who has maximum number of boxes on board is the
winner. <br />
3. Players will switch after every turn. But the player who has
filled the last box, will get one extra chance consecutively. <br />
</p>
<a href="instructions.html" class="button"
>Read Detailed Instructions</a
>
</div>
<div class="form">
<div class="right-background">
<div class="form-item">
<label for="theme-select">Select Theme:</label>
<select id="theme-select">
<option value="default">Default</option>
<option value="2">Theme 1</option>
<option value="3">Theme 2</option>
</select>
</div>
<div class="form-item">
<label for="rows">Rows : <span class="details">(between 5 and 30)</span></label>
<input type="number" id="rows" min="5" max="30" value="6" />
<span class="error"></span>
</div>
<div class="form-item">
<label for="columns">Columns : <span class="details">(between 5 and 30)</span></label>
<input type="number" id="columns" min="5" max="30" value="6" />
<span class="error"></span>
</div>
<div class="form-item">
<label for="players-count">Players : <span class="details">(between 2 and 6)</span></label>
<input type="number" id="players-count" min="2" max="6" value="2" />
<span class="player"></span>
</div>
<div class="button-container">
<a href="./game.html" target="_self" class="start-btn" id="start-btn" aria-label="START">
START
</a>
<button class="reset-btn button" id="reset-btn">RESET</button>
<button id="music-toggle" onclick="toggleMusic()">Music ON</button>
</div>
</div>
</div>
</div>
<p class="author">
Created with ❤️ by <a href="#">Chrome Gaming</a>
</p>
</div>
<div class="flex">
<div class="board"></div>
<div class="score">
<div class="players"></div>
<video autoplay muted class="video" loop id="myVideo2">
<source src="./assets/default.mp4" type="video/mp4" />
</video>
<div class="player-turn">
<div class="bg"><span class="name">PlayerX</span>'s turn</div>
</div>
<div class="flex-btn">
<button class="mute-btn button">Mute</button>
<button class="restart-btn button">Restart</button>
</div>
</div>
</div>
<script>
var isPlaying = false;
function toggleMusic() {
var audio = document.getElementById('background-music');
var button = document.getElementById('music-toggle');
if (isPlaying) {
audio.pause();
button.textContent = 'Music ON';
} else {
audio.play();
button.textContent = 'Music OFF';
}
isPlaying = !isPlaying;
}
</script>
<script>
document.getElementById('reset-btn').addEventListener('click', function() {
document.getElementById('rows').value = '';
document.getElementById('columns').value = '';
document.getElementById('players-count').value = '';
});
</script>
</body>
<script src="https://form.jotform.com/static/feedback2.js"></script>
<script>
var componentID = new JotformFeedback({
type: false,
width: 700,
height: 500,
fontColor: "#FFFFFF",
background: "#F59202",
isCardForm: false,
formId: "241546804327457",
buttonText: "Feedback",
buttonSide: "left",
buttonAlign: "center",
base: "https://form.jotform.com/",
}).componentID;
</script>
<script src="https://cdn.jotfor.ms/s/umd/latest/for-form-embed-handler.js"></script>
<script>
window.jotformEmbedHandler(
"iframe[id='" + componentID + "_iframe']",
"https://form.jotform.com/"
);
</script>
</html>
=======
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Stylesheet -->
<!-- Form page -->
</head>
</html>