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:
parent
e3454e7e10
commit
523292a2fe
1 changed files with 6 additions and 1 deletions
|
@ -766,7 +766,12 @@ void init_webserver()
|
||||||
"console.log('upperIndex='+upperIndex);"
|
"console.log('upperIndex='+upperIndex);"
|
||||||
"if (lowerIndex === -1 || upperIndex === -1) {"
|
"if (lowerIndex === -1 || upperIndex === -1) {"
|
||||||
"console.log(\"Error: Current time not found in time array and not between two elements in time array.\");"
|
"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 lowerTime = time[lowerIndex].split(\":\");"
|
||||||
"var upperTime = time[upperIndex].split(\":\");"
|
"var upperTime = time[upperIndex].split(\":\");"
|
||||||
|
|
Loading…
Reference in a new issue