diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-19 03:43:12 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-19 03:43:12 +0100 |
commit | 8f969b467bfec01cf4190e13b99b26cfe25e4ce6 (patch) | |
tree | 5a03d118f6c182bd6773312bd5f7582511643460 | |
parent | b9db16f37325dcdae354a503223e7a1aa5c59040 (diff) |
Fix slide information field generation
-rw-r--r-- | frontend.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/frontend.js b/frontend.js index e60d572..d22c287 100644 --- a/frontend.js +++ b/frontend.js @@ -22,10 +22,14 @@ exports.start = function(config) { if(slides['slides'][slide]['type'] === 'image') { slideStr = slideStr +'<li><img src="/'+slides['slides'][slide]['file']+'">'; } - if(slides['slides'][slide]['text'].length > 0) { - slideStr = slideStr+'<div class="slide_desc"><h2>'+slides['slides'][slide]['head']+' - '+slides['slides'][slide]['text']+'</h2></div>'; + if(slides['slides'][slide]['head'].length > 0) { + slideStr = slideStr+'<div class="slideDesc"><div class="slideHead">'+slides['slides'][slide]['head']+'</div>'; + if(slides['slides'][slide]['text'].length > 0) { + slideStr = slideStr+'<div class="slideText'+slides['slides'][slide]['text']+'</div>'; + } + slideStr = slideStr + '</div>'; } - slideStr = slideStr + '</img></li>'; + slideStr = slideStr + '</img></li>\n'; } var eventStr = ''; for(var date in slides['events']) { |