forked from fullcalendar/fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhiddenDays.html
81 lines (69 loc) · 1.47 KB
/
hiddenDays.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
<!DOCTYPE html>
<html>
<head>
<link href='../dist/fullcalendar.css' rel='stylesheet' />
<link href='../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='../lib/jquery/dist/jquery.js'></script>
<script src='../lib/moment/moment.js'></script>
<script src='../dist/fullcalendar.js'></script>
<script>
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
},
editable: true,
year: 2013,
month: 6, // july
//weekNumbers: true,
isRTL: true,
//selectable: true,
//firstDay: 2,
//weekends: false,
hiddenDays: [ 4 ], // thursday
events: [
{
title: '1 Day',
start: new Date(2013, 6, 17)
},
{
title: '2 Day',
start: new Date(2013, 6, 17),
end: new Date(2013, 6, 18)
},
{
title: '3 Day',
start: new Date(2013, 6, 17),
end: new Date(2013, 6, 19)
},
{
title: '1 Day IN GAP',
start: new Date(2013, 6, 18) // won't be visible
}
]
});
});
</script>
<style>
body {
margin-top: 40px;
text-align: center;
font-size: 13px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#calendar {
width: 900px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id='calendar'></div>
</body>
</html>