Skip to content

Commit

Permalink
Changed css of timer and fixed countdown finished
Browse files Browse the repository at this point in the history
  • Loading branch information
KaizelZero committed Apr 26, 2023
1 parent 951d72d commit 1523ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export default class CountdownTimerPlugin extends Plugin {
const now = new Date().getTime();
const timeRemaining = targetDate.getTime() - now;

let eventNameString = eventName.toString();
if (timeRemaining < 0) {
timerElement.innerHTML =
"The countdown to " + { eventName } + " is over!";
timerElement.innerHTML = `The countdown to ${eventNameString} is over.`;
return;
}

Expand Down
2 changes: 2 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
font-size: 2em;
font-weight: bold;
margin-bottom: 5px;
padding: 0;
margin-top: 0;
color: var(--text-accent);
}

Expand Down

0 comments on commit 1523ea9

Please sign in to comment.