Add current time pointer in schedule #21
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tilderadio/site#21
Loading…
Reference in New Issue
No description provided.
Delete Branch "cel/tilderadio-site:pointer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds to the schedule page an indicator of the current time in the schedule. It is shown as a red line in the table cell of the current time slot, at a vertical position in the cell corresponding to the progess of time through that time block.
For use in browsers without JS, the pointer is produced in PHP. With JS it is then updated periodically along with the timestamp.
To aid the JS to be able to find the table cells and their corresponding timestamps, an id property is added to each schedule table cell that contains the start timestamp for the corresponding time period.
To try to prevent the line from interfering with readability of the DJ names on the schedule, the line is placed beneath the names using z-index.
If this UI is unclear or confusing, I'm open to suggestions to improve it.
Demo: https://tilde.town/~cel/tilderadio/schedule.html
Looks nice! The red bar is still kind hard to see - what do you think about highlighting the entire box of the current timeslot?
@ben yes, I'll try to update that later.
Updated
6749b45598
to1e68d971c8