This commit is contained in:
nelle 2024-09-01 20:50:03 -06:00
parent 3f9fa188a0
commit dbb5f10092
8 changed files with 92 additions and 88 deletions

View file

@ -2,18 +2,18 @@ function redirect() {
const chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ/.test( const chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ/.test(
navigator.userAgent navigator.userAgent
); );
if (navigator.brave) { if (navigator.brave) {
window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ") window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
} }
if (!navigator.brave) { if (!navigator.brave) {
if (!localStorage.getItem("disclaimerAccepted")) { if (!localStorage.getItem("disclaimerAccepted")) {
if (chromium && screen.width >= 699) { if (chromium && screen.width >= 699) {
window.location.replace("/bsod"); window.location.replace("/bsod");
} }
if (chromium && screen.width <= 699) { if (chromium && screen.width <= 699) {
window.location.replace("/mobile-warn"); window.location.replace("/mobile-warn");
}
} }
} }
}
} }

View file

@ -16,14 +16,13 @@ function sendNotification() {
} }
async function ntfyClick() { async function ntfyClick() {
if (!ntfyInput.value.replace(/\s/g, '').length) { if (!ntfyInput.value.replace(/\s/g, "").length) {
ntfyButton.innerHTML = "<span>ಠ﹏ಠ</span>"; ntfyButton.innerHTML = "<span>ಠ﹏ಠ</span>";
setTimeout(() => { setTimeout(() => {
ntfyButton.innerHTML = "<span>Send</span>"; ntfyButton.innerHTML = "<span>Send</span>";
return; return;
}, 1000); }, 1000);
} } else {
else {
ntfyButton.innerHTML = "<span>Sent! ( ꈍᴗꈍ)</span>"; ntfyButton.innerHTML = "<span>Sent! ( ꈍᴗꈍ)</span>";
sendNotification(); sendNotification();
setTimeout(() => { setTimeout(() => {

View file

@ -1,7 +1,7 @@
// IF YOU EDIT ANYTHING IN HERE DONT FORGET TO EDIT THE SCRIPT IN LAYOUT.ASTRO BECAUSE FUCK ME // IF YOU EDIT ANYTHING IN HERE DONT FORGET TO EDIT THE SCRIPT IN LAYOUT.ASTRO BECAUSE FUCK ME
function onload() { function onload() {
if (sessionStorage.getItem("sgaEnabled")) { if (sessionStorage.getItem("sgaEnabled")) {
enableSGA() enableSGA();
} }
} }
@ -16,13 +16,15 @@ function onload() {
*/ */
function enableSGA() { function enableSGA() {
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui"; document.getElementById("body").style.fontFamily =
"standardGalactic, system-ui";
sessionStorage.setItem("sgaEnabled", 1); sessionStorage.setItem("sgaEnabled", 1);
console.debug(sessionStorage.getItem("sgaEnabled")); console.debug(sessionStorage.getItem("sgaEnabled"));
} }
function disableSGA() { function disableSGA() {
document.getElementById("body").style.fontFamily = "departure-mono, system-ui"; document.getElementById("body").style.fontFamily =
"departure-mono, system-ui";
sessionStorage.removeItem("sgaEnabled"); sessionStorage.removeItem("sgaEnabled");
console.debug(sessionStorage.getItem("sgaEnabled")); console.debug(sessionStorage.getItem("sgaEnabled"));
} }

View file

@ -44,7 +44,7 @@ a:hover {
.container { .container {
display: flex; display: flex;
} }
.error-text { .error-text {
margin-top: 0px; margin-top: 0px;

View file

@ -104,6 +104,6 @@ hr {
} }
.ntfyForm { .ntfyForm {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }

View file

@ -20,80 +20,82 @@
/* /*
@media (prefers-color-scheme: dark) {*/ @media (prefers-color-scheme: dark) {*/
:root { :root {
--text: #f2ede7; --text: #f2ede7;
--background: var(--background-950); --background: var(--background-950);
--primary: #d7bfa2; --primary: #d7bfa2;
--secondary: #76552e; --secondary: #76552e;
--accent: #ffa941; --accent: #ffa941;
--content-gradient: linear-gradient(to bottom right, var(--secondary-800), var(--primary-900)); --content-gradient: linear-gradient(to bottom right, var(--secondary-800), var(--primary-900));
--accent-gradient: linear-gradient(to bottom right, var(--accent), var(--accent-200) 30%, var(--text) 60%); --accent-gradient: linear-gradient(to bottom right, var(--accent), var(--accent-200) 30%, var(--text) 60%);
--link: var(--accent-300); --link: var(--accent-300);
--visited: var(--accent-400); --visited: var(--accent-400);
--hover: var(--accent-500); --hover: var(--accent-500);
--text-50: #f6f3ee; --text-50: #f6f3ee;
--text-100: #ede6de; --text-100: #ede6de;
--text-200: #dbcebd; --text-200: #dbcebd;
--text-300: #c9b59c; --text-300: #c9b59c;
--text-400: #b89c7a; --text-400: #b89c7a;
--text-500: #a68359; --text-500: #a68359;
--text-600: #856947; --text-600: #856947;
--text-700: #634f36; --text-700: #634f36;
--text-800: #423524; --text-800: #423524;
--text-900: #211a12; --text-900: #211a12;
--text-950: #110d09; --text-950: #110d09;
--background-50: #f7f3ee; --background-50: #f7f3ee;
--background-100: #efe7dc; --background-100: #efe7dc;
--background-200: #dfcfb9; --background-200: #dfcfb9;
--background-300: #cfb696; --background-300: #cfb696;
--background-400: #bf9e73; --background-400: #bf9e73;
--background-500: #af8650; --background-500: #af8650;
--background-600: #8c6b40; --background-600: #8c6b40;
--background-700: #695030; --background-700: #695030;
--background-800: #463620; --background-800: #463620;
--background-900: #231b10; --background-900: #231b10;
--background-950: #110d08; --background-950: #110d08;
--primary-50: #f7f3ed; --primary-50: #f7f3ed;
--primary-100: #f0e7db; --primary-100: #f0e7db;
--primary-200: #e0ceb8; --primary-200: #e0ceb8;
--primary-300: #d1b694; --primary-300: #d1b694;
--primary-400: #c29d70; --primary-400: #c29d70;
--primary-500: #b3854d; --primary-500: #b3854d;
--primary-600: #8f6a3d; --primary-600: #8f6a3d;
--primary-700: #6b502e; --primary-700: #6b502e;
--primary-800: #47351f; --primary-800: #47351f;
--primary-900: #241b0f; --primary-900: #241b0f;
--primary-950: #120d08; --primary-950: #120d08;
--secondary-50: #f8f3ed; --secondary-50: #f8f3ed;
--secondary-100: #f1e7da; --secondary-100: #f1e7da;
--secondary-200: #e2ceb6; --secondary-200: #e2ceb6;
--secondary-300: #d4b691; --secondary-300: #d4b691;
--secondary-400: #c69d6c; --secondary-400: #c69d6c;
--secondary-500: #b88547; --secondary-500: #b88547;
--secondary-600: #936a39; --secondary-600: #936a39;
--secondary-700: #6e502b; --secondary-700: #6e502b;
--secondary-800: #49351d; --secondary-800: #49351d;
--secondary-900: #251b0e; --secondary-900: #251b0e;
--secondary-950: #120d07; --secondary-950: #120d07;
--accent-50: #fff4e5; --accent-50: #fff4e5;
--accent-100: #ffe8cc; --accent-100: #ffe8cc;
--accent-200: #ffd199; --accent-200: #ffd199;
--accent-300: #ffba66; --accent-300: #ffba66;
--accent-400: #ffa333; --accent-400: #ffa333;
--accent-500: #ff8c00; --accent-500: #ff8c00;
--accent-600: #cc7000; --accent-600: #cc7000;
--accent-700: #995400; --accent-700: #995400;
--accent-800: #663800; --accent-800: #663800;
--accent-900: #331c00; --accent-900: #331c00;
--accent-950: #1a0e00; --accent-950: #1a0e00;
}/* }
/*
}*/ }*/
/* /*

View file

@ -6,7 +6,7 @@
:root { :root {
font-size: 18px; font-size: 18px;
font-family: departure-mono, system-ui; font-family: departure-mono, system-ui;
padding: 1rem; padding: 1rem;
width: 1000px; width: 1000px;
max-width: calc(100% - 2rem); max-width: calc(100% - 2rem);

View file

@ -2,14 +2,15 @@
:root { :root {
font-size: 14px; font-size: 14px;
} }
h1 { h1 {
font-size: 32px; font-size: 32px;
} }
.ntfyForm { .ntfyForm {
display: list-item; display: list-item;
margin-top: -8%; margin-top: -8%;
margin-bottom: 8%; margin-bottom: 8%;
} }
} }