mirror of https://github.com/hykilpikonna/AquaDX
[+] Chusan Userbox Egg
parent
852569d877
commit
f1fbf4c016
|
@ -1,9 +1,8 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Happy April Fools!
|
Happy April Fools!
|
||||||
|
This theme will stay here.
|
||||||
Some assets are owned by SEGA.
|
Note that I made it with Stylish in mind, it's quite jank.
|
||||||
CHUNITHM-NET and CHUNITHM are IPs of SEGA.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
* {
|
* {
|
||||||
|
@ -23,7 +22,7 @@ nav > *.active,
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
#app {
|
#app {
|
||||||
background: url(/assets/chu/logo.bin),
|
background: url(/assets/theme/cn/logo.bin),
|
||||||
#f9f9db;
|
#f9f9db;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 50% 4px;
|
background-position: 50% 4px;
|
||||||
|
@ -35,7 +34,7 @@ nav > *.active,
|
||||||
12px 0 0 0 #f9f9db;
|
12px 0 0 0 #f9f9db;
|
||||||
}
|
}
|
||||||
nav:has(.logo) {
|
nav:has(.logo) {
|
||||||
position: fixed !important;
|
position: absolute !important;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: calc(100% - 96px);
|
width: calc(100% - 96px);
|
||||||
|
@ -62,7 +61,7 @@ nav.tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0 0 10px 0 !important;
|
margin: 0 0 10px 0 !important;
|
||||||
background: url(/assets/chu/header.bin);
|
background: url(/assets/theme/cn/header.bin);
|
||||||
}
|
}
|
||||||
.chuni-userbox-row {
|
.chuni-userbox-row {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
@ -12,6 +12,7 @@
|
||||||
import { ANNOUNCEMENT } from "./libs/config";
|
import { ANNOUNCEMENT } from "./libs/config";
|
||||||
import { t } from "./libs/i18n";
|
import { t } from "./libs/i18n";
|
||||||
import Transfer from "./pages/Transfer/Transfer.svelte";
|
import Transfer from "./pages/Transfer/Transfer.svelte";
|
||||||
|
import { link } from "d3";
|
||||||
|
|
||||||
console.log(`%c
|
console.log(`%c
|
||||||
┏━┓ ┳━┓━┓┏━
|
┏━┓ ┳━┓━┓┏━
|
||||||
|
@ -38,16 +39,16 @@
|
||||||
})
|
})
|
||||||
}).catch(e => console.error(e))
|
}).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;
|
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>
|
</script>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
|
|
|
@ -115,6 +115,16 @@
|
||||||
link.click();
|
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 DDSreader: DDS | undefined;
|
||||||
|
|
||||||
let USERBOX_PROGRESS = 0;
|
let USERBOX_PROGRESS = 0;
|
||||||
|
@ -301,7 +311,7 @@
|
||||||
<span>{USERBOX_SETUP_MODE ? t('userbox.new.url_warning') : USERBOX_SETUP_TEXT}</span>
|
<span>{USERBOX_SETUP_MODE ? t('userbox.new.url_warning') : USERBOX_SETUP_TEXT}</span>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
{#if USERBOX_SETUP_MODE}
|
{#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}
|
{:else}
|
||||||
{#if USERBOX_PROGRESS != 0}
|
{#if USERBOX_PROGRESS != 0}
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
|
|
Loading…
Reference in New Issue