diff options
Diffstat (limited to '')
-rw-r--r-- | assets/js/lustiges-script.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 59fd6ff..f01c0e1 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -359,6 +359,7 @@ $(function() { }); + var s = new Date(nextTalk.start*1000); $lecture.find('.'+room) .find('.current-talk') .removeClass('hidden') @@ -368,6 +369,9 @@ $(function() { .end() .find('.next-talk') .toggleClass('hidden', !nextTalk || nextTalk.special || (nextTalk.start - now > 60*60)) + .find('strong') + .text(s.getHours()+':'+(s.getMinutes() < 10 ? '0' : '')+s.getMinutes()) + .end() .find('.t') .text(nextTalk ? nextTalk.title : '') .end() |