set up bower and grunt

This commit is contained in:
Kyle Hornberg
2013-11-25 10:26:50 -06:00
parent 0d78b464f4
commit 7bec183753
8 changed files with 146 additions and 7 deletions
+6 -3
View File
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<head>
<script type="text/javascript" async="" src="ics-min.js"></script>
<script type="text/javascript" src="../bower_components/FileSaver/FileSaver.js"></script>
<script type="text/javascript" src="../bower_components/Blob.js/Blob.js"></script>
<script type="text/javascript" src="../ics.min.js"></script>
<script type="text/javascript" src="demo.js"></script>
<style>
html, body {
height: 100%;
@@ -44,7 +47,7 @@
</head>
<body>
<div class="wrap">
<a href="javascript:download_ics('demo', 'Demo Event', 'This is an awesome demo event', 'Sexy Land, AK', '8/7/2013', '8/9/2013')">Demo Event</a>
<a href="javascript:cal.download('christmas')">Download iCal</a>
Look at the console too!
</div>
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
// Demo
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());