Social Icons

اضغط على ESC للإغلاق

أخبار

750   مقالات في هذا التصنيف
يستكشف

تفتخر شركة هوبلو السويسرية لصناعة الساعات الفاخرة، المعروفة بمزجها بين التقاليد والابتكار، بتعاونها مع شركة أحمد صديقي…

(function () {function ready(fn) { if (document.readyState !== 'loading') { fn(); } else { document.addEventListener('DOMContentLoaded', fn); } }ready(function () {function openSearch(e) { e.preventDefault(); e.stopPropagation();var box = document.getElementById('search-lightbox'); if (!box) return;box.classList.add('active'); document.body.style.overflow = 'hidden';var input = box.querySelector('input.search-field'); if (input) { setTimeout(function () { input.focus(); }, 150); } }function closeSearch() { var box = document.getElementById('search-lightbox'); if (!box) return;box.classList.remove('active'); document.body.style.overflow = ''; }/* OPEN (click + touch) */ document.addEventListener('click', function (e) { var link = e.target.closest('a[href="#search-lightbox"]'); if (link) openSearch(e); }, { passive: false });document.addEventListener('touchstart', function (e) { var link = e.target.closest('a[href="#search-lightbox"]'); if (link) openSearch(e); }, { passive: false });/* CLOSE on ESC */ document.addEventListener('keydown', function (e) { if (e.key === 'Escape') closeSearch(); });/* CLOSE on outside tap */ document.addEventListener('click', function (e) { var box = document.getElementById('search-lightbox'); if (box && box.classList.contains('active') && e.target === box) { closeSearch(); } });});})();