1/* Akkordeon öffnen, wenn direkt darauf verlinkt wird */ 2$(document).ready(function(){ 3 var hash = window.location.hash; 4 toggleAcc(hash); 5}); 6$(window).on('hashchange', function(){ 7 /* closeAcc(); */ 8 var hash = window.location.hash; 9 toggleAcc(hash); 10}); 11 12function toggleAcc (hash) { 13 if (hash) { 14 var select = "a[name=" + hash +"]"; 15 select = select.replace('#', ''); 16 var element = $(select); 17 if (element.length) { 18 element.trigger('click'); 19 element.parent('div').addClass('acc-active'); 20 } 21 22 } 23 return hash; 24} 25 26function closeAcc () { 27 $('div.modFocus > div.accordion > div.toggle-content').each(function () { 28 $(this).css('display', 'none'); 29 }); 30} 31 32/* Matomo Zustimmung */ 33function setMatomoConsent() { 34 _paq.push(['rememberConsentGiven']); 35 setConsentText('yes'); 36} 37 38function declineMatomoConsent() { 39 _paq.push(['forgetConsentGiven']); 40 setConsentText('no'); 41} 42 43function setConsentText(consent) { 44 if (consent == "no" && document.getElementById('matomo_consent')) { 45 document.getElementById('matomo_consent').innerHTML = 46 'Derzeit wird Ihr Besuch nicht von Matomo Analytics erfasst.<br /> ' + 47 'Wenn Sie damit einverstanden sind, dass wir zu Analysezwecken Cookies setzen und die gewonnen Daten ' + 48 'verarbeiten, klicken Sie bitte auf den Button "Webanalyse akzeptieren". Sie können Ihre Einwilligung ' + 49 'später jederzeit mit Wirkung für die Zukunft <strong>widerrufen</strong>.' + 50 '<p style="text-align:center;"><button class="icon save-selected" title="Webanalyse akzeptieren" onClick="setMatomoConsent()">' + 51 'Webanalyse akzeptieren</button></p>'; 52 } 53 if (consent == "yes" && document.getElementById('matomo_consent')) { 54 document.getElementById('matomo_consent').innerHTML = 55 'Derzeit wird Ihr Besuch von Matomo Analytics erfasst.<br /> ' + 56 'Durch Klick auf den Button âWebanalyse nicht zulassenâ können ' + 57 'Sie ihre Einwilligung mit Wirkung für die Zukunft <strong>widerrufen</strong>.' + 58 '<p style="text-align:center;"><button class="icon save-selected" title="Webanalyse nicht zulassen" onClick="declineMatomoConsent()">' + 59 'Webanalyse nicht zulassen</button></p>';} 60 61} 62 63$(document).ready(function() { 64 65 if (document.cookie.indexOf('mtm_consent=') == -1) { 66 setConsentText('no'); 67 } else { 68 setConsentText('yes'); 69 } 70}); 71 72/* Wenn Bilder in der Lightbox aufgerufen werden, das Attribut "download" hinzufügen */ 73waitForElement("a.download").then((elm) => { 74 $("a.download").attr("download", "") 75}); 76 77function waitForElement(selector) { 78 return new Promise(resolve => { 79 if (document.querySelector(selector)) { 80 return resolve(document.querySelector(selector)); 81 } 82 83 const observer = new MutationObserver(mutations => { 84 if (document.querySelector(selector)) { 85 resolve(document.querySelector(selector)); 86 observer.disconnect(); 87 } 88 }); 89 90 observer.observe(document.body, { 91 childList: true, 92 subtree: true 93 }); 94 }); 95}
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.