Sort by:

No listing found.

0 Review

(2.33 out of 5)
Sort by:
Leave a Review

Leave a Review

Compare listings

Compare
Need Help?
document.addEventListener('DOMContentLoaded', function () { 'use strict'; function installGalleryClickZones() { const gallery = document.querySelector('#property-gallery-js'); if (!gallery) { return false; } const wrapper = gallery.closest('.lSSlideWrapper'); if (!wrapper) { return false; } // Kod daha önce çalıştıysa tekrar alan oluşturma. if (wrapper.querySelector('.alanya-gallery-side-navigation')) { return true; } const navigationLayer = document.createElement('div'); navigationLayer.className = 'alanya-gallery-side-navigation'; const previousZone = document.createElement('button'); previousZone.type = 'button'; previousZone.className = 'alanya-gallery-side-zone alanya-gallery-side-zone-left'; previousZone.setAttribute('aria-label', 'Önceki fotoğraf'); const nextZone = document.createElement('button'); nextZone.type = 'button'; nextZone.className = 'alanya-gallery-side-zone alanya-gallery-side-zone-right'; nextZone.setAttribute('aria-label', 'Sonraki fotoğraf'); navigationLayer.append(previousZone, nextZone); wrapper.appendChild(navigationLayer); previousZone.addEventListener('click', function (event) { event.preventDefault(); event.stopPropagation(); const previousButton = wrapper.querySelector('.slick-prev.slick-arrow') || wrapper.querySelector('.lSPrev'); if (previousButton) { previousButton.click(); } }); nextZone.addEventListener('click', function (event) { event.preventDefault(); event.stopPropagation(); const nextButton = wrapper.querySelector('.slick-next.slick-arrow') || wrapper.querySelector('.lSNext'); if (nextButton) { nextButton.click(); } }); return true; } /* * Galeri sayfa açılışından biraz sonra oluşturulabileceği için * birkaç kez kontrol ediyoruz. */ let attemptCount = 0; const installationTimer = window.setInterval(function () { attemptCount++; if (installGalleryClickZones() || attemptCount >= 30) { window.clearInterval(installationTimer); } }, 300); });