Prepare monitoring using Statements component (early draft stage)
[qomet.git] / public / javascripts / utils / libsRefresh.js
diff --git a/public/javascripts/utils/libsRefresh.js b/public/javascripts/utils/libsRefresh.js
new file mode 100644 (file)
index 0000000..4bdb7a0
--- /dev/null
@@ -0,0 +1,8 @@
+function statementsLibsRefresh()
+{
+       // Run Prism + MathJax on questions text
+       $("#statements").find("code[class^=language-]").each( (i,elem) => {
+               Prism.highlightElement(elem);
+       });
+       MathJax.Hub.Queue(["Typeset",MathJax.Hub,"statements"]);
+}