From 19e9ca2d22040e2d4963a6aaa6210d628a8a988f Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 4 Apr 2022 23:09:05 +0100 Subject: [PATCH] add history option --- js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/main.js b/js/main.js index b1afc04..7568844 100644 --- a/js/main.js +++ b/js/main.js @@ -1036,6 +1036,11 @@ async function loadQuestion(n, section = 1, force_reload = false) { $(".question .title").get(0).innerHTML = '' + display_n + ""; } + if (question_data.history) { + $(".question .stem").text(question_data.history); + } else { + $(".question .stem").empty(); + } // Close any open figures //let el = document.getElementById("dicom-image");