Fixed sizing issue by duplicating image

This commit is contained in:
2023-01-22 00:02:29 +01:00
parent 8cf3187666
commit c63201cbb0
3 changed files with 15 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ $(function () {
const delay = 7000
function showImage(idx) {
// console.log("switching to index", idx)
const imgs = $('#header .slider img')
const imgs = $('#header .slider .slider-img')
imgs.eq(idx).removeClass('hidden')
imgs.filter((i, e) => {return i != idx}).addClass('hidden')
const dots = $('#header .slider .dots .dot')