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

@ -4,7 +4,7 @@ function redirect() {
); );
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")) {

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

@ -20,7 +20,7 @@
/* /*
@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;
@ -93,7 +93,9 @@
--accent-800: #663800; --accent-800: #663800;
--accent-900: #331c00; --accent-900: #331c00;
--accent-950: #1a0e00; --accent-950: #1a0e00;
}/* }
/*
}*/ }*/
/* /*

View file

@ -2,6 +2,7 @@
:root { :root {
font-size: 14px; font-size: 14px;
} }
h1 { h1 {
font-size: 32px; font-size: 32px;
} }