Skip to content

Commit

Permalink
Update timer.js - auskommentiertes aus code gelöscht
Browse files Browse the repository at this point in the history
  • Loading branch information
Closer2U authored Feb 28, 2024
1 parent ef0ec78 commit b430502
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions js/timer.js
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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);
}
**/

0 comments on commit b430502

Please sign in to comment.