-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (68 loc) · 2.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<title>Othello</title>
</head>
<body>
<div class="modal" aria-modal="true">
<div class="modal-inner">
<h1 class="title">Instructions</h1>
<ul>
<li>Black always goes first in Flipping</li>
<li>Game will show every possible legal move suggestion</li>
<li>Player can click any suggested legal moves</li>
<li>Place disc in a spot that surrounds an opponent’s disc</li>
<li>Pass the turn to your opponent to continue playing. </li>
</ol>
<input type="text" placeholder="Enter Your Name" class="name" onkeyup="removeDisabled()">
<div class="button-group">
<button type="button" class="white" onclick="init(2)" disabled>White</button>
<button type="button" class="black" onclick="init(1)" disabled>Black</button>
</div>
</div>
<h1 class="timer">3</h1>
</div>
<div class="game-area">
<canvas width="600" height="600"></canvas>
<div class="control">
<h2 class="title">Score</h2>
<table>
<tr>
<td>You</td>
<td> </td>
<td> </td>
<td>:</td>
<td class="player-score">2</td>
</tr>
<tr>
<td>Computer</td>
<td> </td>
<td> </td>
<td>:</td>
<td class="computer-score">2</td>
</tr>
</table>
<div class="form-group">
<input type="checkbox" id="sound">
<label for="sound">Enable Sound</label>
</div>
<button type="button" class="reset" onclick="location.reload()">Reset</button>
</div>
</div>
<div id="only-desktop-overlay">
<div>
<div class="icon">😔</div>
<h2 class="text">
Sorry, this applcation not supported in mobile :(
</h2>
</div>
</div>
<audio src="sound/background.mp3" id="audio" loop></audio>
<script src="src/Game.js"></script>
<script src="src/main.js"></script>
</body>
</html>