This builds upon the recent updates by @stevenvdbosch and adds further refactoring on top.
Details
Essentially, this mitigates the document-global code and wraps it into the "main()" function which is now invoked when the document is ready. This makes the execution flow easier to follow for newcomers to the code base.
API improvements
Also, the dedicated functions navigatePreviousHour() and navigateNextHour() have been introduced to improve the API for navigating within the time domain.
More?
No other features have been added. This occurred in preparation to #7.
Introduction
This builds upon the recent updates by @stevenvdbosch and adds further refactoring on top.
Details
Essentially, this mitigates the document-global code and wraps it into the "main()" function which is now invoked when the document is ready. This makes the execution flow easier to follow for newcomers to the code base.
API improvements
Also, the dedicated functions
navigatePreviousHour()
andnavigateNextHour()
have been introduced to improve the API for navigating within the time domain.More?
No other features have been added. This occurred in preparation to #7.