1// requires: cookieman.js, jQuery 2 3// CookieConsent ändern und Matomo-Cookies entfernen wenn in den Extension-Einstellungen das Matomotracking auf aus steht 4var matomotracking = document.querySelector('[tracking-enable]').getAttribute('tracking-enable'); 5//console.log('Matomo-Trackingstatus: ' + matomotracking); 6if(matomotracking==0){ 7 var cookies = document.cookie.split(";"); 8 for (var i = 0; i < cookies.length; i++) { 9 var cookie = cookies[i]; 10 var eqPos = cookie.indexOf("="); 11 var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; 12 if(name.toLowerCase().indexOf('_pk_') >= 0 || name.toLowerCase().indexOf('matomo') >= 0 || name.toLowerCase().indexOf('mtm_') >= 0){ 13 document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; 14 } 15 } 16 if(document.cookie.match(/^(.*;)?\s*CookieConsent\s*=\s*[^;]+(.*)?$/)){ 17 document.cookie = "CookieConsent=mandatory; path=/"; 18 } 19} 20 21// Modal-Funktion 22cookieman.theme = (function () { 23 "use strict"; 24 var showBackdrop = true 25 26 // show "save" after opening settings 27 jQuery(function () { 28 jQuery('[aria-controls="cookieman-settings"]').on( 29 'click', 30 function () { 31 jQuery('[data-cookieman-save]').show() 32 } 33 ) 34 }) 35 36 cookieman.show = function () { 37 jQuery(function () { 38 var $modal = jQuery('#cookieman-modal'); 39 $modal.addClass('show'); 40 $('body').addClass('body-scrolling-off');// Hintergrund scrollen aus 41 $modal.focus(); 42 }) 43 } 44 cookieman.hide = function () { 45 jQuery(function () { 46 var $modal = jQuery('#cookieman-modal'); 47 $modal.removeClass('show'); 48 $('body').removeClass('body-scrolling-off');// Hintergrund scrollen an 49 50 }) 51 } 52 53}()); 54 55// Tabulator-Schleife 56var $modal = $('#cookieman-modal'); 57var $lastButton = $('.cookiebanner-loopend-button'); 58$lastButton.keydown(function (e) { 59 if (e.which == 9) { 60 if(!e.shiftKey) { 61 e.preventDefault(); 62 $modal.focus(); 63 } 64 } 65}); 66$modal.keydown(function (e) { 67 if (e.which == 9) { 68 if(e.shiftKey) { 69 var $modalHasFocus = $modal.is(':focus'); 70 if($modalHasFocus==true){ 71 e.preventDefault(); 72 $lastButton.focus(); 73 } 74 } 75 } 76}); 77 78// Collapser, toggle 79function cookiebannerCollapsibleToggle(e, mythis) { 80 e.preventDefault(); 81 var $targetCollapse = mythis.attr('data-target'); 82 //Content 83 $($targetCollapse).toggleClass('show'); 84 //Aria 85 if(mythis.attr('aria-expanded')=='true') { 86 mythis.attr('aria-expanded', 'false'); 87 }else{ 88 mythis.attr('aria-expanded', 'true'); 89 } 90} 91var $collapserButtons = $('.cookiebanner-collapsible'); 92$collapserButtons.each( function() { 93 if ($(this).is( "button" ) ) { 94 // Weitere Informationen Button 95 $(this).on("click", function(e) { 96 // toggle 97 cookiebannerCollapsibleToggle(e, $(this)); 98 }); 99 }else if($(this).is( "a" )){ 100 // CookiePanel-Button(Linkelement) 101 $(this).on("click keypress", function(e) { 102 if (e.which == 32 || e.which == 13 || e.which == 1) { //32==Leerzeichen, 13==Return/Enter, 1==Mausklick/Enter 103 // toggle 104 cookiebannerCollapsibleToggle(e, $(this)); 105 } 106 }); 107 } 108 109} );
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.