From 327c302851f4b73c643857b9c52abab0cba4593a Mon Sep 17 00:00:00 2001 From: Jason Calabrese Date: Tue, 27 Jan 2015 22:48:06 -0800 Subject: [PATCH 1/2] fix for nightmode --- static/js/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/client.js b/static/js/client.js index db83a7cdd96..8cd03eab2a0 100644 --- a/static/js/client.js +++ b/static/js/client.js @@ -1188,6 +1188,7 @@ var app = {}, browserSettings = {}, browserStorage = $.localStorage; // Dim the screen by reducing the opacity when at nighttime if (browserSettings.nightMode) { + var dateTime = new Date(); if (opacity.current != opacity.NIGHT && (dateTime.getHours() > 21 || dateTime.getHours() < 7)) { $('body').css({ 'opacity': opacity.NIGHT }); } else { From 0eef982f78d6669ca47f77ede3492e14edf3a899 Mon Sep 17 00:00:00 2001 From: Jason Calabrese Date: Tue, 27 Jan 2015 23:53:50 -0800 Subject: [PATCH 2/2] version bump --- bower.json | 2 +- package.json | 2 +- static/index.html | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bower.json b/bower.json index 7d3756be363..406470963b2 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "nightscout", - "version": "0.6.1", + "version": "0.6.2", "dependencies": { "angularjs": "1.3.0-beta.19", "bootstrap": "~3.2.0", diff --git a/package.json b/package.json index 6c3e87ff360..efa813acd62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Nightscout", - "version": "0.6.1", + "version": "0.6.2", "description": "Nightscout acts as a web-based CGM (Continuous Glucose Montinor) to allow multiple caregivers to remotely view a patients glucose data in realtime.", "license": "AGPL3", "author": "Nightscout Team", diff --git a/static/index.html b/static/index.html index eb787e36f47..934fdf1ff11 100644 --- a/static/index.html +++ b/static/index.html @@ -6,9 +6,9 @@ Nightscout - + - + @@ -220,8 +220,8 @@

Nightscout

- - + +