This commit is contained in:
Matt Walsh
2022-12-07 10:53:18 -06:00
parent 8e6fd04b3a
commit 49cd15a688
16 changed files with 1406 additions and 478 deletions

View File

@@ -16,10 +16,11 @@ class Progress extends WeatherDisplay {
// disable any navigation timing
this.timing = false;
this.version = document.getElementById('version').innerHTML;
// setup event listener
this.elem.querySelector('.container').addEventListener('click', this.lineClick.bind(this));
// setup event listener for dom-required initialization
document.addEventListener('DOMContentLoaded', () => {
this.version = document.getElementById('version').innerHTML;
this.elem.querySelector('.container').addEventListener('click', this.lineClick.bind(this));
});
this.okToDrawCurrentConditions = false;
}