From 767a7e8681d86b9e0b969ac31c2fb1eb7b156ba9 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 26 Jun 2021 14:07:30 +0100 Subject: [PATCH] tidy cache display --- index.html | 3 +++ js/main.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 08cadef..fee27f3 100644 --- a/index.html +++ b/index.html @@ -87,8 +87,11 @@
+
+
+
diff --git a/js/main.js b/js/main.js index 2272e78..a8c70ac 100644 --- a/js/main.js +++ b/js/main.js @@ -221,9 +221,9 @@ async function loadExamList(data) { // Check the database for exams that have been saved question_db.saved_exams.toArray().then((saved_exams) => { if (saved_exams.length < 1) { - $("#cache-details ul").append("No cached exams / questions"); + $("#cache-details summary").append("No cached exams / questions"); } else { - $("#cache-details ul").append("Cached exams / questions:"); + $("#cache-details summary").append("Cached exams / questions:"); } saved_exams.forEach((saved_exam, n) => { $("#cache-details ul").append(