window.tailwind.config = { theme: { extend: { colors: { gray: { 850: '#1a1a2e', 900: '#111827', 1000: '#0B0B0B' }, eva: { green: '#017D63', teal: '#BDD9D4', gold: '#FFD679' } }, fontFamily: { unbounded: ['Unbounded', 'sans-serif'], inter: ['Inter', 'sans-serif'] } } } }; const newGames = [ { title: "Royal Easter", img: "image/001.jpg", provider: "BGaming" }, { title: "Sugar Merge Up", img: "image/002.jpg", provider: "BGaming" }, { title: "CULT.", img: "image/003.jpg", provider: "PragmaticPlay" }, { title: "Rice & Riches", img: "image/004.jpg", provider: "Mascot" }, { title: "Mummyland Treasures", img: "image/005.jpg", provider: "Belatra" }, { title: "Mummy Mines", img: "image/006.jpg", provider: "Belatra" }, { title: "Olympus Rivals", img: "image/007.jpg", provider: "AmigoGaming" }, { title: "Sloteus Gold", img: "image/008.jpg", provider: "Endorphina" }, { title: "Fruit Invaders", img: "image/009.jpg", provider: "AmigoGaming" }, { title: "Crown Coins", img: "image/010.jpg", provider: "Endorphina" }, { title: "Mummy's Jewels 100", img: "image/011.jpg", provider: "PragmaticPlay" }, { title: "Sultans Fortune", img: "image/012.jpg", provider: "KAGaming" }, { title: "Gold Canyon", img: "image/013.jpg", provider: "Betsoft" }, { title: "Burning Hell 3000", img: "image/014.jpg", provider: "Endorphina" }, { title: "Jewel Boost Reels", img: "image/015.jpg", provider: "Mascot" }, ]; const topGames = [ { title: "Striking Diamond 3", img: "image/016.jpg", provider: "Fugaso" }, { title: "Mega Thunder", img: "image/017.jpg", provider: "Fugaso" }, { title: "Atomic Coins 2", img: "image/010d6409210740aa3f2748721d44408b.png", provider: "Fugaso" }, { title: "Bonanza Billion Xtreme", img: "image/100extracrown.webp", provider: "BGaming" }, { title: "Merge Up 2", img: "image/10burningheart.webp", provider: "BGaming" }, { title: "Mystery Heist", img: "image/15_coins_grand_platinum_edition.jpg", provider: "BGaming" }, { title: "Starlight Princess 1000", img: "image/1aacfea064ab96655570ace48a52c850.png", provider: "PragmaticPlay" }, { title: "Sweet Rush Bonanza", img: "image/2034d8e5fda33b28beaf7cc9d6b2c916.png", provider: "PragmaticPlay" }, { title: "Haunted Crypt", img: "image/3_hot_chillies.webp", provider: "PragmaticPlay" }, { title: "Knights vs Barbarians", img: "image/3buzzingwilds.webp", provider: "PragmaticPlay" }, { title: "Fortune Bags", img: "image/40powerhotdiceeditiongoldencoinslink.webp", provider: "AmigoGaming" }, { title: "Friar Tuck's INN", img: "image/46df9329ff3f8b9b3766bb6561c03de8.png", provider: "Mascot" }, ]; const liveGames = [ { title: "VIP Blackjack 1", img: "image/58a009ad18e46228614efbaff418c7f1.png", provider: "PragmaticPlayLive" }, { title: "Mega Baccarat", img: "image/777_fruity_coins.webp", provider: "PragmaticPlayLive" }, { title: "Crazy Time A", img: "image/7ef93054ff2108e4cb61f62168ea2d20.png", provider: "Evolution" }, { title: "Super Sic Bo", img: "image/931bb982bf8d8f4b6c32b1249b3fa943.png", provider: "Evolution" }, { title: "Lightning Baccarat", img: "image/a_night_in_paris_jp.webp", provider: "Evolution" }, { title: "Infinite Blackjack", img: "image/afaf009cfe87f2f7a3de08fdea5d05db.png", provider: "Evolution" }, { title: "Speed Baccarat 1", img: "image/aviamasters.webp", provider: "PragmaticPlayLive" }, { title: "Craps", img: "image/banana_farm.jpg", provider: "Evolution" }, ]; if (typeof lucide !== 'undefined') { lucide.createIcons(); } function createGameCard(game) { return `
${game.title}

${game.title}

${game.provider}

`; } function renderGames(containerId, games) { const container = document.getElementById(containerId); if (container) { container.innerHTML = games.map(createGameCard).join(''); } } renderGames('newGamesGrid', newGames); renderGames('topGamesGrid', topGames); renderGames('liveGamesGrid', liveGames); const liveWinsContainer = document.getElementById('liveWinsContainer'); const gameNames = ['Sweet Bonanza', 'Gates of Olympus', 'Big Bass Bonanza', 'Starlight Princess', 'Sugar Rush', 'Book of Dead', 'Reactoonz', 'Fire Joker', 'Dog House', 'Money Train', 'Fruit Party', 'Gems Bonanza']; const players = ['Игрок***23', 'Игрок***77', 'Игрок***41', 'Игрок***99', 'Игрок***12', 'Игрок***55', 'Игрок***88', 'Игрок***64']; function generateLiveWin() { const game = gameNames[Math.floor(Math.random() * gameNames.length)]; const player = players[Math.floor(Math.random() * players.length)]; const amount = (Math.floor(Math.random() * 50000) + 500).toLocaleString('ru-RU'); return `
${amount} ₽ ${player} ${game}
`; } function refreshLiveWins() { if (liveWinsContainer) { let html = ''; for (let i = 0; i < 8; i++) { html += generateLiveWin(); } liveWinsContainer.innerHTML = html; } } refreshLiveWins(); setInterval(refreshLiveWins, 5000); const seoToggle = document.getElementById('seoToggle'); const seoContent = document.getElementById('seoContent'); const seoOverlay = document.getElementById('seoOverlay'); const seoArrow = document.getElementById('seoArrow'); let seoExpanded = false; seoToggle.addEventListener('click', () => { seoExpanded = !seoExpanded; if (seoExpanded) { seoContent.classList.remove('seo-collapsed'); seoContent.classList.add('seo-expanded'); seoOverlay.style.background = 'none'; seoToggle.innerHTML = `Свернуть `; } else { seoContent.classList.add('seo-collapsed'); seoContent.classList.remove('seo-expanded'); seoOverlay.style.background = 'linear-gradient(360deg, #0B0B0B 25%, transparent 85%)'; seoToggle.innerHTML = `Развернуть `; } }); const mobileMenuBtn = document.getElementById('mobileMenuBtn'); const mobileSidebar = document.getElementById('mobileSidebar'); const mobileSidebarPanel = document.getElementById('mobileSidebarPanel'); const closeSidebar = document.getElementById('closeSidebar'); function openMobileSidebar() { mobileSidebar.classList.remove('invisible', 'opacity-0'); mobileSidebar.classList.add('visible', 'opacity-100'); setTimeout(() => { mobileSidebarPanel.style.right = '0'; }, 10); } function closeMobileSidebar() { mobileSidebarPanel.style.right = '-100%'; setTimeout(() => { mobileSidebar.classList.add('invisible', 'opacity-0'); mobileSidebar.classList.remove('visible', 'opacity-100'); }, 300); } if (mobileMenuBtn) mobileMenuBtn.addEventListener('click', openMobileSidebar); if (closeSidebar) closeSidebar.addEventListener('click', closeMobileSidebar); if (mobileSidebar) mobileSidebar.addEventListener('click', (e) => { if (e.target === mobileSidebar) closeMobileSidebar(); }); document.querySelectorAll('.category-tab').forEach(tab => { tab.addEventListener('click', () => { document.querySelectorAll('.category-tab').forEach(t => { t.classList.remove('border-yellow-300', 'bg-gray-700'); t.classList.add('border-gray-600', 'bg-gray-800'); }); tab.classList.add('border-yellow-300', 'bg-gray-700'); tab.classList.remove('border-gray-600', 'bg-gray-800'); }); }); if (typeof lucide !== 'undefined') { lucide.createIcons(); }