When I redesigned the blocks, I have one thing in mind. These code blocks will be in a function to be called from 3 different buttons:
- Today Button: which will make
thisDay variable
equal toTODAY
. - Yesterday Button: which will make
thisDay variable
equal toTODAY
- 1. - Tommow Button: which will make
thisDay variable
equal toTODAY
+ 1.
You will then simply run the function and retrieve the sub-list of the required day.
This is the function
These are the buttons to show selected timetable