0.1.0 • Published 3 years ago

@djplaner/university-date-calendar v0.1.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
3 years ago

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