From ba851a6fe89a5562d835f3acb0f234234b0bc059 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 17 Nov 2019 10:45:00 +0100 Subject: [PATCH] increase the delay to 7 seconds --- static/js/sb.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/js/sb.js b/static/js/sb.js index 5dd68af..b8219f1 100644 --- a/static/js/sb.js +++ b/static/js/sb.js @@ -1,14 +1,16 @@ +var DEFAULT_DELAY = 7; + var Countdown = { _timeout: null, _stepCb: null, _timeoutCb: null, running: false, - seconds: 5, - _initial_seconds: 5, + seconds: DEFAULT_DELAY, + _initial_seconds: DEFAULT_DELAY, start: function(seconds, timeoutCb, stepCb) { Countdown.stop(); - Countdown.seconds = Countdown._initial_seconds = seconds || 5; + Countdown.seconds = Countdown._initial_seconds = seconds || DEFAULT_DELAY; Countdown._timeoutCb = timeoutCb || Countdown._timeoutCb; Countdown._stepCb = stepCb || Countdown._stepCb; Countdown.running = true;