From df717f06e44895a3e5928768764f4d7a6f7732f6 Mon Sep 17 00:00:00 2001 From: Klemek Date: Mon, 29 Apr 2024 23:06:29 +0200 Subject: [PATCH] show meeting end --- index.html | 3 +++ main.js | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/index.html b/index.html index 48cc62a..83ff437 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,9 @@
  • Remaining meeting time: {{ timeText(totalRemainingTime) }}
  • +
  • + End estimated at: {{ timeText(estimatedEnd) }} +
  • Total meeting time: {{ timeText(totalTime) }}
  •   item.time) .reduce((a, b) => a + b, 0); }, + estimatedEnd() { + const delta = this.timerStarted + ? ((this.timerEnd - new Date()) / (1000 * 60)) + : this.showSelected + ? this.selectedData.time + : 0; + const toAdd = (this.totalRemainingTime - (this.showSelected ? this.selectedData.time : 0) + delta); + const end = new Date(); + end.setMinutes(end.getMinutes() + toAdd); + return end.getHours() * 60 + end.getMinutes(); + }, svgData() { let totalAngle = 0; return this.filteredData.map((item, index) => {