[+] Chusan Userbox Egg

pull/140/head
Raymond 2025-04-02 01:05:27 -04:00 committed by Azalea
parent dc8482b884
commit fa0ebd20c3
5 changed files with 25 additions and 15 deletions

View File

@ -1,9 +1,8 @@
/*
Happy April Fools!
Some assets are owned by SEGA.
CHUNITHM-NET and CHUNITHM are IPs of SEGA.
This theme will stay here.
Note that I made it with Stylish in mind, it's quite jank.
*/
* {
@ -23,7 +22,7 @@ nav > *.active,
box-shadow: none !important;
}
#app {
background: url(/assets/chu/logo.bin),
background: url(/assets/theme/cn/logo.bin),
#f9f9db;
background-repeat: no-repeat;
background-position: 50% 4px;
@ -35,7 +34,7 @@ nav > *.active,
12px 0 0 0 #f9f9db;
}
nav:has(.logo) {
position: fixed !important;
position: absolute !important;
top: 0;
left: 0;
width: calc(100% - 96px);
@ -62,7 +61,7 @@ nav.tabs {
display: flex;
justify-content: center;
margin: 0 0 10px 0 !important;
background: url(/assets/chu/header.bin);
background: url(/assets/theme/cn/header.bin);
}
.chuni-userbox-row {
flex-wrap: wrap;

View File

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -12,6 +12,7 @@
import { ANNOUNCEMENT } from "./libs/config";
import { t } from "./libs/i18n";
import Transfer from "./pages/Transfer/Transfer.svelte";
import { link } from "d3";
console.log(`%c
┏━┓ ┳━┓━┓┏━
@ -38,16 +39,16 @@
})
}).catch(e => console.error(e))
const themeStyle = document.createElement("link");
themeStyle.rel = "stylesheet";
switch (localStorage.getItem("theme")) {
case "cn":
themeStyle.href = "/assets/theme/cn.css";
};
if (themeStyle.href)
document.head.appendChild(themeStyle);
}
let path = window.location.pathname;
if (new Date("April 2 2025") - new Date() > 0 && localStorage.getItem("token"))
{
const s = document.createElement("link");
s.href = "/assets/chu/aqua.css";
s.rel = "stylesheet";
document.head.appendChild(s);
}
</script>
<nav>

View File

@ -115,6 +115,16 @@
link.click();
}
function g(v: string) {
if (v != ("\x63\x68\x75\x6E\x69\x74\x68\x6D ").repeat(3).trim()) return;
const t = v.substring(5, 6) + v.substring(1, 2) + "eme";
if (!localStorage.getItem(t)) {
localStorage.setItem(t, v.substring(0, 1) + "\x6E");
} else
localStorage.removeItem(t);
location.reload();
}
let DDSreader: DDS | undefined;
let USERBOX_PROGRESS = 0;
@ -301,7 +311,7 @@
<span>{USERBOX_SETUP_MODE ? t('userbox.new.url_warning') : USERBOX_SETUP_TEXT}</span>
<div class="actions">
{#if USERBOX_SETUP_MODE}
<input type="text" on:keyup={e => {if (e.key == "Enter") userboxHandleInput((e.target as HTMLInputElement).value)}} class="add-margin" placeholder="Base URL">
<input type="text" on:keyup={e => {if (e.key == "Enter") { userboxHandleInput((e.target as HTMLInputElement).value) } else g(e.currentTarget.value)}} class="add-margin" placeholder="Base URL">
{:else}
{#if USERBOX_PROGRESS != 0}
<div class="progress">