Events Calendar
2021 |
document.addEventListener('DOMContentLoaded', function() { var elements = document.querySelectorAll(".hasjevtip"); elements.forEach(function(myPopoverTrigger) { myPopoverTrigger.addEventListener('inserted.bs.popover', function () { var title = myPopoverTrigger.getAttribute('data-bs-original-title') || false; const popover = bootstrap.Popover.getInstance(myPopoverTrigger); if (popover.tip) { var header = popover.tip.querySelector('.popover-header'); var body = popover.tip.querySelector('.popover-body'); var popoverContent = ""; if (title) { popoverContent += title; } var content = myPopoverTrigger.getAttribute('data-bs-original-content') || false; if (content) { popoverContent += content; } if (header) { header.outerHTML = popoverContent; } else if (body) { body.outerHTML = popoverContent; } } }) }); });