|
1 | | -(function () { |
2 | | - const now = Date.now(); |
3 | | - const start = Date.UTC(2026, 2, 31, 0, 0, 0); // 2026-03-31T00:00:00Z |
4 | | - const end = Date.UTC(2026, 3, 2, 0, 0, 0); // 2026-04-02T00:00:00Z |
| 1 | +// April fool 2026 |
| 2 | +// (function () { |
| 3 | +// const now = Date.now(); |
| 4 | +// const start = Date.UTC(2026, 2, 31, 0, 0, 0); // 2026-03-31T00:00:00Z |
| 5 | +// const end = Date.UTC(2026, 3, 2, 0, 0, 0); // 2026-04-02T00:00:00Z |
5 | 6 |
|
6 | | - if (now < start || now >= end) { |
7 | | - return; |
8 | | - } |
| 7 | +// if (now < start || now >= end) { |
| 8 | +// return; |
| 9 | +// } |
9 | 10 |
|
10 | | - const hideBanner = window.location.hostname === "hub.jmonkeyengine.org"; |
| 11 | +// const hideBanner = window.location.hostname === "hub.jmonkeyengine.org"; |
11 | 12 |
|
12 | | - window.CrabBonkConfig = { |
13 | | - assetBase: "https://rcrabengine.github.io/CrabBonk/crab-bonk-assets/", |
14 | | - bottomOffset: 48 |
15 | | - }; |
| 13 | +// window.CrabBonkConfig = { |
| 14 | +// assetBase: "https://rcrabengine.github.io/CrabBonk/crab-bonk-assets/", |
| 15 | +// bottomOffset: 48 |
| 16 | +// }; |
16 | 17 |
|
17 | | - const script = document.createElement("script"); |
18 | | - script.src = "https://rcrabengine.github.io/CrabBonk/crab-bonk.js"; |
19 | | - script.async = true; |
20 | | - script.onload = () => console.log("CrabBonk loaded!"); |
21 | | - script.onerror = () => console.error("Failed to load CrabBonk"); |
22 | | - document.head.appendChild(script); |
| 18 | +// const script = document.createElement("script"); |
| 19 | +// script.src = "https://rcrabengine.github.io/CrabBonk/crab-bonk.js"; |
| 20 | +// script.async = true; |
| 21 | +// script.onload = () => console.log("CrabBonk loaded!"); |
| 22 | +// script.onerror = () => console.error("Failed to load CrabBonk"); |
| 23 | +// document.head.appendChild(script); |
23 | 24 |
|
24 | | - function addBanner() { |
25 | | - if (hideBanner) { |
26 | | - return; |
27 | | - } |
| 25 | +// function addBanner() { |
| 26 | +// if (hideBanner) { |
| 27 | +// return; |
| 28 | +// } |
28 | 29 |
|
29 | | - const link = document.createElement("a"); |
30 | | - link.href = "https://hub.jmonkeyengine.org/t/jmonkeyengine-is-dead-long-live-rcrabengine/49445"; |
31 | | - link.target = "_blank"; |
32 | | - link.rel = "noopener noreferrer"; |
33 | | - link.textContent = "jMonkeyEngine is rebranding to rCrabEngine — click to discover more"; |
| 30 | +// const link = document.createElement("a"); |
| 31 | +// link.href = "https://hub.jmonkeyengine.org/t/jmonkeyengine-is-dead-long-live-rcrabengine/49445"; |
| 32 | +// link.target = "_blank"; |
| 33 | +// link.rel = "noopener noreferrer"; |
| 34 | +// link.textContent = "jMonkeyEngine is rebranding to rCrabEngine — click to discover more"; |
34 | 35 |
|
35 | | - Object.assign(link.style, { |
36 | | - // pointerEvents: "none", |
37 | | - position: "fixed", |
38 | | - left: "0", |
39 | | - right: "0", |
40 | | - bottom: "0", |
41 | | - display: "block", |
42 | | - padding: "6px 3px", |
43 | | - background: "#111", |
44 | | - color: "#fff", |
45 | | - textAlign: "center", |
46 | | - textDecoration: "none", |
47 | | - fontFamily: "sans-serif", |
48 | | - fontSize: "12px", |
49 | | - zIndex: "999999", |
50 | | - opacity: "0.7" |
51 | | - }); |
| 36 | +// Object.assign(link.style, { |
| 37 | +// // pointerEvents: "none", |
| 38 | +// position: "fixed", |
| 39 | +// left: "0", |
| 40 | +// right: "0", |
| 41 | +// bottom: "0", |
| 42 | +// display: "block", |
| 43 | +// padding: "6px 3px", |
| 44 | +// background: "#111", |
| 45 | +// color: "#fff", |
| 46 | +// textAlign: "center", |
| 47 | +// textDecoration: "none", |
| 48 | +// fontFamily: "sans-serif", |
| 49 | +// fontSize: "12px", |
| 50 | +// zIndex: "999999", |
| 51 | +// opacity: "0.7" |
| 52 | +// }); |
52 | 53 |
|
53 | | - link.addEventListener("mouseenter", () => { |
54 | | - link.style.textDecoration = "underline"; |
55 | | - }); |
| 54 | +// link.addEventListener("mouseenter", () => { |
| 55 | +// link.style.textDecoration = "underline"; |
| 56 | +// }); |
56 | 57 |
|
57 | | - link.addEventListener("mouseleave", () => { |
58 | | - link.style.textDecoration = "none"; |
59 | | - }); |
| 58 | +// link.addEventListener("mouseleave", () => { |
| 59 | +// link.style.textDecoration = "none"; |
| 60 | +// }); |
60 | 61 |
|
61 | | - document.body.appendChild(link); |
62 | | - } |
| 62 | +// document.body.appendChild(link); |
| 63 | +// } |
63 | 64 |
|
64 | | - if (document.body) { |
65 | | - addBanner(); |
66 | | - } else { |
67 | | - window.addEventListener("DOMContentLoaded", addBanner); |
68 | | - } |
69 | | -})(); |
| 65 | +// if (document.body) { |
| 66 | +// addBanner(); |
| 67 | +// } else { |
| 68 | +// window.addEventListener("DOMContentLoaded", addBanner); |
| 69 | +// } |
| 70 | +// })(); |
0 commit comments