From 895485354a7633dbe10e031ac97591d83c5257ff Mon Sep 17 00:00:00 2001 From: Travis Krause Date: Thu, 14 Sep 2017 15:47:13 -0500 Subject: [PATCH] fix --- demo/demo.html | 75 ++------------------------------------------------ demo/demo.js | 20 ++++++++++++++ 2 files changed, 23 insertions(+), 72 deletions(-) create mode 100644 demo/demo.js diff --git a/demo/demo.html b/demo/demo.html index ad8df92..f8f1b72 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -1,79 +1,10 @@ - - - + - - - + + -
diff --git a/demo/demo.js b/demo/demo.js new file mode 100644 index 0000000..06a8cc3 --- /dev/null +++ b/demo/demo.js @@ -0,0 +1,20 @@ +// Demo +cal = ics(); +cal.addEvent('Christmas', 'Christian holiday celebrating the birth of Jesus Christ', 'Bethlehem', '12/25/2013', '12/25/2013'); +cal.addEvent('Christmas', 'Christian holiday celebrating the birth of Jesus Christ', 'Bethlehem', '12/25/2014', '12/25/2014'); +cal.addEvent('New Years', 'Watch the ball drop!', 'New York', '01/01/2015', '01/01/2015'); +cal.addEvent('New Years', 'Watch the ball drop!', 'New York', '01/01/2016', '01/01/2016'); + +cal_single = ics(); +cal_single.addEvent('Best Day', 'This is the best day to demonstrate a single event.', 'New York', '11/12/1987', '11/12/1987'); + + +// You can use this for easy debugging +makelogs = function(obj) { + console.log('Events Array'); + console.log('================='); + console.log(obj.events()); + console.log('Calendar With Header'); + console.log('================='); + console.log(obj.calendar()); +}