Jobs
Real Estate

Lajme

Kulturë

Gjëra për të bërë

Rajoni i Gjilanit

Më të lexuarat

}); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ (function () { function injectNdreqe() { const container = document.querySelector('.sections-container'); if (!container) return false; // Prevent duplicate injection if (container.querySelector('.ndreqe-injected')) return true; const li = document.createElement('li'); li.className = 'sections-item-container ndreqe-injected'; const link = document.createElement('a'); link.href = 'https://ndreqe.com/'; link.className = 'sections-item'; link.textContent = 'ndreqe.com'; li.appendChild(link); container.appendChild(li); return true; } if (injectNdreqe()) return; const observer = new MutationObserver(function () { if (injectNdreqe()) observer.disconnect(); }); observer.observe(document.body, { childList: true, subtree: true }); })(); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ window.REBELMOUSE_STDLIB.loadExternalScript("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v23.0", function() { }); }); window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){ const wrapper = document.querySelector(".headline-subsections"); const container = wrapper?.querySelector(".sections-container"); if (!wrapper || !container) return; // Create arrows dynamically const leftArrow = document.createElement("div"); leftArrow.className = "arrow-indicator arrow-left"; leftArrow.innerHTML = ""; // using your arrow symbol const rightArrow = document.createElement("div"); rightArrow.className = "arrow-indicator arrow-right"; rightArrow.innerHTML = ""; // using your arrow symbol container.parentElement.style.position = "relative"; // positioning context container.parentElement.appendChild(leftArrow); container.parentElement.appendChild(rightArrow); function updateArrows() { const maxScroll = container.scrollWidth - container.clientWidth; if (maxScroll <= 0) { leftArrow.style.display = "none"; rightArrow.style.display = "none"; return; } leftArrow.style.display = container.scrollLeft > 5 ? "flex" : "none"; rightArrow.style.display = container.scrollLeft < maxScroll - 5 ? "flex" : "none"; } leftArrow.addEventListener("click", () => { container.scrollBy({ left: -250, behavior: "smooth" }); }); rightArrow.addEventListener("click", () => { container.scrollBy({ left: 250, behavior: "smooth" }); }); container.addEventListener("scroll", updateArrows); window.addEventListener("resize", updateArrows); // Run once on load updateArrows(); });