fullcalendar/examples/basic.html

97 lines
2.5 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>
2009-09-15 08:19:43 +02:00
<!--<src>-->
<link rel='stylesheet' type='text/css' href='../src/css/main.css' />
<link rel='stylesheet' type='text/css' href='../src/css/grid.css' />
<link rel='stylesheet' type='text/css' href='../src/css/agenda.css' />
2009-09-15 08:19:43 +02:00
<script type='text/javascript' src='../src/jquery/jquery.js'></script>
<script type='text/javascript' src='../src/jquery/ui.core.js'></script>
<script type='text/javascript' src='../src/jquery/ui.draggable.js'></script>
<script type='text/javascript' src='../src/jquery/ui.resizable.js'></script>
<script type='text/javascript' src='../src/main.js'></script>
<script type='text/javascript' src='../src/grid.js'></script>
<script type='text/javascript' src='../src/agenda.js'></script>
2009-09-15 08:19:43 +02:00
<script type='text/javascript' src='../src/view.js'></script>
<script type='text/javascript' src='../src/util.js'></script>
<!--</src>-->
<!--
<dist>
<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-09-15 08:19:43 +02:00
<script type='text/javascript' src='../jquery/ui.resizable.js'></script>
2009-09-21 12:11:08 +02:00
<script type='text/javascript' src='../fullcalendar.min.js'></script>
2009-09-15 08:19:43 +02:00
</dist>
-->
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();
2009-09-15 08:19:43 +02:00
2009-04-26 06:43:27 +02:00
$('#calendar').fullCalendar({
2009-09-15 08:19:43 +02:00
editable: true,
2009-04-26 06:43:27 +02:00
events: [
{
id: 1,
title: "Long Event",
start: new Date(y, m, 6, 14, 0),
2009-09-15 08:19:43 +02:00
end: new Date(y, m, 11),
allDay: false
2009-04-26 06:43:27 +02:00
},
{
id: 2,
title: "Repeating Event",
2009-09-15 08:19:43 +02:00
start: new Date(y, m, 2),
allDay: true
2009-04-26 06:43:27 +02:00
},
{
id: 2,
title: "Repeating Event",
2009-09-15 08:19:43 +02:00
start: new Date(y, m, 9),
allDay: true
2009-04-26 06:43:27 +02:00
},
2009-05-11 04:58:02 +02:00
{
2009-04-26 06:43:27 +02:00
id: 3,
title: "Meeting",
2009-09-15 08:19:43 +02:00
start: new Date(y, m, 20, 9, 0),
allDay: false
2009-05-11 04:58:02 +02:00
},
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),
2009-09-15 08:19:43 +02:00
url: "http://facebook.com/",
allDay: false
2009-04-26 06:43:27 +02:00
}
2009-05-25 19:26:13 +02:00
]
2009-04-26 06:43:27 +02:00
});
});
</script>
2009-09-15 08:19:43 +02:00
<style type='text/css'>
body {
margin-top: 40px;
text-align: center;
2009-10-01 07:39:02 +02:00
font-size: 14px;
2009-09-15 08:19:43 +02:00
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#calendar {
width: 900px;
margin: 0 auto;
}
</style>
2009-04-26 06:43:27 +02:00
</head>
<body>
<div id='calendar'></div>
</body>
2009-09-15 08:19:43 +02:00
</html>