diff --git a/public/checklist.html b/public/checklist.html index ec324a5..5d0ffa6 100644 --- a/public/checklist.html +++ b/public/checklist.html @@ -84,7 +84,7 @@ - + @@ -149,7 +149,7 @@ const totalMoviesCount = movies.length; const watchedMoviesCount = watchedMovies.length; - document.getElementById('watched-ratio').innerText = `Regardé: ${watchedMoviesCount} / ${totalMoviesCount} (${((watchedMoviesCount / totalMoviesCount) * 100).toFixed(1)}%)`; + document.getElementById('watched-ratio').innerText = `Vu: ${watchedMoviesCount} / ${totalMoviesCount} (${((watchedMoviesCount / totalMoviesCount) * 100).toFixed(1)}%)`; function updateProgressBar(watchedCount, totalCount) { const progressBar = document.getElementById('progress-bar'); @@ -217,7 +217,7 @@ if (updatedWatchedMoviesRes.ok) { const updatedWatchedMovies = await updatedWatchedMoviesRes.json(); const updatedWatchedCount = updatedWatchedMovies.length; - document.getElementById('watched-ratio').innerText = `Regardé: ${updatedWatchedCount} / ${totalMoviesCount} (${((updatedWatchedCount / totalMoviesCount) * 100).toFixed(1)}%)`; + document.getElementById('watched-ratio').innerText = `Vu: ${updatedWatchedCount} / ${totalMoviesCount} (${((updatedWatchedCount / totalMoviesCount) * 100).toFixed(1)}%)`; updateProgressBar(updatedWatchedCount, totalMoviesCount); } }); diff --git a/public/movies.html b/public/movies.html index 3118d19..2a571c4 100644 --- a/public/movies.html +++ b/public/movies.html @@ -27,7 +27,7 @@ font-weight: bold; position: absolute; top: 10px; - right: 10px; + width: 100%; z-index: 1; } @@ -162,7 +162,7 @@ const moviesList = document.getElementById('movies-list'); const totalMoviesCount = movies.length; const watchedMoviesCount = watchedMovies.length; - const ratioText = `Regardé: ${watchedMoviesCount} / ${totalMoviesCount} (${((watchedMoviesCount / totalMoviesCount) * 100).toFixed(1)}%)`; + const ratioText = `Vu: ${watchedMoviesCount} / ${totalMoviesCount} (${((watchedMoviesCount / totalMoviesCount) * 100).toFixed(1)}%)`; document.getElementById('watched-ratio').innerText = ratioText; movies.forEach(movie => { @@ -175,7 +175,7 @@ movieDiv.setAttribute('data-imdb-id', movie.imdb_id); movieDiv.innerHTML = `
- ${isChecked ? '
REGARDÉ
' : ''} + ${isChecked ? '
VISIONNÉ
' : ''} ${movie.title}
RegardéVu Titre Date du visionnage