this works now, ironed out shit and made stuff work
This commit is contained in:
2
run.bash
2
run.bash
@@ -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
1
run.bat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
python -m flask --app .\src\app.py run --host=0.0.0.0 --port=5000
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user