| 78 | export let currBeginIndex = 0; |
| 79 | |
| 80 | export function updateDateTimeRangeSpan(jenaWeatherData) { |
| 81 | const timeSpan = timeSpanSelect.value; |
| 82 | const currEndIndex = currBeginIndex + TIME_SPAN_RANGE_MAP[timeSpan]; |
| 83 | const begin = |
| 84 | new Date(jenaWeatherData.getTime(currBeginIndex)).toLocaleDateString(); |
| 85 | const end = |
| 86 | new Date(jenaWeatherData.getTime(currEndIndex)).toLocaleDateString(); |
| 87 | dateTimeRangeSpan.textContent = `${begin} - ${end}`; |
| 88 | } |
| 89 | |
| 90 | export function updateScatterCheckbox() { |
| 91 | const series1 = selectSeries1.value; |