Merge pull request #17 from otacke/H5P-Timer

fix bug
pull/18/head
Frode Petterson 2017-01-20 15:07:53 +01:00 committed by GitHub
commit 13cda50928
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
timer.notify('every_tenth_second', function () {
var time = timer.getTime();
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) {
seconds = '0' + seconds;
}