<script src="https://raw.githubusercontent.com/youjung-hong/my-timetable/main/dist/main.js"></script>
const timetable = new MyTimetable(document.getElementById('root'), [
{
id: 1,
color: '#51FF0D',
startAt: '2022-01-02T07:15:00',
endAt: '2022-01-02T07:20:00',
},
])
timetable.getTimelines()
timetable.getTimeline(1) // find by id
timetable.addTimelines([
{
id: 2,
color: '#FF0DCA',
startAt: '2022-06-20T18:10:00',
endAt: '2022-06-20T18:55:00',
},
])
timetable.removeTimelines([1])