mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fix typos in snippets.js
(#36758)
This commit is contained in:
parent
ed448925da
commit
6d101b15a4
1 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@
|
||||||
// --------
|
// --------
|
||||||
// Tooltips
|
// Tooltips
|
||||||
// --------
|
// --------
|
||||||
// Instanciate all tooltips in a docs or StackBlitz page
|
// Instantiate all tooltips in a docs or StackBlitz page
|
||||||
document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
||||||
.forEach(tooltip => {
|
.forEach(tooltip => {
|
||||||
new bootstrap.Tooltip(tooltip)
|
new bootstrap.Tooltip(tooltip)
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
// --------
|
// --------
|
||||||
// Popovers
|
// Popovers
|
||||||
// --------
|
// --------
|
||||||
// Instanciate all popovers in a docs or StackBlitz page
|
// Instantiate all popovers in a docs or StackBlitz page
|
||||||
document.querySelectorAll('[data-bs-toggle="popover"]')
|
document.querySelectorAll('[data-bs-toggle="popover"]')
|
||||||
.forEach(popover => {
|
.forEach(popover => {
|
||||||
new bootstrap.Popover(popover)
|
new bootstrap.Popover(popover)
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Instanciate all toasts in a docs page only
|
// Instantiate all toasts in a docs page only
|
||||||
document.querySelectorAll('.bd-example .toast')
|
document.querySelectorAll('.bd-example .toast')
|
||||||
.forEach(toastNode => {
|
.forEach(toastNode => {
|
||||||
const toast = new bootstrap.Toast(toastNode, {
|
const toast = new bootstrap.Toast(toastNode, {
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
toast.show()
|
toast.show()
|
||||||
})
|
})
|
||||||
|
|
||||||
// Instanciate all toasts in a docs page only
|
// Instantiate all toasts in a docs page only
|
||||||
const toastTrigger = document.getElementById('liveToastBtn')
|
const toastTrigger = document.getElementById('liveToastBtn')
|
||||||
const toastLiveExample = document.getElementById('liveToast')
|
const toastLiveExample = document.getElementById('liveToast')
|
||||||
if (toastTrigger) {
|
if (toastTrigger) {
|
||||||
|
|
Loading…
Reference in a new issue