From b430502f346e662d81c094474bdf83e118a08893 Mon Sep 17 00:00:00 2001 From: Ketyra Sai Date: Wed, 28 Feb 2024 20:42:49 +0100 Subject: [PATCH] =?UTF-8?q?Update=20timer.js=20-=20auskommentiertes=20aus?= =?UTF-8?q?=20code=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/timer.js | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/js/timer.js b/js/timer.js index eb8748e..b069e2c 100644 --- a/js/timer.js +++ b/js/timer.js @@ -1,6 +1,5 @@ function startTimer(duration, display) { var timer = duration, minutes, seconds; - var interval = setInterval(function () { minutes = parseInt(timer / 60, 10) seconds = parseInt(timer % 60, 10); @@ -23,43 +22,8 @@ function startTimer(duration, display) { fade(); } -//window.onload = function () { - // document.getElementById("Pulse").onclick = function () { - function startMinute() { +function startMinute() { var oneMinute = 60, display = document.getElementById('Timer'); startTimer(oneMinute, display); }; - - - -/* *function fadeTimer() { - console.log("Display: ") - var fadeEffect = setInterval(function () { - if (!display.style.opacity) { - display.style.opacity = 1; - } - if (display.style.opacity > 0) { - display.style.opacity -= 0.05; - } else { - clearInterval(fadeEffect); - } - }, 100); - } -**/ -/** -window.onclick = function showTimer () { - console.log("Display2: ") - //TODO fix damit man den Timer wieder einblenden kann - var showEffect = setInterval(function () { - if (!display.style.opacity) { - display.style.opacity = 1; - } - if (display.style.opacity < 1) { - display.style.opacity += 0.5; - } else { - clearInterval(showEffect); - } - }, 100); - } -**/