forked from jaime8111/jQueryEventCalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
430 lines (409 loc) · 17.1 KB
/
index.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<title>jQuery Event Calendar Demo Page</title>
<link rel="shortcut icon" href="img/favicon.ico" />
<!-- Grid CSS File (only needed for demo page) -->
<link rel="stylesheet" href="css/paragridma.css">
<!-- Core CSS File. The CSS code needed to make eventCalendar works -->
<link rel="stylesheet" href="css/eventCalendar.css">
<!-- Theme CSS file: it makes eventCalendar nicer -->
<link rel="stylesheet" href="css/eventCalendar_theme_responsive.css">
<!--<script src="js/jquery.js" type="text/javascript"></script>-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
</head>
<body id="responsiveDemo">
<div class="container" id="introPanel">
<div class="row">
<div class="g4 ac">
<img src="img/eventsCalendarIcon_250.png">
</div>
<div class="g8">
<a href="http://www.vissit.com/jquery-event-calendar-plugin-english-version" class="fr">
<img src="img/PluginPage.png" />
</a>
<h1 class="h3">
jQuery Event Calendar Demo Page
</h1>
<p>
jQuery plugin to show events in a calendar in a very confortable way
</p>
<p>
Main features:
</p>
<ul class="features disc">
<li><strong>Fluid Calendar</strong>: calendar will be shown with the width of its parent. Size is recalculated on window resize. So <strong>you can use it in your responsive designs</strong></li>
<li><strong>Change Style as you like</strong>: You can edit the .css file to restyle</li>
<li><strong>Light</strong>: Less than 8kb of Javascript(minified)</li>
<li><strong>jQuery rules!</strong>: It uses all the power of jQuery, but you can also use it with frameworks like Zepto.js</li>
<li><strong>Highly customizable</strong>: You can change almost everything. Look at the following examples</li>
</ul>
</div>
</div>
</div>
<hr />
<div class="container">
<div class="row">
<div class="g6">
<h2 class="h4">Human Date Format</h2>
<p class="demoDesc">Most of you don't like timestamp date format, so now you can use another formats</p>
<div id="eventCalendarHumanDate"></div>
<script>
$(document).ready(function() {
$("#eventCalendarHumanDate").eventCalendar({
eventsjson: 'json/event.humanDate.json.php',
jsonDateFormat: 'human' // 'YYYY-MM-DD HH:MM:SS'
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
jsonDateFormat: 'human'
});</pre>
</div>
<div class="g6">
<h2 class="h4">Custom Date Format to display</h2>
<p class="demoDesc">Now you can change the format date to be displayed on events. I use <a target="_blank" href="http://momentjs.com/docs/">moment.js</a> to do it.</p>
<div id="eventCalendarCustomDate"></div>
<script>
$(document).ready(function() {
$("#eventCalendarCustomDate").eventCalendar({
eventsjson: 'json/events.json.php',
dateFormat: 'dddd MM-D-YYYY'
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
dateFormat: 'dddd MM-D-YYYY'
});</pre>
</div>
</div>
<div class="row">
<div class="g4">
<h2 class="h4">Default Demo</h2>
<p class="demoDesc">Example of jQuery Events Calendar with default parameters</p>
<div id="eventCalendarDefault"></div>
<pre>$(id).eventCalendar({
// link to events json
eventsjson: 'file.json'
});</pre>
<script>
$(document).ready(function() {
$("#eventCalendarDefault").eventCalendar({
eventsjson: 'json/events.json.php' // link to events json
});
});
</script>
</div>
<div class="g4">
<h2 class="h4">No cache</h2>
<p class="demoDesc">The plugin only calls once to the json file, so it has to contain all events. After that call, the plugin will filter the results</p>
<div id="eventCalendarNoCache"></div>
<script>
$(document).ready(function() {
$("#eventCalendarNoCache").eventCalendar({
eventsjson: 'json/events.json.php',
cacheJson: false
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
cacheJson: false
}); </pre>
</div>
<div class="g4">
<h2 class="h4">inline json</h2>
<p class="demoDesc">The json is written directly inside the plugin function via javaScript (no ajax call to get the events).</p>
<div id="eventCalendarInline"></div>
<script>
$(document).ready(function() {
var eventsInline = [{ "date": "1337594400000", "type": "meeting", "title": "Project A meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event1.com/" },{ "date": "1337677200000", "type": "demo", "title": "Project B demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event2.com/" },{ "date": "1338897600000", "type": "meeting", "title": "Project A meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event1.com/" },{ "date": "1338885237000", "type": "demo", "title": "Project B demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event2.com/" },{ "date": "1341750647000", "type": "meeting", "title": "Project A meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event1.com/" },{ "date": "1342614647000", "type": "demo", "title": "Project B demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event2.com/" },{ "date": "1344515447000", "type": "meeting", "title": "Project A meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event1.com/" },{ "date": "1345033847000", "type": "demo", "title": "Project B demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event2.com/" },{ "date": "1347712247000", "type": "meeting", "title": "Project A meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event1.com/" },{ "date": "1348230647000", "type": "demo", "title": "Project B demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event2.com/" },{ "date": "1349094647000", "type": "meeting", "title": "Project A meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event1.com/" },{ "date": "1351600247", "type": "demo", "title": "Project B demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event2.com/" }];
$("#eventCalendarInline").eventCalendar({
jsonData: eventsInline
});
});
</script>
<pre>var eventsInline = [{ json }];
$(id).eventCalendar({
jsonData: eventsInline
}); </pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="g4">
<h2 class="h4">Localization</h2>
<p class="demoDesc">We have total control about the language of the plugin</p>
<div id="eventCalendarLocale"></div>
<script>
$(document).ready(function() {
$("#eventCalendarLocale").eventCalendar({
eventsjson: 'json/events.json.php',
monthNames: [ "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio",
"Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" ],
dayNames: [ 'Domingo','Lunes','Martes','Miércoles',
'Jueves','Viernes','Sabado' ],
dayNamesShort: [ 'Dom','Lun','Mar','Mie', 'Jue','Vie','Sab' ],
txt_noEvents: "No hay eventos para este periodo",
txt_SpecificEvents_prev: "",
txt_SpecificEvents_after: "eventos:",
txt_next: "siguiente",
txt_prev: "anterior",
txt_NextEvents: "Próximos eventos:",
txt_GoToEventUrl: "Ir al evento"
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
monthNames: [ "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio",
"Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" ],
dayNames: [ 'Domingo','Lunes','Martes','Miércoles',
'Jueves','Viernes','Sabado' ],
dayNamesShort: [ 'Dom','Lun','Mar','Mie', 'Jue','Vie','Sab' ],
txt_noEvents: "No hay eventos para este periodo",
txt_SpecificEvents_prev: "",
txt_SpecificEvents_after: "eventos:",
txt_next: "siguiente",
txt_prev: "anterior",
txt_NextEvents: "Próximos eventos:",
txt_GoToEventUrl: "Ir al evento",
}); </pre>
</div>
<div class="g4">
<h2 class="h4">Limit Results</h2>
<p class="demoDesc">It is possible to limit the number of events to show. But if we click on a day, results will not be filtered</p>
<div id="eventCalendarLimit"></div>
<script>
$(document).ready(function() {
$("#eventCalendarLimit").eventCalendar({
eventsjson: 'json/events.json.php',
eventsLimit: 2
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
eventsLimit: 2
}); </pre>
</div>
<div class="g4">
<h2 class="h4">Start week on Sunday</h2>
<p class="demoDesc">Also you can customize the day when the week starts</p>
<div id="eventCalendarCalendarSunday"></div>
<script>
$(document).ready(function() {
$("#eventCalendarCalendarSunday").eventCalendar({
eventsjson: 'json/events.json.php',
startWeekOnMonday: false
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
startWeekOnMonday: false
});</pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="g8">
<h2 class="h4">Calendar display</h2>
<p class="demoDesc">You can show all the days in a single line to make calendar widget smaller</p>
<div id="eventCalendarCalendarLine"></div>
<script>
$(document).ready(function() {
$("#eventCalendarCalendarLine").eventCalendar({
eventsjson: 'json/events.json.php',
showDayAsWeeks: false
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
showDayAsWeeks: false
});</pre>
</div>
<div class="g4">
<h2 class="h4">Hide week days</h2>
<p class="demoDesc">Hide the day names in the calendar view</p>
<div id="eventCalendarWeekDays"></div>
<script>
$(document).ready(function() {
$("#eventCalendarWeekDays").eventCalendar({
eventsjson: 'json/events.json.php',
showDayNameInCalendar: false
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
showDayNameInCalendar: false
});</pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="g4">
<h2 class="h4">Show Events description</h2>
<p class="demoDesc">Events description is hide by default (you can show it clicking on the event title), but if you want they can be always visible.</p>
<div id="eventCalendarShowDescription"></div>
<script>
$(document).ready(function() {
$("#eventCalendarShowDescription").eventCalendar({
eventsjson: 'json/events.json.php',
showDescription: true
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
showDescription: true
});</pre>
</div>
<div class="g4">
<h2 class="h4">Show all descriptions</h2>
<p class="demoDesc">By default, the plugin only shows the event that you select, but you can open all the descriptions in which you click on</p>
<div id="eventCalendarOnlyOneDescription"></div>
<script>
$(document).ready(function() {
$("#eventCalendarOnlyOneDescription").eventCalendar({
eventsjson: 'json/events.json.php',
onlyOneDescription: false
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
onlyOneDescription: false
});</pre>
</div>
<div class="g4">
<h2 class="h4">Animation Speed</h2>
<p class="demoDesc">Also you can customize the speed and the opacity of the widget animation</p>
<div id="eventCalendarAnimation"></div>
<script>
$(document).ready(function() {
$("#eventCalendarAnimation").eventCalendar({
eventsjson: 'json/events.json.php',
moveSpeed: 2000,
moveOpacity: 1
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
moveSpeed: 2000,
moveOpacity: 1
});</pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="g6">
<h2 class="h4">Events Scrollable</h2>
<p class="demoDesc">It is possible to add a Scroll panel for the events list to avoid panel resize on date changes</p>
<div id="eventCalendarScroll"></div>
<script>
$(document).ready(function() {
$("#eventCalendarScroll").eventCalendar({
eventsjson: 'json/events.json.php',
eventsScrollable: true
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
eventsScrollable: true
});</pre>
</div>
<div class="g6">
<h2 class="h4">Open links in new window</h2>
<p class="demoDesc">You can open event links in a new window</p>
<div id="eventCalendarNewWindow"></div>
<script>
$(document).ready(function() {
$("#eventCalendarNewWindow").eventCalendar({
eventsjson: 'json/events.json.php',
openEventInNewWindow: true,
showDescription: true // also it can be false
});
});
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
openEventInNewWindow: true,
showDescription: true // also it can be false
});</pre>
</div>
</div>
<hr />
<div class="container">
<div class="row">
<div id="paradigmaBox" class="g6 poweredBy clearfix">
<img src="img/paradigmaLogo.png" />
<div class="data">
<a href="http://www.paradigmatecnologico.com" target="_blank" class="name">Paradigma Tecnológico</a>
<a href="http://twitter.com/#!/paradigmate" target="_blank" class="twitter">@paradigmate</a>
</div>
</div>
<div id="vissitBox" class="g6 poweredBy clearfix">
<img src="img/jaime.png" />
<div class="data">
<a href="http://www.vissit.com" target="_blank" class="name">Jaime Fernández</a>
<a href="http://twitter.com/#!/vissit" target="_blank" class="twitter">@vissit</a>
</div>
<a href="http://www.vissit.com/jquery-event-calendar-plugin-english-version" class="fr">
<img src="img/PluginPage.png" />
</a>
</div>
</div>
</div>
<hr />
<div class="container">
<div class="row">
<div id="thanksPanel" class="g6">
<p class="nm">
Special thanks to:
</p>
<ul class="disc">
<li>
<strong>Nerea Navarro</strong> <a href="http://twitter.com/#!/nereaestonta">@nereaestonta</a> - Translation & Testing
</li>
<li>
<strong>Juan Francisco del Río</strong> <a href="http://twitter.com/#!/juanriopacheco">@juanriopacheco</a> - Javascript Knowledge
</li>
<li>
<strong>Nuria Martin</strong> <a href="http://twitter.com/#!/nmartins">@nmartins</a> - Design
</li>
<li>
<strong>Luis Calvo</strong> <a href="http://twitter.com/#!/LuisCalvoDiaz">@LuisCalvoDiaz</a> - Testing
</li>
<li>
<strong>David Montalvo</strong> <a href="http://twitter.com/#!/davidmontalvo">@davidmontalvo</a> - Testing
</li>
</ul>
</div>
<div class="g6">
<div id="license">
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Licencia de Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Dataset" property="dct:title" rel="dct:type">jQuery Event Calendar Plugin</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.vissit.com/jquery-event-calendar-plugin" property="cc:attributionName" rel="cc:attributionURL">Jaime Fernandez, Paradigma Tecnológico</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Reconocimiento-CompartirIgual 3.0 Unported License</a>.
</div>
</div>
</div>
</div>
</body>
<!--script src="js/jquery.timeago.js" type="text/javascript"></script-->
<!--<script src="js/jquery.eventCalendar.min.js" type="text/javascript"></script>-->
<script src="js/moment.js" type="text/javascript"></script>
<!--script src="js/jquery.eventCalendar.js" type="text/javascript"></script-->
<script src="js/jquery.eventCalendar.min.js" type="text/javascript"></script>
</html>