mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
change timer color at limit
This commit is contained in:
parent
3304bc0aef
commit
259c5c6dfc
1 changed files with 6 additions and 2 deletions
|
@ -442,8 +442,12 @@ var updateTime = function () {
|
|||
if (s < 10) {
|
||||
s = "0" + s;
|
||||
}
|
||||
var e = $("#time").text(time);
|
||||
e.text(m + ":" + s);
|
||||
var e = $("#time");
|
||||
if (maxTime == time) {
|
||||
e.html("<font color=red>" + m + ":" + s + "</font>");
|
||||
} else {
|
||||
e.text(m + ":" + s);
|
||||
}
|
||||
}
|
||||
|
||||
function showQuestion(txt, maxTime_) {
|
||||
|
|
Loading…
Reference in a new issue