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();
});
});
});![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](//dragoyle.com/cdn/shop/products/229361DEB470E3532A1A7BFCBAA67412.jpg?v=1665627010&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/0922505FF27B824F684CEACC082CECC0.jpg?v=1665627006&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/0D59DD3B622A6F856FCEE69FE986D627.jpg?v=1665626999&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/6EA66B17C3F12B84A684D4897592DEE8.jpg?v=1665627001&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/C76261EBC24550DACF682303D7323571.jpg?v=1665627012&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/4827288AE8D7F0555608E430ACD4DCDD.jpg?v=1665627002&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/E9C4C11509D5CA31B39758EF501D87D9.jpg?v=1665627004&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/38E5BDF5965343AAB4343FA60234D5A1.jpg?v=1665627009&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/E73661B5BAB774FBF77984685255A506.jpg?v=1665627005&width=1445)
![Remote Control Car Mode: Glide effortlessly across multiple surfaces including carpet, concrete, asphalt, packed earth and more. Hovercraft Mode: Turn on this mode when it is in shallow water with no waves. Drone Mode: Make any indoor space your playground. Flying is easy - even for beginners. Safe Angle mode provides self-leveling and limited pitch and bank angles to keep the craft stable and level when you let off the sticks.](http://dragoyle.com/cdn/shop/products/229361DEB470E3532A1A7BFCBAA67412.jpg?v=1665627010&width=1445)