summaryrefslogtreecommitdiff
path: root/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend.js')
-rw-r--r--frontend.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend.js b/frontend.js
index c99a361..c300c1c 100644
--- a/frontend.js
+++ b/frontend.js
@@ -32,7 +32,12 @@ exports.start = function(config) {
eventStr = eventStr + '<div class="event"><div class="eventDate">'+date+'</div><ul class="eventList">';
for(var ev in slides['events'][date]) {
if(!slides['events'][date].hasOwnProperty(ev)) { continue; }
- eventStr = eventStr + '<li class="eventEl">'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['summary']+'</li>';
+ eventStr = eventStr + '<li class="eventEl">';
+ for(var evF in slides['events'][date][ev]) {
+ if(!slides['events'][date][ev].hasOwnProperty(evF)) { continue; }
+ eventStr = eventStr + '<div class="eventField ' + evF + '">' + slides['events'][date][ev][evF] + '</div>';
+ }
+ eventStr = eventStr + '</li>';
}
eventStr = eventStr + '</ul></div>';
}