9yoi / calendar

Using vanilla javascript and css to render day view. Not monitored, hacky and not all test cases work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Day View Calendar

  • Built with vanilla javascript, html, css

Overview

  • Events are stored in an array of objects with a start and end time
  • getCollisions iterates through events and tells you which events are in each 30min slot
  • getAttributes gets you the width and positioning of each event (event collisions are handled with no overlap)

Usage

open index.html
to run new set of events, run layOutDay(generateMockEvents(n), where n is the number of events you want to render;

About

Using vanilla javascript and css to render day view. Not monitored, hacky and not all test cases work


Languages

Language:JavaScript 57.3%Language:CSS 24.6%Language:HTML 18.1%