-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdemo.html
78 lines (69 loc) · 1.61 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<link href='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.3.1/fullcalendar.css' rel='stylesheet' />
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.js'></script>
<script src='https://code.jquery.com/jquery-2.1.3.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.3.1/fullcalendar.js'></script>
<script src='fullcalendar-columns.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'multiColAgendaDay,multiColAgendaWeek'
},
views: {
multiColAgendaDay: {
type: 'multiColAgenda',
duration: { days: 1 },
numColumns: 2,
columnHeaders: ['First Column', 'Second Column']
},
multiColAgendaWeek: {
type: 'multiColAgenda',
duration: { weeks: 1 },
numColumns: 2,
columnHeaders: ['First', 'Second']
}
},
allDaySlot: false,
defaultView: 'multiColAgendaDay',
defaultDate: '2015-02-12',
editable: true,
events: [
{
title: 'Meeting 1',
start: '2015-02-12T10:30:00',
end: '2015-02-12T12:30:00',
column: 0
},
{
title: 'Meeting 2',
start: '2015-02-12T10:30:00',
end: '2015-02-12T12:30:00',
column: 1
}
]
});
});
</script>
<style>
body {
margin: 40px 10px;
padding: 0;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
font-size: 14px;
}
#calendar {
max-width: 900px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id='calendar'></div>
</body>
</html>