We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44c40a4 + 5bba5e1 commit c8e2797Copy full SHA for c8e2797
1 file changed
js/main.js
@@ -198,7 +198,12 @@ function handleSearch(e) {
198
const all = [...Object.values(appData.films), ...Object.values(appData.series)];
199
const res = all.filter(i => i.title.toLowerCase().includes(q));
200
201
- document.getElementById('sectionTitle').innerHTML = `Résultats pour "${q}" <span class="text-gray-500 text-sm ml-2">(${res.length})</span>`;
+ const sectionTitleEl = document.getElementById('sectionTitle');
202
+ sectionTitleEl.textContent = `Résultats pour "${q}" `;
203
+ const countSpan = document.createElement('span');
204
+ countSpan.className = 'text-gray-500 text-sm ml-2';
205
+ countSpan.textContent = `(${res.length})`;
206
+ sectionTitleEl.appendChild(countSpan);
207
renderGrid(res);
208
}
209
0 commit comments