This repository was archived by the owner on Oct 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
156 lines (144 loc) · 6.52 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
<!DOCTYPE html>
<html>
<head>
<title>Golad.io</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="static/style.css"/>
<link rel="stylesheet" type="text/css" href="static/home_style.css"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
</head>
<body
style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;-o-user-select:none;display:none"
unselectable="on">
<div id="titlescreen" style="display:none">
<div id="lhs">
<div id="logo">
<div id="logot1"><p>Game of Life</p><p class="s">-John Conway</p></div>
<div id="logo-inner"></div>
<div id="logot2"><p>and Death</p><p class="s">-Cary Huang</p></div>
</div>
</div>
<div id="rhs">
<div class="row">
<div class="menubtn" id="play"><div class="btninner"><div class="btntxt">Play</div></div></div>
</div>
<div class="row">
<div class="menubtn" id="rsmbtn"><div class="btninner"><div class="btntxt">Resume Game</div></div></div>
</div>
<div class="row">
<div class="menubtn" id="tutbtn"><div class="btninner"><div class="btntxt">Tutorial</div></div></div>
</div>
<div class="row">
<div class="minirow">
<div class="menubtn-hlf" id="getbtn"><div class="btninner" style="width: calc(100% - 2%);"><div class="btntxt half">
Get current game string
</div></div></div>
<div class="menubtn-hlf" id="loadbtn"><div class="btninner"><div class="btntxt half">
Load game from string
</div></div></div>
</div>
</div>
</div>
<div id="choose-mode" class="grey" style="display:none">
<table style="height: 100%; width: 100%;">
<tr>
<td colspan="3" style="text-align: center;">Do you want to play online or local?</td>
</tr>
<tr>
<td class="button" id="playbtn">Local</td>
<td class="button" id="onlnbtn">Online</td>
<td class="button" id="cm-back">Back</td>
</tr>
</table>
</div>
</div>
<div id="winner" style="display:none">
<div id="wdw">
<div id="win-dialog">
<div id="wdc">
<div id="win-message"></div>
<div id="win-button">Home</div>
</div>
</div>
</div>
</div>
<div id="playing">
<div id="mainGame">
<canvas id="gameCanvas"></canvas>
</div>
<div id="hud">
<div id="tophalf">
<div id="ruleset">B0/S0</div>
<div id="player1" class="red">
<div id="p1name">Player 1</div><br><br>
<div id="player1-type">Human</div>
<div id="player1-count">◼× 0</div>
</div>
<div id="player2" class="blue">
<div id="p2name">Player 2</div><br><br>
<div id="player2-type">Human</div>
<div id="player2-count">◼× 0</div>
</div>
</div>
<div id="controls">
<table id="controls-inner">
<tr>
<td colspan="3" id="instructions">
Tap a living cell to kill it,<br>
or tap a dead cell to birth it.
</td>
<td colspan="3" id="iterate" class="red" style="display:none">
Iterate
</td>
</tr>
<tr>
<td colspan="2" id="turn">1A / 1A</td>
<td id="end" class="button">End...</td>
</tr>
<tr>
<td class="button locked">Undo</td>
<td class="button locked">Redo</td>
<td id="menu" class="button">Menu</td>
</tr>
</table>
</div>
</div>
<div id="end_screen" class="red" style="display:none">
<table style="height: 100%; width: 100%;">
<tr>
<td colspan="3" style="text-align: center;">Are you sure you want to end?</td>
</tr>
<tr>
<td class="button" id="resign_btn">Resign</td>
<td class="button" id="req_draw_btn">Offer Draw</td>
<td class="button" id="cancel_end">Cancel</td>
</tr>
</table>
</div>
<div id="please_wait" class="red" style="display:none">
<table style="height: 100%; width: 100%;">
<tr>
<td colspan="3" style="text-align: center;">Please wait.</td>
</tr>
</table>
</div>
<div id="accept_draw" class="red" style="display:none">
<table style="height: 100%; width: 100%;">
<tr>
<td colspan="2" style="text-align: center;">Draw requested!</td>
</tr>
<tr>
<td class="button" id="accept_drw_btn">Accept</td>
<td class="button" id="decline_drw_btn">Decline</td>
</tr>
</table>
</div>
</div>
<script src="vendor/jquery-3.2.1.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="vendor/jquery.fittext.js"></script>
<script src="board.js"></script>
<script src="polyfill.js"></script>
<script src="sketch.js"></script>
</body>
</html>