Calendar: Implementation Details
Under the hood with the calendar
This article assumes you’ve already read through the main Calendar: article.
Where to find the code that controls the calendar
In the theme ucsb-cs-course-repos/course-repo-jekyll-theme
,
under the directory assets
, there are several subdirectories:
subdirectory | purpose |
---|---|
assets/css |
CSS files |
assets/img |
Image files |
assets/js |
JavaScript files |
assets/pdf |
PDF files |
As you might expect, the CSS rules for the calendar can be found in:
Contrary to expectation, however, the JavaScript file that controls the calendar, however, is not in assets/js but instead, is found here:
calendar.js
The code in calendar.js has several parts.
Related topics:
- Calendar: —Features that generate the calendar automatically
- Calendar: Implementation Details—Under the hood with the calendar