1var menu_pid = 0; 2var xhr_ac = {}; 3var headlines = [ 'H6', 'H5', 'H4', 'H1', 'H2', 'H3']; 4 5/*news carousel*/ 6let items = document.querySelectorAll('.news .carousel .carousel-item') 7 8items.forEach((el) => { 9 const minPerSlide = 6 10 11 let next = el.nextElementSibling 12 for (var i=1; i<minPerSlide; i++) { 13 if (!next) { 14 // wrap carousel by using first child 15 next = items[0] 16 } 17 let cloneChild = next.cloneNode(true) 18 el.appendChild(cloneChild.children[0]) 19 next = next.nextElementSibling 20 } 21}) 22/*end*/ 23 24function getCookie(name) { 25 var dc = document.cookie; 26 var prefix = name + "="; 27 var begin = dc.indexOf("; " + prefix); 28 if (begin == -1) { 29 begin = dc.indexOf(prefix); 30 if (begin != 0) return null; 31 } 32 else 33 { 34 begin += 2; 35 var end = document.cookie.indexOf(";", begin); 36 if (end == -1) { 37 end = dc.length; 38 } 39 } 40 // because unescape has been deprecated, replaced with decodeURI 41 //return unescape(dc.substring(begin + prefix.length, end)); 42 return decodeURI(dc.substring(begin + prefix.length, end)); 43} 44 45function deleteCookie(cname) { 46 var d = new Date(); //Create an date object 47 d.setTime(d.getTime() - (1000*60*60*24)); //Set the time to the past. 1000 milliseonds = 1 second 48 var expires = "expires=" + d.toGMTString(); //Compose the expirartion date 49 window.document.cookie = cname+"="+"; domain="+window.location.hostname+";"+expires+";path=/;";//Set the cookie with name and the expiration date 50 window.document.cookie = cname+"="+"; domain=."+window.location.hostname+";"+expires+";path=/;";//Set the cookie with name and the expiration date 51 window.document.cookie = cname+"="+"; "+expires+";path=/;";//Set the cookie with name and the expiration date 52 53} 54 55function iframe_deny() { 56 deleteCookie("iframeswitch"); 57 location.reload(); 58} 59 60$(document).on("scroll", function(){ 61 var pixels = $(document).scrollTop(); 62 var pageHeight = $(document).height() - $(window).height(); 63 var progress = 100 * pixels / pageHeight; 64 65 $("div.progress").css("width", progress + "%"); 66}) 67 68$( document ).ready( function () { 69 70 //ma5menu({ 71 // menu: '#site-menu', 72 // activeClass: 'activeEl', 73 // //footer: '#ma5menu-tools', 74 // position: 'left', 75 // closeOnBodyClick: true 76 // }); 77 78 new LazyLoad({ 79 elements_selector: "img[data-srcset], section[data-bg]", 80 effect: "fadeIn" 81 }); 82 83 /*** fancybox aktivieren ***/ 84 85 //Titel aus Bildtitel auslesen 86 var arr = jQuery("a.fancybox"); 87 jQuery.each(arr, function() { 88 var title = jQuery(this).children("img").attr("title"); 89 beforeLoad: jQuery(this).attr('title',title); 90 }); 91 92 93 jQuery(".fancybox").fancybox({ 94 beforeShow : function() { 95 this.title = (this.title ? '' + this.title + '' : '') + 'Bild ' + (this.index + 1) + ' von ' + this.group.length ; 96 } 97 }); 98 99 100 /*add file-icons and extension to uploads*/ 101 $('.ce-uploads a').each(function(){ 102 $(this).attr('target','_blank'); 103 var nodeName = $(this).parent().prop("tagName"); 104 105 if(jQuery.inArray(nodeName, headlines) == -1) { 106 var href= $(this).attr("href"); 107 var extension = href.substr( (href.lastIndexOf('.') +1) ).toLowerCase(); 108 $(this).parent().find('.ce-uploads-filesize').prepend(' | <span>'+extension.toUpperCase()+' </span>'); 109 110 switch(extension) { 111 case 'zip': 112 case 'rar': 113 $(this).prepend('<span class="icon icon-ico-folder" aria-hidden="true"></span>'); 114 break; 115 case 'pdf': 116 $(this).prepend('<span class="icon icon-ico-PDF" aria-hidden="true"></span>'); 117 break; 118 case 'jpg': 119 case 'jpeg': 120 case 'png': 121 case 'gif': 122 case 'JPG': 123 case 'JPEG': 124 $(this).prepend('<span class="icon icon-ico-img" aria-hidden="true"></span>'); 125 $(this).addClass('img-link'); 126 break; 127 default: 128 $(this).prepend('<span class="icon icon-ico-column" aria-hidden="true"></span>'); 129 } 130 } 131 }); 132 133 134$('#main-content a[target="_blank"]:not(:has(span))').each(function(){ 135 $(this).attr('target','_blank'); 136 $(this).addClass('external-link'); 137 $(this).prepend('<span class="icon icon-ico-linkext pe-1" aria-hidden="true"></span>'); 138}); 139 140$('#main-content a[href^="mailto:"]').each(function(){ 141 $(this).attr('target','_blank'); 142 $(this).addClass('mail-link'); 143 $(this).prepend('<span class="icon icon-ico-mail pe-1" aria-hidden="true"></span>'); 144}); 145 146 /*replace news anchors*/ 147 var url = window.location.href.split("#")[0]; 148 149$('.news-content-elements > .frame:not(".frame-type-shortcut")').addClass('col-lg-8 col-12'); 150 151$('.news-content-elements .frame-layout-10').addClass('position-relative'); 152$('.news-content-elements .frame-layout-10 header').after('<span class="icon icon-slide-left"></span>'); 153$('.news-content-elements .frame-layout-20').addClass('news-related-news'); 154$('.news-content-elements .frame-layout-20 header').addClass('news-related-news-headline px-3 d-flex justify-content-between'); 155$('.news-content-elements .frame-layout-20 h3').after('<span class="icon icon-ico-audio"></span>'); 156$('.news-content-elements .frame-layout-20 a.podcast').prepend('<span class="icon icon-ico-podcast"></span>'); 157 158 159 $('.news-single .site-anchor').each(function() { 160 var anchor = $(this).attr('href').split("#")[1]; 161 $(this).attr("href", url+'#'+anchor); 162 }); 163 164 $('.news-single .site-anchor').on('click',function (e) { 165 e.preventDefault(); 166 destination = $(this.hash).offset().top-100; 167 $('html, body').animate({ 168 scrollTop: destination 169 }, 1000); 170 }); 171 172 /*set comment amount to news meta*/ 173 var commentAmount = $('#commentCounter').text(); 174 if(commentAmount) { 175 $('.news-single .meta .comments-amount').text(commentAmount); 176 $('.news-single .meta .comments-amount').wrapInner('<a href="'+window.location.href.split("#")[0]+'#comments"></a>'); 177 } 178 179 $('.news-single .share-btn').on('click', function () { 180 //$('.news-single .icon-ico-share').toggleClass('icon-cancel-circle'); 181 if(!$('.news-single .icon-cancel-circle').length) { 182 $('<span class="icon-cancel-circle small"></span>').insertAfter('.news-single .icon-ico-share'); 183 } else { 184 $( ".news .icon-cancel-circle" ).remove(); 185 } 186 }); 187 188 189 /*news carousel*/ 190 $('.news #newsCarousel .carousel-item:first-child').addClass('active'); 191 192 /*fetchURL 193 $('.iframeswitch-submit').on('click', function () { 194 $('#iframe_deny_lnk').show(); 195 }); 196 197 iframe_value_or_null = (document.cookie.match(/^(?:.*;)?\s*iframeswitch\s*=\s*([^;]+)(?:.*)?$/)||[,null])[1]; 198 199 if(iframe_value_or_null){ 200 201 $('#iframe_deny_lnk').show(); 202 203 } 204 */ 205 206 $('.fullcontent header').addClass('container'); 207 $('.fullcontent header h3').addClass('col-9 offset-3 mb-4'); 208 209 210 $(window).on("resize, scroll",function(){ 211 if ($(window).scrollTop()>50) { 212 $(".navbar-header").addClass("navbar-transition"); 213 $("#top-anchor").addClass("d-block"); 214 $("#top-anchor").removeClass("d-none"); 215 } else { 216 $(".navbar-header").removeClass("navbar-transition"); 217 $("#top-anchor").removeClass("d-block"); 218 $("#top-anchor").addClass("d-none"); 219 } 220 }); 221 222 $(".search-toggle-btn").click(function () { 223 $('#ke_search_word_top').focus(); 224 if(!$('#header .icon-cancel-circle').length) { 225 $('<span class="icon-cancel-circle small"></span>').insertAfter('#header .icon-ico-zoom'); 226 } else { 227 $( "#header .icon-cancel-circle" ).remove(); 228 } 229 }); 230 231 232 $("#searchformtop .close-btn").click(function () { 233 $('#header .icon-ico-zoom').removeClass("icon-cancel-circle"); 234 }); 235 236 237 $('#top-anchor').on('click',function (e) { 238 e.preventDefault(); 239 $('html, body').animate({ 240 scrollTop: 0 241 }, 1000); 242 }); 243 244 245/*startseite*/ 246 $('.dtmmix-start > .container > .row').each(function(index ) { 247 248 $(this).children('.small-news + .small-news').prev().addClass('col-xl-8 col-lg-8'); 249 $(this).children('.small-news + .small-news').removeClass('col-lg-5'); 250 $(this).children('.small-news + .small-news').addClass('col-lg-4'); 251 $(this).children('.breakout + .small-news').addClass('offset-xl-2 offset-lg-1'); 252 253 }); 254 255 256 if ($(window).width() < 992) { 257 258 //$('.aside .frame-type-list').addClass('anchor-navigation').insertAfter('.news-single hr.content-devider'); 259 //$(".aside hr").hide(); 260 261 262 263 //mobile scrolling 264 var lastScrollTop = 0; 265 $(window).scroll(function(event){ 266 var st = $(this).scrollTop(); 267 if (st > lastScrollTop){ 268 // downscroll code 269 $( "#header").removeClass("sticky-top fade-in"); 270 $( "#header .navbar").removeClass("sticky-top"); 271 272 } else { 273 // upscroll code 274 $( "#header").addClass("sticky-top fade-in"); 275 $( "#header .navbar").addClass("sticky-top"); 276 277 } 278 lastScrollTop = st; 279 280 if ($(this).scrollTop() <= 0 ){ 281 $( "#header").removeClass("sticky-top fade-in"); 282 $( "header .navbar").removeClass("sticky-top"); 283 } 284 285 }); 286 } 287 288}); 289
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.