Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Registers iCal feed as global plugin and introduces (unfinished) example
- Loading branch information
Showing
4 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset='utf-8' /> | ||
<link href='../packages/bundle/main.css' rel='stylesheet' /> | ||
<script src='../packages/bundle/main.js'></script> | ||
<script> | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
var calendarEl = document.getElementById('calendar'); | ||
|
||
var calendar = new FullCalendar.Calendar(calendarEl, { | ||
|
||
events: { | ||
feedUrl: 'https://duckduckgo.com', // need a valid request that obeys CORS | ||
}, | ||
|
||
headerToolbar: { | ||
left: 'prev,next today', | ||
center: 'title', | ||
right: 'dayGridMonth,listYear' | ||
}, | ||
|
||
displayEventTime: false, // don't show the time column in list view | ||
|
||
loading: function(bool) { | ||
document.getElementById('loading').style.display = | ||
bool ? 'block' : 'none'; | ||
} | ||
|
||
}); | ||
|
||
calendar.render(); | ||
}); | ||
|
||
</script> | ||
<style> | ||
|
||
body { | ||
margin: 40px 10px; | ||
padding: 0; | ||
font-family: Arial, Helvetica Neue, Helvetica, sans-serif; | ||
font-size: 14px; | ||
} | ||
|
||
#loading { | ||
display: none; | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
} | ||
|
||
#calendar { | ||
max-width: 1100px; | ||
margin: 0 auto; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<div id='loading'>loading...</div> | ||
|
||
<div id='calendar'></div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters