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

Commit 46c9aeb

Browse files
committed
Fix: "Basic usage" does not work
Resolves #17
1 parent bf6cc8c commit 46c9aeb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ There are multiple ways to install the calendar library
2626
</head>
2727

2828
<body>
29+
<div id="calendarContainer"></div>
30+
<div id="organizerContainer"></div>
31+
2932
<!-- Stick script at the end of the body -->
3033
<script src="https://cdn.rawgit.com/nizarmah/calendar-javascript-lib/master/calendarorganizer.min.js"></script>
3134
<script>
@@ -62,7 +65,7 @@ Place 2 `<div>`'s where you want the calendar to be placed
6265
// Basic config
6366
var calendar = new Calendar("calendarContainer", "small",
6467
[ "Monday", 3 ],
65-
[ "#ffc107", "#ffa000", "#ffffff", "#ffecb3" ]
68+
[ "#ffc107", "#ffa000", "#ffffff", "#ffecb3" ],
6669
{
6770
days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ],
6871
months: [ "January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
@@ -81,7 +84,8 @@ var data = {
8184
}
8285
]
8386
}
84-
};
87+
}
88+
};
8589

8690
var organizer = new Organizer("organizerContainer", calendar, data);
8791
```

0 commit comments

Comments
 (0)