Lines Matching refs:element
6 document.querySelectorAll(`[data-${acronymPageProtection}-link="warning"], [data-${acronymPageProtection}-link="login"]`).forEach(element => {
8 let linkType = element.dataset.ppLink;
9 let protectionSourceType = element.dataset.ppSource;
17 if (element.hasAttribute("title")) {
18 tooltipHtml += "<p>Description: " + element.getAttribute("title") + "</p>";
25 element.addEventListener('click', function (event) {
45 // An element may already have a tooltip
46 let tooltip = bootstrap.Tooltip.getInstance(element);
50 element.setAttribute("title", tooltipHtml);
51 new bootstrap.Tooltip(element, {