https://www.angelo-stiftung.de/wp-content/plugins/google-analytics-opt-out/js/frontend.js?ver=6.9.10
1(function () { 2 "use strict"; 3 4 var $gaoop_checkbox = document.querySelector('.gaoop-checkbox'); 5 6 if (!$gaoop_checkbox || $gaoop_checkbox.length <= 0) { 7 return; 8 } 9 10 var $gaoop = document.querySelector('.gaoop'); 11 var disable_str = window.disableStr || window.gaoop_disable_str; 12 13 function gaoop_to_infobox() { 14 $gaoop_checkbox.checked = true; 15 } 16 17 var opted_out = document.cookie.indexOf(disable_str + '=true') >= 0; 18 var closed_box = document.cookie.indexOf('gaoop_hide_info=true') >= 0; 19 var hide_after_close = 1 === parseInt($gaoop.dataset.gaoop_hide_after_close); 20 21 if (!opted_out && !closed_box) { 22 /* Full banner */ 23 $gaoop.classList.remove('gaoop-hidden'); 24 } else if (!hide_after_close && (opted_out || closed_box)) { 25 /* info box only */ 26 $gaoop.classList.remove('gaoop-hidden'); 27 gaoop_to_infobox(); 28 } else if (hide_after_close && (opted_out || closed_box)) { 29 /* fully hidden */ 30 $gaoop.classList.add('gaoop-hidden'); 31 } 32 33 /** 34 * Click Opt-Out Button 35 */ 36 var $opt_out_button = $gaoop.querySelector('.gaoo-opt-out'); 37 if ($opt_out_button) { 38 $opt_out_button.addEventListener('click', function () { 39 if (hide_after_close) { 40 $gaoop.classList.add('gaoop-hidden'); 41 } else { 42 gaoop_to_infobox(); 43 } 44 }); 45 } 46 47 48 /** 49 * Click info icon 50 */ 51 var $info_button = $gaoop.querySelector('.gaoop-info-icon'); 52 if ($info_button) { 53 $info_button.addEventListener('click', function () { 54 /* destroy cookie */ 55 document.cookie = 'gaoop_hide_info=true; expires=Thu, 31 Dec 1901 23:59:59 UTC; SameSite=Strict; path=/'; 56 }); 57 } 58 59 60 /** 61 * Keep the banner closed 62 */ 63 var $checkbox = document.querySelector('#gaoop_checkbox'); 64 if ($checkbox) { 65 $checkbox.addEventListener('change', function () { 66 if (this.checked) { 67 document.cookie = 'gaoop_hide_info=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; SameSite=Strict; path=/'; 68 69 if (hide_after_close) { 70 $gaoop.classList.add('gaoop-hidden'); 71 } 72 } else { 73 document.cookie = 'gaoop_hide_info=false; expires=Thu, 31 Dec 2000 23:59:59 UTC; SameSite=Strict; path=/'; 74 $gaoop.classList.remove('gaoop-hidden'); 75 } 76 }); 77 } 78})();
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.