@ywkrlerche/richardwho 1.0.30 → 1.0.32

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.
package/app.js CHANGED
@@ -474,12 +474,13 @@
474
474
  function startClock() {
475
475
  clockIs24 = store.get(CLOCK_KEY, false);
476
476
  const timeEl = $("clock-time"), metaEl = $("clock-meta");
477
+ // Intl formats the time; the AM/PM part goes in the small label beside it
478
+ const fmt12 = new Intl.DateTimeFormat(undefined, { hour: "numeric", minute: "2-digit", hour12: true });
479
+ const fmt24 = new Intl.DateTimeFormat(undefined, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" });
477
480
  clockTick = () => {
478
- const d = new Date();
479
- let h = d.getHours();
480
- const m = String(d.getMinutes()).padStart(2, "0");
481
- if (clockIs24) { timeEl.textContent = `${String(h).padStart(2, "0")}:${m}`; metaEl.textContent = "24H"; }
482
- else { const ap = h >= 12 ? "PM" : "AM"; h = h % 12 || 12; timeEl.textContent = `${h}:${m}`; metaEl.textContent = ap; }
481
+ const parts = (clockIs24 ? fmt24 : fmt12).formatToParts(new Date());
482
+ timeEl.textContent = parts.filter((p) => p.type !== "dayPeriod").map((p) => p.value).join("").trim();
483
+ metaEl.textContent = clockIs24 ? "24H" : (parts.find((p) => p.type === "dayPeriod")?.value || "").toUpperCase();
483
484
  };
484
485
  $("clock").addEventListener("click", () => setClock24(!clockIs24));
485
486
  clockTick();
@@ -488,6 +489,7 @@
488
489
 
489
490
  function applyTheme(t) {
490
491
  document.documentElement.dataset.theme = t;
492
+ $("theme-color").content = t === "dark" ? "#000000" : "#f6f6f8"; // phone browser bar matches the page
491
493
  $("theme-btn").title = t === "dark" ? "Switch to light mode" : "Switch to dark mode";
492
494
  try { localStorage.setItem(THEME_KEY, t); } catch {}
493
495
  }
@@ -1248,6 +1250,7 @@
1248
1250
  toast(`Drag it up to your bookmarks bar, or press ${/Mac/.test(navigator.platform) ? "⌘" : "Ctrl"}+D`);
1249
1251
  });
1250
1252
  $("latest-btn").addEventListener("click", goLatest);
1253
+ $("skip-link").addEventListener("click", () => $("main").focus());
1251
1254
  $("report-btn").addEventListener("click", () => { const g = currentLoad && byId.get(currentLoad.id); if (g) openReport("broken", g); });
1252
1255
  $("request-btn").addEventListener("click", () => openReport("request"));
1253
1256
  $("request-btn-2").addEventListener("click", () => openReport("request", null, els.search.value.trim()));
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <!-- Gunspin (Unity WebGL). The game page from gunspin-pro.github.io/file/, made standalone:
3
+ <base> points its relative files (loader, build.json, .unityweb data) at that host. -->
4
+ <html>
5
+ <head>
6
+ <meta charset="utf-8">
7
+ <base href="https://gunspin-pro.github.io/file/">
8
+ <title>Gunspin</title>
9
+ <link rel="stylesheet" href="style/style.css">
10
+ <style>html, body { margin: 0; height: 100%; background: #000; overflow: hidden; } .webgl-content { position: absolute; inset: 0; transform: none; top: 0; left: 0; width: 100%; height: 100%; } #gameContainer { width: 100% !important; height: 100% !important; } .footer { display: none; }</style>
11
+ <script src="UnityLoader.js"></script>
12
+ <script src="UnityProgress.js"></script>
13
+ <script>
14
+ var gameInstance = UnityLoader.instantiate("gameContainer", "build.json", {
15
+ onProgress: UnityProgress,
16
+ Module: { onRuntimeInitialized: function () { UnityProgress(gameInstance, "complete"); } }
17
+ });
18
+ </script>
19
+ </head>
20
+ <body>
21
+ <div class="webgl-content">
22
+ <div id="gameContainer"></div>
23
+ </div>
24
+ </body>
25
+ </html>
@@ -0,0 +1,40 @@
1
+ <!DOCTYPE html>
2
+ <!-- Recoil (Fancade, by Martin Magni). Working copy supplied by the site owner; its assets load from the
3
+ editmysite host below. Removed: that site's Google Analytics tag and the st39 promo-button script. -->
4
+ <html lang="en-us">
5
+ <head>
6
+ <meta charset="utf-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
8
+ <title>Recoil</title>
9
+ <meta name="google" content="notranslate">
10
+ <link rel="stylesheet" href="https://112024093-351892247949035127.preview.editmysite.com/uploads/b/7547235-238727784559188382/files/webapp/fancade.css">
11
+ <script src="https://112024093-351892247949035127.preview.editmysite.com/uploads/b/7547235-238727784559188382/files/min.js"></script>
12
+ </head>
13
+ <body id="body">
14
+ <div id="modal_parent">
15
+ <div id="modal_content"><span id="modal_close_button"></span>
16
+ <div id="store_link_modal_content" class="modal_inner"></div>
17
+ <div id="share_file_modal_content" class="modal_inner"></div>
18
+ </div>
19
+ </div>
20
+ <div id="canvas_border" class="emscripten_border">
21
+ <div id="play_content" class="middle center">
22
+ <div class="edge">
23
+ <div class="box">
24
+ <div class="black"><img src="https://112024093-351892247949035127.preview.editmysite.com/uploads/b/7547235-238727784559188382/files/webapp/cover.jpg" class="cover">
25
+ <p class="title">Recoil</p>
26
+ <p class="author">Martin Magni</p>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ <div id="progress_or_play"><progress id="progress" class="loading" value="0" max="100"></progress></div>
31
+ <p class="description"></p>
32
+ </div>
33
+ <canvas class="emscripten" id="canvas" tabindex="-1"></canvas>
34
+ <div id="gradient"></div>
35
+ <div id="webview_content"></div>
36
+ </div>
37
+ <script src="https://112024093-351892247949035127.preview.editmysite.com/uploads/b/7547235-238727784559188382/files/webapp/source_min.js" crossorigin="anonymous"></script>
38
+ <script src="https://112024093-351892247949035127.preview.editmysite.com/uploads/b/7547235-238727784559188382/files/webapp/index.js" crossorigin="anonymous"></script>
39
+ </body>
40
+ </html>