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();
});
});
});![Full length: 22.8cm Blade length: 9.3cm Handle length: 13.5cm Blade width: 2.1cm Blade thickness: 2.9mm Blade material: VG10 Damascus steel Weight: 185g Hardness: 57HRC Surface: Damascus original grain Handle material: chicken wing wood](//dragoyle.com/cdn/shop/products/1889058892490-_4.jpg?v=1652289769&width=1445)
![Full length: 22.8cm Blade length: 9.3cm Handle length: 13.5cm Blade width: 2.1cm Blade thickness: 2.9mm Blade material: VG10 Damascus steel Weight: 185g Hardness: 57HRC Surface: Damascus original grain Handle material: chicken wing wood](http://dragoyle.com/cdn/shop/products/2940255933100-_5.jpg?v=1652289771&width=1445)
![Full length: 22.8cm Blade length: 9.3cm Handle length: 13.5cm Blade width: 2.1cm Blade thickness: 2.9mm Blade material: VG10 Damascus steel Weight: 185g Hardness: 57HRC Surface: Damascus original grain Handle material: chicken wing wood](http://dragoyle.com/cdn/shop/products/2015512146706-_1.jpg?v=1652289763&width=1445)
![Full length: 22.8cm Blade length: 9.3cm Handle length: 13.5cm Blade width: 2.1cm Blade thickness: 2.9mm Blade material: VG10 Damascus steel Weight: 185g Hardness: 57HRC Surface: Damascus original grain Handle material: chicken wing wood](http://dragoyle.com/cdn/shop/products/979728657943-_2.jpg?v=1652289765&width=1445)
![Full length: 22.8cm Blade length: 9.3cm Handle length: 13.5cm Blade width: 2.1cm Blade thickness: 2.9mm Blade material: VG10 Damascus steel Weight: 185g Hardness: 57HRC Surface: Damascus original grain Handle material: chicken wing wood](http://dragoyle.com/cdn/shop/products/1610704756109-_3.jpg?v=1652289766&width=1445)
![Full length: 22.8cm Blade length: 9.3cm Handle length: 13.5cm Blade width: 2.1cm Blade thickness: 2.9mm Blade material: VG10 Damascus steel Weight: 185g Hardness: 57HRC Surface: Damascus original grain Handle material: chicken wing wood](http://dragoyle.com/cdn/shop/products/1889058892490-_4.jpg?v=1652289769&width=1445)