forked from TWS/kalkutago
Whoops, didn't commit for a while. Added button toggling logic, doesn't work
This commit is contained in:
parent
da4f4ba151
commit
a60a4c4885
21 changed files with 353 additions and 106 deletions
|
|
@ -55,7 +55,8 @@ export class Track implements ITrack {
|
|||
for (var tick of (this.ticks ?? [])) {
|
||||
if (
|
||||
date.getUTCFullYear() == tick.year &&
|
||||
date.getUTCMonth() == tick.month &&
|
||||
(date.getUTCMonth() + 1) == tick.month &&
|
||||
// Javascript Date ^^^ uses 0-index for dates of months 🤦
|
||||
date.getDate() == tick.day
|
||||
) return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue