summaryrefslogtreecommitdiff
path: root/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend.js')
-rw-r--r--frontend.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/frontend.js b/frontend.js
index ed50fc7..a069966 100644
--- a/frontend.js
+++ b/frontend.js
@@ -28,11 +28,10 @@ exports.start = function(config) {
}
var eventStr = '';
for(var date in slides['events']) {
- if(!slides['events'].hasOwnProperty(date)) { continue; }
- eventStr = eventStr + '<h4>'+slides['events'][date]['date']+'</h4><hr><ul>';
- for(var ev in slides['events'][date]['events']) {
- if(!slides['events'][date]['events'].hasOwnProperty(ev)) { continue; }
- eventStr = eventStr + '<li>'+slides['events'][date]['events'][ev]['time']+' - '+slides['events'][date]['events'][ev]['text']+'</li>';
+ eventStr = eventStr + '<h4>'+date+'</h4><hr><ul>';
+ for(var ev in slides['events'][date]) {
+ if(!slides['events'][date].hasOwnProperty(ev)) { continue; }
+ eventStr = eventStr + '<li>'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['text']+'</li>';
}
eventStr = eventStr + '</ul>';
}