From 46575bf30d8f3c78727b6698922607d8f79dfb9b Mon Sep 17 00:00:00 2001 From: ByteDice Date: Sun, 19 Jan 2025 01:19:34 +0100 Subject: [PATCH] its 1:20am i forgor what i did --- global/globalScript.js | 4 ++-- toys/license/index.html | 19 ++++++++++++------- toys/license/script.js | 29 ++++++++++++++++++++++++++++- toys/license/style.css | 9 ++++++--- 4 files changed, 48 insertions(+), 13 deletions(-) diff --git a/global/globalScript.js b/global/globalScript.js index cbb7d48..85fcf86 100644 --- a/global/globalScript.js +++ b/global/globalScript.js @@ -153,8 +153,8 @@ document.addEventListener("DOMContentLoaded", async function() { onLoadNavBar() switch (CURRENT_PAGE) { - case (PAGES.SYNTHWAVE): loadingScreenSynthwave() - case (PAGES.LICENSE): onLoadLicense() + case (PAGES.SYNTHWAVE): loadingScreenSynthwave(); break + case (PAGES.LICENSE): onLoadLicense(); break } pauseAnimBtn(localStorage["isAnimating"] || "true") diff --git a/toys/license/index.html b/toys/license/index.html index 8728293..168c2f0 100644 --- a/toys/license/index.html +++ b/toys/license/index.html @@ -15,6 +15,11 @@ + + + + +
@@ -42,7 +47,7 @@
-
+
@@ -50,14 +55,14 @@

Sign here

- +
-

For

Byte Dice

-

Issued

2025-01-18

-

Expires

never

-

Identity

unknown

-

Silly
10/10

+

For

Byte Dice

+

Issued

2025-01-18

+

Expires

never

+

Identity

unknown

+

Silly
10/10

diff --git a/toys/license/script.js b/toys/license/script.js index b09cad5..6a0f3c2 100644 --- a/toys/license/script.js +++ b/toys/license/script.js @@ -1,6 +1,16 @@ CURRENT_PAGE = PAGES.LICENSE -const sillyInput = document.getElementById("sillyInput") +const authorInput = document.getElementById("authorInput") +const createdInput = document.getElementById("createdInput") +const expireInput = document.getElementById("expireInput") +const identityInput = document.getElementById("identityInput") +const sillyInput = document.getElementById("sillyInput") + +const authorValue = document.getElementById("authorValue") +const createdValue = document.getElementById("createdValue") +const expireValue = document.getElementById("expireValue") +const genderValue = document.getElementById("genderValue") +const sillyValue = document.getElementById("sillyValue") const sillyNumberValue = document.getElementById("sillyNumberValue") @@ -11,11 +21,28 @@ function prependZero(number) { return number } +authorInput.oninput = function() { + authorValue.innerHTML = this.value +} +createdInput.oninput = function() { + createdValue.innerHTML = this.value +} +expireInput.oninput = function() { + expireValue.innerHTML = this.value +} +identityInput.oninput = function() { + genderValue.innerHTML = this.value +} sillyInput.oninput = function() { sillyNumberValue.innerHTML = prependZero(this.value) } function onLoadLicense() { + authorValue.innerHTML = prependZero(authorInput.value) + createdValue.innerHTML = prependZero(createdInput.value) + expireValue.innerHTML = prependZero(expireInput.value) + genderValue.innerHTML = prependZero(identityInput.value) + sillyNumberValue.innerHTML = prependZero(sillyInput.value) } \ No newline at end of file diff --git a/toys/license/style.css b/toys/license/style.css index a37cf9f..8c0e5b6 100644 --- a/toys/license/style.css +++ b/toys/license/style.css @@ -10,8 +10,7 @@ #licenseContainer { width: 600px; height: 400px; - padding: 40px; - padding-top: 80px; + padding: 40px 40px 40px 40px; position: absolute; left: 50%; bottom: 0%; @@ -29,6 +28,7 @@ color: #000000; } #picContainer { + margin-top: 40px; width: 150px; height: 150px; } @@ -121,7 +121,7 @@ input { .slider::-webkit-slider-thumb, .slider::-moz-range-thumb { -webkit-appearance: none; appearance: none; - background-color: var(--navBar_Border); + background-color: var(--navBar_Inner); border: none; cursor: pointer; border-radius: 0%; @@ -161,4 +161,7 @@ input { width: round(auto, var(--pxDensity)); height: auto; aspect-ratio: 1 / 1; +} +#sillyValue { + display: inline; } \ No newline at end of file