Last active
August 8, 2023 23:47
-
-
Save sueszli/fc6b6d3ba3fee9aaac98db00c60805ab to your computer and use it in GitHub Desktop.
track your unused working hours in ep1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// open up "https://git.logic.at/.../stundenlisten/your_name.csv" | |
// then run this in your javascript console | |
const sum = Array.from(document.querySelectorAll('td:nth-child(3)')) | |
.map((cell) => parseFloat(cell.textContent.trim()) || 0) | |
.reduce((acc, val) => acc + val, 0) | |
const sws = sum / 25 | |
console.log(`total: ${sum}h ⌛️ -- equivalent to ${sws} SWS (semester wochenstunden)`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment