Fixed vertical line - is shown at the start in case that there is no point before or after the current time available.

This commit is contained in:
Kai Lauterbach 2023-04-28 22:38:59 +02:00
parent e3454e7e10
commit 523292a2fe

View file

@ -766,7 +766,12 @@ void init_webserver()
"console.log('upperIndex='+upperIndex);"
"if (lowerIndex === -1 || upperIndex === -1) {"
"console.log(\"Error: Current time not found in time array and not between two elements in time array.\");"
"return;"
"lowerIndex = 0;"
"upperIndex = 1;"
"var tmp1 = time[0].split(':');"
"console.log('tmp1 = ' + tmp1);"
"currenttime[0] = tmp1[0];"
"currenttime[1] = tmp1[1];"
"}"
"var lowerTime = time[lowerIndex].split(\":\");"
"var upperTime = time[upperIndex].split(\":\");"