From 568c51e8eb90835dd9a05917bb5ff181c2de7848 Mon Sep 17 00:00:00 2001 From: Rob Date: Fri, 20 Sep 2019 17:32:36 +0200 Subject: [PATCH] add title --- js/Schedule.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/js/Schedule.js b/js/Schedule.js index ff5fee0..46bafac 100644 --- a/js/Schedule.js +++ b/js/Schedule.js @@ -61,10 +61,11 @@ var Schedule = class { constructor(scheduleXml){ this.schedule = scheduleXml.children("schedule"); - this.conf.title = this.schedule.children("conference").children("title").text(); - this.conf.start = this.schedule.children("conference").children("start").text(); - this.conf.end = this.schedule.children("conference").children("end").text(); - this.events = this.getEvents(); + this.conf.version = this.schedule.children("version").text(); + this.conf.title = this.schedule.children("conference").children("title").text(); + this.conf.start = this.schedule.children("conference").children("start").text(); + this.conf.end = this.schedule.children("conference").children("end").text(); + this.events = this.getEvents(); } /** @@ -74,6 +75,12 @@ var Schedule = class { this.now = time; } + /** + * @return String the schedule version + */ + getScheduleVersion(){ + return this.conf.version ; + } /** * @return String the schedule title */