mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-05 17:30:12 +08:00
49 lines
980 B
HTML
49 lines
980 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link href='../build/out/fullcalendar.css' rel='stylesheet' />
|
|
<link href='../build/out/fullcalendar.print.css' rel='stylesheet' media='print' />
|
|
<script src='../build/out/jquery.js'></script>
|
|
<script src='../build/out/jquery-ui.js'></script>
|
|
<script src='../build/out/fullcalendar.js'></script>
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#calendar').fullCalendar({
|
|
//year: 2009,
|
|
//month: 10,
|
|
//date: 22,
|
|
//defaultView: 'agendaWeek', // error also occured with month view
|
|
editable: true,
|
|
events: "../demos/json-events.json"
|
|
});
|
|
|
|
$('#calendar').fullCalendar('option', 'height', $(window).height()-80);
|
|
// shouldn't throw an error
|
|
|
|
});
|
|
|
|
|
|
</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>
|