site-web-le-plus-beau-des-v.../bootstrap/js/tests/integration/bundle-modularity.js
2024-05-01 12:45:11 +02:00

9 lines
305 B
JavaScript

/* eslint-disable import/extensions, import/no-unassigned-import */
import Tooltip from '../../dist/tooltip'
import '../../dist/carousel'
window.addEventListener('load', () => {
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
.map(tooltipNode => new Tooltip(tooltipNode))
})