Commit 5c406c53 authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Counter is never negative (#124)

parent 1c4d8535
......@@ -39,7 +39,7 @@
}
function timer() {
var h=$('#timer').html();
i--;
if(i>0){i--;}
h=h.replace(/\d+/,i);
$('#timer').html(h);
window.setTimeout('timer()',1000);
......
......@@ -39,7 +39,7 @@
}
function timer() {
var h=$('#timer').html();
i--;
if(i>0){i--;}
h=h.replace(/\d+/,i);
$('#timer').html(h);
window.setTimeout('timer()',1000);
......
......@@ -37,7 +37,7 @@
}
function timer() {
var h=$('#timer').html();
i--;
if(i>0){i--;}
h=h.replace(/\d+/,i);
$('#timer').html(h);
window.setTimeout('timer()',1000);
......
......@@ -37,7 +37,7 @@
}
function timer() {
var h=$('#timer').html();
i--;
if(i>0){i--;}
h=h.replace(/\d+/,i);
$('#timer').html(h);
window.setTimeout('timer()',1000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment