delete report

This commit is contained in:
Julie Blanc 2026-02-14 17:03:03 +01:00
parent 06785d712c
commit b5f9da678f
9 changed files with 253 additions and 824 deletions

View file

@ -0,0 +1,11 @@
export function initSliderBeforeAfter(container = document){
const slidersBeforeAfter = container.querySelectorAll('.slider-before-after');
slidersBeforeAfter.forEach(function (sliderContainer, index) {
const sliderInput = sliderContainer.querySelector('.slider');
if (sliderInput) {
sliderInput.addEventListener('input', (e) => {
sliderContainer.style.setProperty('--position', `${e.target.value}%`);
});
}
});
}

View file

@ -8,8 +8,7 @@ import { initHeroSlider } from './hero-slider.js';
import { playVideo } from './hero-video.js';
import { initDropdowns } from './dropdown.js';
import { initSwipers } from './swipers.js';
import { report } from './report.js';
import { initSliderBeforeAfter } from './investigation.js';
const responsiveMedium = 1080;
const responsiveSmall = 768;
@ -21,8 +20,6 @@ window.onload = async function () {
themeToggle();
report(responsiveSmall);
tocMobile(responsiveSmall);
copyLink();
btnGroupMobile(responsiveSmall)
@ -32,6 +29,7 @@ window.onload = async function () {
initDropdowns(responsiveSmall);
initSwipers();
initSliderBeforeAfter();
var elem = document.querySelector('.grid-masonry');
var msnry = null;