diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-12 22:23:40 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-12 22:23:40 +0100 |
commit | 1a66193d28e9fb7af0145c3c9c58f39f55806c5b (patch) | |
tree | 7797ce111849cb7cc6ed6e3dc346304ac9284c67 /frontend.js | |
parent | 5e7ab8036bc07c11080de84ce074ccea7ec97f53 (diff) |
Add all elements of event file to event list
Diffstat (limited to 'frontend.js')
-rw-r--r-- | frontend.js | 7 |
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>'; } |