1jQuery(document).ready(function($){ 2 3 /*Tooltips*/ 4 $('[data-toggle="tooltip"]').tooltip() 5 6 7 /*SUBMENU*/ 8 $('#nav-2 li.menu-item-has-children').each(function(){ 9 $(this).append('<div class="toggle"></div>'); 10 }) 11 $('#nav-2 .toggle').click(function(){ 12 $(this).toggleClass('active'); 13 $(this).parent().find('.sub-menu').slideToggle(); 14 }) 15 16 17 18 19 /*STICKY NAVBAR*/ 20 window.onscroll = function() {stickyNavbar()}; 21 var header = document.getElementById("nav-2"); 22 var main = document.getElementById("main"); 23 var sticky = header.offsetTop; 24 function stickyNavbar() { 25 if ($(".mediaqueryClass").css("float") == "left" ){ 26 if (window.pageYOffset > sticky) { 27 header.classList.add("sticky"); 28 main.classList.add("pt-top"); 29 } else { 30 header.classList.remove("sticky"); 31 main.classList.remove("pt-top"); 32 } 33 } 34 } 35 36 /*HEROSWIPER*/ 37 if($('.heroswiper-container').length){ 38 var heroSwiper = new Swiper('.heroswiper-container', { 39 autoplay: { 40 delay: 10000, 41 }, 42 centeredSlides: true, 43 spaceBetween: 30, 44 speed: 800, 45 loop: true, 46 navigation: { 47 nextEl: '.swiper-hero-button-next', 48 prevEl: '.swiper-hero-button-prev', 49 }, 50 pagination: { 51 el: '.swiper-hero-pagination', 52 type: 'bullets', 53 clickable: true, 54 }, 55 preloadImages: false, 56 lazy: true, 57 }); 58 } 59 60 /*KUNDENSTIMMENSWIPER*/ 61 if($('.kundenstimmen-container').length){ 62 63 let options = {}; 64 console.log($(".kundenstimmen-container .swiper-slide").length); 65 if ( $(".kundenstimmen-container .swiper-slide").length > 1 ) { 66 options = { 67 autoplay: { 68 delay: 10000, 69 }, 70 speed: 800, 71 loop: true, 72 pagination: { 73 el: '.swiper-kundenstimmen-pagination', 74 type: 'bullets', 75 clickable: true, 76 }, 77 preloadImages: false, 78 lazy: true, 79 } 80 } else { 81 options = { 82 loop: false, 83 autoplay: false, 84 allowTouchMove: false, 85 } 86 } 87 var kundenstimmen = new Swiper('.kundenstimmen-container', options); 88 } 89 90 /*PROGRESS*/ 91 if($('.prog').length){ 92 function animateElements() { 93 $('.prog .progressbar').each(function() { 94 var elementPos = $(this).offset().top; 95 var topOfWindow = $(window).scrollTop(); 96 var value = $(this).find('.circle').attr('data-value'); 97 var max = $(this).find('.circle').attr('data-max'); 98 var einheit = $(this).find('.circle').attr('data-einheit'); 99 var animate = $(this).data('animate'); 100 if (elementPos < topOfWindow + $(window).height() - 30 && !animate) { 101 $(this).data('animate', true); 102 $(this).find('.circle').circleProgress({ 103 startAngle: -Math.PI / 2, 104 value: value / max, 105 thickness: 16, 106 size: 200, 107 fill: { 108 color: '#246992' 109 } 110 }).on('circle-animation-progress', function(event, progress, stepValue) { 111 $(this).find('div').text((stepValue * max).toFixed(0) + einheit); 112 }).stop(); 113 } 114 }); 115 } 116 117 // Show animated elements 118 animateElements(); 119 $(window).scroll(animateElements); 120 } 121 122 /*COUNTER*/ 123 if($('.counter').length){ 124 $('.counter').counterUp({ 125 delay: 10, 126 time: 1000 127 }); 128 } 129 130 /* TO ADD */ 131 132 /*BILDERSWIPER*/ 133 if($('.bilderswiper-container').length){ 134 var bilderswiper = new Swiper('.bilderswiper-container', { 135 autoplay: { 136 delay: 10000, 137 }, 138 speed: 800, 139 loop: true, 140 navigation: { 141 nextEl: '.swiper-bilderswiper-button-next', 142 prevEl: '.swiper-bilderswiper-button-prev', 143 }, 144 preloadImages: false, 145 lazy: true, 146 }); 147 } 148 149 /*HEROSWIPER*/ 150 if($('.heroswiper-container-2').length){ 151 var heroSwiper = new Swiper('.heroswiper-container-2', { 152 autoplay: { 153 delay: 10000, 154 }, 155 effect: 'fade', 156 centeredSlides: true, 157 spaceBetween: 30,
158 speed: 800, 159 loop: false, 160 navigation: { 161 nextEl: '.swiper-hero-button-next', 162 prevEl: '.swiper-hero-button-prev', 163 }, 164 pagination: { 165 el: '.swiper-hero-pagination', 166 type: 'bullets', 167 clickable: true, 168 }, 169 preloadImages: false, 170 lazy: true, 171 }); 172 } 173 174 /*VIDEO 2021*/ 175 $('.video-2021 video').click(function(){ 176 $(this).parent().find('.play-icon').addClass('hidden'); 177 $(this)[0].play(); 178 $(this).attr("controls",true); 179 }) 180 181 182})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.