birthday Cal

birthday Cal is a weekday calendar!

You've a list of people. Say -

 A = 2/15/1978
 B = 5/23/1983

User inputs the year as "2015".

So,
A's birthday in 2015 will fall into Sunday (because 2/15/2015 is Sunday). B's birthday will fall into Saturday (because 5/23/2015 is Saturday)

You've to put A in Sunday's box. And B in Saturday's box on the calendar.

Process the given json input and place people's initials in the card according to these rules -

  • If there a box is empty, it should add the day--empty class to the box.
  • Each person must always be rendered as square
  • Order people inside the card based on their age (youngest to oldest)
  • Each square in a card must be of equal size and fit them in such a way that every person occupies maximum area.

Examples ‐

Submitting your work ‐

  • Your submission should be functional within this page - see work area.
  • Write your code in pure JS.
  • Use day--empty class on .cal__day to render empty calendar dates. Use .day__person to render birthdays. See source.


Work Area

  • AB
Update