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