diff options
author | Hakim El Hattab | 2013-06-10 16:53:41 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-06-10 16:53:41 -0400 |
commit | 7094f44eb9668f43046836936d1a925fc8698e49 (patch) | |
tree | d5206ace53b767ed4a9836c300cdfa7d5f7bd041 /plugin | |
parent | 8b355eaba0aa1fc51c8284b02f3f9a6f7ab64410 (diff) | |
parent | 424f8ee9618803d96a31d363597d0b25f876497f (diff) |
merge conflicts w preview & backgrounds
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/multiplex/index.js | 1 | ||||
-rw-r--r-- | plugin/notes-server/index.js | 1 | ||||
-rw-r--r-- | plugin/notes/notes.html | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 35df8e3..6f5d8b1 100644 --- a/plugin/multiplex/index.js +++ b/plugin/multiplex/index.js @@ -30,6 +30,7 @@ app.configure(function() { }); app.get("/", function(req, res) { + res.writeHead(200, {'Content-Type': 'text/html'}); fs.createReadStream(opts.baseDir + '/index.html').pipe(res); }); diff --git a/plugin/notes-server/index.js b/plugin/notes-server/index.js index 8643f5d..5535c90 100644 --- a/plugin/notes-server/index.js +++ b/plugin/notes-server/index.js @@ -30,6 +30,7 @@ app.configure(function() { }); app.get("/", function(req, res) { + res.writeHead(200, {'Content-Type': 'text/html'}); fs.createReadStream(opts.baseDir + '/index.html').pipe(res); }); diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 2333878..8af43fb 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -213,9 +213,9 @@ now = new Date(); diff = now.getTime() - start.getTime(); - hours = parseInt( diff / ( 1000 * 60 * 60 ) ); - minutes = parseInt( ( diff / ( 1000 * 60 ) ) % 60 ); - seconds = parseInt( ( diff / 1000 ) % 60 ); + hours = Math.floor( diff / ( 1000 * 60 * 60 ) ); + minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 ); + seconds = Math.floor( ( diff / 1000 ) % 60 ); clockEl.innerHTML = now.toLocaleTimeString(); hoursEl.innerHTML = zeroPadInteger( hours ); |