Now Lives in Elementor Header HTML block
jQuery(document).ready(function($) {
var popupTimer;
// On hover on #deals-ver, show .popup-points
$('#deals-ver, .popup-points').mouseenter(function() {
// Show the popup immediately
$('.popup-points').stop(true, true).fadeIn('slow');
});
// Set a timer to hide the popup after a delay (adjust the delay as needed)
popupTimer = setTimeout(function() {
$('.popup-points').stop(true, true).fadeOut('slow');
}, 1000); // 1000 milliseconds (1 second) delay
// Cancel the timer if entering .popup-points
$('.popup-points').mouseenter(function() {
clearTimeout(popupTimer);
});
// Hide the popup when leaving #deals-ver or .popup-points
$('#deals-ver, .popup-points').mouseleave(function() {
// Set a timer to hide the popup after a delay (adjust the delay as needed)
popupTimer = setTimeout(function() {
$('.popup-points').stop(true, true).fadeOut('slow');
}, 1000); // 1000 milliseconds (1 second) delay
});
});