gl-website-deployer/vendor/twbs/bootstrap/js/tests/integration/bundle-modularity.js
2024-11-19 08:02:04 +01:00

10 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))
})