fullcalendar/tests/basic.html

86 lines
1.6 KiB
HTML
Raw Normal View History

2009-10-01 07:39:02 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel='stylesheet' type='text/css' href='../examples/redmond/theme.css' />
2009-10-01 07:39:02 +02:00
<script type='text/javascript' src='loader.js'></script>
<script type='text/javascript'>
$(document).ready(function() {
var d = new Date();
var y = d.getFullYear();
var m = d.getMonth();
$('#calendar').fullCalendar({
header: {
left: 'prevYear,prev,next,nextYear today',
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
2009-10-01 07:39:02 +02:00
},
editable: true,
2009-10-01 07:39:02 +02:00
events: [
{
id: 1,
title: "Long Event",
start: new Date(y, m, 6, 14, 0),
2009-10-10 10:12:40 +02:00
end: new Date(y, m, 11)
//allDay: false
2009-10-01 07:39:02 +02:00
},
{
id: 2,
2009-10-10 10:12:40 +02:00
title: "Repeating Event111",
start: new Date(y, m, 8),
2009-10-01 07:39:02 +02:00
allDay: true
},
{
id: 2,
2009-10-10 10:12:40 +02:00
title: "Repeating Event222",
start: new Date(y, m, 9, 5, 0),
allDay: false
},
{
id: 345,
title: "Hey Hey",
start: new Date(y, m, 9, 4, 0),
allDay: false,
className: 'adam shaw'
2009-10-01 07:39:02 +02:00
},
{
id: 3,
title: "Meeting",
start: new Date(y, m, 20, 9, 0),
allDay: false
},
{
id: 4,
title: "Click for Facebook",
start: new Date(y, m, 27, 16),
end: new Date(y, m, 29),
url: "http://facebook.com/",
allDay: false
}
]
2009-10-01 07:39:02 +02:00
});
});
</script>
<style type='text/css'>
body {
margin-top: 40px;
text-align: center;
font-size: 13px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#calendar {
width: 900px;
2009-10-01 07:39:02 +02:00
margin: 0 auto;
}
</style>
</head>
<body>
<div id='calendar'></div>
</body>
</html>