mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fix comparison
This commit is contained in:
+2
-2
@@ -111,10 +111,10 @@
|
||||
if (bgNum < LowThresh) {
|
||||
$('body').css('background-color', red);
|
||||
}
|
||||
if (LowThresh <= bgNum < MedThresh) {
|
||||
if ((LowThresh <= bgNum) && (bgNum < MedThresh)) {
|
||||
$('body').css('background-color', green);
|
||||
}
|
||||
if (MedThresh <= bgNum < HighThresh) {
|
||||
if ((MedThresh <= bgNum) && (bgNum < HighThresh)) {
|
||||
$('body').css('background-color', yellow);
|
||||
}
|
||||
if (bgNum >= HighThresh) {
|
||||
|
||||
Reference in New Issue
Block a user