forked from AddToCalendar/addtocalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.html
37 lines (36 loc) · 1.63 KB
/
sample.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!--
LinkToCalendar
Free customizable JavaScript widget "Add to Calendar" for event page.
It allows users to easily schedule the event in their calendar.
Learn more: http://linktocalendar.com
-->
<html>
<head>
<!-- 1. Include style -->
<link href="http://linktocalendar.com/atc/1.5/atc-style-blue.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 2. Include script -->
<script type="text/javascript">(function () {
if (window.linktocalendar)if(typeof window.addtocalendar.start == "function")return;
if (window.iflinktocalendar == undefined) { window.iflinktocalendar = 1;
var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
s.type = 'text/javascript';s.charset = 'UTF-8';s.async = true;
s.src = ('https:' == window.location.protocol ? 'https' : 'http')+'://linktocalendar.com/ltc/1.5/atc.min.js';
var h = d[g]('body')[0];h.appendChild(s); }})();
</script>
<!-- 3. Place event data -->
<span class="linktocalendar atc-style-blue">
<var class="atc_event">
<var class="atc_date_start">2014-05-04 12:00:00</var>
<var class="atc_date_end">2014-05-04 18:00:00</var>
<var class="atc_timezone">Europe/London</var>
<var class="atc_title">Star Wars Day Party</var>
<var class="atc_description">May the force be with you</var>
<var class="atc_location">Tatooine</var>
<var class="atc_organizer">Luke Skywalker</var>
<var class="atc_organizer_email">[email protected]</var>
</var>
</span>
</body>
</html>