-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCalendar.html
More file actions
149 lines (135 loc) · 3.9 KB
/
Calendar.html
File metadata and controls
149 lines (135 loc) · 3.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>form</title>
<meta name="description" content="">
<meta name="author" content="PC-164">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/js/bootstrap.min.js"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.6/fullcalendar.min.css" rel='stylesheet' />
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.6/fullcalendar.print.css" rel='stylesheet' media='print' />
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.6/fullcalendar.min.js"></script>
<!-- chat -->
<script src="/socket.io/socke t.io.js"></script>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<style>
/*breadcrumbs*/
.breadcrumb {@include inline-block-list();
padding: 10px 15px 10px 30px;
margin-bottom: 5px;
font-size: 15px;
color: #7d8d99;
text-align: center;
position: absolute;
top: 5%;
left: 15%;
}
/*calendar*/
#cal {
max-width: 900px;
margin: 0 auto;
position: absolute;
top: 15%;
left: 20%;
padding: 0;
font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
font-size: 14px;
}
</style>
</head>
<body>
<!-- breadcrumbs -->
<ol class="breadcrumb">
<li>
<a href="#">HOME</a>
</li>
<li>
<a href="http://127.0.0.1:8020/form/list.html">프로젝트 1</a>
</li>
<li class="active">
일정</a>
</li>
</ol>
<!-- calendar -->
<div id='cal'></div>
<script>
$(document).ready(function() {
$('#cal').fullCalendar({
header : {
left : 'prev,next today',
center : 'title',
//right : 'month,agendaWeek,agendaDay'
},
defaultDate : '2014-11-12',
selectable : true,
selectHelper : true,
select : function(start, end) {
var title = prompt('Event Title:');
var eventData;
if (title) {
eventData = {
title : title,
start : start,
end : end
};
$('#cal').fullCalendar('renderEvent', eventData, true);
// stick? = true
}
$('#cal').fullCalendar('unselect');
},
editable : true,
eventLimit : true, // allow "more" link when too many events
events : [{
title : 'All Day Event',
start : '2014-11-01'
}, {
title : 'Long Event',
start : '2014-11-07',
end : '2014-11-10'
}, {
id : 999,
title : 'Repeating Event',
start : '2014-11-09T16:00:00'
}, {
id : 999,
title : 'Repeating Event',
start : '2014-11-16T16:00:00'
}, {
title : 'Conference',
start : '2014-11-11',
end : '2014-11-13'
}, {
title : 'Meeting',
start : '2014-11-12T10:30:00',
end : '2014-11-12T12:30:00'
}, {
title : 'Lunch',
start : '2014-11-12T12:00:00'
}, {
title : 'Meeting',
start : '2014-11-12T14:30:00'
}, {
title : 'Happy Hour',
start : '2014-11-12T17:30:00'
}, {
title : 'Dinner',
start : '2014-11-12T20:00:00'
}, {
title : 'Birthday Party',
start : '2014-11-13T07:00:00'
}]
});
});
</script>
</body>
</html>