added project logo

This commit is contained in:
Slavomir Durej 2025-12-15 19:46:16 +00:00
parent f72cbf9e91
commit b1fb98539f
5 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{
"permissions": {
"allow": [
"Bash(dir:*)"
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
assets/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -242,10 +242,16 @@ function updateProgressBar(progressElement, percentageElement, value, isWeekly =
function updateTimer(timerElement, textElement, resetsAt, totalMinutes) { function updateTimer(timerElement, textElement, resetsAt, totalMinutes) {
if (!resetsAt) { if (!resetsAt) {
textElement.textContent = '--:--'; textElement.textContent = '--:--';
textElement.style.opacity = '0.5';
textElement.title = 'Starts when a message is sent';
timerElement.style.strokeDashoffset = 63; timerElement.style.strokeDashoffset = 63;
return; return;
} }
// Clear the greyed out styling and tooltip when timer is active
textElement.style.opacity = '1';
textElement.title = '';
const resetDate = new Date(resetsAt); const resetDate = new Date(resetsAt);
const now = new Date(); const now = new Date();
const diff = resetDate - now; const diff = resetDate - now;