From e1dbf7be83f63aaaef7e0afc564050f0869b80f7 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Fri, 12 Jan 2024 10:23:21 +0000 Subject: [PATCH] Track and display the version of this script --- quiz.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quiz.js b/quiz.js index be35119..b97e424 100644 --- a/quiz.js +++ b/quiz.js @@ -1,7 +1,7 @@ // This horrible file is distributed under the CC0 license. Consult // ./LICENSE for more details. -// $Id: quiz.js,v 1.3 2024/01/12 10:15:28 oj14ozun Exp oj14ozun $ +const version = "$Id: quiz.js,v 1.4 2024/01/12 10:17:23 oj14ozun Exp oj14ozun $"; "use strict"; @@ -13,6 +13,7 @@ const info = document.getElementById("info"); const info_toggle = document.getElementById("info-toggle"); const action = document.getElementById("action"); const stats = document.getElementById("stats"); +const js_version = document.getElementById("js-version"); const class_list = document.documentElement.classList; @@ -235,3 +236,5 @@ action.onclick = _ => { // when done, load first question next(); })(); + +js_version.innerHTML = version; -- GitLab