// (function () { // const containers = document.querySelectorAll('.films-category__scrollable');
// containers.forEach(container => { // const articles = Array.from(container.querySelectorAll('article'));
// // Shuffle all articles using the Fisher-Yates shuffle algorithm // for (let i = articles.length - 1; i >= 0; i--) { // const j = Math.floor(Math.random() * (i + 1)); // [articles[i], articles[j]] = [articles[j], articles[i]]; // }
// // Clear the container and append the shuffled articles back // while (container.firstChild) { // container.removeChild(container.firstChild); // } // articles.forEach(article => container.appendChild(article)); // }); // })();
// // Get references to all elements with the class .films-category__scrollable // const scrollableElements = document.querySelectorAll('.films-category__scrollable');
// // Scroll each element to the very beginning (left-most position) // scrollableElements.forEach(scrollableElement => { // scrollableElement.scrollLeft = 0; // });
document.addEventListener("DOMContentLoaded", function() { var headerLinks = document.querySelectorAll('.films-category-header.header-active h2 a');
if (headerLinks.length > 0) { headerLinks.forEach(function(link) { link.addEventListener("click", function(event) { event.preventDefault(); console.log("Click event disabled"); // Add other actions here if needed }); }); } });