Skip to content

Commit

Permalink
Making compitable with ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajinsharwar committed Nov 16, 2023
1 parent 30807e1 commit 6705881
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/_enqueues/wp/wp-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

document.addEventListener('DOMContentLoaded', function () {
// Select all tooltip containers on the page
const tooltipContainers = document.querySelectorAll('.tooltip-container');
var tooltipContainers = document.querySelectorAll('.tooltip-container');

tooltipContainers.forEach(function (tooltipContainer) {
const tooltipButton = tooltipContainer.querySelector('.tooltip-button');
const tooltipContent = tooltipContainer.querySelector('.tooltip-content');
var tooltipButton = tooltipContainer.querySelector('.tooltip-button');
var tooltipContent = tooltipContainer.querySelector('.tooltip-content');

tooltipButton.addEventListener('click', function () {
// Toggle the display of the tooltip content
Expand Down

0 comments on commit 6705881

Please sign in to comment.