From 34fd28abd6a4da827e1d3d80b71308d7e2a36a28 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 10 Dec 2016 18:23:06 +0100 Subject: remove unised offsetting in js --- assets/js/lustiges-script.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'assets/js') diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 7f22766..78b8758 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -182,11 +182,7 @@ $(function() { updateTimer = 5*1000, /* update display every 5 seconds */ refetchTimer = 10*60*1000, /* re-request current / upcoming schedule every 10 minutes */ scheduleData = {}, - $lecture = $('.room.has-schedule'), - - /* offset to the browsers realtime (for simulation) */ - offset = $('.js-settings').data('scheduleoffset');; - + $lecture = $('.room.has-schedule'); if($lecture.length == 0) return; @@ -210,7 +206,7 @@ $(function() { function updateProgtamTeaser() { var // corrected "now" timestamp in unix-counting (seconds, not microseconds) - now = (Date.now() / 1000) + offset; + now = (Date.now() / 1000); $.each(scheduleData, function(room, talks) { var currentTalk, nextTalk; -- cgit v1.2.3