Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Fix: "Basic usage" does not work
Browse files Browse the repository at this point in the history
Resolves #17
  • Loading branch information
nizarmah committed Aug 29, 2019
1 parent bf6cc8c commit 46c9aeb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ There are multiple ways to install the calendar library
</head>

<body>
<div id="calendarContainer"></div>
<div id="organizerContainer"></div>

<!-- Stick script at the end of the body -->
<script src="https://cdn.rawgit.com/nizarmah/calendar-javascript-lib/master/calendarorganizer.min.js"></script>
<script>
Expand Down Expand Up @@ -62,7 +65,7 @@ Place 2 `<div>`'s where you want the calendar to be placed
// Basic config
var calendar = new Calendar("calendarContainer", "small",
[ "Monday", 3 ],
[ "#ffc107", "#ffa000", "#ffffff", "#ffecb3" ]
[ "#ffc107", "#ffa000", "#ffffff", "#ffecb3" ],
{
days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ],
months: [ "January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
Expand All @@ -81,7 +84,8 @@ var data = {
}
]
}
};
}
};

var organizer = new Organizer("organizerContainer", calendar, data);
```
Expand Down

0 comments on commit 46c9aeb

Please sign in to comment.