Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
var fakeID = 0;
function normalizeEvent(event, options) {
event._id = event._id || (event.id == undefined ? '_fc' + fakeID++ : event.id + '');
if (event.date) {
if (!event.start) {
event.start = event.date;
}
delete event.date;
}
event._start = cloneDate(event.start = parseDate(event.start));
event.end = parseDate(event.end);
if (event.end && event.end <= event.start) {
event.end = null;
}
event._end = event.end ? cloneDate(event.end) : null;
if (event.allDay == undefined) {
event.allDay = options.allDayDefault;
}
if (event.className) {
if (typeof event.className == 'string') {
event.className = event.className.split(/\s+/);
}
}else{
event.className = [];
}
}
<script type='text/javascript'>
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
editable: false,
events: [
{
title: 'Training',
start: new Date(2010, 0, 8),
agenda: '20:30{ - 22:00}'
},
{
title: 'Krumping Workshop',
start: new Date(2010, 0, 12),
agenda: '20:30{ - 22:00}',
url: 'http://www.random-shox.com/index.php?p=blog_content&bid=7'
},
{
title: 'Training',
start: new Date(2010, 0, 15),
agenda: '20:30{ - 22:00}'
},
]
});
});
</script>
event._id = event._id || (event.id == undefined ? '_fc' + fakeID++ : event.id + '');