1Array.from(document.querySelectorAll('.timeline-item')).filter(item => item.innerHTML.toLowerCase().match(/anfrage/)).forEach(item => item.parentNode.removeChild(item)) 2 3 4 5 6//Get the button: 7mybutton = document.getElementById("myBtn"); 8 9// When the user scrolls down 20px from the top of the document, show the button 10window.onscroll = function() {scrollFunction()}; 11 12function scrollFunction() { 13 if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { 14 mybutton.style.display = "block"; 15 } else { 16 mybutton.style.display = "none"; 17 } 18} 19 20// When the user clicks on the button, scroll to the top of the document 21function topFunction() { 22 document.body.scrollTop = 0; // For Safari 23 document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera 24} 25 26 27 28 29 30 31function reveal() { 32 var reveals = document.querySelectorAll(".reveal"); 33 34 for (var i = 0; i < reveals.length; i++) { 35 var windowHeight = window.innerHeight; 36 var elementTop = reveals[i].getBoundingClientRect().top; 37 var elementVisible = 150; 38 39 if (elementTop < windowHeight - elementVisible) { 40 reveals[i].classList.add("active"); 41 } else { 42 reveals[i].classList.remove("active"); 43 } 44 } 45} 46 47window.addEventListener("scroll", reveal); 48 49 50// accordion 51 52var acc = document.querySelectorAll('div[id^=accordion-] .card-header'); 53var i; 54 55for (i = 0; i < acc.length; i++) { 56 acc[i].addEventListener("click", function() { 57 this.classList.toggle("active"); 58 var panel = this.nextElementSibling; 59 panel.classList.toggle('show') 60 }); 61} 62 63document.querySelectorAll('.collapse').forEach(el => el.classList.remove('show')); 64 65// accordion 66 67 68 //Scrolling feature 69 70 $('.page-scroll a').on('click', function (event) { 71 var $anchor = $(this); 72 $('html, body').stop().animate({ 73 scrollTop: $($anchor.attr('href')).offset().top 74 }, 1500, 'easeInOutExpo'); 75 event.preventDefault(); 76 }); 77 78 79// Fancybox 3 START 80document.querySelectorAll('.gallery').forEach(img => { 81 img.setAttribute('data-fancybox', 'gallery'); 82}); 83 84 $(".gallery").fancybox({ 85 // Animation duration in ms 86 speed : 330, 87 88 // Enable infinite gallery navigation 89 loop : true, 90 91 // Should zoom animation change opacity, too 92 // If opacity is 'auto', then fade-out if image and thumbnail have different aspect ratios 93 opacity : 'auto', 94 95 // Space around image, ignored if zoomed-in or viewport smaller than 800px 96 margin : [44, 0], 97 98 // Horizontal space between slides 99 gutter : 30, 100 101 // Should display toolbars 102 infobar : true, 103 buttons : true, 104 105 // What buttons should appear in the toolbar 106 slideShow : true, 107 fullScreen : true, 108 thumbs : true, 109 closeBtn : true, 110 111 // Should apply small close button at top right corner of the content 112 // If 'auto' - will be set for content having type 'html', 'inline' or 'ajax' 113 smallBtn : 'auto', 114 115 image : { 116 117 // Wait for images to load before displaying 118 // Requires predefined image dimensions 119 // If 'auto' - will zoom in thumbnail if 'width' and 'height' attributes are found 120 preload : "auto", 121 122 // Protect an image from downloading by right-click 123 protect : false 124 125 }, 126 127 ajax : { 128 129 // Object containing settings for ajax request 130 settings : { 131 132 // This helps to indicate that request comes from the modal 133 // Feel free to change naming 134 data : { 135 fancybox : true 136 } 137 } 138 139 }, 140 141 iframe : { 142 143 // Iframe template 144 tpl : '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>', 145 146 // Preload iframe before displaying it 147 // This allows to calculate iframe content width and height 148 // (note: Due to "Same Origin Policy", you can't get cross domain data). 149 preload : true, 150 151 // Scrolling attribute for iframe tag 152 scrolling : 'no', 153 154 // Custom CSS styling for iframe wrapping element 155 css : {} 156 157 }, 158 159 // Custom CSS class for layout 160 baseClass : '', 161 162 // Custom CSS class for slide element 163 slideClass : '', 164 165 // Base template for layout 166 baseTpl : '<div class="fancybox-container" role="dialog" tabindex="-1">' + 167 '<div class="fancybox-bg"></div>' + 168 '<div class="fancybox-controls">' + 169 '<div class="fancybox-infobar">' + 170 '<button data-fancybox-previous class="fancybox-button fancybox-button--left" title="Previous"></button>' + 171 '<div class="fancybox-infobar__body">' + 172 '<span class="js-fancybox-index"></span> / <span class="js-fancybox-count"></span>' + 173 '</div>' + 174 '<button data-fancybox-next class="fancybox-button fancybox-button--right" title="Next"></button>' + 175 '</div>' + 176 '<div class="fancybox-buttons">' + 177 '<button data-fancybox-close class="fancybox-button fancybox-button--close" title="Close (Esc)"></button>' + 178 '</div>' + 179 '</div>' + 180 '<div class="fancybox-slider-wrap">' + 181 '<div class="fancybox-slider"></div>' + 182 '</div>' + 183 '<div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div>' + 184 '</div>', 185 186 // Loading indicator template 187 spinnerTpl : '<div class="fancybox-loading"></div>', 188 189 // Error message template 190 errorTpl : '<div class="fancybox-error"><p>The requested content cannot be loaded. <br /> Please try again later.<p></div>', 191 192 // This will be appended to html content, if "smallBtn" option is not set to false 193 closeTpl : '<button data-fancybox-close class="fancybox-close-small"></button>', 194 195 // Container is injected into this element 196 parentEl : 'body', 197 198 // Enable gestures (tap, zoom, pan and pinch) 199 touch : true, 200 201 // Enable keyboard navigation 202 keyboard : true, 203 204 // Try to focus on first focusable element after opening 205 focus : true, 206 207 // Close when clicked outside of the content 208 closeClickOutside : true, 209 210 // Callbacks; See Documentation/API/Events for description and samples 211 beforeLoad : $.noop, 212 afterLoad : $.noop, 213 beforeMove : $.noop, 214 afterMove : $.noop, 215 onComplete : $.noop, 216 217 onInit : $.noop, 218 beforeClose : $.noop, 219 afterClose : $.noop, 220 onActivate : $.noop, 221 onDeactivate : $.noop 222 }); 223 224 225 // Fancybox ENDE
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.