Blame view

frontend/web/js/landing_min.js 1.37 KB
5d3b56a0   Lex   landing slider re...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  // 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")
  };