From 470c69d024fed7d70cfb8e3de601e9766311f0bb Mon Sep 17 00:00:00 2001 From: Rob Date: Fri, 20 Sep 2019 22:54:50 +0200 Subject: [PATCH] bugfix?? --- js/Schedule.js | 83 +++++++++++++++++++------------------------------- 1 file changed, 31 insertions(+), 52 deletions(-) diff --git a/js/Schedule.js b/js/Schedule.js index 0c24a0b..6e92777 100644 --- a/js/Schedule.js +++ b/js/Schedule.js @@ -3,62 +3,41 @@ */ class Schedule { - /** - * the schedule xml object parsed as jQuery object - */ - schedule = false; - - /** - * Array of Events - * - * [{ - * id: 2132, - * title: "foobar" - * date:2018-09-22T10:30:00+02:00 - * }] - */ - events = []; - - /** - * object with Information of the conference - * {'title', 'start', 'end', ..} - */ - conf = { - title: 'defaultConf', - start: '1984-09-23', - end: '1984-09-24' - } - - /** - * indepent time - */ - now = new Date(); - - /** - * - */ - talkPrototype = { - 'date' : '1970-01-01T00:00:00+02:00', - 'start' : '1970-01-01T00:00:00+02:00', - 'duration' : '00:15', - 'room' : 'Großer Saal', - 'slug' : 'DS2018-9336-eroffnung', - 'url' : '/2018/fahrplan/events/9336.html', - 'title' : 'Eröffnung', - 'subtitle' : 'Datenspuren 2018', - 'track' : '', - 'type' : '', - 'language' : 'de', - 'abstract' : 'Eröffnung der Datenspuren 2018', - 'description' : 'Opening Datenspuren 2018', - 'logo' : false, - 'persons' : { 'id' : '7339', 'name' : 'Nerd Norbert' } - } - /** * class constructor */ constructor(scheduleXml){ + /** + * the schedule xml object parsed as jQuery object + */ + this.schedule = false; + + /** + * Array of Events + * + * [{ + * id: 2132, + * title: "foobar" + * date:2018-09-22T10:30:00+02:00 + * }] + */ + this.events = []; + + /** + * object with Information of the conference + * {'title', 'start', 'end', ..} + */ + this.conf = { + title: 'defaultConf', + start: '1984-09-23', + end: '1984-09-24' + } + + /** + * indepent time + */ + this.now = new Date(); + this.schedule = scheduleXml.children("schedule"); this.conf.version = this.schedule.children("version").text();