@djplaner/university-date-calendar
v0.1.0
Published
Singelton helper for university-date component
Downloads
5
Maintainers
Readme
university-date-calendar
Experiment with singleton web component (based on example from @bto-pro)
Intent is to allow different universities to provide institution specific date information and methods for use with the university-date component
Current institution specific data/methods
CALENDAR
- Specifies the start/stop dates for the weeks for all periods (e.g. semesters) for an institution
- Object of objects (hash of hashs for Perl folk)
getCurrentPeriod
- Function that figures out what the current period based on content in the current web page.
- The example looks for the period within a specific element
Setup
Install dependencies:
npm i
Example
There is an example HTML file located at /dev/index.html