main #8

Closed
limepotato wants to merge 183 commits from main into blog-drafts
8 changed files with 92 additions and 88 deletions
Showing only changes of commit dbb5f10092 - Show all commits

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

@ -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;
} }