project is ready

This commit is contained in:
Mavlon4658
2025-01-28 16:07:21 +05:00
parent e67ea16299
commit 064e8ef037
90 changed files with 4929 additions and 66 deletions

View File

@@ -0,0 +1,48 @@
const homeSwp = new Swiper('.home-swp .swiper', {
slidesPerView: 1,
spaceBetween: 0,
effect: 'fade',
loop: true,
navigation: {
nextEl: '.home-swp__btn-next',
prevEl: '.home-swp__btn-prev',
}
})
const textsSwp = new Swiper('.texts-swp .swiper', {
slidesPerView: 1,
spaceBetween: 0,
loop: true,
effect: 'fade',
navigation: {
nextEl: '.texts-swp__next',
prevEl: '.texts-swp__prev'
},
pagination: {
el: ".texts-swp__pagination",
clickable: true,
}
})
// comment
let answerbtns = document.querySelectorAll('.answer-btn');
let answerbtnicons = document.querySelectorAll('.answer-btn svg');
let answerblocks = document.querySelectorAll('.answer-block');
answerbtns.forEach((answerbtn, index) => {
answerbtn.addEventListener('click', () => {
let answerbtnicon = answerbtnicons[index];
let answerblock = answerblocks[index];
answerblock.classList.toggle('active');
answerbtnicon.classList.toggle('active');
let buttonText = answerbtn.querySelector('span');
if (buttonText.textContent === 'Ответ') {
buttonText.textContent = 'Свернуть';
} else {
buttonText.textContent = 'ответ';
}
});
});
// comment