fullcalendar/examples/gcal.html

74 lines
1.9 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' />
<script type='text/javascript' src='../src/jquery/jquery.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/view.js'></script>
<script type='text/javascript' src='../src/util.js'></script>
<script type='text/javascript' src='../src/gcal.js'></script>
<!--</src>-->
<!--
<dist>
<link rel='stylesheet' type='text/css' href='../fullcalendar.css' />
<script type='text/javascript' src='../jquery/jquery.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
<script type='text/javascript' src='../gcal.js'></script>
</dist>
-->
<script type='text/javascript'>
$(document).ready(function() {
$('#calendar').fullCalendar({
// US Holidays
events: $.fullCalendar.gcalFeed('http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic'),
eventClick: function(event) {
2009-09-21 12:11:08 +02:00
// opens events in a popup window
2009-09-15 08:19:43 +02:00
window.open(event.url, 'gcalevent', 'width=700,height=600');
return false;
},
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
});
});
</script>
2009-04-26 06:43:27 +02:00
<style type='text/css'>
body {
2009-05-11 04:58:02 +02:00
margin-top: 40px;
2009-04-26 06:43:27 +02:00
text-align: center;
2009-09-21 12:11:08 +02:00
font-size: 13px;
2009-04-26 06:43:27 +02:00
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#loading {
position: absolute;
top: 5px;
right: 5px;
}
#calendar {
width: 900px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id='loading' style='display:none'>loading...</div>
<div id='calendar'></div>
</body>
</html>