From 552949c7449069fe8cc42ac90d9ad622d3f3af82 Mon Sep 17 00:00:00 2001 From: Samuel Zielke Date: Mon, 16 Sep 2024 14:53:04 +0200 Subject: [PATCH] Add function to Timer - after set Stop open new entry and save it --- app/static/app/js/home.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/static/app/js/home.js b/app/static/app/js/home.js index f694f17..24b6a7a 100644 --- a/app/static/app/js/home.js +++ b/app/static/app/js/home.js @@ -158,17 +158,6 @@ sonstigesCheck.addEventListener('change', function() { } }); -// function newEntryAfterTimer(timerStamp) { -// const seconds = parseInt(timerStamp) -// const hours = String(Math.floor(seconds / 3600)).padStart(2, '0'); -// const minutes = String(Math.floor((seconds % 3600) / 60)).padStart(2, '0'); -// const secs = String(seconds % 60).padStart(2, '0'); -// document.getElementById('openNewEntryForm').click() -// document.getElementById('stunden').value = hours; -// document.getElementById('minuten').value = minutes; -// console.log(secs) -// } - //