fix bug
parent
d18cd343ad
commit
2ef07b2b20
|
@ -146,7 +146,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
|
||||||
timer.notify('every_tenth_second', function () {
|
timer.notify('every_tenth_second', function () {
|
||||||
var time = timer.getTime();
|
var time = timer.getTime();
|
||||||
var minutes = H5P.Timer.extractTimeElement(time, 'minutes');
|
var minutes = H5P.Timer.extractTimeElement(time, 'minutes');
|
||||||
var seconds = H5P.Timer.extractTimeElement(time, 'seconds');
|
var seconds = H5P.Timer.extractTimeElement(time, 'seconds') % 60;
|
||||||
if (seconds < 10) {
|
if (seconds < 10) {
|
||||||
seconds = '0' + seconds;
|
seconds = '0' + seconds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue