diff --git a/README.md b/README.md index 9318947..d7934b4 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ Now you can make calendar friendly files client-side. It outputs .ics files, so How To Use ---------- Simply use invoke the object and use the functions... - + var cal = ics(); cal.addEvent(subject, description, location, begin, end); + cal.addEvent(subject, description, location, begin, end); // yes, you can have multiple events :-) cal.download(filename); `begin` and `end` need to be formatted in a way that is friendly to `Date()` @@ -52,3 +53,9 @@ Supported Browsers | Opera Next | [FileSaver.js](https://github.com/eligrey/FileSaver.js) | | Opera < 15 | [FileSaver.js](https://github.com/eligrey/FileSaver.js), [Blob.js](https://github.com/eligrey/Blob.js) | | Safari ≤ 6 | [FileSaver.js](https://github.com/eligrey/FileSaver.js), [Blob.js](https://github.com/eligrey/Blob.js) | + + +Credits +------------------ +* [Travis Krause](https://github.com/nwcell): Me +* [Kyle Hornberg](https://github.com/khornberg): Added multi event functionality and made everything a package firendly \ No newline at end of file diff --git a/bower.json b/bower.json index a7e011b..786ab9b 100644 --- a/bower.json +++ b/bower.json @@ -1,8 +1,8 @@ { "name": "ics.js", "main": "ics.js", - "version": "0.1.1", - "homepage": "https://github.com/khornberg/ics.js", + "version": "0.1.2", + "homepage": "https://github.com/nwcell/ics.js", "contributors": [ "Travis Krause ", "Kyle Hornberg " diff --git a/demo/demo.html b/demo/demo.html index 9caa541..c807d36 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -40,12 +40,16 @@ background-color: #428bca; border-color: #357ebd; font-family: sans-serif; + width: 120px; }
- Download iCal - Look at the console too! + Single Event +
+ Multiple Events +
+ Console Output
diff --git a/demo/demo.js b/demo/demo.js index d757ea7..2f5a43c 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -2,5 +2,19 @@ var 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'); -console.log('Events\n' + cal.events()); -console.log('Calendar\n' + cal.calendar()); \ No newline at end of file +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'); + +var 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 +var makelogs = function(obj) { + console.log('Events Array'); + console.log('================='); + console.log(obj.events()); + console.log('Calendar With Header'); + console.log('================='); + console.log(obj.calendar()); +} \ No newline at end of file diff --git a/package.json b/package.json index 8f508ab..8ae76fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ics.js", - "version": "0.1.1", + "version": "0.1.2", "description": "A browser firendly .ics/.vcs file generator written entirely in javascript", "main": "icsjs", "dependencies": { @@ -17,7 +17,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/khornberg/ics.js.git" + "url": "https://github.com/nwcell/ics.js.git" }, "keywords": [ "ics", @@ -30,6 +30,6 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/khornberg/ics.js/issues" + "url": "https://github.com/nwcell/ics.js/issues" } }