-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
285 lines (246 loc) · 11.8 KB
/
index.html
File metadata and controls
285 lines (246 loc) · 11.8 KB
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
<!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="icon" type="image/png" sizes="32x32" href="images/kekCheck-logo.png">
<meta name="description" content="Chess game for twitch streamers to play against their chat PogChamp">
<meta name="author" content="CodMitu">
<meta name="keywords"
content="game, twitch, chess, chat, stream, online, play, viewers, browser, chrome, desktop, checkmate, mmo, multiplayer, variety, game, fun, chill, kekcheck">
<meta name="twitter:card" content="app">
<meta name="twitter:creator" content="@codmitu">
<meta name="twitter:description" content="Chess game for twitch streamers to play against their chat PogChamp">
<meta name="twitter:title" content="kekCheck">
<meta name="twitter:image" content="https://github.com/codmitu/kekCheck/blob/main/images/tw-img.jpg?raw=true">
<meta property="og:title" content="kekCheck">
<meta property="og:url" content="https://kekcheck.com/">
<meta property="og:type" content="app">
<meta property="og:description" content="Chess game for twitch streamers to play against their chat PogChamp">
<meta property="og:image" content="https://github.com/codmitu/kekCheck/blob/main/images/fb-img.jpg?raw=true">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<link rel="stylesheet" href="./styles/style.css">
<link rel="stylesheet" href="./styles/AbChess-0.3.0.css">
<title>kekCheck</title>
</head>
<body onload="getScores();">
<div class="loading-screen">
<p class='percent'></p>
<div class="loading-bar"></div>
</div>
<div id="confusion"></div>
<div id="fx"></div>
<audio controls id="bg-sound">
<source src="./sounds/rain.mp3" type="audio/mpeg" autoplay="true">
</audio>
<div id="curses-container">
<div class="curse">
<img src="./images/unmarked.svg" style="cursor: pointer" alt="" id="permit-curses" class="not=permited">
<small>Curses</small>
</div>
<div class="curse" id="blind-curse">
<img src="./images/other/blindness.png" title="Blindness" alt="">
<p>!b</p>
</div>
<div class="curse" id="confuse-curse">
<img src="./images/other/confusion.png" title="Confusion" alt="">
<p>!c</p>
</div>
<div class="curse" id="halucination-curse">
<img src="./images/other/halucination.png" title="Halucination" alt="">
<p>!h</p>
</div>
</div>
<button onclick="openFullscreen();" id="full-screen"><i class="fas fa-expand-arrows-alt"></i></button>
<aside id="streamer">
<form>
<input type="text" id="twitch-channel-input" spellcheck="false" autocomplete="off"
placeholder="Disabled for now" disabled title="Press 'Enter' after typing">
</form>
<h2 id="streamer-frame">Streamer</h2>
<div id="streamer-last-moves">
</div>
</aside>
<main id="chess-container">
<header class="info-container">
<span id="streamer-score"></span>
<h3 id="game-info"></h3>
<span id="chat-score"></span>
</header>
<div id="chessboard"></div>
<div class="join-selection">
<div class="selection">Only:</div>
<div class="selection vip"></div>
<div class="selection sub"></div>
</div>
<div id="time-container">
<div id="arrows"></div>
<div class="circle"></div>
<div id="time-remaining"></div>
<div class="seconds-btns-container">
<button>+</button>
<button>-</button>
</div>
</div>
<button id="start-btn"></button>
</main>
<aside id="chat">
<div class="chat-bubble"></div>
<h1 class="chat-header">Chat</h1>
<div id="spectators"></div>
<div id="max-spectators">Queue: <span id="number-of-spectators"></span>/300</div>
<div id="chat-last-moves">
</div>
</aside>
<div id="shadow-frame">
<menu class="display-menu">
<button id="about"><i class="far fa-question-circle"></i></button>
<button id="leaderboard"><i class="fas fa-crown"></i></button>
<i class="fas fa-caret-right show-menu-btn show"></i>
<i class="fas fa-caret-left hide-menu-btn"></i>
</menu>
<article class="about">
<div>
<h2>How to play?</h2>
<ol>
<li>Optional: ✅Check the <b>VIP/SUB</b> checkboxes so only vips and/or subscribers can join and
vote, otherwise everyone can. <i>This cannot be
changed during the game</i>.</li>
<li>Type a valid Twitch channel inside the <b>text box</b> in the up-left corner and press
<b>Enter</b>. <i>The
channel cannot be changed during the game</i>.</li>
<li>Now chat can type <b>!join</b> to join the <b>Queue area </b>(right side of the
screen).
Max
number is 300, but everyone can play.</li>
<li>Streamer can adjust ⏳<b>max time</b> for a move from 10s to 120s. <i>This time cannot be
changed
during the
game</i>.</li>
<li>After at least <b>32</b> joined the queue area the streamer can press <b>START</b>.</li>
<li>Chat and people in the Queue can 💬vote a move as: <b>g8h6</b>, this
means
piece
(Knight♞) from
G8 to H6. The piece will move <u>automaticaly</u> and the streamer cannot click on chat's
pieces
nor streamer can vote or !join.</li>
<li>Chat's <u>votes</u> are accounted only when it's chat's turn and only valid moves are considered
(min
people to vote = 2). If the <u>most voted move</u> doesn't
change
within 10s then
chat will move its piece sooner than the remaining
time.</li>
<li><b>Promotion</b>: If a Pawn reaches the oppsite side it can be <u>replaced</u> with one of
the
following: Queen,
Rook, Bishop or Knight, no matter if they already own a Queen or two Knights. Chat's
promotion
will be randomly
selected.</li>
<li>Game ends on <b>draw</b> or <b>win</b>. A draw can be called by the rules of <i>50Moves,
Stalement, Insufficient material</i> and a win can be called after one is
<i>checkmate</i>
or <i>timeout</i>.</li>
<li>Scores in <b>Leaderboard</b> are sorted by <u>MatchPoints</u>, (1 MP = 3 GamePoints). <i>Chat
gains
1GP
if streamer presses RESET or refreshes the browser , restarts the computer or goes
shopping during game :p</i>.</li>
<li><b>Emotes</b>: People can react with twitch emotes inside the game.</li>
<li>
<b>Minigame</b>: <u>Curses</u> can be used against the opponent by players on the chessboard.
</li>
</ol>
<div><b>Documentation/Sources:</b>
<br>
<a href="https://github.com/instafluff/ComfyJS" class="link" target="_blank">ComfyJS</a>
<br>
<a href="https://nimzozo.github.io/Ab-Chess/" class="link" target="_blank">Ab-Chess</a>
<br>
<a href="https://www.toptal.com/designers/subtlepatterns/" class="link"
target="_blank">Backgrounds</a>
<a href="https://background-tiles.com/overview/patterns.php" class="link"
target="_blank">Backgrounds</a>
<br>
<a href="https://bigsoundbank.com/search?q=&CatID=&type=&mode=&frequence=&resolution=&duree=-1&tri=t"
class="link" target="_blank">Sounds</a>
<a href="https://www.freesoundslibrary.com/ambient-sounds/page/16/" class="link"
target="_blank">Sounds</a>
<a href="https://sound-effects.bbcrewind.co.uk/search?%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cat=weather"
class="link" target="_blank">Sounds</a>
</div>
</div>
</article>
<article class="leaderboard">
<div>
<h2>LEADERBOARD</h2>
<table>
<tbody id="tbody">
<tr>coming after testing...</tr>
</tbody>
</table>
</div>
</article>
<div id="change-bg">
<small>Background</small>
<div class="change-bg-buttons">
<button class="prev"><i class="fas fa-chevron-left"></i></button>
<button class="next"><i class="fas fa-chevron-right"></i></button>
</div>
</div>
<div id="change-size">
<small>Size</small>
<div class="change-size-buttons">
<button class="increase"><i class="fas fa-search-plus"></i></button>
<button class="decrease"><i class="fas fa-search-minus"></i></button>
</div>
</div>
</div>
<article id="modal">
<div class="modal-container">
<h3>Do you want to restart the game?</h3>
<div class="modal-btns-container">
<button id="modal-yes">YES</button>
<button id="modal-no">NO</button>
</div>
</div>
</article>
<script>
setTimeout(() => {
document.querySelector('.loading-screen').remove();
}, 1500);
let loading = document.querySelector('.percent');
let counter = 0;
function percentage() {
if (counter === 100) {
clearInterval(percentage);
} else {
counter++;
loading.innerText = counter + '%';
}
}
setInterval(percentage, 10);
</script>
<!-- <a href="https://www.gogetssl.com" rel="nofollow" title="GoGetSSL Site Seal Logo">
<div id="gogetssl-animated-seal" style="width:80px; height:28px;"></div>
</a>
<script src="https://gogetssl-cdn.s3.eu-central-1.amazonaws.com/site-seals/gogetssl-seal.js"></script> -->
<!-- <script type="text/javascript">
//<![CDATA[
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.trust-provider.com/" :
"http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost +
"trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>
<script language="JavaScript" type="text/javascript">
TrustLogo("https://www.positivessl.com/images/seals/positivessl_trust_seal_sm_124x32.png", "POSDV", "none");
</script> -->
<script src="https://cdn.jsdelivr.net/npm/comfy.js@latest/dist/comfy.min.js"></script>
<script src="./scripts/AbChess-0.3.0.js"></script>
<script src="./scripts/script.js"></script>
</body>
</html>