From b3b4775ffb4f4bab129a0fce0b25f4fe4fb5feb4 Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Wed, 13 Dec 2023 18:00:53 +0100 Subject: [PATCH] make it easier to add custom percent values as grading items --- amd/build/ui.min.js | 2 +- amd/build/ui.min.js.map | 2 +- amd/src/ui.js | 129 ++++++++++++++++++++++++++-------------- lang/en/tiny_cloze.php | 1 + styles.css | 4 ++ 5 files changed, 90 insertions(+), 48 deletions(-) diff --git a/amd/build/ui.min.js b/amd/build/ui.min.js index be1dcca..628e45e 100644 --- a/amd/build/ui.min.js +++ b/amd/build/ui.min.js @@ -5,6 +5,6 @@ define("tiny_cloze/ui",["exports","core/modal_events","core/modal","core/modal_f * @module tiny_cloze/ui * @copyright 2023 MoodleDACH * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.resolveSubquestion=_exports.onSubmit=_exports.onInit=_exports.onBeforeGetContent=_exports.displayDialogue=void 0,_modal_events=_interopRequireDefault(_modal_events),_modal2=_interopRequireDefault(_modal2),_modal_factory=_interopRequireDefault(_modal_factory),_mustache=_interopRequireDefault(_mustache);const isNull=a=>null==a,strdecode=t=>String(t).replace(/\\(#|\}|~)/g,"$1"),strencode=t=>String(t).replace(/(#|\}|~)/g,"\\$1"),indexOfNode=(list,node)=>{for(let i=0;i{let html='