From b3cfb5b8918684abea38cb4c261137e15d05c207 Mon Sep 17 00:00:00 2001 From: Egor Kunovsky Date: Tue, 23 Jul 2024 21:13:10 +0000 Subject: [PATCH] colors --- http/index.html | 4 ++-- http/index_parents.html | 6 +++--- http/reports/index.html | 6 +++--- http/users/index.html | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/http/index.html b/http/index.html index d7c0f5e..8ae1ff3 100644 --- a/http/index.html +++ b/http/index.html @@ -83,8 +83,8 @@

Select Level:

var markersLayer = L.layerGroup().addTo(map); function getColor(temperature) { - const maxTemp = 50; - const minTemp = -10; + const maxTemp = 40; + const minTemp = -40; const tempRange = maxTemp - minTemp; const percentage = (temperature - minTemp) / tempRange; const hue = (1 - percentage) * 240; // From blue to red diff --git a/http/index_parents.html b/http/index_parents.html index 6dbe532..b42419e 100644 --- a/http/index_parents.html +++ b/http/index_parents.html @@ -34,11 +34,11 @@ function getColor(temperature) { // Generate color from temperature - const maxTemp = 50; - const minTemp = -10; + const maxTemp = 40; + const minTemp = -40; const tempRange = maxTemp - minTemp; const percentage = (temperature - minTemp) / tempRange; - const hue = (1 - percentage) * 240; // From blue to red + const hue = (1 - percentage) * 240; return `hsl(${hue}, 100%, 50%)`; } diff --git a/http/reports/index.html b/http/reports/index.html index 8ee83f2..ccfab66 100644 --- a/http/reports/index.html +++ b/http/reports/index.html @@ -104,11 +104,11 @@

Select Level:

const markersLayer = L.layerGroup().addTo(map); function getColor(temperature) { - const maxTemp = 50; - const minTemp = -10; + const maxTemp = 37; + const minTemp = -37; const tempRange = maxTemp - minTemp; const percentage = (temperature - minTemp) / tempRange; - const hue = (1 - percentage) * 240; // From blue to red + const hue = (1 - percentage) * 360; // From blue to red return `hsl(${hue}, 100%, 50%)`; } diff --git a/http/users/index.html b/http/users/index.html index 1853216..8b8352d 100644 --- a/http/users/index.html +++ b/http/users/index.html @@ -72,8 +72,8 @@

Select Level:

var markersLayer = L.layerGroup().addTo(map); function getColor(temperature) { - const maxTemp = 50; - const minTemp = -10; + const maxTemp = 40; + const minTemp = -40; const tempRange = maxTemp - minTemp; const percentage = (temperature - minTemp) / tempRange; const hue = (1 - percentage) * 240; // From blue to red