Skip to content

NSM722/JS-Calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Vanilla JavaScript and CSS Calendar

This is an interactive calendar that highlights the current day of the month in a different background color from the rest of the days of the month.

When one clicks on the previous or next button, the calendar loads the month correctly and additionally loads different advices from an API rendered at the top of the calendar.

One also has the ability to add/delete appointments/events on particular day(s).

Additionally, the days highlighted in grey('padding days') are days of the previous month that reflect in the first week of the selected month.

Under the hood, I worked on the following concepts:

  • using global CSS variables
  • CSS module imports
  • JS files imports
  • Added comments that explain what specific parts of the code achieves
  • Use of the Date-API
  • Adding/Deleting event modals
  • Using the WEB localStorage as a Database

Here's a link to the Live Demo

JS and CSS Calendar


Separate Activity

The tables folder includes a quick activity that depicts DOM manipulation whereby I created a random table with 3 rows and 3 columns, added consecutive numbers to each table cell by using a for loop and finally styled the table with CSS