main #8
8 changed files with 92 additions and 88 deletions
|
@ -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")) {
|
||||||
|
|
|
@ -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(() => {
|
||||||
|
|
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,9 @@
|
||||||
--accent-800: #663800;
|
--accent-800: #663800;
|
||||||
--accent-900: #331c00;
|
--accent-900: #331c00;
|
||||||
--accent-950: #1a0e00;
|
--accent-950: #1a0e00;
|
||||||
}/*
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
:root {
|
:root {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue