Clicking on the progress bar will hide it
This commit is contained in:
2 files changed
+6
No files matched your search
Vendored
+1
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user