fullcalendar/examples/basic.html

100 lines
2 KiB
HTML
Raw Normal View History

2009-04-26 06:43:27 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type='text/css'>
body {
margin-top: 50px;
text-align: center;
font-size: 14px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#calendar {
width: 75%;
2009-04-26 06:43:27 +02:00
margin: 0 auto;
}
</style>
2009-04-26 23:38:38 +02:00
<link rel='stylesheet' type='text/css' href='../fullcalendar.css' />
2009-04-26 06:43:27 +02:00
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/ui.core.js'></script>
<script type='text/javascript' src='../jquery/ui.draggable.js'></script>
2009-04-26 23:38:38 +02:00
<script type='text/javascript' src='../fullcalendar.js'></script>
2009-04-26 06:43:27 +02:00
<script type='text/javascript'>
$(document).ready(function() {
var d = new Date();
var y = d.getFullYear();
var m = d.getMonth();
$('#calendar').fullCalendar({
draggable: true,
events: [
{
id: 1,
title: "Long Event",
start: new Date(y, m, 6, 14, 0),
2009-04-26 06:43:27 +02:00
end: new Date(y, m, 11)
},
{
id: 2,
title: "Repeating Event",
start: new Date(y, m, 2)
},
{
id: 2,
title: "Repeating Event",
start: new Date(y, m, 9)
},
/*{
2009-04-26 06:43:27 +02:00
id: 3,
title: "Meeting",
start: new Date(y, m, 20, 9, 0)
},*/
2009-04-26 06:43:27 +02:00
{
id: 4,
title: "Click for Facebook",
start: new Date(y, m, 27, 16),
end: new Date(y, m, 29),
url: "http://facebook.com/"
},
{
id: 5,
title: "Click for Facebook",
start: new Date(y, m, 27, 8),
end: new Date(y, m, 29),
url: "http://facebook.com/"
},
{
id: 6,
title: "Click for Facebook",
start: new Date(y, m, 27, 14),
2009-04-26 06:43:27 +02:00
end: new Date(y, m, 29),
url: "http://facebook.com/"
}
],
//titleFormat: 'My',
weekStart: 1,
//rightToLeft: true,
//fixedWeeks: false,
//title: true,
//timeFormat: 'xg',
eventDrop: function(event, delta) {
//alert(delta);
},
resize: function() {
//alert(this);
}
2009-04-26 06:43:27 +02:00
});
});
</script>
</head>
<body>
<div id='calendar'></div>
</body>
</html>