1(function ($) { 2 $.fn.hasScrollBar = function () { 3 console.log(this.get(0).scrollHeight); 4 console.log(this.height()); 5 return this.get(0).scrollHeight > this.height(); 6 } 7})(jQuery); 8 9jQuery(document).ready(function ($) { 10 11 var body = $('body'); 12 13 function toggleDropdown(e) { 14 const _d = $(e.target).closest('.dropdown'), 15 _m = $('.dropdown-menu', _d); 16 setTimeout(function () { 17 const shouldOpen = e.type !== 'click' && _d.is(':hover'); 18 _m.toggleClass('show', shouldOpen); 19 _d.toggleClass('show', shouldOpen); 20 $('[data-toggle="dropdown"]', _d).attr('aria-expanded', shouldOpen); 21 }, e.type === 'mouseleave' ? 50 : 0); 22 } 23 24 function menu_dropdown_href(e) { 25 e.preventDefault(); 26 window.location.href = e.target.href; 27 return false; 28 } 29 30 31 // scroll to top 32 $(document).on('click tab', '#scroll_to_top', function () { 33 $("html, body").animate({ 34 scrollTop: 0 35 }, 500, 'linear'); 36 return false; 37 }); 38 39 // menu mobile dropdown 40 41 $(document).on('click tab', '.navbar-main-menu .caret', function () { 42 $(this).toggleClass('active').next().slideToggle(); 43 }); 44 45 body.on('mouseenter mouseleave', '.dropdown', toggleDropdown) 46 .on('click', '.dropdown-menu a', toggleDropdown) 47 .on('click', '.dropdown > a', menu_dropdown_href); 48 49 50 function scrolling_classes() { 51 var window_height = $(window).height(); 52 var scrolled = $(this).scrollTop(); 53 54 if (scrolled > 25) { 55 body.addClass('scrolled'); 56 } else { 57 body.removeClass('scrolled'); 58 } 59 } 60 61 $(window).scroll(scrolling_classes); 62 $(window).resize(scrolling_classes); 63 $(window).load(scrolling_classes); 64 65 scrolling_classes(); 66 67 68 69 var meldungenOwlConfig = { 70 margin: 15, 71 nav: false, 72 dots: true, 73 dotsEach: true, 74 responsive: { 75 0: { items: 1 }, 76 600: { items: 2 }, 77 1000: { items: 2 } 78 } 79 }; 80 81 function initMeldungenOwl() { 82 var meldungen_owl = $('.owl-carousel.quadriga-association-meldungen'); 83 if (meldungen_owl.length === 0) { 84 return; 85 } 86 if (meldungen_owl.hasClass('owl-loaded')) { 87 meldungen_owl.trigger('destroy.owl.carousel'); 88 meldungen_owl.removeClass('owl-loaded owl-hidden').find('.owl-stage-outer').children().unwrap(); 89 meldungen_owl.find('.owl-stage').children().unwrap(); 90 meldungen_owl.find('.owl-dots, .owl-nav').remove(); 91 } 92 meldungen_owl.owlCarousel(meldungenOwlConfig); 93 } 94 95 initMeldungenOwl(); 96 97 if (document.readyState === 'complete') { 98 setTimeout(initMeldungenOwl, 150); 99 } else { 100 jQuery(window).on('load', function () { 101 initMeldungenOwl(); 102 }); 103 } 104 105 $(document.body).on('vc-full-width-row-single vc-full-width-row', function () { 106 initMeldungenOwl(); 107 }); 108 109 110 111 $(document).on('click tab', '.persons-slider__nav__item', function () { 112 let item_id = $(this).attr('data-id'); 113 $(this).closest('.persons-slider__nav').find('.persons-slider__nav__item').removeClass('active'); 114 $(this).addClass('active'); 115 $(this).closest('.persons-slider').find('.persons-slider__items__item[data-id!="' + item_id + '"]').removeClass('active'); 116 $(this).closest('.persons-slider').find('.persons-slider__items__item[data-id="' + item_id + '"]').addClass('active'); 117 }); 118 $(document).on('click tab', '.person__questions__question__title', function () { 119 $(this).toggleClass('active'); 120 $(this).next().slideToggle(); 121 }); 122 123 // SVG Deutschland MAP - Regionalgruppen redirect 124 $(document).on('click', '#regionalgruppen_svg_map .gruppe', function () { 125 var gruppe_id = $(this).attr('data-id'); 126 window.location.href = "/?p=" + gruppe_id; 127 }); 128}); 129 130 131 132window.addEventListener("beforeprint", function () { 133 let printStyleSheet = document.createElement("style"); 134 printStyleSheet.classList.add("print-stylesheet"); 135 document.head.appendChild(printStyleSheet) 136 137 let printRulesText = ""; 138 Array.from(document.styleSheets).forEach(styleSheet => { 139 Array.from(styleSheet.cssRules) 140 .filter(rule => rule.media && (/(min-width: 768px)/g.test(rule.media.mediaText) || /(min-width: 992px)/g.test(rule.media.mediaText) || /(min-width: 1440px)/g.test(rule.media.mediaText))) 141 .forEach(rule => { 142 Array.from(rule.cssRules).forEach(rule => printRulesText += rule.cssText) 143 }) 144 }) 145 printStyleSheet.innerHTML = printRulesText; 146}); 147window.addEventListener("afterprint", function () { 148 Array.from(document.querySelectorAll(".print-stylesheet")).forEac
148h(style => style.remove()) 149});
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.