1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 20:31:26 +02:00

Progress page: remove toggle animation button (#34787)

We don't use the same approach with a button on the Placeholders page.
This commit is contained in:
XhmikosR
2021-08-21 06:54:53 +03:00
committed by GitHub
parent 91295c2187
commit 9e1d81a851
2 changed files with 2 additions and 22 deletions

View File

@@ -117,17 +117,6 @@
})
}
// Activate animated progress bar
var btnToggleAnimatedProgress = document.getElementById('btnToggleAnimatedProgress')
if (btnToggleAnimatedProgress) {
btnToggleAnimatedProgress.addEventListener('click', function () {
btnToggleAnimatedProgress.parentNode
.querySelector('.progress-bar-striped')
.classList
.toggle('progress-bar-animated')
})
}
// Insert copy to clipboard button before .highlight
var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
document.querySelectorAll('div.highlight')