forked from joeyparrish/othello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (60 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Othello</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Multi-player, browser-based, server-less Othello. Can be played locally or P2P with video chat.">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="othello.css">
<link rel="manifest" href="manifest.json">
<link rel="icon" type="image/png" href="icon-192.png">
<link rel="apple-touch-icon" href="icon-192.png">
<script defer src="https://unpkg.com/[email protected]/dist/peerjs.min.js"></script>
<!-- Don't defer this, or we get a flash of an incomplete page. -->
<script src="othello.js"></script>
<script>
// Initialize the app when the DOM is fully loaded.
document.addEventListener('DOMContentLoaded', init);
</script>
</head>
<body>
<div id="offlineRibbon" class="hide-by-default">OFFLINE</div>
<div id="versionRibbon">
<a href="https://github.com/joeyparrish/othello"
target="_blank">v1.3.2</a>
</div>
<div id="appContainer">
<div id="gameContainer">
<div id="scoreBoard"></div>
<div id="gameBoard"></div>
<form>
<input type="checkbox" id="difficulty" name="difficulty" onchange="advancedAIMode = document.getElementById('difficulty').checked"/>
<label for="difficulty">Advanced AI?</label>
</form>
<button id="resetButton">Reset Game</button>
<button id="remoteButton"
class="hide-by-default">P2P Multi-player</button>
<div id="tableStatus" class="hide-by-default"></div>
</div>
<div id="p2pContainer" class="hide-by-default">
<div id="videoContainer" class="hide-by-default">
<video autoplay id="friend"></video>
<video autoplay id="me" muted></video>
<button id="muteButton"></button>
</div>
<div id="idContainer" class="hide-by-default">
<label for="myId">Your ID:</label>
<input id="myId" type="text" readonly>
<label for="joinPeer">Your friend's ID:</label>
<input id="joinPeer" type="text">
</div>
<button id="closeRtcButton"></button>
</div>
</div>
<div>
<a target="_blank" class="docs left" href="how-do-i-play.html">How do I play?</a>
<a target="_blank" class="docs right" href="privacy-policy.html">Privacy Policy</a>
</div>
</body>
</html>