Adjusting comments into files.

This commit is contained in:
Johnnybegood90
2026-03-14 04:23:44 +01:00
parent 062954a780
commit 8dabd2d190
19 changed files with 69 additions and 73 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ function openProgramModal(ch, p) {
document.getElementById('pm-desc').textContent = p.desc || '';
document.getElementById('pm-desc').style.display = p.desc ? 'block' : 'none';
// Bouton Watch now — seulement si live ET M3U fourni pour la source active
// Only show "Watch now" when the program is live and the active source has M3U data.
const watchBtn = document.getElementById('pm-watch');
if (isLive && currentM3uUrl) {
watchBtn.style.display = 'inline-flex';
@@ -22,7 +22,7 @@ function openProgramModal(ch, p) {
watchBtn.style.display = 'none';
}
// Bouton IMDb
// IMDb search shortcut.
document.getElementById('pm-imdb').href =
`https://www.imdb.com/find/?q=${encodeURIComponent(p.title)}&s=tt`;
@@ -33,13 +33,13 @@ function closeProgramModal() {
document.getElementById('programModal').classList.remove('visible');
}
// Fermer sur clic overlay
// Close when the overlay itself is clicked.
document.addEventListener('click', e => {
const modal = document.getElementById('programModal');
if (e.target === modal) closeProgramModal();
});
// Fermer sur Escape
// Close on Escape.
document.addEventListener('keydown', e => {
if (e.key === 'Escape') closeProgramModal();
});