epileptic turtles
This commit is contained in:
@@ -1,6 +1,26 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" class="">
|
<html lang="en" class="">
|
||||||
<head>
|
<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 charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
<title>Quick Problem Platform</title>
|
<title>Quick Problem Platform</title>
|
||||||
|
|||||||
@@ -1,6 +1,26 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" class="">
|
<html lang="en" class="">
|
||||||
<head>
|
<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 charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{{ problem.title }} - Coding Problem</title>
|
<title>{{ problem.title }} - Coding Problem</title>
|
||||||
|
|||||||
Reference in New Issue
Block a user