In Pep #268, the focus is on Women's Liberation, illustrating the social dynamics of the 1970s through the lives of the iconic Archie characters. The cover features a charismatic leader of the women’s lib movement at Riverdale High, sparking discussions around gender equality. The story captures the humor and social commentary typical of the Archie series, placing classic characters within the context of meaningful cultural conversations. The cover shows wear, along the spine and edges, indicative of its vintage nature.
';
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);