Permalink
Browse files

basic add cal link

  • Loading branch information...
1 parent 1594782 commit 89e0214bbd7342bc66df7aa3b6b3a06ba18baa0d @tardate committed Jul 29, 2010
Showing with 351 additions and 207 deletions.
  1. +10 −1 addtocal.htm
  2. +206 −206 jquery.addtocal.js
  3. +135 −0 libs/rfc3339date.js
View
@@ -45,12 +45,21 @@
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js'></script>
+ <script type='text/javascript' src='libs/rfc3339date.js'></script>
<script type='text/javascript' src='jquery.addtocal.js'></script>
<script type='text/javascript'>
$(document).ready(function() {
- $('.addtocal').addtocal( );
+ $('.addtocal').addtocal({
+ getEventDetails: function( element ) {
+ return {
+ webcalurl: 'webcal://',
+ start: new Date(), end: new Date(),
+ title: element.attr('id'), details: element.html(),
+ location: null, url: null};
+ },
+ });
});
</script>
Oops, something went wrong.

0 comments on commit 89e0214

Please sign in to comment.