From 5a3b14483b992969f7f9f1d5fe59b008b20db2c9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 3 Aug 2015 00:15:26 +0200 Subject: javascript comments are not starting with # - i will never again push changes before checking if the code actually works diff --git a/www/js/clock.js b/www/js/clock.js index a11ad87..a28e6d5 100644 --- a/www/js/clock.js +++ b/www/js/clock.js @@ -53,7 +53,7 @@ function Clock() { this.last_message = msg; this.clock_offset = ((msg.t2 - msg.t1) + (msg.t3 - msg.t4)) / 2; this.clock_rtt = (msg.t4 - msg.t1) - (msg.t3 - msg.t2); -# console.log('got new ntp message from rhrdtime (rtt=' + this.clock_rtt + ' ms): new offset = ' + this.clock_offset + ' ms'); +// console.log('got new ntp message from rhrdtime (rtt=' + this.clock_rtt + ' ms): new offset = ' + this.clock_offset + ' ms'); } this.ntp_request = function() { @@ -61,7 +61,7 @@ function Clock() { } this.sock_onopen = function() { -# console.log('clock websocket connection established'); +// console.log('clock websocket connection established'); this.state = 'CONNECTED'; this.ntp_request(); this.interval_request = setInterval(this.ntp_request.bind(this), 2000); @@ -71,7 +71,7 @@ function Clock() { if(this.state == 'STOPPED') { delete this.sock; } else { -# console.log('clock websocket closed with code ' + event.code + ', trying reconnect...'); +// console.log('clock websocket closed with code ' + event.code + ', trying reconnect...'); clearInterval(this.interval_request); delete this.interval_request; this.sock.close(); -- cgit v0.10.2