
Učitavanje stranice...

Učitavanje stranice...

Izložba radova članova Društva * Armin DEBUS (1958.), Makarska * Dženi PANTNER (1963.), Makarska * Ante (Toni) RADOJKOVIĆ (1934.), Podgora * Ante VUKIĆ (1957.), Split Više o autorima saznajte u prigodnom katalogu koji je u izradi. × .gallery-img images.forEach((img, idx) => img.addEventListener('click', => showLightbox(idx)););function updatePagination pagination = ''; images.forEach((_, i) => dot = document.createElement('span'); dot = 'dot' + (i === currentIndex ? ' active' : ''); dot = => showLightbox(i); pagination.appendChild(dot););document.getElementById('closeBtn').addEventListener('click', function lightbox = "none";);document.getElementById('lightbox').addEventListener('click', function(e) if(e === this) lightbox = "none";);document.getElementById('nextBtn').addEventListener('click', function(e) e.stopPropagation; currentIndex = (currentIndex + 1) % images.length; showLightbox(currentIndex););document.getElementById('prevBtn').addEventListener('click', function(e) e.stopPropagation; currentIndex = (currentIndex - 1 + images.length) % images.length; showLightbox(currentIndex););document.addEventListener('keydown', function(e) if(lightbox === "flex") if(e === "ArrowRight") currentIndex = (currentIndex + 1) % images.length; showLightbox(currentIndex); else if(e === "ArrowLeft") currentIndex = (currentIndex - 1 + images.length) % images.length; showLightbox(currentIndex); else if(e === "Escape") lightbox = "none";);// Touch swipe za mobitelelet startX = null;lightboxImg.addEventListener('touchstart',function(e) startX = e.touches0.clientX;);lightboxImg.addEventListener('touchend',function(e) if(startX === null) return; let diff = e.changedTouches0 - startX; if(diff > 40) currentIndex = (currentIndex - 1 + images.length) % images.length; showLightbox(currentIndex); else if(diff < -40) currentIndex = (currentIndex + 1) % images.length; showLightbox(currentIndex); startX = null;);.