mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
reviewer
This commit is contained in:
parent
cdcf482913
commit
b3f6199827
2 changed files with 4 additions and 3 deletions
|
@ -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
1
web/.gitignore
vendored
|
@ -2,3 +2,4 @@ webview.js
|
||||||
deckbrowser.js
|
deckbrowser.js
|
||||||
overview.js
|
overview.js
|
||||||
reviewer-bottom.js
|
reviewer-bottom.js
|
||||||
|
reviewer.js
|
||||||
|
|
Loading…
Reference in a new issue