Product Description:
This issue of iZombie, written by Chris Roberson with art by Michael Allred, continues the captivating story of Gwen Dylan, a gravedigger in Eugene, Oregon, who happens to be a zombie. The series blends elements of horror and mystery as Gwen solves murders by eating the brains of the deceased. This installment features intricate artwork and engaging storytelling, drawing readers deeper into Gwen's undead adventures.
';
responseDiv.style.display = 'block';
submitButton.disabled = false;
});
};
// Make closePopup function global so it can be called from the popup HTML
window.closePopup = function(ctaId) {
const popup = document.getElementById(`popupOverlay_${ctaId}`);
if (popup) {
popup.remove();
}
};
// Global function to load spin wheel in popup
window.loadSpinWheelInPopup = function(wheelId, containerId) {
const container = document.getElementById(containerId);
if (!container) return;
// Include the spin wheel widget component
fetch(`/components/spin-wheel/spin-wheel-widget.php?wheel_id=${wheelId}&showTitle=false&showDescription=false`)
.then(response => response.text())
.then(html => {
container.innerHTML = html;
// Initialize the spin wheel JavaScript if available
if (typeof initSpinWheel === 'function') {
initSpinWheel(wheelId);
}
})
.catch(error => {
console.error('Error loading spin wheel:', error);
container.innerHTML = `
Unable to load spin wheel. Please refresh the page.
`;
});
};
}
// Call the function when the DOM is fully loaded
document.addEventListener('DOMContentLoaded', initPopupCTA);