| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<link href='../../dist/fullcalendar.css' rel='stylesheet' /> |
| 5 |
<link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' /> |
| 6 |
<script src='../../node_modules/jquery/dist/jquery.js'></script> |
| 7 |
<script src='../../node_modules/moment/moment.js'></script> |
| 8 |
<script src='../../dist/fullcalendar.js'></script> |
| 9 |
<script> |
| 10 |
|
| 11 |
$(document).ready(function() { |
| 12 |
|
| 13 |
$('#calendar').fullCalendar({ |
| 14 |
headerToolbar: { |
| 15 |
left: 'prev,next today', |
| 16 |
center: 'title', |
| 17 |
right: 'month,week,dayGridWeek,day,dayGridDay' |
| 18 |
}, |
| 19 |
year: 2015, |
| 20 |
month: 0, |
| 21 |
date: 31 |
| 22 |
}); |
| 23 |
|
| 24 |
}); |
| 25 |
|
| 26 |
</script> |
| 27 |
<style> |
| 28 |
|
| 29 |
body { |
| 30 |
margin-top: 40px; |
| 31 |
text-align: center; |
| 32 |
font-size: 13px; |
| 33 |
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif; |
| 34 |
} |
| 35 |
|
| 36 |
#calendar { |
| 37 |
width: 900px; |
| 38 |
margin: 0 auto; |
| 39 |
} |
| 40 |
|
| 41 |
</style> |
| 42 |
</head> |
| 43 |
<body> |
| 44 |
<button onclick="$('#calendar').fullCalendar('gotoDate', 2015, 1)">gotoDate - feb 2015</button> |
| 45 |
<div id='calendar'></div> |
| 46 |
</body> |
| 47 |
</html> |