diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/playground/hacky-progress-bar.js b/src/playground/hacky-progress-bar.js index b4d920b0c..a5b948355 100644 --- a/src/playground/hacky-progress-bar.js +++ b/src/playground/hacky-progress-bar.js @@ -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;