Skip to content
/ calendar Public
forked from 9yoi/calendar

Using vanilla javascript and css to render day view

Notifications You must be signed in to change notification settings

peccu/calendar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.3%
  • CSS 24.6%
  • HTML 18.1%