document.addEventListener('DOMContentLoaded', function () {
// 1. ADD YOUR LINKS HERE IN ORDER
const links = [
'https://urbannails.be/product-category/materialen/elektrische-apparaten/'
];
const carousel = document.querySelector('#custom-link-carousel');
if (carousel) {
carousel.addEventListener('click', function (e) {
// Find the closest slide that was clicked
const slide = e.target.closest('.swiper-slide');
if (slide) {
// Get the index of the image (accounting for Swiper's loop clones)
const index = slide.getAttribute('data-swiper-slide-index');
if (links[index]) {
window.location.href = links[index]; // Change to window.open(links[index], '_blank') to open in new tab
}
}
});
// Add a pointer cursor so users know it's clickable
const style = document.createElement('style');
style.innerHTML = '#custom-link-carousel .swiper-slide { cursor: pointer; }';
document.head.appendChild(style);
}
});
document.addEventListener('DOMContentLoaded', function () {
// 1. ADD YOUR LINKS HERE IN ORDER
const links = [
'https://urbannails.be/product-category/materialen/elektrische-apparaten/',
];
const carousel = document.querySelector('#custom-link-carousel-mobile');
if (carousel) {
carousel.addEventListener('click', function (e) {
// Find the closest slide that was clicked
const slide = e.target.closest('.swiper-slide');
if (slide) {
// Get the index of the image (accounting for Swiper's loop clones)
const index = slide.getAttribute('data-swiper-slide-index');
if (links[index]) {
window.location.href = links[index]; // Change to window.open(links[index], '_blank') to open in new tab
}
}
});
// Add a pointer cursor so users know it's clickable
const style = document.createElement('style');
style.innerHTML = '#custom-link-carousel-mobile .swiper-slide { cursor: pointer; }';
document.head.appendChild(style);
}
});
Nieuw bij Urban Nails
Ontdek onze nieuwste nail art essentials voor creatieve nagelstyling.
Bestsellers
Ontdek onze populairste nail art must-haves die elke nagelstylist in huis wil hebben.
Meer info over onze producten?
Raadpleeg onze veelgestelde vragen voor meer informatie.
Vind je niet het antwoord dat je zoekt? We helpen je graag verder.
Meer info over onze producten?
Raadpleeg onze veelgestelde vragen voor meer informatie.
Vind je niet het antwoord dat je zoekt? We helpen je graag verder.














