You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
651 B

4 months ago
4 months ago
4 months ago
  1. import './bootstrap.js';
  2. import './vendor/bootstrap/dist/css/bootstrap.min.css';
  3. import './vendor/leaflet/dist/leaflet.min.css';
  4. import './styles/app.css';
  5. import { Tooltip } from './vendor/bootstrap/bootstrap.index.js';
  6. const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
  7. const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new Tooltip(tooltipTriggerEl))
  8. document.addEventListener('click', function (event) {
  9. if (event.target.matches('a[href*="remove"]')) {
  10. if (!confirm(event.target.innerText + ' ?')) {
  11. event.preventDefault();
  12. return false;
  13. }
  14. }
  15. });