-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathexample.html
133 lines (128 loc) · 4.49 KB
/
example.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<html>
<head>
<link href="jquery.gcal_flow.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.7.1");
</script>
<script>
_gCalFlow_debug = true;
</script>
<script type="text/javascript" src="jquery.gcal_flow.js"></script>
<script type="text/javascript">
var $ = jQuery;
$(function() {
$('#gcf-simple').gCalFlow({
calid: 'linuxfoundation.org_34363837313836302d343036@resource.calendar.google.com'
});
$('#gcf-design').gCalFlow({
calid: 'linuxfoundation.org_34363837313836302d343036@resource.calendar.google.com',
maxitem: 10
});
$('#gcf-custom-template').gCalFlow({
calid: 'linuxfoundation.org_34363837313836302d343036@resource.calendar.google.com',
maxitem: 50,
mode: 'updates',
date_formatter: function(d, allday_p) { return (d.getMonth()+1) + "/" + d.getDate() + "/" + d.getYear().toString().substr(-2) }
});
});
</script>
<style type="text/css">
h2 { clear: both; margin-top: 2em; }
#gcf-design .gcf-header-block { background: green; filter: none; }
#gcf-design { height: 300px; width: 500px; background: #F0FFEE; filter: none; }
</style>
</head>
<body>
<h1>Google Calendar Flow plugin Examples</h1>
<p>
See <a href="http://sugi.github.io/jquery-gcal-flow/">http://sugi.github.io/jquery-gcal-flow/</a> for details.
</p>
<h2>Simple way</h2>
<div id="gcf-simple">
</div>
<textarea cols="60" rows="20">
<div id="gcf-simple">
</div>
<script type="text/javascript">
$('#gcf-simple').gCalFlow({
calid: 'linuxfoundation.org_34363837313836302d343036@resource.calendar.google.com'
});
</script>
</textarea>
<br><br>
<h2>Change size and color by CSS and option</h2>
<div id="gcf-design">
</div>
<textarea cols="60" rows="20">
<style type="text/css">
#gcf-design {
height: 300px;
width: 500px;
background: #F0FFEE;
filter: none;
}
#gcf-design .gcf-header-block { background: green; filter:none; }
</style>
<div id="gcf-design">
</div>
<script type="text/javascript">
$('#gcf-design').gCalFlow({
calid: 'linuxfoundation.org_34363837313836302d343036@resource.calendar.google.com',
maxitem: 10
});
</script>
</textarea>
<h2>Custom DOM for template and recent update mode</h2>
<div id="gcf-custom-template">
<div class="gcf-header-block">
<div class="gcf-title-block">
<span class="gcf-title">Your calendar name</span> Updates:
</div>
</div>
<div class="gcf-item-container-block">
<div class="gcf-item-block">
<div class="gcf-item-header-block">
<div class="gcf-item-title-block">
<a class="gcf-item-link"><span class="gcf-item-update-date">2012-02-01 09:00</span>:</a>
<strong class="gcf-item-title">Item Title of Your event</strong>
</div>
</div>
</div>
</div>
<div class="gcf-last-update-block">
LastUpdate: <span class="gcf-last-update">2012-02-30 20:58</span>
</div>
</div>
<textarea cols="60" rows="20">
<div id="gcf-custom-template">
<div class="gcf-header-block">
<div class="gcf-title-block">
<span class="gcf-title">Your calendar name</span> updates
</div>
</div>
<div class="gcf-item-container-block">
<div class="gcf-item-block">
<div class="gcf-item-header-block">
<div class="gcf-item-title-block">
<a class="gcf-item-link"><span class="gcf-item-update-date">2012-02-01 09:00</span>:</a>
<strong class="gcf-item-title">Item Title of Your event</strong>
</div>
</div>
</div>
</div>
<div class="gcf-last-update-block">
LastUpdate: <span class="gcf-last-update">2012-02-30 20:58</span>
</div>
</div>
<script type="text/javascript">
$('#gcf-custom-template').gCalFlow({
calid: 'linuxfoundation.org_34363837313836302d343036@resource.calendar.google.com',
maxitem: 50,
mode: 'updates',
date_formatter: function(d, allday_p) { return (d.getMonth()+1) + "/" + d.getDate() + "/" + d.getYear().toString().substr(-2) }
});
</script>
</textarea>
</body>
</html>