new container

This commit is contained in:
Sanjay B 2021-10-28 22:03:47 +05:30
commit c91f8767da
2 changed files with 24 additions and 22 deletions

View file

@ -7,9 +7,9 @@ function selectChanged() {
const bVal = b.dataset[sortValue]
return aVal < bVal ? -1 : 1
})
document.getElementById('films').innerHTML = ''
document.getElementById('films-list').innerHTML = ''
$films.forEach($film => {
document.getElementById('films').appendChild($film)
document.getElementById('films-list').appendChild($film)
})
}