NEEWER V Mount Battery PS050E 3450mAh 50Wh 14.54V - Professional Power Solution for DSLR Cameras, Camcorders & LED Lights - Perfect for Film Production, Photography & Live Streaming
$27.5$50-45% OFF
Free shipping on all orders over $50
7-15 days international
10 people viewing this product right now!
30-day free returns
Secure checkout
86230378
Guranteed safe checkout
Description
Description
{
img.classList.remove('active-thumbnail');
});
}
}
function selectSize(element) {
var parent = element.parentElement;
var variantOptions = parent.querySelectorAll('.variant-option');
for (var i = 0; i < variantOptions.length; i++) {
variantOptions[i].classList.remove('active');
}
element.classList.add('active');
var value = element.getAttribute('data-option');
document.querySelector('input.size_value').value = value;
element.style.transform = 'translateY(-5px)';
setTimeout(function() {
element.style.transform = 'translateY(0)';
}, 300);
}
document.addEventListener('DOMContentLoaded', function() {
// Color selection
const colorOptions = document.querySelectorAll('.goods-container .color-option');
colorOptions.forEach(option => {
option.addEventListener('click', function() {
colorOptions.forEach(opt => opt.classList.remove('active'));
this.classList.add('active');
// Here you would typically change the main image to show the selected color
});
});
// Size selection
const sizeOptions = document.querySelectorAll('.goods-container .size-option');
sizeOptions.forEach(option => {
option.addEventListener('click', function() {
sizeOptions.forEach(opt => opt.classList.remove('active'));
this.classList.add('active');
});
});
// Thumbnail click
const thumbnails = document.querySelectorAll('.goods-container .thumbnail');
thumbnails.forEach(thumbnail => {
thumbnail.addEventListener('click', function() {
const mainImageSrc = this.src.replace('150x150', '600x600');
document.querySelector('.goods-container .main-image').src = mainImageSrc;
});
});
// Add to cart animation
const addToCartBtn = document.querySelector('.goods-container .btn-add-to-cart');
if (addToCartBtn) {
addToCartBtn.addEventListener('click', function() {
this.innerHTML = ' Added to Cart';
this.style.backgroundColor = '#2a9d8f';
setTimeout(function() {
addToCartBtn.innerHTML = ' Add to Cart';
addToCartBtn.style.backgroundColor = '#e63946';
}, 2000);
});
}
});