Dragoyle LLC
Free Emergency Preparedness Template
Free Emergency Preparedness Template
Regular price
$0.00 USD
Regular price
Sale price
$0.00 USD
Unit price
per
Free Emergency Preparedness Template supplied by FEMA on www.ready.gov
View full details
document.addEventListener('DOMContentLoaded', function () {
// Get the product images container
var productMedia = document.querySelectorAll('.product-single__media-item');
// Get the variant dropdown or buttons
var variantSelectors = document.querySelectorAll('[name="id"]');
// Function to display the first product image
function showFirstImage() {
if (productMedia.length > 0) {
productMedia.forEach(function (media, index) {
if (index === 0) {
media.style.display = 'block';
} else {
media.style.display = 'none';
}
});
}
}
// Show the first image on page load
showFirstImage();
// Add event listeners to variant selectors
variantSelectors.forEach(function (selector) {
selector.addEventListener('change', function () {
showFirstImage();
});
});
});
-
Enjoy a 30 Hassle-Free Return Policy
-
Your personal information is safe and secure
-
Contact us for any questions or concerns