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();
});
});
});
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();
});
});
});![63d5be7488b8aeafd51942d61cd0fe0b Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](//dragoyle.com/cdn/shop/files/202311071909526197.jpg?v=1732855996&width=1445)
![47e705c2d017aca15570ecbd6fa8ea32 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311081137386307.jpg?v=1732853968&width=1445)
![1124514adf120a8eade6e58a15b8ba27 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311081137472429.jpg?v=1732853968&width=1445)
![3350df1af983f40532213204d7e2909f Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311071910393575.jpg?v=1732855805&width=1445)
![c1a3c609a0996fe7793e88f9558188e8 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311081137532207.jpg?v=1732853968&width=1445)
![7214ed7af445582e2cb9d88faac30d09 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311081137596183.jpg?v=1732853968&width=1445)
![eea98791f98837ff4608d5ca76f23844 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311081138052871.jpg?v=1732853968&width=1445)
![4001d18c37c2deacfd26f4b12ad47ada Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311081138101797.jpg?v=1732853968&width=1445)
![a4e542b843904b09db6004a25d9dfab3 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311071905137000.jpg?v=1732853968&width=1445)
![99b827b17a7e33a8de987324aa9d932 Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311071905121391.jpg?v=1732855925&width=1445)
![e7551ac1ca82b2c3c330d2fd42de8aaf Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311071905586129.jpg?v=1732853968&width=1445)
![63d5be7488b8aeafd51942d61cd0fe0b Transform your Christmas tree into a magical fantasy with Dragon Baby Christmas Tree Ornaments! These cute and quirky ornaments add a touch of fun to your holiday decor. Each ornament is intricately crafted and will give your tree a unique and playful look.](http://dragoyle.com/cdn/shop/files/202311071909526197.jpg?v=1732855996&width=1445)