1function setCookie(cname, cvalue, exdays) { 2 var d = new Date(); 3 var maxage = "max-age=" + 24 * 60 * 60 * 365; 4 document.cookie = cname + "=setwcm" + cvalue + "ts" + Date.now() + ";" + maxage + ";path=/"; 5} 6 7function getCookie(cname) { 8 var name = cname + "="; 9 var ca = document.cookie.split(';'); 10 for (var i = 0; i < ca.length; i++) { 11 var c = ca[i]; 12 while (c.charAt(0) == ' ') { 13 c = c.substring(1); 14 } 15 if (c.indexOf(name) == 0) { 16 return c.substring(name.length, c.length); 17 } 18 } 19 return ""; 20} 21 22 23function reloadCookies() 24{ 25 history.go(0); 26} 27 28function loadCookies() 29{ 30 var res = getCookie("waconcookiemanagement"); 31 resc = res.split("ts"); 32 wert = resc[0]; 33 params = []; 34 if (wert == "setwcmmax") { 35 $("cookiecat").addClass('cookie-on'); 36 $("cookiecat").removeClass('cookie-off'); 37 params['max'] =1; 38 } else { 39 res = wert.split("c"); 40 jQuery.each(res, function (i, val) { 41 if (val == 'max') { 42 } else { 43 $(".cookie-id.cookie" + val).addClass('cookie-on'); 44 $(".cookie-id.cookie" + val).removeClass('cookie-off'); 45 params[val] =1; 46 } 47 }); 48 } 49} 50$(document).ready(function () { 51 $('.waconcookiemanagement').prependTo("body"); 52 loadCookies(); 53 if (wert == "") { 54 if (!$(".waconcookiemanagement").hasClass("firsthidden")) { 55 $(".waconcookiemanagement").show(); 56 $(".waconcookiemanagement .cookie-accept").focus(); 57 $(".cookieclose").hide(); 58 } 59 } 60 $(".cookie-set-direct").click(function (event) { 61 event.preventDefault(); 62 var res = getCookie("waconcookiemanagement"); 63 resc = res.split("ts"); 64 wert = resc[0]; 65 params = []; 66 res = wert.split("c"); 67 var id = $(this).attr('data-id'); 68 wert += "c" + id; 69 setCookie("waconcookiemanagement", wert, Date.now()); 70 reloadCookies(); 71 }); 72 73 $(".cookie-set").click(function (event) { 74 event.preventDefault(); 75 $(".waconcookiemanagement").show(); 76 $(".waconcookiemanagement .cookie-accept").focus(); 77 if ($(this).hasClass('cookiecontent')) { 78 $(".box-cookie-management").show(); 79 $(".box-cookie-management").focus(); 80 $(".cookie-fix").show(); 81 var varGes = $('#CookieBox').height(); 82 var varFix = $('.cookie-fix').height(); 83 var neuHeight = varGes - varFix - 100; 84 if (neuHeight >= 300) { 85 $('.box-cookie-management').height(neuHeight); 86 } 87 if (neuHeight < 300) { 88 $('#CookieBox').css("overflow", "auto"); 89 } 90 $(".intro").hide(); 91 var cid = $(this).attr("data-id"); 92 var child= $(".waconcookiemanagement .box-cookie-management").find('.cookieinfo-' + cid); 93 child.parent().show(); 94 child.parent().prev().hide(); 95 child.find(".cookie-id").removeClass('cookie-off').addClass('cookie-on').attr('aria-checked',true); 96 } 97 }); 98 99 $(".cookie-set").keypress(function (event) { 100 if (event.key === "Enter") { 101 event.preventDefault(); 102 $(this).click(); 103 } 104 }); 105 106 $(".cookie-save").click(function (event) { 107 event.preventDefault(); 108 wert = ""; 109 110 $('.cookie-info').each(function () { 111 if ($(this).find(".cookie-id").hasClass("cookie-on")) { 112 var className = $(this).attr('class'); 113 var classarray = className.split("-"); 114 115 wert += "c" + classarray['2']; 116 } 117 }); 118 if (wert == "") { 119 wert = "min"; 120 } 121 setCookie("waconcookiemanagement", wert, Date.now()); 122 reloadCookies(); 123 124 }); 125 126 $(".cookie-save").keypress(function (event) { 127 if (event.key === "Enter") { 128 event.preventDefault(); 129 // Trigger the button element with a click 130 $(this).click(); 131 } 132 }); 133 134 $(".cookie-accept").click(function (event) { 135 event.preventDefault();
136 setCookie("waconcookiemanagement", "max", Date.now()); 137 reloadCookies(); 138 }); 139 140 $(".cookie-accept").keypress(function (event) { 141 if (event.key === "Enter") { 142 event.preventDefault(); 143 // Trigger the button element with a click 144 $(this).click(); 145 } 146 }); 147 148 $(".cookie-refuse").click(function (event) { 149 event.preventDefault(); 150 setCookie("waconcookiemanagement", "min", Date.now()); 151 reloadCookies(); 152 }); 153 154 $(".cookie-refuse").keypress(function (event) { 155 if (event.key === "Enter") { 156 event.preventDefault(); 157 // Trigger the button element with a click 158 $(this).click(); 159 } 160 }); 161 162 $(".cookie-management").click(function (event) { 163 event.preventDefault(); 164 $(".box-cookie-management").show(); 165 $(".cookieclose").focus(); 166 167 $(".cookie-fix").show(); 168 var varGes = $('#CookieBox').height(); 169 var varFix = $('.cookie-fix').height(); 170 var neuHeight = varGes - varFix - 100; 171 if (neuHeight >= 300) { 172 $('.box-cookie-management').height(neuHeight); 173 } 174 if (neuHeight < 300) { 175 $('#CookieBox').css("overflow", "auto"); 176 } 177 $(".intro").hide(); 178 }); 179 180 $(".cookie-management").keypress(function (event) { 181 if (event.key === "Enter") { 182 event.preventDefault(); 183 // Trigger the button element with a click 184 $(this).click(); 185 } 186 }); 187 188 $(".cookieback").click(function (event) { 189 event.preventDefault(); 190 $(".box-cookie-management").hide(); 191 $(".cookie-fix").hide(); 192 193 $(".intro").show(); 194 $(".intro").focus(); 195 }); 196 197 $(".cookieback").keypress(function (event) { 198 if (event.key === "Enter") { 199 event.preventDefault(); 200 // Trigger the button element with a click 201 $(this).click(); 202 } 203 }); 204 205 $(".cookiecat").click(function (event) { 206 event.preventDefault(); 207 //alert($(this).attr('class')); 208 if($(this).hasClass('cookie-off')) $(this).parent().find(".cookie-off").removeClass('cookie-off').addClass('cookie-on').attr('aria-checked',true); 209 else $(this).parent().find(".cookie-on").removeClass('cookie-on').addClass('cookie-off').attr('aria-checked',fal
209se); 210 }); 211 212 $(".cookiecat").keypress(function (event) { 213 if (event.key === "Enter") { 214 event.preventDefault(); 215 // Trigger the button element with a click 216 $(this).click(); 217 } 218 }); 219 220 $(".cookie-info .cookie-id").click(function (event) { 221 event.preventDefault(); 222 if($(this).hasClass('cookie-off')) { 223 $(this).removeClass('cookie-off').addClass('cookie-on').attr('aria-checked',true); 224 $(this).parent().parent().parent().find(".cookiecat").removeClass('cookie-off').addClass('cookie-on').attr('aria-checked',true); 225 } 226 else { 227 $(this).removeClass('cookie-on').addClass('cookie-off').attr('aria-checked',false); 228 var children = $(this).parent().parent().children(); 229 var cookieon = 0; 230 for (var i = 0; i < children.length; i++) { 231 if (children.eq(i).find(".cookie-id").hasClass('cookie-on')) { 232 cookieon += 1; 233 } 234 } 235 if (cookieon == 0) { 236 $(this).parent().parent().parent().find(".cookiecat").removeClass('cookie-on').addClass('cookie-off').attr('aria-checked',fal
236se); 237 } 238 } 239 }); 240 241 $(".cookie-info .cookie-id").keypress(function (event) { 242 if (event.key === "Enter") { 243 event.preventDefault(); 244 // Trigger the button element with a click 245 $(this).click(); 246 } 247 }); 248 249 250 251 $(".cookie-acc").click(function (event) { 252 event.preventDefault(); 253 if($(this).hasClass('info-show')){ 254 $(this).next().show(); 255 $(this).removeClass('info-show').addClass('info-hide'); 256 $(this).attr('aria-expanded', true); 257 $(this).html($(this).attr('data-hide') + '<span class="arrow up"></span>'); 258 } 259 else{ 260 $(this).next().hide(); 261 $(this).removeClass('info-hide').addClass('info-show'); 262 $(this).attr('aria-expanded', false); 263 $(this).html($(this).attr('data-show') + '<span class="arrow down"></span>'); 264 } 265 }); 266 267 $(".cookie-acc").keypress(function (event) { 268 if (event.key === "Enter") { 269 event.preventDefault(); 270 // Trigger the button element with a click 271 $(this).click(); 272 } 273 }); 274 275 276 277 $(".cookieclose").click(function () { 278 $(".waconcookiemanagement").hide(); 279 }); 280 281 $(".cookieclose").keypress(function (event) { 282 if (event.key === "Enter") { 283 event.preventDefault(); 284 // Trigger the button element with a click 285 $(this).click(); 286 } 287 }); 288 289 var $menu = $('#CookieBox'); 290 $(".waconcookiemanagement").on('click', function (e) { 291 var wert = getCookie("waconcookiemanagement"); 292 if (wert != "") { 293 // If element is opened and click target is outside it, hide it 294 if ($menu.is(':visible') && !$menu.is(e.target) && !$menu.has(e.target).length) { 295 $(".waconcookiemanagement").hide(); 296 } 297 } 298 }); 299 300});
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.