Commit 5d3b56a04c4f6ebc7d1d687ffeeb21de7e68c8f9
1 parent
af4ab46e
landing slider removed
Showing
1 changed file
with
35 additions
and
1 deletions
Show diff stats
frontend/web/js/landing_min.js
1 | -let swiper=new Swiper(".monitoring-slider",{slidesPerView:1,pagination:{el:".swiper-pagination"}}),swiper2=new Swiper(".projects-slider",{loop:!0,slidesPerView:1,pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});function removeActiveClassCharts(){buttonSwitchChart.forEach(t=>t.classList.remove("active")),chartOpen.forEach(t=>t.classList.remove("active-chart"))}function removeActiveClassCes(){buttonSwitchCes.forEach(t=>t.classList.remove("active")),cesOpen.forEach(t=>t.classList.remove("active-ces"))}let buttonSwitchChart=document.querySelectorAll(".change-btn"),chartOpen=document.querySelectorAll(".exam-graph ");for(let t=0;t<buttonSwitchChart.length;t++)buttonSwitchChart[t].onclick=function(){removeActiveClassCharts(),buttonSwitchChart[t].classList.add("active"),chartOpen[t].classList.add("active-chart")};let buttonSwitchCes=document.querySelectorAll(".ces-content_toggle-btn"),cesOpen=document.querySelectorAll(".ces-content_text");for(let t=0;t<buttonSwitchCes.length;t++)buttonSwitchCes[t].onclick=function(){removeActiveClassCes(),buttonSwitchCes[t].classList.add("active"),cesOpen[t].classList.add("active-ces")}; | |
2 | 1 | \ No newline at end of file |
2 | +// let swiper = new Swiper(".monitoring-slider", { | |
3 | +// slidesPerView: 1, | |
4 | +// pagination: { | |
5 | +// el: ".swiper-pagination" | |
6 | +// } | |
7 | +// }), | |
8 | +// swiper2 = new Swiper(".projects-slider", { | |
9 | +// loop: !0, | |
10 | +// slidesPerView: 1, | |
11 | +// pagination: { | |
12 | +// el: ".swiper-pagination" | |
13 | +// }, | |
14 | +// navigation: { | |
15 | +// nextEl: ".swiper-button-next", | |
16 | +// prevEl: ".swiper-button-prev" | |
17 | +// } | |
18 | +// }); | |
19 | + | |
20 | +function removeActiveClassCharts() { | |
21 | +buttonSwitchChart.forEach(t => t.classList.remove("active")), chartOpen.forEach(t => t.classList.remove("active-chart")) | |
22 | +} | |
23 | + | |
24 | +function removeActiveClassCes() { | |
25 | +buttonSwitchCes.forEach(t => t.classList.remove("active")), cesOpen.forEach(t => t.classList.remove("active-ces")) | |
26 | +} | |
27 | +let buttonSwitchChart = document.querySelectorAll(".change-btn"), | |
28 | +chartOpen = document.querySelectorAll(".exam-graph "); | |
29 | +for (let t = 0; t < buttonSwitchChart.length; t++) buttonSwitchChart[t].onclick = function() { | |
30 | +removeActiveClassCharts(), buttonSwitchChart[t].classList.add("active"), chartOpen[t].classList.add("active-chart") | |
31 | +}; | |
32 | +let buttonSwitchCes = document.querySelectorAll(".ces-content_toggle-btn"), | |
33 | +cesOpen = document.querySelectorAll(".ces-content_text"); | |
34 | +for (let t = 0; t < buttonSwitchCes.length; t++) buttonSwitchCes[t].onclick = function() { | |
35 | +removeActiveClassCes(), buttonSwitchCes[t].classList.add("active"), cesOpen[t].classList.add("active-ces") | |
36 | +}; | |
3 | 37 | \ No newline at end of file | ... | ... |