This commit is contained in:
Damien Elmes 2019-12-18 13:32:32 +10:00
parent cdcf482913
commit b3f6199827
2 changed files with 4 additions and 3 deletions

View file

@ -42,7 +42,7 @@ function _updateQA(html, fadeTime, onupdate, onshown) {
_runHook(onUpdateHook); _runHook(onUpdateHook);
// don't allow drags of images, which cause them to be deleted // don't allow drags of images, which cause them to be deleted
$("img").attr("draggable", false); $("img").attr("draggable", "false");
// render mathjax // render mathjax
MathJax.Hub.Queue(["Typeset", MathJax.Hub]); MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
@ -88,7 +88,7 @@ function _showAnswer(a, bodyclass) {
}); });
} }
_flagColours = { const _flagColours = {
1: "#ff6666", 1: "#ff6666",
2: "#ff9900", 2: "#ff9900",
3: "#77ff77", 3: "#77ff77",
@ -115,7 +115,7 @@ function _drawMark(mark) {
} }
function _typeAnsPress() { function _typeAnsPress() {
if (window.event.keyCode === 13) { if ((window.event as KeyboardEvent).keyCode === 13) {
pycmd("ans"); pycmd("ans");
} }
} }

1
web/.gitignore vendored
View file

@ -2,3 +2,4 @@ webview.js
deckbrowser.js deckbrowser.js
overview.js overview.js
reviewer-bottom.js reviewer-bottom.js
reviewer.js