diff --git a/public/js/classes.js b/public/js/classes.js deleted file mode 100644 index 7c94a9b..0000000 --- a/public/js/classes.js +++ /dev/null @@ -1,95 +0,0 @@ -export class Session { - constructor(id, title, location) { - this._id = id; - this._title = title; - this._location = location; - } - get id() { - return this._id; - } - set id(id) { - this._id = id; - } - - get title() { - return this._title; - } - set title(title) { - this._title = title; - } - - get location() { - return this._location; - } - set location(location) { - this._location = location; - } -} - -export class Talk { - constructor(id, speaker, title, description, session, time, tags, ratings) { - this._id = id; - this._speaker = speaker; - this._title = title; - this._description = description; - this._session = session; - this._time = time; - this._tags = tags; - this._ratings = ratings; - } - get id() { - return this._id; - } - set id(id) { - this._id = id; - } - - get speaker() { - return this._speaker; - } - set speaker(speaker) { - this._speaker = speaker; - } - - get title() { - return this._title; - } - set title(title) { - this._title = title; - } - - get description() { - return this._description; - } - set description(description) { - this._description = description; - } - - get session() { - return this._session; - } - set session(session) { - this._session = session; - } - - get time() { - return this._time; - } - set time(time) { - this._time = time; - } - - get tags() { - return this._tags; - } - set tags(tags) { - this._tags = tags; - } - - get ratings() { - return this._ratings; - } - set ratings(ratings) { - this._ratings = ratings; - } -} diff --git a/public/js/index.js b/public/js/index.js index b1ebbc8..8ed6318 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -16,11 +16,14 @@ function loadSessions() { } function loadTalks() { + return drawTalks(Talk.loadBySessionId("B")); +} +function drawTalks(talksPromise) { //create holding div to append to (only children are returned) var content = $("