mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-24 08:20:23 +00:00
* Pass docs js through Babel * Use ES6 in docs js * Only run babel on src files * Allow babel in Hugo * Update scripts.html * Inherit from the root .eslintrc.json * Use `Array.from` * Drop Babel from docs * Prefer template * replace IIFE with arrow functions Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: GeoSot <geo.sotis@gmail.com>
8 lines
256 B
JavaScript
8 lines
256 B
JavaScript
/* global bootstrap: false */
|
|
(() => {
|
|
'use strict'
|
|
const tooltipTriggerList = Array.from(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
|
tooltipTriggerList.forEach(tooltipTriggerEl => {
|
|
new bootstrap.Tooltip(tooltipTriggerEl)
|
|
})
|
|
})()
|