aboutsummaryrefslogtreecommitdiff
path: root/app/static
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2025-07-25 15:30:07 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2025-07-25 15:30:07 +0200
commit08e4a27c0db7fc2867cce3eb6f80799148c03ba6 (patch)
tree9cf8636933099a550b02b281b6a885b7f3a7bf37 /app/static
parent040a3a894e0816596532d7f7430baa4a5524f67b (diff)
Moved to a mobile friendly CSS framework
Diffstat (limited to 'app/static')
-rw-r--r--app/static/custom.css13
-rw-r--r--app/static/custom.js2
2 files changed, 7 insertions, 8 deletions
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;