Gerador Premium para Páginas de Jogos

Gerador Premium para Páginas de Jogos Retro

Sua pré-visualização aparecerá aqui

Conversor de Páginas Antigas

Cole o código HTML da sua página antiga para converter para o novo estilo:

` : ''} ${youtubeUrl ? `
` : ''} ${purchaseLinks.length > 0 ? ` ` : ''} `; // Exibir pré-visualização document.getElementById('page-preview').innerHTML = html; // Iniciar slider se houver imagens if (additionalImages.length > 0) { initSlider(); } } function extractYouTubeId(url) { const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/; const match = url.match(regExp); return (match && match[2].length === 11) ? match[2] : null; } function generateKeywords(title) { const words = title.toLowerCase().split(' '); const stopWords = ['de', 'para', 'com', 'sem', 'em', 'por', 'que', 'do', 'da', 'no', 'na']; return words .filter(word => word.length > 3 && !stopWords.includes(word)) .join(', '); } function initSlider() { let currentSlide = 0; const slides = document.querySelectorAll('.slide'); if (slides.length > 1) { setInterval(() => { slides.forEach(slide => slide.classList.remove('active')); currentSlide = (currentSlide + 1) % slides.length; slides[currentSlide].classList.add('active'); }, 3000); } } function convertLegacyPage() { const legacyCode = document.getElementById('legacy-code').value; if (!legacyCode) return; // Criar um elemento temporário para parsear o HTML const tempDiv = document.createElement('div'); tempDiv.innerHTML = legacyCode; // Extrair informações da página antiga const title = tempDiv.querySelector('h1')?.textContent || 'Título do Jogo'; const description = tempDiv.querySelector('p')?.textContent || ''; const mainImage = tempDiv.querySelector('img')?.src || ''; const downloadLink = tempDiv.querySelector('.download-button')?.href || '#'; // Preencher os campos do formulário document.getElementById('game-title').value = title; document.getElementById('game-description').value = description; document.getElementById('main-image').value = mainImage; // Gerar a nova página generatePage(); alert('Página antiga convertida com sucesso! Revise os dados e ajuste se necessário.'); }

Postar um comentário

0 Comentários