epileptic turtles

This commit is contained in:
2025-08-18 21:59:03 +02:00
parent 6c8f34acb9
commit f28a6b36ef
2 changed files with 40 additions and 0 deletions

View File

@@ -1,6 +1,26 @@
<!doctype html>
<html lang="en" class="">
<head>
<script>
/*
This fix is for the fucking epileptics. idk what they're called.
It fixes the fucking flashing between changing pages.
This is both in the problems and this file
---
This changes nothing if the user uses light-system
*/
(function() {
try {
var dark = localStorage.getItem("darkMode");
if (
dark === "true" ||
(dark === null && window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.documentElement.classList.add("dark");
}
} catch (e) {}
})();
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Quick Problem Platform</title>

View File

@@ -1,6 +1,26 @@
<!doctype html>
<html lang="en" class="">
<head>
<script>
/*
This fix is for the fucking epileptics. idk what they're called.
It fixes the fucking flashing between changing pages.
This is both in the index and this file
---
This changes nothing if the user uses light-system
*/
(function() {
try {
var dark = localStorage.getItem("darkMode");
if (
dark === "true" ||
(dark === null && window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.documentElement.classList.add("dark");
}
} catch (e) {}
})();
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ problem.title }} - Coding Problem</title>