@ywkrlerche/richardwho 1.0.32 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/app.js +573 -71
  2. package/config.js +0 -1
  3. package/games.json +1 -1
  4. package/index.html +42 -4
  5. package/logos/kh-100ng.webp +0 -0
  6. package/logos/kh-2048-multitask.webp +0 -0
  7. package/logos/kh-adrenalinechallenge.webp +0 -0
  8. package/logos/kh-align-4.webp +0 -0
  9. package/logos/kh-amidst-the-clouds.webp +0 -0
  10. package/logos/kh-angry-sharks.webp +0 -0
  11. package/logos/kh-avalanche.webp +0 -0
  12. package/logos/kh-battleforgondor.webp +0 -0
  13. package/logos/kh-blacholesquare.webp +0 -0
  14. package/logos/kh-blackknight.webp +0 -0
  15. package/logos/kh-boxhead2play.webp +0 -0
  16. package/logos/kh-btd4.webp +0 -0
  17. package/logos/kh-burger-and-frights.webp +0 -0
  18. package/logos/kh-canyondefense.webp +0 -0
  19. package/logos/kh-championarcher.webp +0 -0
  20. package/logos/kh-creativekillchamber.webp +0 -0
  21. package/logos/kh-csgo-clicker.webp +0 -0
  22. package/logos/kh-dante.webp +0 -0
  23. package/logos/kh-deal-or-no-deal.webp +0 -0
  24. package/logos/kh-deepest-sword.webp +0 -0
  25. package/logos/kh-defend-the-tank.webp +0 -0
  26. package/logos/kh-doge2048.webp +0 -0
  27. package/logos/kh-edgenotfound.webp +0 -0
  28. package/logos/kh-endlesswar3.webp +0 -0
  29. package/logos/kh-evolution.webp +0 -0
  30. package/logos/kh-exo.webp +0 -0
  31. package/logos/kh-fairsquares.webp +0 -0
  32. package/logos/kh-flappy-2048.webp +0 -0
  33. package/logos/kh-flashtetris.webp +0 -0
  34. package/logos/kh-flippy-fish.webp +0 -0
  35. package/logos/kh-froggys-battle.webp +0 -0
  36. package/logos/kh-gachalife.webp +0 -0
  37. package/logos/kh-generic-fishing-game.webp +0 -0
  38. package/logos/kh-geojump.webp +0 -0
  39. package/logos/kh-gimme-the-airpod.webp +0 -0
  40. package/logos/kh-google-snake.webp +0 -0
  41. package/logos/kh-hardware-tycoon.webp +0 -0
  42. package/logos/kh-hba.webp +0 -0
  43. package/logos/kh-hexempire.webp +0 -0
  44. package/logos/kh-hexgl.webp +0 -0
  45. package/logos/kh-hextris.webp +0 -0
  46. package/logos/kh-just-one-boss.webp +0 -0
  47. package/logos/kh-kittencannon.webp +0 -0
  48. package/logos/kh-mario.webp +0 -0
  49. package/logos/kh-marvinspectrum.webp +0 -0
  50. package/logos/kh-matrixrampage.webp +0 -0
  51. package/logos/kh-meme2048.webp +0 -0
  52. package/logos/kh-my-rusty-submarine.webp +0 -0
  53. package/logos/kh-noob-steve-parkour.webp +0 -0
  54. package/logos/kh-ns-shaft.webp +0 -0
  55. package/logos/kh-offlineparadise.webp +0 -0
  56. package/logos/kh-out-of-ctrl.webp +0 -0
  57. package/logos/kh-pandemic2.webp +0 -0
  58. package/logos/kh-particle-clicker.webp +0 -0
  59. package/logos/kh-poom.webp +0 -0
  60. package/package.json +1 -1
  61. package/style.css +72 -9
package/index.html CHANGED
@@ -94,6 +94,7 @@
94
94
  <button class="bookmark-chip latest" type="button" id="latest-btn" title="Open the newest version of the site">⟳ Latest version</button>
95
95
  <span class="bookmark-hint"><span class="bookmark-arrow" aria-hidden="true">↑</span> Drag richardwho to your bookmarks bar to get back fast</span>
96
96
  </div>
97
+ <p class="whats-new-row"><button class="text-btn link whats-new" type="button" data-nav="changelog" id="whats-new-link">What's new in <span id="home-version"></span></button></p>
97
98
  </section>
98
99
 
99
100
  <!-- GAMES -->
@@ -147,7 +148,7 @@
147
148
 
148
149
  <!-- CHAT -->
149
150
  <section id="view-chat" class="view chat" hidden>
150
- <header class="games-head"><div><h1>Chat</h1><p class="lede">Be nice. Messages are filtered, and links and personal info are blocked.</p></div></header>
151
+ <header class="games-head"><div><h1>Chat</h1><p class="lede">Be nice. Swears, slurs, links and personal info are blocked. Don't post photos of real people without asking them. 🚩 reports anything bad.</p></div></header>
151
152
  <div class="chat-box" id="chat-box">
152
153
  <div class="chat-off" id="chat-off" hidden>
153
154
  <p><strong>Chat isn't switched on yet.</strong></p>
@@ -155,12 +156,23 @@
155
156
  </div>
156
157
  <div class="chat-log" id="chat-log" aria-live="polite"></div>
157
158
  <p class="chat-typing" id="chat-typing" aria-live="polite"></p>
159
+ <p class="chat-status" id="chat-status" aria-live="polite"></p>
160
+ <!-- Emoji / sticker picker, opened by 😊 -->
161
+ <div class="picker" id="picker" hidden>
162
+ <div class="picker-tabs" id="picker-tabs" role="tablist" aria-label="Emoji and stickers"></div>
163
+ <div class="picker-grid" id="picker-grid"></div>
164
+ <p class="picker-credit">Stickers: Noto Emoji by Google, CC BY 4.0</p>
165
+ </div>
158
166
  <form class="chat-form" id="chat-form" autocomplete="off" hidden>
159
- <input id="chat-name" class="chat-name" maxlength="16" placeholder="Nickname" spellcheck="false" aria-label="Nickname">
160
- <input id="chat-text" class="chat-text" maxlength="200" placeholder="Say something…" aria-label="Message">
167
+ <input id="chat-name" class="chat-name" maxlength="40" placeholder="Nickname" spellcheck="false" aria-label="Nickname">
168
+ <input id="chat-text" class="chat-text" maxlength="200" placeholder="Say something… (drop a photo here)" aria-label="Message">
169
+ <button class="icon-btn" type="button" id="emoji-btn" title="Emoji and stickers" aria-label="Emoji and stickers" aria-expanded="false" aria-controls="picker">😊</button>
170
+ <button class="icon-btn" type="button" id="photo-btn" title="Send a photo" aria-label="Send a photo">📷</button>
171
+ <input type="file" id="photo-input" accept="image/*" hidden>
161
172
  <button class="pill-btn" type="submit" id="chat-send">Send</button>
162
173
  </form>
163
- <p class="chat-note" id="chat-note"></p>
174
+ <p class="chat-note" id="chat-note" aria-live="polite"></p>
175
+ <div class="drop-hint" aria-hidden="true">Drop to send photo</div>
164
176
  </div>
165
177
  </section>
166
178
 
@@ -191,6 +203,12 @@
191
203
  </section>
192
204
 
193
205
  <!-- SETTINGS -->
206
+ <!-- WHAT'S NEW (filled from CHANGELOG in app.js) -->
207
+ <section id="view-changelog" class="view settings changelog" hidden>
208
+ <header class="games-head"><div><h1>What's new</h1><p class="lede">Every update to richardwho: new stuff, games and fixes.</p></div></header>
209
+ <div id="changelog-list"></div>
210
+ </section>
211
+
194
212
  <section id="view-settings" class="view settings" hidden>
195
213
  <header class="games-head"><div><h1>Settings</h1><p class="lede">Saved on this device only.</p></div></header>
196
214
 
@@ -243,6 +261,21 @@
243
261
  <div class="set-row" id="admin-tools-row" hidden><span>Chat</span>
244
262
  <button class="pill-btn danger" type="button" id="admin-clear">Clear all chat</button>
245
263
  </div>
264
+ <div id="admin-chat-tools" hidden>
265
+ <label class="set-row"><span>Slow mode</span>
266
+ <select id="mod-slow"><option value="0">Off</option><option value="10">10 seconds</option><option value="30">30 seconds</option><option value="60">1 minute</option><option value="120">2 minutes</option><option value="300">5 minutes</option></select>
267
+ </label>
268
+ <label class="set-row"><span>Lock chat (only you can post)</span><input type="checkbox" id="mod-lock"></label>
269
+ <h3 class="set-sub">Extra blocked words</h3>
270
+ <p class="set-help">One per line or separated by commas. Messages and nicknames containing them can't be sent, and old messages with them disappear.</p>
271
+ <textarea class="report-input" id="mod-words" rows="3" maxlength="4000" spellcheck="false" autocomplete="off" aria-label="Extra blocked words" placeholder="e.g. a name being bullied, a nickname used to troll…"></textarea>
272
+ <div class="set-row"><span class="set-hint" id="mod-words-msg"></span><button class="pill-btn" type="button" id="mod-words-save">Save words</button></div>
273
+ <h3 class="set-sub">Reported messages <span id="reported-count"></span></h3>
274
+ <p class="set-help">Messages with 3 reports are hidden from everyone until you keep or delete them.</p>
275
+ <div class="reports" id="reported-list"></div>
276
+ <h3 class="set-sub">Muted and banned</h3>
277
+ <div class="reports" id="punished-list"></div>
278
+ </div>
246
279
  <div id="admin-reports" hidden>
247
280
  <h3 class="set-sub">Game reports and requests <span id="reports-count"></span></h3>
248
281
  <div class="reports" id="reports-list"></div>
@@ -250,6 +283,11 @@
250
283
  </div>
251
284
  </div>
252
285
 
286
+ <div class="set-group">
287
+ <h2>About</h2>
288
+ <div class="set-row"><span>Version <strong id="set-version"></strong></span><button class="pill-btn" type="button" data-nav="changelog">What's new</button></div>
289
+ </div>
290
+
253
291
  <div class="set-group">
254
292
  <h2>Your data</h2>
255
293
  <div class="set-row"><span>Recently played</span><button class="pill-btn" type="button" id="set-clear-recent">Clear</button></div> <div class="set-row"><span>All settings</span><button class="pill-btn danger" type="button" id="set-reset">Reset to default</button></div>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ywkrlerche/richardwho",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Richards Unblocked Games",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/style.css CHANGED
@@ -113,7 +113,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
113
113
  animation: shine 5.5s ease-in-out infinite, glow 4s ease-in-out infinite alternate;
114
114
  }
115
115
  .wordmark {
116
- margin: 0 0 30px; font-size: clamp(64px, 11vw, 150px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
116
+ margin: 0 0 22px; font-size: clamp(46px, 7vw, 96px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
117
117
  padding: 0 .04em .08em; /* room for the glow and descenders */
118
118
  cursor: default; user-select: none;
119
119
  /* layer 1: hover spotlight that follows the mouse (--mx/--my set in app.js); layer 2: the sweeping shine */
@@ -136,12 +136,12 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
136
136
  }
137
137
  @keyframes rise { from { opacity: 0; translate: 0 14px; letter-spacing: -.02em; filter: blur(6px); } to { opacity: 1; translate: 0 0; } }
138
138
  .home-search {
139
- position: relative; width: min(640px, 100%); height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px;
139
+ position: relative; width: min(520px, 100%); height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px;
140
140
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line-2); border-radius: 4px;
141
141
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
142
142
  }
143
- .home-search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
144
- .home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; }
143
+ .home-search svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
144
+ .home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
145
145
  .home-search input::-webkit-search-cancel-button { display: none; }
146
146
  .home-search:focus-within { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
147
147
  /* the input itself has no outline, so the box shows a clear ring when the keyboard is in it */
@@ -272,10 +272,56 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
272
272
  .chat-note.err { color: var(--danger); }
273
273
  .chat-off { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
274
274
  .chat-off p { margin: 4px 0; }
275
- .chat-msg .mod { display: none; margin-left: 8px; border: 1px solid var(--line-2); background: var(--soft); color: var(--text); border-radius: 3px; font-size: 11px; padding: 1px 6px; }
275
+ .chat-msg .mod { display: none; margin-left: 6px; border: 1px solid var(--line-2); background: var(--soft); color: var(--text); border-radius: 3px; font-size: 11px; padding: 1px 6px; }
276
276
  .chat-msg .mod:hover { background: color-mix(in srgb, var(--danger) 30%, transparent); }
277
- .chat-log.admin .chat-msg .mod { display: inline-block; }
278
- .chat-msg.me .mod[data-mod="delete"] { display: inline-block; } /* anyone can delete their own */
277
+ /* Who sees which button: 🚩 for others' messages (on hover), 🗑 on your own, everything for the owner */
278
+ .chat-msg:hover .act-report, .chat-msg:focus-within .act-report { display: inline-block; }
279
+ @media (hover: none) { .chat-msg .act-report { display: inline-block; opacity: .55; } }
280
+ .chat-msg.me .act-delete, .chat-log.admin .chat-msg .act-delete, .chat-log.admin .chat-msg .owner-only { display: inline-block; }
281
+ .chat-msg .flag-count { display: none; margin-left: 6px; color: var(--danger); font-size: 11px; font-weight: 700; }
282
+ .chat-log.admin .chat-msg .flag-count:not(:empty) { display: inline; }
283
+ /* Reported 3+ times: hidden from everyone but the owner, who sees it marked */
284
+ .chat-log:not(.admin) .chat-msg.flagged { display: none; }
285
+ .chat-log.admin .chat-msg.flagged { outline: 1px dashed var(--danger); outline-offset: 3px; border-radius: 3px; }
286
+ .chat-msg .msg-acts { white-space: nowrap; }
287
+ .chat-sticker { display: block; width: 96px; height: 96px; margin: 4px 0 0; }
288
+ .chat-photo-btn { display: block; padding: 0; margin: 6px 0 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; max-width: min(320px, 100%); }
289
+ .chat-photo { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 6px; border: 1px solid var(--line); }
290
+ .chat-status { margin: 0; padding: 0 16px; font-size: 12px; color: var(--muted); }
291
+ .chat-status:empty { display: none; }
292
+ .chat-status.err, .chat-note.err { color: var(--danger); font-weight: 600; }
293
+ .icon-btn { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
294
+ .icon-btn:hover:not(:disabled), .icon-btn[aria-expanded="true"] { background: var(--soft); border-color: var(--text); }
295
+ .icon-btn:disabled, .chat-form input:disabled, .chat-box .pill-btn:disabled { opacity: .45; cursor: not-allowed; }
296
+ .icon-btn:focus-visible { outline: 2px solid var(--glow-cyan, #22d3ee); outline-offset: 2px; }
297
+ /* Emoji / sticker picker */
298
+ .chat-box { position: relative; }
299
+ .picker { position: absolute; right: 10px; bottom: 64px; z-index: 5; width: min(340px, calc(100% - 20px)); border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); overflow: hidden; }
300
+ .picker-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
301
+ .picker-tabs button { flex: none; height: 32px; min-width: 34px; padding: 0 6px; border: 0; border-radius: 4px; background: none; font-size: 17px; cursor: pointer; color: var(--text); }
302
+ .picker-tabs .tab-stickers { font-size: 12px; font-weight: 700; padding: 0 10px; }
303
+ .picker-tabs [aria-selected="true"] { background: var(--soft); }
304
+ .picker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
305
+ .picker-grid button { aspect-ratio: 1; border: 0; border-radius: 4px; background: none; font-size: 22px; cursor: pointer; padding: 0; }
306
+ .picker-grid button:hover, .picker-grid button:focus-visible { background: var(--soft); }
307
+ .picker-grid.stickers { grid-template-columns: repeat(5, 1fr); }
308
+ .picker-grid.stickers img { width: 100%; height: auto; display: block; }
309
+ .picker-head { grid-column: 1 / -1; margin: 6px 2px 0; font-size: 15px; position: sticky; top: -6px; background: var(--panel); z-index: 1; }
310
+ .picker-grid.stickers { max-height: 280px; }
311
+ .picker-credit { margin: 0; padding: 4px 8px 6px; font-size: 10px; color: var(--muted); text-align: right; }
312
+ /* Dragging a photo over the chat */
313
+ .drop-hint { display: none; position: absolute; inset: 6px; z-index: 6; place-items: center; border: 2px dashed var(--glow-cyan, #22d3ee); border-radius: 6px; background: color-mix(in srgb, var(--bg) 80%, transparent); font-weight: 800; font-size: 18px; pointer-events: none; }
314
+ .chat-box.dropping .drop-hint { display: grid; }
315
+ /* Photo viewer and the mute menu */
316
+ .photo-viewer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.85); overscroll-behavior: contain; }
317
+ .photo-viewer img { max-width: 100%; max-height: 100%; border-radius: 6px; }
318
+ .photo-viewer .wheel-x { position: fixed; top: 14px; right: 14px; color: #fff; }
319
+ .mute-menu { position: fixed; z-index: 95; display: grid; min-width: 150px; padding: 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); }
320
+ .mute-menu p { margin: 2px 6px 6px; font-size: 12px; color: var(--muted); }
321
+ .mute-menu button { text-align: left; padding: 7px 10px; border: 0; border-radius: 4px; background: none; color: var(--text); font-size: 13px; cursor: pointer; }
322
+ .mute-menu button:hover, .mute-menu button:focus-visible { background: var(--soft); }
323
+ .mute-menu .cancel { color: var(--muted); }
324
+ .report-thumb { max-width: 120px; max-height: 90px; border-radius: 4px; display: block; margin-top: 4px; }
279
325
  .chat-msg .badge-admin { color: #facc15; font-size: 11px; font-weight: 700; margin-right: 6px; }
280
326
  .admin-id { font: 12px ui-monospace, Consolas, monospace; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 4px; user-select: all; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
281
327
  @media (max-width: 720px) { .chat-name { width: 90px; } }
@@ -444,7 +490,8 @@ html[data-nav-dir="up"] { --out-y: 70px; --in-y: -90px; }
444
490
  @keyframes view-in { from { opacity: 0; transform: translateY(40px); } }
445
491
  }
446
492
  .player:not([hidden]) { animation: player-in .3s cubic-bezier(.2, .8, .2, 1) backwards; }
447
- @keyframes player-in { from { opacity: 0; transform: scale(.97); } }
493
+ /* no fade: an animation paused in a background tab must never leave the player see-through */
494
+ @keyframes player-in { from { transform: scale(.97); } }
448
495
  .wheel-wrap:not([hidden]) { animation: fade-in .2s ease backwards; }
449
496
  .wheel-wrap:not([hidden]) .wheel-card { animation: player-in .28s cubic-bezier(.2, .8, .2, 1) backwards; }
450
497
  @keyframes fade-in { from { opacity: 0; } }
@@ -466,7 +513,23 @@ body.playing { overflow: hidden; }
466
513
  body:has(#view-games:not([hidden])) .corner-links,
467
514
  body:has(#view-stats:not([hidden])) .corner-links,
468
515
  body:has(#view-settings:not([hidden])) .corner-links,
469
- body:has(#view-chat:not([hidden])) .corner-links { display: none; }
516
+ body:has(#view-chat:not([hidden])) .corner-links,
517
+ body:has(#view-changelog:not([hidden])) .corner-links { display: none; }
518
+
519
+ /* What's new */
520
+ .changelog { max-width: 760px; }
521
+ .cl-entry h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; text-wrap: balance; }
522
+ .cl-latest { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 3px; background: var(--glow-cyan, #22d3ee); color: #000; }
523
+ .cl-date { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
524
+ .cl-kind { margin-top: 12px; }
525
+ .cl-kind h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
526
+ .cl-kind ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; }
527
+ .cl-games li::marker { color: #4ade80; }
528
+ .cl-fixes li::marker { color: #f472b6; }
529
+ .cl-new li::marker { color: var(--glow-cyan, #22d3ee); }
530
+ .whats-new-row { text-align: center; margin: 14px 0 0; font-size: 13px; }
531
+ .whats-new { position: relative; padding-right: 14px !important; }
532
+ .whats-new.has-unread::after { top: 0; right: 0; width: 7px; height: 7px; }
470
533
 
471
534
  /* ---------- Responsive ---------- */
472
535
  @media (max-width: 1100px) { .grid, .recent-row { grid-template-columns: repeat(min(var(--per-row), 4), minmax(0, 1fr)); } }