Merge pull request #41 from paviro/master

Added calendar URL to config
This commit is contained in:
Michael Teeuw 2015-12-19 21:18:58 +01:00
commit 2ff3b6d541
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php
// Set the url of the calendar feed.
$url = 'https://p01-calendarws.icloud.com/ca/subscribe/1/n6x7Farxpt7m9S8bHg1TGArSj7J6kanm_2KEoJPL5YIAk3y70FpRo4GyWwO-6QfHSY5mXtHcRGVxYZUf7U3HPDOTG5x0qYnno1Zr_VuKH2M';
$url = $_GET['url'];
/*****************************************/

View File

@ -11,7 +11,7 @@ var calendar = {
calendar.updateData = function (callback) {
new ical_parser("calendar.php", function(cal) {
new ical_parser("calendar.php" + "?url="+encodeURIComponent(config.calendar.url), function(cal) {
var events = cal.getEvents();
this.eventList = [];

View File

@ -34,7 +34,8 @@ var config = {
]
},
calendar: {
maximumEntries: 10
maximumEntries: 10,
url: "https://p01-calendarws.icloud.com/ca/subscribe/1/n6x7Farxpt7m9S8bHg1TGArSj7J6kanm_2KEoJPL5YIAk3y70FpRo4GyWwO-6QfHSY5mXtHcRGVxYZUf7U3HPDOTG5x0qYnno1Zr_VuKH2M"
},
news: {
feed: 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'