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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});
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();
});
});
});![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](//dragoyle.com/cdn/shop/products/H0fff7306abb8444f94488d9a1fabd8cft.jpg?v=1664559308&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/H656779a93ebe44c78652ba594121e298x.jpg?v=1664559304&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/H2c27091d8e794c6da738a42b62e46afeb.jpg?v=1664559311&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/Hdf81f6f2edf94c99b76fc99c26190e71A.jpg?v=1664559292&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/H2a67a118b62c4ac7877e9ff3f0ac4dbcz.jpg?v=1664559294&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/H2f02559e14ff41cdb39dad7d82448b73I.jpg?v=1664559296&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/Hbbb1f63a9e144ad08289ab911563b39cD.jpg?v=1664559300&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/He2cfd9038c7e4e73b5d1426e82bd0cd4K.jpg?v=1664559298&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/Hf7dee6b056084b3da5916afa37941524w.jpg?v=1664559305&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/H61eef1afb7e14b95a33734e2b9ede392N.jpg?v=1664559302&width=1445)
![These beautiful LED string Christmas lights are perfect for all types of decorating, including for your Christmas Tree. These are super high quality with many great functions and features. Customize your features to create your great led mood lighting, have the perfect beat to the music, mix up the mode for your unique Christmas designing needs.](http://dragoyle.com/cdn/shop/products/H0fff7306abb8444f94488d9a1fabd8cft.jpg?v=1664559308&width=1445)