diff --git a/Countdown-Dateien/countdown.js b/Countdown-Dateien/countdown.js index 793f3f5..edf03ee 100644 --- a/Countdown-Dateien/countdown.js +++ b/Countdown-Dateien/countdown.js @@ -35,7 +35,15 @@ function cd_CountBack(secs) this.DisplayStr = this.DisplayStr.replace(/%%S%%/g, this.Calcage(secs,1,60)); document.getElementById(this.Div).innerHTML = this.DisplayStr; - if (this.CountActive) setTimeout(this.obj +".CountBack(" + (secs-1) + ")", 990); +// if (this.CountActive) setTimeout(this.obj +".CountBack(" + (secs-1) + ")", 990); + let obj = this; + if (obj.CountActive) { + setTimeout(function(){ + obj.CountBack(secs-1) + },990 + ); + } + } function cd_Setup() { diff --git a/slideshow.html b/slideshow.html index 34d92be..1601fee 100644 --- a/slideshow.html +++ b/slideshow.html @@ -12,6 +12,10 @@ +