this works now, ironed out shit and made stuff work

This commit is contained in:
2025-08-17 11:47:56 +02:00
parent 57a7b0e68f
commit 5dc45b9a9b
8 changed files with 1664 additions and 1663 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash u!/bin/bash
set -e # exit if any command fails set -e # exit if any command fails

1
run.bat Normal file
View File

@@ -0,0 +1 @@
python -m flask --app .\src\app.py run --host=0.0.0.0 --port=5000

View File

@@ -82,10 +82,10 @@ header p {
transform: scale(1.05); transform: scale(1.05);
} }
html.dark .dark-mode-icon::before { html.dark .dark-mode-icon::before {
content: "☀️"; content: "☀";
} }
html:not(.dark) .dark-mode-icon::before { html:not(.dark) .dark-mode-icon::before {
content: "🌙"; content: "";
} }
.dark-mode-icon { .dark-mode-icon {
display: inline-block; display: inline-block;

View File

@@ -129,11 +129,11 @@ body {
} }
html.dark .dark-mode-icon::before { html.dark .dark-mode-icon::before {
content: "☀"; content: "☀";
} }
html:not(.dark) .dark-mode-icon::before { html:not(.dark) .dark-mode-icon::before {
content: "🌙"; content: "";
} }
.dark-mode-icon { .dark-mode-icon {

View File

@@ -8,6 +8,7 @@ document.addEventListener("DOMContentLoaded", () => {
if ( if (
savedDarkMode === "true" || savedDarkMode === "true" ||
(savedDarkMode === null && (savedDarkMode === null &&
// detect if the user already has a dark mode enabled in the system settings ( works for all systems )
window.matchMedia("(prefers-color-scheme: dark)").matches) window.matchMedia("(prefers-color-scheme: dark)").matches)
) { ) {
html.classList.add("dark"); html.classList.add("dark");
@@ -31,7 +32,7 @@ document.addEventListener("DOMContentLoaded", () => {
let allProblemItems = []; let allProblemItems = [];
let filteredProblemItems = []; let filteredProblemItems = [];
let currentPage = 1; let currentPage = 1;
const itemsPerPage = 10; const itemsPerPage = 5;
// Initialize problem items // Initialize problem items
function initializeProblemItems() { function initializeProblemItems() {

View File

@@ -26,8 +26,7 @@
#rankInfoBtn.active { transform: rotate(90deg); } #rankInfoBtn.active { transform: rotate(90deg); }
/* Highlight top rank */ /* Highlight top rank */
.rank-1 { background-color: #f0fff0; } .rank-1 td:first-child { font-weight: bold; }
.rank-1 td:first-child { font-weight: bold; color: #2e7d32; }
.sort-asc::after { content: " ↑"; } .sort-asc::after { content: " ↑"; }
.sort-desc::after { content: " ↓"; } .sort-desc::after { content: " ↓"; }
</style> </style>