add hourly forecast

This commit is contained in:
Matt Walsh
2020-10-20 16:37:11 -05:00
parent 85148ea5fa
commit c4e8ef6a14
11 changed files with 70 additions and 18 deletions

View File

@@ -77,6 +77,12 @@ class TravelForecast extends WeatherDisplay {
this.longContext = this.longCanvas.getContext('2d');
this.longCanvasGifs = [];
}
// stop all gifs
this.longCanvasGifs.forEach(gif => gif.pause());
// delete the gifs
this.longCanvasGifs.length = 0;
// set up variables
const cities = this.data;