site-web-le-plus-beau-des-v.../bootstrap/js/tests/integration/bundle-modularity.js

10 lines
305 B
JavaScript
Raw Normal View History

2024-05-01 12:45:11 +02:00
/* 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))
})