mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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);
|
||||
|
||||
// don't allow drags of images, which cause them to be deleted
|
||||
$("img").attr("draggable", false);
|
||||
$("img").attr("draggable", "false");
|
||||
|
||||
// render mathjax
|
||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
|
||||
|
@ -88,7 +88,7 @@ function _showAnswer(a, bodyclass) {
|
|||
});
|
||||
}
|
||||
|
||||
_flagColours = {
|
||||
const _flagColours = {
|
||||
1: "#ff6666",
|
||||
2: "#ff9900",
|
||||
3: "#77ff77",
|
||||
|
@ -115,7 +115,7 @@ function _drawMark(mark) {
|
|||
}
|
||||
|
||||
function _typeAnsPress() {
|
||||
if (window.event.keyCode === 13) {
|
||||
if ((window.event as KeyboardEvent).keyCode === 13) {
|
||||
pycmd("ans");
|
||||
}
|
||||
}
|
1
web/.gitignore
vendored
1
web/.gitignore
vendored
|
@ -2,3 +2,4 @@ webview.js
|
|||
deckbrowser.js
|
||||
overview.js
|
||||
reviewer-bottom.js
|
||||
reviewer.js
|
||||
|
|
Loading…
Reference in a new issue