No Results Found
Looks like your search didn’t match anything. Try adjusting your keywords and give it another go.
document.addEventListener('click', function(e) {
var button = e.target.closest('[id="resource-access-btn"]');
if (!button) return;
var $card = jQuery(button).closest('#resource-card');
var fileUrl = $card.find('[id="resource-file-url"]').text().trim();
window.currentGatedFileUrl = fileUrl;
if (localStorage.getItem('gated_resources_unlocked') === 'true') {
e.stopImmediatePropagation();
e.preventDefault();
if (fileUrl) {
// 1. Trigger the download immediately
var downloadLink = document.createElement('a');
downloadLink.href = fileUrl;
downloadLink.setAttribute('download', '');
downloadLink.setAttribute('target', '_blank');
document.body.appendChild(downloadLink);
downloadLink.click();
document.body.removeChild(downloadLink);
// 2. TRIGGER SUCCESS DIALOG POPUP
if (window.elementorProFrontend && elementorProFrontend.modules.popup) {
elementorProFrontend.modules.popup.showPopup({ id: 3577 });
}
}
}
}, true);