We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970b911 commit 90d91a9Copy full SHA for 90d91a9
lib/WeBWorK/lib/WebworkClient/jwe_secure_format.pl
@@ -91,6 +91,12 @@
91
});
92
event.source.postMessage('updated templates', event.origin);
93
}
94
+
95
+ if (message.hasOwnProperty('showSolutions')) {
96
+ const elements = Array.from(window.document.querySelectorAll('.knowl[data-type="solution"]'));
97
+ const solutions = elements.map(el => el.dataset.knowlContents);
98
+ event.source.postMessage(JSON.stringify({solutions: solutions}), event.origin);
99
+ }
100
101
</script>
102
</body>
0 commit comments