This commit is contained in:
Rob 2019-09-20 22:54:50 +02:00
parent 66ed0ed644
commit 470c69d024
1 changed files with 31 additions and 52 deletions

View File

@ -3,10 +3,14 @@
*/ */
class Schedule { class Schedule {
/**
* class constructor
*/
constructor(scheduleXml){
/** /**
* the schedule xml object parsed as jQuery object * the schedule xml object parsed as jQuery object
*/ */
schedule = false; this.schedule = false;
/** /**
* Array of Events * Array of Events
@ -17,13 +21,13 @@ class Schedule {
* date:2018-09-22T10:30:00+02:00 * date:2018-09-22T10:30:00+02:00
* }] * }]
*/ */
events = []; this.events = [];
/** /**
* object with Information of the conference * object with Information of the conference
* {'title', 'start', 'end', ..} * {'title', 'start', 'end', ..}
*/ */
conf = { this.conf = {
title: 'defaultConf', title: 'defaultConf',
start: '1984-09-23', start: '1984-09-23',
end: '1984-09-24' end: '1984-09-24'
@ -32,33 +36,8 @@ class Schedule {
/** /**
* indepent time * indepent time
*/ */
now = new Date(); this.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){
this.schedule = scheduleXml.children("schedule"); this.schedule = scheduleXml.children("schedule");
this.conf.version = this.schedule.children("version").text(); this.conf.version = this.schedule.children("version").text();