summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authoradityacp2020-11-03 17:52:24 +0530
committeradityacp2020-11-03 17:54:33 +0530
commitaef2589eadaf7f3252e281286ab1bb83e690ba6a (patch)
tree1764959aca48f835be56c0819cddd286aeb8b4df /yaksh/static
parent167b53a673630c4243c5d82a5966797213a5fa28 (diff)
parent81f96a24954d375ab32ab8dfb1ee8aba299655c6 (diff)
downloadonline_test-aef2589eadaf7f3252e281286ab1bb83e690ba6a.tar.gz
online_test-aef2589eadaf7f3252e281286ab1bb83e690ba6a.tar.bz2
online_test-aef2589eadaf7f3252e281286ab1bb83e690ba6a.zip
Resolve conflicts
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/lesson.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/yaksh/static/yaksh/js/lesson.js b/yaksh/static/yaksh/js/lesson.js
index 2cc2e62..586ae18 100644
--- a/yaksh/static/yaksh/js/lesson.js
+++ b/yaksh/static/yaksh/js/lesson.js
@@ -1,13 +1,20 @@
$(document).ready(function() {
- MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
var simplemde = new SimpleMDE({
element: document.getElementById("id_description"),
forceSync: true,
hideIcons: ["preview", "side-by-side", "fullscreen"]
});
simplemde.codemirror.on("change", function() {
- MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
$("#description_body").html(simplemde.markdown(simplemde.value()));
+ renderMathInElement(
+ document.body,
+ {
+ delimiters: [
+ {left: "$$", right: "$$", display: false},
+ {left: "$", right: "$", display: true},
+ ]
+ }
+ );
});
const player = new Plyr('#player');
var timer = $("#vtimer");