From 08e4a27c0db7fc2867cce3eb6f80799148c03ba6 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 25 Jul 2025 15:30:07 +0200 Subject: Moved to a mobile friendly CSS framework --- app/static/custom.css | 13 ++++++------- app/static/custom.js | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'app/static') diff --git a/app/static/custom.css b/app/static/custom.css index 18462d3..9992ee5 100644 --- a/app/static/custom.css +++ b/app/static/custom.css @@ -1,21 +1,20 @@ -button, input, .select, .select select { +button, input, select { width: 100%; height: 100%; } -table { - font-size: 17.5px; -} td { width: 20%; } -.center { - margin: auto; - width: 50%; +.grid { + margin-top: 20px; + margin-bottom: 20px; } .parent { display: grid; grid-column-gap: 20px; grid-row-gap: 20px; + margin-top: 20px; + margin-bottom: 20px; } @media (min-width: 800px) { .parent { diff --git a/app/static/custom.js b/app/static/custom.js index 1d36493..2c47448 100644 --- a/app/static/custom.js +++ b/app/static/custom.js @@ -3,7 +3,7 @@ let timerRunningFlag = Number(sessionStorage.getItem("timerRunningFlag")) || 0; let deadline = Number(sessionStorage.getItem("deadline")) || new Date().getTime(); let clock = 0; -function setTimer(m, s) { +window.onload += function setTimer(m, s) { let timer = document.getElementById("timer-display"); m = m < 10 ? ("0" + m) : m; s = s < 10 ? ("0" + s) : s; -- cgit v1.3.1