diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-10 02:28:14 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-10 02:28:14 +0100 |
commit | 0711c6e8494ad51e32e1f67d66ecd712d87c763d (patch) | |
tree | 7ebfb1a18bcbb470e568152e0b435d862aa6bbde /frontend.js | |
parent | 86ce3642059788803fa4cb941492a27bebccba63 (diff) |
New more modular event replacement
Diffstat (limited to 'frontend.js')
-rw-r--r-- | frontend.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend.js b/frontend.js index ed093f4..c99a361 100644 --- a/frontend.js +++ b/frontend.js @@ -29,12 +29,12 @@ exports.start = function(config) { var eventStr = ''; for(var date in slides['events']) { if(!slides['events'].hasOwnProperty(date)) { continue; } - eventStr = eventStr + '<h4>'+date+'</h4><hr><ul>'; + 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>'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['summary']+'</li>'; + eventStr = eventStr + '<li class="eventEl">'+slides['events'][date][ev]['time']+' - '+slides['events'][date][ev]['summary']+'</li>'; } - eventStr = eventStr + '</ul>'; + eventStr = eventStr + '</ul></div>'; } body = body.replace("$IMAGES", slideStr); body = body.replace("$EVENTS", eventStr); |