diff options
-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']) { |