timekeeper

[Abandoned unfinished] CGI web application in C for time tracking. (My first, just a learning project)
Log | Files | Refs | README

commit 6290fcd10333da2a98616086f4b778dcc47d1762
parent ecbf63356f29f223b3a83deb50c60a721814b1d8
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Mon, 11 Mar 2024 20:11:39 -0700

Use total id in counter script

Diffstat:
Mscripts/counter.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/counter.js b/scripts/counter.js @@ -33,7 +33,7 @@ function updatetime(counter, start, total, total_elapsed) { let counter = document.getElementById("counter") if (counter) { - let total = document.querySelector("table>tfoot>tr>td:nth-child(6)>time") + let total = document.getElementById("total") let d = parseduration(counter.dateTime) updatetime(counter, gettime() - d, total, parseduration(total.dateTime) - d) }