Added calendar URL to config

This commit is contained in:
Paul-Vincent Roll 2015-12-19 21:03:44 +01:00
parent d3d2099b01
commit 6921f0f800
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
// Set the url of the calendar feed. // 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) { 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(); var events = cal.getEvents();
this.eventList = []; this.eventList = [];

View File

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