diff options
author | MaZderMind | 2014-12-23 11:15:37 +0100 |
---|---|---|
committer | MaZderMind | 2014-12-23 11:15:37 +0100 |
commit | c75a5565ef2e61f06e44a08277981d96ea175c0d (patch) | |
tree | 4d159ba1bf5f309fe27480dd5bf7426b403b880d /assets/js | |
parent | 96fae0eb5bbe000cf5cc263c95da296c367d7bb6 (diff) |
more startpage styling
Diffstat (limited to 'assets/js')
-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() |