diff --git a/devEnv.sh b/devEnv.sh
new file mode 100755
index 0000000..a5b5189
--- /dev/null
+++ b/devEnv.sh
@@ -0,0 +1 @@
+./node_modules/.bin/astro dev --host
diff --git a/public/scripts/chromium.js b/public/scripts/chromium.js
new file mode 100644
index 0000000..853ff7f
--- /dev/null
+++ b/public/scripts/chromium.js
@@ -0,0 +1,15 @@
+function getAccepted() {
+ var value = localStorage.getItem("accepted");
+ return (value = "0");
+}
+
+function setAccepted() {
+ localStorage.setItem("accepted", accepted ? "0" : "1");
+}
+
+function acceptDisclaimer(disclaimer) {
+ if (getAccepted() == 0) setAccepted(1);
+ else {
+ setAccepted(0);
+ }
+}
diff --git a/public/scripts/limepot.js b/public/scripts/limepot.js
index 4e5b74e..1ffa7c4 100644
--- a/public/scripts/limepot.js
+++ b/public/scripts/limepot.js
@@ -1,8 +1,22 @@
+const value = localStorage.getItem("value");
+
function onload() {
+ if (JSON.parse(value) !== true) localStorage.setItem("value", true);
redirect();
sdocument.getElementById("body").style.fontFamily = "system-ui, sans-serif";
}
+function redirect() {
+ let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
+ navigator.userAgent,
+ );
+ //let disclaimer = `
`;
+ if (chromium && screen.width >= 699 && getAccepted() == 0)
+ window.location.replace("/bsod");
+ if (chromium && screen.width <= 699 && getAccepted() == 0)
+ window.location.replace("/mobile-warn");
+}
+
function toggleTheme() {
// Obtains an array of all
// elements.
@@ -14,21 +28,12 @@ function toggleTheme() {
}
}
-function redirect() {
- let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
- navigator.userAgent
- );
- let disclaimer = `
`;
- if ((chromium) && (screen.width >= 699)) window.location.replace("/bsod");
- if ((chromium) && (screen.width <= 699)) window.location.replace("/mobile-warn");
-}
-
// Resizable textarea
const tx = document.getElementsByTagName("textarea");
for (let i = 0; i < tx.length; i++) {
tx[i].setAttribute(
"style",
- "height:" + tx[i].scrollHeight + "px;overflow-y:hidden;"
+ "height:" + tx[i].scrollHeight + "px;overflow-y:hidden;",
);
tx[i].addEventListener("input", OnInput, false);
}
@@ -50,19 +55,21 @@ function StopSound(soundobj) {
thissound.currentTime = 0;
}
-const audio = new Audio("/assets/sounds/ui/zapsplat_multimedia_button_click_004_68776.mp3");
+const audio = new Audio(
+ "/assets/sounds/ui/zapsplat_multimedia_button_click_004_68776.mp3",
+);
const buttons = document.querySelectorAll("button");
const links = document.querySelectorAll("a");
// biome-ignore lint/complexity/noForEach:
-links.forEach(a => {
+links.forEach((a) => {
a.addEventListener("click", () => {
audio.play();
- })
-})
+ });
+});
// biome-ignore lint/complexity/noForEach:
-buttons.forEach(button => {
+buttons.forEach((button) => {
button.addEventListener("click", () => {
audio.play();
});
diff --git a/src/content/drafts/i_dislike_chromium.md b/src/content/drafts/i_dislike_chromium.md
new file mode 100644
index 0000000..9682f55
--- /dev/null
+++ b/src/content/drafts/i_dislike_chromium.md
@@ -0,0 +1,7 @@
+---
+title: 'I Do Not Like Chromium'
+description: 'A full dissertation on why I hate Chrome'
+pubDate: 'July 10 2024'
+---
+
+## Chromium sucka and so do i
diff --git a/src/pages/nochrome.astro b/src/pages/nochrome.astro
index 037a534..752a917 100644
--- a/src/pages/nochrome.astro
+++ b/src/pages/nochrome.astro
@@ -24,6 +24,10 @@ import Layout from "../layouts/Layout-nochrome.astro";
+ Click here to avoid the redirect and view my website as normal
+
Some Recommendations