diff --git a/src/js/script.js b/src/js/script.js index 01c9b5363..8c723574d 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -3760,7 +3760,7 @@ function updateTestModesNotice() { if (sameWordset) { $(".pageTest #testModesNotice").append( - `
repeated
` + `
repeated
` ); } @@ -3793,7 +3793,7 @@ function updateTestModesNotice() { if (config.blindMode) { $(".pageTest #testModesNotice").append( - `
blind
` + `
blind
` ); } @@ -4805,12 +4805,15 @@ $(document).mousemove(function (event) { $(document).on("click", "#testModesNotice .text-button", (event) => { let commands = eval($(event.currentTarget).attr("commands")); + let func = $(event.currentTarget).attr("function"); if (commands !== undefined) { if ($(event.currentTarget).attr("commands") === "commandsTags") { updateCommandsTagsList(); } currentCommands.push(commands); showCommandLine(); + } else if (func != undefined) { + eval(func); } });