Spaces:
Running
Running
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Configuration IPTV - FLIPP Clone</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <style> | |
| .hero-gradient { | |
| background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 100%); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-black text-white"> | |
| <!-- Navigation --> | |
| <nav class="flex justify-between items-center px-8 py-4"> | |
| <div class="text-red-600 text-4xl font-bold">FLIPP</div> | |
| <div class="flex space-x-6"> | |
| <a href="netflix.html" class="hover:text-gray-300">Accueil</a> | |
| <a href="iptv-setup.html" class="text-gray-300">Configuration IPTV</a> | |
| </div> | |
| </nav> | |
| <!-- IPTV Setup Section --> | |
| <section class="py-12 px-8 max-w-4xl mx-auto"> | |
| <h1 class="text-3xl font-bold mb-8 text-center">Configuration IPTV</h1> | |
| <div class="bg-gray-900 rounded-lg p-8 mb-8"> | |
| <h2 class="text-2xl font-bold mb-4">Connexion avec code MAC</h2> | |
| <form id="iptv-form" class="space-y-6"> | |
| <div> | |
| <label class="block text-gray-300 mb-2">URL du serveur IPTV</label> | |
| <input type="url" id="server-url" | |
| placeholder="http://votre-serveur-iptv.com:8080" | |
| class="w-full p-3 bg-gray-800 border border-gray-700 rounded text-white"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Code MAC</label> | |
| <input type="text" id="mac-code" | |
| placeholder="XX:XX:XX:XX:XX:XX" | |
| class="w-full p-3 bg-gray-800 border border-gray-700 rounded text-white" | |
| pattern="^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Nom d'utilisateur (optionnel)</label> | |
| <input type="text" id="username" | |
| class="w-full p-3 bg-gray-800 border border-gray-700 rounded text-white"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Mot de passe (optionnel)</label> | |
| <input type="password" id="password" | |
| class="w-full p-3 bg-gray-800 border border-gray-700 rounded text-white"> | |
| </div> | |
| <button type="submit" | |
| class="w-full bg-red-600 hover:bg-red-700 text-white py-3 px-6 rounded font-bold"> | |
| Connecter IPTV | |
| </button> | |
| </form> | |
| </div> | |
| <div id="connection-status" class="mt-8 p-4 rounded-lg hidden"> | |
| <h3 class="text-xl font-bold mb-2">Statut de connexion</h3> | |
| <p id="status-message"></p> | |
| </div> | |
| </section> | |
| <script> | |
| AOS.init(); | |
| feather.replace(); | |
| document.getElementById('iptv-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const serverUrl = document.getElementById('server-url').value; | |
| const macCode = document.getElementById('mac-code').value; | |
| const username = document.getElementById('username').value; | |
| const password = document.getElementById('password').value; | |
| const statusDiv = document.getElementById('connection-status'); | |
| const statusMessage = document.getElementById('status-message'); | |
| // Simulation de connexion IPTV | |
| statusDiv.classList.remove('hidden', 'bg-red-900', 'bg-green-900'); | |
| statusDiv.classList.add('bg-blue-900'); | |
| statusMessage.textContent = 'Connexion en cours...'; | |
| setTimeout(() => { | |
| if (serverUrl && macCode) { | |
| statusDiv.classList.remove('bg-blue-900'); | |
| statusDiv.classList.add('bg-green-900'); | |
| statusMessage.textContent = 'Connexion IPTV réussie! Redirection vers le contenu...'; | |
| // Redirection vers la page principale après succès | |
| setTimeout(() => { | |
| window.location.href = 'netflix.html'; | |
| }, 2000); | |
| } else { | |
| statusDiv.classList.remove('bg-blue-900'); | |
| statusDiv.classList.add('bg-red-900'); | |
| statusMessage.textContent = 'Erreur: Veuillez remplir tous les champs obligatoires'; | |
| } | |
| }, 1500); | |
| }); | |
| </script> | |
| </body> | |
| </html> |