1jQuery(document).ready(function( $ ) { 2 /*current link color sidebar******************/ 3 $(function () { 4 var current = location.pathname; 5 $("aside#secondary a").each(function () { 6 var $this = $(this); 7 // if the current path is like this link, make it active 8 if ($this.attr("href").indexOf(current) !== -1) { 9 $this.addClass("active"); 10 } 11 }); 12 }); 13 14 /*mobile menu / mobile footer ************/ 15 if(screen.width < 600) { 16 $(".footer-flex-container .side-legal li").appendTo($(".footer-flex-container .side-external")); 17 } 18 19 /*cookie-consent-modal********************/ 20 $(".cookie-consent").on("click", function(){ 21 $("#klaro").show(); 22 }); 23 /*video-statements YouTube laden ********/ 24 $(".videoPoster").on("click", function (ev) { 25 ev.preventDefault(); 26 $(this).fadeOut(800); 27 let parent = $(this).closest(".videoWrapper"); 28 let player = parent.find(".responsive-iframe"); 29 playerUrl = player.attr("data-src"); 30 newPlayerUrl = playerUrl += "&autoplay=1"; 31 if (player.attr("src")) { 32 player.attr("src", newPlayerUrl); 33 } else { 34 player.attr("data-src", newPlayerUrl); 35 } 36 }); 37/*video-statements autopause*******************/ 38 $( 39 ".swiper-slide, .videoPoster, .swiper-button-next, .swiper-button-prev, .swiper-pagination-bullet, .responsive-iframe" 40 ).on("click", function () { 41 $(".responsive-iframe").each(function (index, value) { 42 $(".responsive-iframe")[index].contentWindow.postMessage( 43 '{"event":"command","func":"' + "pauseVideo" + '","args":""}', 44 "*" 45 ); 46 }); 47 }); 48 49 50 /* $(".scroller").on("scroll", function () { 51 $(".responsive-iframe").each(function (index, value) { 52 $(".responsive-iframe")[index].contentWindow.postMessage( 53 '{"event":"command","func":"' + "pauseVideo" + '","args":""}', 54 "*" 55 ); 56 }); 57 });*/ 58 59}); 60 61/*vanilla******/ 62/*copy link***/ 63function setClipboard() { 64 let tempInput = document.createElement("input"); 65 tempInput.value = window.location.href; 66 document.body.appendChild(tempInput); 67 tempInput.select(); 68 document.execCommand("copy"); 69 document.body.removeChild(tempInput); 70 //alert("in die Zwischenablage kopiert:\n\n" + tempInput.value); 71 let link = document.querySelector(".link"); 72 link.textContent = "Link in die Zwischenablage kopiert â"; 73} 74 75/*navigator ? ******************/ 76(function () { 77 let link = document.querySelector(".link"); 78 let navigatorButton = document.querySelector(".navigator"); 79 if (!link) return ''; 80 if (!navigatorButton) return ''; 81 if(navigator.share) { 82link.style.display = "none"; 83navigatorButton.style.display = "block"; 84} 85else{ 86link.style.display = "block"; 87navigatorButton.style.display = "none"; 88} 89}()); 90 91/*navigator share *****/ 92function sharePage() { 93if(navigator.share) { 94 navigator.share({ 95 title: document.title, 96 text: excerpt, 97 url: document.location.href 98 }) 99} 100} 101 102/*print*****/ 103function printPage() { 104 const source = document.createElement("div"); 105 source.innerHTML = '<p class="quelle">' + 'Quelle: ' + document.location.href + '</p>'; 106 const logo = document.createElement("img"); 107 logo.src = "https://schlossaneignung.de/wp-content/uploads/schlossaneignung.png"; 108 logo.style.width = "8cm"; 109 document.body.prepend(logo); 110 document.body.appendChild(source); 111 window.print(); 112 document.body.removeChild(logo); 113 document.body.removeChild(source); 114} 115 116 117 118
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.