Add current time pointer in schedule #21

Merged
ben merged 3 commits from cel/tilderadio-site:pointer into master 2021-06-08 16:05:47 +00:00
Contributor

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

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
cel added 1 commit 2021-05-30 18:04:35 +00:00
continuous-integration/drone/pr Build encountered an error Details
a731a47f1c
Add current time pointer in schedule
Owner

Looks nice! The red bar is still kind hard to see - what do you think about highlighting the entire box of the current timeslot?

Looks nice! The red bar is still kind hard to see - what do you think about highlighting the entire box of the current timeslot?
Author
Contributor

@ben yes, I'll try to update that later.

@ben yes, I'll try to update that later.
Author
Contributor
cel force-pushed pointer from 6749b45598 to 1e68d971c8 2021-06-08 01:05:06 +00:00 Compare
cel added 1 commit 2021-06-08 02:32:26 +00:00
continuous-integration/drone/pr Build encountered an error Details
05e101f9e8
Misc fixes for time pointer
ben merged commit c006a40edf into master 2021-06-08 16:05:47 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tilderadio/site#21
No description provided.