Update doalles.js - continued color coding

Added consistent color coding for best-tle -field as well. Now it is very clear which tle-fit -estimates are not correct.
pull/66/head
nousian 2020-01-02 17:53:24 +02:00 committed by GitHub
parent ef8cc9538d
commit 6a80a7d46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,12 @@ function maketable(str, arr)
}
else if(column == "best-tle") {
ret.value = "<small>"+row[column]+"</small>";
if(row["best-tle-dist"] != null) {
if (Math.abs(row["best-tle-dist"]) > 10000)
ret.color="red";
else if (Math.abs(row["best-tle-dist"]) > 1000)
ret.color="#ffaaaa";
}
}
else if(column == "gpshealth" && row[column] != null) {
if(row[column]==0)