Clicking on the progress bar will hide it

This commit is contained in:
Thomas Weber committed 2020-07-28 00:14:49 -05:00
1 parent 86924a9e8b
commit 39d3eb77a0
2 files changed
+6

No files matched your search

+1
View File
@@ -0,0 +1 @@
{}
+5
View File
@@ -15,6 +15,11 @@ progressEl.style.transition = 'all .2s';
progressEl.title = 'Progress Bar'; // todo: translate
document.body.appendChild(progressEl);
// if the progress bar breaks, the user can click on it to hide it
progressEl.addEventListener('click', (e) => {
hideProgress();
});
window.addEventListener('hashchange', (e) => {
if (location.hash) {
total = 0;