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,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();