use descriptoin more often

This commit is contained in:
j 2021-11-12 13:02:02 +00:00
commit a79b913f2d
2 changed files with 4 additions and 8 deletions

View file

@ -35,11 +35,9 @@ if (locationHash !== '') {
document.querySelectorAll('.films .film figure').forEach(figure => {
var imgs = figure.querySelectorAll('img')
if (imgs.length > 1) {
console.log('needs updates', figure)
setInterval(() => {
var img = figure.querySelector('img')
img.parentElement.appendChild(img)
console.log('change img', img, figure.querySelector('img'))
}, 5000)
}, 5000 + Math.random() * 1000)
}
})