diff --git a/assets/main.scss b/assets/main.scss index 7abca0da..5f23392e 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -63,7 +63,7 @@ h1 { > .slider { width: calc(100% - 60px); - height: 250px; + // height: 250px; display: flex; padding: 0 10px; border-right: 20px solid $color_red; @@ -81,6 +81,12 @@ h1 { &.hidden { opacity: 0; } + + &.placeholder { + position: static; + visibility: hidden; + width: 100%; + } } .dots { diff --git a/themes/tsc_vfl/layouts/partials/page/header.html b/themes/tsc_vfl/layouts/partials/page/header.html index 70c70fae..4b508e23 100644 --- a/themes/tsc_vfl/layouts/partials/page/header.html +++ b/themes/tsc_vfl/layouts/partials/page/header.html @@ -8,12 +8,13 @@
- - - - - - + + + + + + +
diff --git a/themes/tsc_vfl/static/js/slider.js b/themes/tsc_vfl/static/js/slider.js index df97186f..04487f54 100644 --- a/themes/tsc_vfl/static/js/slider.js +++ b/themes/tsc_vfl/static/js/slider.js @@ -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')