Guymy97 commited on
Commit
ceb4d96
·
verified ·
1 Parent(s): ae879cb

quand je rajoute mon lien iptv les section TV

Browse files

Séries
Films
Nouveautés
Ma liste sont inactif corrige moi ca - Follow Up Deployment

Files changed (2) hide show
  1. netflix.html +19 -5
  2. prompts.txt +6 -1
netflix.html CHANGED
@@ -28,11 +28,11 @@
28
  <nav class="flex justify-between items-center px-8 py-4 absolute w-full z-50">
29
  <div class="text-red-600 text-4xl font-bold">FLIPP</div>
30
  <div class="flex space-x-6">
31
- <button onclick="showCategory('tv')" class="hover:text-gray-300">TV</button>
32
- <button onclick="showCategory('series')" class="hover:text-gray-300">Séries</button>
33
- <button onclick="showCategory('films')" class="hover:text-gray-300">Films</button>
34
- <button onclick="showCategory('nouveautes')" class="hover:text-gray-300">Nouveautés</button>
35
- <button onclick="showCategory('maListe')" class="hover:text-gray-300">Ma liste</button>
36
  <a href="iptv-setup.html" class="hover:text-gray-300">Paramètre</a>
37
  </div>
38
  <div class="flex items-center space-x-4">
@@ -120,6 +120,15 @@
120
  document.getElementById(cat).classList.remove('hidden');
121
  }
122
 
 
 
 
 
 
 
 
 
 
123
  // Lecture flux HLS
124
  function playStream(url){
125
  const video = document.getElementById('videoPlayer');
@@ -145,6 +154,11 @@
145
  video.pause();
146
  modal.classList.add('hidden');
147
  }
 
 
 
 
 
148
  </script>
149
  </body>
150
  </html>
 
28
  <nav class="flex justify-between items-center px-8 py-4 absolute w-full z-50">
29
  <div class="text-red-600 text-4xl font-bold">FLIPP</div>
30
  <div class="flex space-x-6">
31
+ <a href="netflix.html?category=tv" class="hover:text-gray-300">TV</a>
32
+ <a href="netflix.html?category=series" class="hover:text-gray-300">Séries</a>
33
+ <a href="netflix.html?category=films" class="hover:text-gray-300">Films</a>
34
+ <a href="netflix.html?category=nouveautes" class="hover:text-gray-300">Nouveautés</a>
35
+ <a href="netflix.html?category=maListe" class="hover:text-gray-300">Ma liste</a>
36
  <a href="iptv-setup.html" class="hover:text-gray-300">Paramètre</a>
37
  </div>
38
  <div class="flex items-center space-x-4">
 
120
  document.getElementById(cat).classList.remove('hidden');
121
  }
122
 
123
+ // Gestion des catégories depuis l'URL
124
+ function handleCategoryFromUrl() {
125
+ const urlParams = new URLSearchParams(window.location.search);
126
+ const category = urlParams.get('category');
127
+ if (category) {
128
+ showCategory(category);
129
+ }
130
+ }
131
+
132
  // Lecture flux HLS
133
  function playStream(url){
134
  const video = document.getElementById('videoPlayer');
 
154
  video.pause();
155
  modal.classList.add('hidden');
156
  }
157
+
158
+ // Initialisation au chargement de la page
159
+ document.addEventListener('DOMContentLoaded', function() {
160
+ handleCategoryFromUrl();
161
+ });
162
  </script>
163
  </body>
164
  </html>
prompts.txt CHANGED
@@ -12,4 +12,9 @@ Paramétré remplace par paramètre
12
 
13
  efface
14
  animation de démarage
15
- fait moi une page index
 
 
 
 
 
 
12
 
13
  efface
14
  animation de démarage
15
+ fait moi une page index
16
+ quand je rajoute mon lien iptv les section TV
17
+ Séries
18
+ Films
19
+ Nouveautés
20
+ Ma liste sont inactif corrige moi ca