forked from thejambi/SkudPaiSho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
373 lines (339 loc) · 17.4 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>The Garden Gate</title>
<!-- Images of classic tile designs used in Skud Pai Sho are originally from the Lotus Gambit rules community at http://lotusgambit.pbworks.com/w/page/45592429/Home -->
<link href="style/main.css?v=20211207-005244" rel="stylesheet" type="text/css">
<link id="overrideCSS" href="" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- <link href="favicon.ico" rel="shortcut icon"> -->
<!-- <link href="meta/apple-touch-icon.png" rel="apple-touch-icon"> -->
<link href="meta/apple-touch-startup-image-640x1096.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iPhone 5+ -->
<link href="meta/apple-touch-startup-image-640x920.png" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iPhone, retina -->
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="True" name="HandheldFriendly">
<meta content="320" name="MobileOptimized">
<meta name="apple-itunes-app" content="app-id=1302567785">
<script src="https://use.fontawesome.com/8d1446c26f.js"></script>
<!-- Global site tag (gtag.js) - Google AdWords: 972849224 -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=AW-972849224"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'AW-972849224');
</script> -->
</head>
<body ontouchstart="">
<!-- Sidenav -->
<div id="mySidenav" class="sidenav">
<div class="sidenavContent">
<div class="closebtn" onclick="closeNav();"> ×</div>
<h1>The Garden Gate</h1>
<hr />
<div class='sidenavSection odd'>
<div class='sidenavSectionHeader'>Play</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='accountHeaderClicked();'>
<i class="fa fa-user" aria-hidden="true"></i> View my games
<span id='myGamesNumberMyTurn'></span>
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='viewGameSeeksClicked();'>
<i class="fa fa-plug" aria-hidden="true"></i> Join a game
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='newGameClicked();'>
<i class="fa fa-plus-circle" aria-hidden="true"></i> New game
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='viewTournamentsClicked();'>
<i class="fa fa-trophy" aria-hidden="true"></i> Tournaments
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='viewGameRankingsClicked();'>
<i class="fa fa-tachometer" aria-hidden="true"></i> Game Rankings
</div>
</div>
<div class='gone'>
<hr />
<div class='sidenavSectionHeader'>New Game</div>
<div id="sidenavNewGameSection"></div>
</div>
<hr />
<div class='sidenavSection even'>
<div class='sidenavSectionHeader'>Current Game</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='toggleReplayControls();'>Toggle replay controls</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='sandboxFromMove();'>Sandbox this game</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='showGameReplayLink();'>Get game link</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='showGameNotationModal();'>Show game notation</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='quitOnlineGameClicked();'>Mark game inactive</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='resignOnlineGameClicked();'>Resign game</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='closeGame();'>Close this game</div>
</div>
<hr />
<div class='sidenavSection odd'>
<div class='sidenavSectionHeader'>About</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='aboutClicked();'>About
<em>The Garden Gate</em>
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='showWelcomeTutorial();'>Show welcome screens</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='openShop();'>Buy Pai Sho sets</div>
<div class='sidenavEntry'>
<a href='https://discord.gg/thegardengate' target='_blank' class='sidenavLink'>Join Discord Server</a>
</div>
<div class='sidenavEntry'>
<a href='https://forum.skudpaisho.com/' target='_blank' class='sidenavLink'>The Garden Gate Forum</a>
</div>
</div>
<hr />
<div class='sidenavSection even'>
<div class='sidenavSectionHeader'>Support The Garden Gate</div>
<div class='sidenavEntry'>
<a href='https://www.patreon.com/SkudPaiSho' target='_blank' class='sidenavLink'>Support on Patreon</a>
</div>
<div class='sidenavEntry'>
<a href='https://www.buymeacoffee.com/skudpaisho' target='_blank' class='sidenavLink'>Leave a tip</a>
</div>
</div>
<hr />
<div class='sidenavSection odd'>
<div class='sidenavSectionHeader'>
<div onClick='promptAddOption()'>Other</div>
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='showPreferences();'>Device Preferences</div>
<!-- <div class='sidenavEntry sidenavLink skipBonus' onclick='toggleSoundOn();'>Toggle Sound On/Off</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='toggleAnimationsOn();'>Toggle Animations On/Off</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='toggleDarkMode();'>Toggle Dark Mode</div> -->
<div class='sidenavEntry skipBonus'>
<label>Website Style:</label>
<select id='websiteStyleDropdown' onchange='setWebsiteTheme(this.value);'>
<option value='dark'>Classic Dark Mode</option>
<option value='light'>Classic Light Mode</option>
<option value='stotes'>Chu Ji Theme</option>
</select>
</div>
<div class='sidenavEntry sidenavLink skipBonus' onclick='location.reload(true);'>Reload website</div>
</div>
<div> </div><div> </div><div> </div>
<!-- -->
<div id="onlinePlayTest"></div>
</div>
</div>
<!-- End Sidenav -->
<div class="header">
<div class="sidenavMenuButton">
<span style="cursor:pointer; vertical-align: top;" onclick="openNav();">
<h1>
<span class="stretchText sidenavMenuButtonText" id='sidenavMenuButton'>≡</span>
</h1>
</span>
</div>
<div class="headerLeft">
<h1> </h1>
</div>
<div class="headerLeft" style="cursor:pointer;" onclick="openNav();">
<h1 id='siteHeading'>The Garden Gate</h1>
</div>
<div class="headerRightContainer">
<span class="headerRight clickableText" onclick='accountHeaderClicked();'>
<i class="fa fa-user" aria-hidden="true"></i><span id="headerRightText4"> <span id='accountHeaderLinkText'>Sign In</span></span>
</span>
<div class="headerRight"> | </div>
<span class="headerRight clickableText" onclick='newGameClicked();'>
<i class="fa fa-plus-circle" aria-hidden="true"></i> <span id="headerRightText3">New</span></span>
<div class="headerRight"> | </div>
<span class="headerRight clickableText" onclick='viewGameSeeksClicked();'>
<i class="fa fa-plug" aria-hidden="true"></i> <span id="headerRightText2">Join</span></span>
<div class="headerRight"> | </div>
<span class="headerRight clickableText" onclick='openShop();'>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
</span>
</div>
</div>
<div id='mainWrapper'>
<div class="game-container-wrapper">
<div id="game-title-container">
<h2 id="game-title-heading" class="game-title-text">Loading...</h2>
<div id="defaultGameMessage" class="gone">
Try <span id="defaultGameMessageGameTitle" class="game-title-text">Game Title</span> by clicking on tiles below.
Click <span style="white-space: nowrap;"><i class="fa fa-plus-circle" aria-hidden="true"></i> New Game</span> from the <span style="white-space: nowrap;"><span class='stretchText'> ≡ </span>side menu</span>
to try one of the many other games here.
</div>
</div>
<div id="game-container" class="game-container"></div>
<!-- <div class="notation-container" id="notation-container">
<div class="notationText gone" id="notationText">
</div>
<div class="notationInput gone">
<input type="text" id="notationInput" />
<input type="button" onclick="inputNow()" value="Enter" />
</div>
</div> -->
<!-- <div id="board-container" class="board-container"> -->
<!-- <div class='svgContainerContainer'>
<div class="svgContainer">
<div class="bg-svg">
<div class="pointContainer"></div>
</div>
</div>
</div> -->
<!-- </div> -->
<!-- <div id="tilePileContainer" class="tilePileContainer">
<div id='response'></div>
<div class="gameMessage"></div>
<div id="hostTilesContainer" class="hostTilesContainer"></div>
<div id="guestTilesContainer" class="guestTilesContainer"></div>
<div class="gameMessage2"></div>
</div> -->
<div class="helpContainer" id="help">
<div class="tab">
<button class="tablinks" onclick="openTab(event, 'helpTextTab')" id="defaultOpenTab">Help</button>
<button id='globalChatTabHeader' class="tablinks" onclick="openTab(event, 'globalChatTab');">Links</button>
<button id='chatTab' class="tablinks" onclick="openTab(event, 'gameChatTab'); dismissChatAlert();">Game Chat</button>
</div>
<div id='helpTextTab' class="tabcontent">
<div id='helpTextContent'>
</div>
</div>
<div id="globalChatTab" class="tabcontent">
<div id="globalChatMessagesDisplay" class="chatMessagesDisplay">
<a href='https://skudpaisho.com/site/' target='_blank'>The Rules & More Site</a>: For more information about Pai Sho and The Garden Gate, explore <a href='https://skudpaisho.com/site/' target='_blank'>The Rules & More Site</a>.
<br><br>
<a href='https://discord.gg/thegardengate' target='_blank'>Discord server</a>: To join The Garden Gate Community and chat with everyone, ask questions, or get help, join The Garden Gate <a href='https://discord.gg/thegardengate' target='_blank'>Discord server</a>.
<br><br>
<a href='https://skudpaisho.com/site/buying-pai-sho/' target='_blank'>Buying Pai Sho page</a>: For information about buying a Pai Sho set, the free print-and-play set, and information about making your own Pai Sho set, visit the <a href='https://skudpaisho.com/site/buying-pai-sho/' target='_blank'>Buying Pai Sho page</a>.
<br><br>
<a href='https://www.patreon.com/SkudPaiSho' target='_blank'>Patreon</a>: Support The Garden Gate monthly on <a href='https://www.patreon.com/SkudPaiSho' target='_blank'>Patreon</a> or <a href='https://www.buymeacoffee.com/skudpaisho' target='_blank'>leave a one-time tip</a>.
<br><br>
<a href='https://forum.skudpaisho.com/' target='_blank'>Forum</a>: The forum has some important posts as a supplement to the Discord community.
</div>
<div id="globalChatMessageInputContainer" class="chatMessageInputContainer">
<!-- <textarea id="globalChatMessageInput" class="chatMessageInput"></textarea>
<span id="sendGlobalChatMessageButton" class="button" onclick='sendGlobalChat();'>Send</span> -->
</div>
</div>
<div id="gameChatTab" class="tabcontent" onclick='dismissChatAlert();'>
<div id="chatMessagesHeader" class="chatMessagesHeader"><em>Game Chat messages may be viewed by other players. Abide by the Discord server #rules to be allowed to use Game Chat. Thank you!</em><div class='clickableText' onclick='toggleTimestamps()'>Toggle timestamp display</div><div id='toggleMoveLogDisplayDiv' class='clickableText gone' onclick='toggleMoveLogDisplay()'>Toggle move log messages</div><hr /></div>
<div id="chatMessagesDisplay" class="chatMessagesDisplay"></div>
<div id="chatMessageInputContainer" class="chatMessageInputContainer">
<textarea id="chatMessageInput" class="chatMessageInput"></textarea>
<span id="sendChatMessageButton" class="button" onclick='sendChat();'>Send</span>
</div>
</div>
</div>
</div>
</div>
<div class="footer"></div>
<div id="replayControls" class="gone">
<div id='confirmMoveButton' class='gone'>
<div class="center">
<span class='replayButton' onclick="confirmMoveClicked()">
Submit Move
</span>
</div>
</div>
<div id='gameLogText' class='gameLogText replayControlsAdditionalContent'></div>
<div id='gameClockContainer' class='gameClockContainer replayControlsAdditionalContent'></div>
<div id='replayButtonContainer' class="center">
<span class='replayButton' onclick="rewindAllMoves()">
<i class="fa fa-fast-backward" aria-hidden="true"></i>
</span>
<span class='replayButton' onclick="playPrevMove()">
<i class="fa fa-step-backward" aria-hidden="true"></i>
</span>
<span class='replayButton playPauseButton' onclick="playPause()">
<i class="fa fa-play" aria-hidden="true"></i>
</span>
<span class='replayButton' onclick="playNextMove(true); pauseRun();">
<i class="fa fa-step-forward" aria-hidden="true"></i>
</span>
<span class='replayButton' onclick="playAllMoves()">
<i class="fa fa-fast-forward" aria-hidden="true"></i>
</span>
</div>
<span class="replayControlsCloseButton" onClick='toggleReplayControls()'> ×
<!-- <i class="fa fa-times" aria-hidden="true"></i> -->
</span>
</div>
<!-- Modal -->
<!-- The Modal -->
<div id="myMainModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="myMainModalClose"> ×
<!-- <i class="fa fa-times" aria-hidden="true"></i> -->
</span>
<div id='modalHeading'> </div>
<div id='modalMessage'> </div>
</div>
</div>
<!-- End Modal -->
<!-- Modal content containers -->
<div id='loginModalContentContainer' style='display:none;'>
<!-- Login modal -->
To sign up or log in, enter your username and email, then enter the 4-digit code sent to you to sign into The
Garden Gate.
<div style='text-align: center;'>
<table style='margin:auto;'>
<tr>
<td style='text-align:right'>Username:</td>
<td>
<input id='usernameInput' type='text' name='usernameInput' />
</td>
</tr>
<tr>
<td style='text-align:right'>Email:</td>
<td>
<input id='userEmailInput' type='email' name='userEmailInput' />
</td>
</tr>
</table>
<div>
<button type='button' class="signupbutton" onclick='sendVerificationCodeClicked();'>Send verification code</button>
<br />
<div id='verificationCodeSendResponse'> </div>
</div>
<br />
<table style='margin:auto;'>
<tr>
<td style='text-align:right'>Code:</td>
<td>
<input id='verificationCodeInput' type='text' name='verificationCodeInput' disabled />
</td>
</tr>
</table>
<div>
<button id='verifyCodeBtn' class="signupbutton" type='button' onclick='verifyCodeClicked();'>Verify code</button>
</div>
</div>
</div>
<!-- -->
<!-- jquery cloud reference -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="js/jquery.min.js"></script> -->
<!-- <script src="js/lz-string.min.js"></script> -->
<!-- Compressed -->
<script src="psmin_20211207-005244.js"></script>
</body>
</html>