increase the delay to 7 seconds
This commit is contained in:
parent
ce9ac7ed3a
commit
ba851a6fe8
1 changed files with 5 additions and 3 deletions
|
@ -1,14 +1,16 @@
|
||||||
|
var DEFAULT_DELAY = 7;
|
||||||
|
|
||||||
var Countdown = {
|
var Countdown = {
|
||||||
_timeout: null,
|
_timeout: null,
|
||||||
_stepCb: null,
|
_stepCb: null,
|
||||||
_timeoutCb: null,
|
_timeoutCb: null,
|
||||||
running: false,
|
running: false,
|
||||||
seconds: 5,
|
seconds: DEFAULT_DELAY,
|
||||||
_initial_seconds: 5,
|
_initial_seconds: DEFAULT_DELAY,
|
||||||
|
|
||||||
start: function(seconds, timeoutCb, stepCb) {
|
start: function(seconds, timeoutCb, stepCb) {
|
||||||
Countdown.stop();
|
Countdown.stop();
|
||||||
Countdown.seconds = Countdown._initial_seconds = seconds || 5;
|
Countdown.seconds = Countdown._initial_seconds = seconds || DEFAULT_DELAY;
|
||||||
Countdown._timeoutCb = timeoutCb || Countdown._timeoutCb;
|
Countdown._timeoutCb = timeoutCb || Countdown._timeoutCb;
|
||||||
Countdown._stepCb = stepCb || Countdown._stepCb;
|
Countdown._stepCb = stepCb || Countdown._stepCb;
|
||||||
Countdown.running = true;
|
Countdown.running = true;
|
||||||
|
|
Loading…
Reference in a new issue