Top.Mail.Ru
World of Outlaws: Dirt Racing Game - описание игры, системные требования, оценки игроков, дата выхода

World of Outlaws: Dirt Racing 24

World of Outlaws: Dirt Racing — это гоночный симулятор, созданный для фанатов грунтовых гонок. Игра позволяет погрузиться в атмосферу профессиональных соревнований на грунтовых трассах, включая культовые серии World of Outlaws. Основное внимание уделено реализму, так что игроки смогут почувствовать ... Подробнее

Видеоматериалы по игре World of Outlaws: Dirt Racing 24

${video.title}

${categoryName} `; videoGallery.appendChild(videoCard); }); // Плавное появление изображений const images = document.querySelectorAll('.video-img'); images.forEach(image => { image.onload = () => image.style.opacity = 1; image.style.opacity = 0; }); requestAnimationFrame(() => window.dispatchEvent(new Event('resize'))); } // Рендеринг кнопки "Показать ещё" function renderLoadMoreButton(filteredVideos) { const loadMoreContainer = document.getElementById("load-more-container"); if (loadMoreContainer) loadMoreContainer.remove(); const container = document.createElement("div"); container.id = "load-more-container"; container.style.textAlign = "center"; container.style.marginTop = "20px"; if (currentIndex { renderVideosChunk(filteredVideos); renderLoadMoreButton(filteredVideos); }); container.appendChild(button); } videoGallery.parentElement.appendChild(container); } // Рендеринг кнопок фильтрации function renderFilterButtons(categoriesList) { filterButtonsContainer.innerHTML = ""; // Очистка перед рендером categoriesList.forEach(category => { const button = document.createElement("button"); button.textContent = category.name; button.dataset.categoryId = category.id; button.addEventListener("click", () => { document.querySelectorAll(".filter-buttons button").forEach(btn => btn.classList.remove("active")); button.classList.add("active"); const filteredVideos = filterVideos(category.id); currentIndex = 0; renderVideosChunk(filteredVideos); renderLoadMoreButton(filteredVideos); }); filterButtonsContainer.appendChild(button); }); // Автоматически нажать первую кнопку const firstButton = filterButtonsContainer.querySelector("button"); if (firstButton) { firstButton.classList.add("active"); } } // Инициализация renderFilterButtons(categories); const initialVideos = filterVideos('all'); renderVideosChunk(initialVideos); renderLoadMoreButton(initialVideos);
Back to top button
Подписаться

Подпишитесь на наш
Телеграм канал и будьте в курсе последних новостей

Подписаться

Подпишитесь на нашу
группу ВКонтакте и не пропустите ничего важного!