1function setCookie(cname, cvalue, exdays) { 2 var d = new Date(); 3 var maxage = "max-age=" + 24 * 60 * 60 * 365; 4 5 document.cookie = cname + "=setwcm" + cvalue + "ts" + Date.now() + ";" + maxage + ";path=/"; 6} 7 8function getCookie(cname) { 9 var name = cname + "="; 10 var ca = document.cookie.split(';'); 11 for (var i = 0; i < ca.length; i++) { 12 var c = ca[i]; 13 while (c.charAt(0) == ' ') { 14 c = c.substring(1); 15 } 16 if (c.indexOf(name) == 0) { 17 return c.substring(name.length, c.length); 18 } 19 } 20 return ""; 21} 22 23$(document).ready(function () { 24 $('.waconcookiemanagement').prependTo("body"); 25 var res = getCookie("waconcookiemanagement"); 26 resc = res.split("ts"); 27 wert = resc[0]; 28 if (wert != "") { 29 if (wert == "setwcmmax") { 30 $(".cookie-on").show(); 31 $(".cookie-off").hide(); 32 } else { 33 res = wert.split("c"); 34 jQuery.each(res, function (i, val) { 35 if (val == 'max') { 36 } else { 37 $(".cookie-on.cookie" + val).show(); 38 $(".cookie-off.cookie" + val).hide(); 39 } 40 }); 41 } 42 } else { 43 if (!$(".waconcookiemanagement").hasClass("firsthidden")) { 44 $(".waconcookiemanagement").show(); 45 $(".waconcookiemanagement").focus(); 46 $(".cookieclose").hide(); 47 } 48 } 49 50 $(".cookie-set").click(function (event) { 51 event.preventDefault(); 52 var res = getCookie("waconcookiemanagement"); 53 resc = res.split("ts"); 54 wert = resc[0]; 55 if (wert != "") { 56 if (wert == "max") { 57 $(".cookie-on").show(); 58 $(".cookie-off").hide(); 59 } else { 60 res = wert.split("c"); 61 jQuery.each(res, function (i, val) { 62 $(".cookie-on.cookie" + val).show(); 63 $(".cookie-off.cookie" + val).hide(); 64 }); 65 } 66 } 67 $(".waconcookiemanagement").show(); 68 $(".waconcookiemanagement").focus(); 69 if ($(this).hasClass('cookiecontent')) { 70 $(".box-cookie-management").show(); 71 $(".box-cookie-management").focus(); 72 $(".cookie-fix").show(); 73 var varGes = $('#CookieBox').height(); 74 var varFix = $('.cookie-fix').height(); 75 var neuHeight = varGes - varFix - 100; 76 if (neuHeight >= 300) { 77 $('.box-cookie-management').height(neuHeight); 78 } 79 if (neuHeight < 300) { 80 $('#CookieBox').css("overflow", "auto"); 81 } 82 83 $(".intro").hide(); 84 var children = $(".waconcookiemanagement .box-cookie-management").find('.cookie-info'); 85 for (var i = 0; i < children.length; i++) { 86 if ($(this).hasClass("cookieuid-" + i)) { 87 $(".cookieinfo-" + i).parent().show(); 88 $(".cookieinfo-" + i).parent().prev().hide(); 89 $(".cookie-on.cookie" + i).show(); 90 $(".cookie-off.cookie" + i).hide(); 91 } 92 } 93 } 94 }); 95 96 $(".cookie-set").keypress(function (event) { 97 if (event.key === "Enter") { 98 event.preventDefault(); 99 var res = getCookie("waconcookiemanagement"); 100 resc = res.split("ts"); 101 wert = resc[0]; 102 if (wert != "") { 103 if (wert == "max") { 104 $(".cookie-on").show(); 105 $(".cookie-off").hide(); 106 } else { 107 res = wert.split("c"); 108 jQuery.each(res, function (i, val) { 109 $(".cookie-on.cookie" + val).show(); 110 $(".cookie-off.cookie" + val).hide(); 111 }); 112 } 113 } 114 $(".waconcookiemanagement").show(); 115 116 $(".cookie-accept").focus(); 117 if ($(this).hasClass('cookiecontent')) { 118 $(".box-cookie-management").show(); 119 $(".box-cookie-management").focus(); 120 $(".cookie-fix").show(); 121 var varGes = $('#CookieBox').height(); 122 var varFix = $('.cookie-fix').height(); 123 var neuHeight = varGes - varFix - 100; 124 125 if (neuHeight >= 300) { 126 $('.box-cookie-management').height(neuHeight); 127 } 128 if (neuHeight < 300) { 129 $('#CookieBox').css("overflow", "auto"); 130 } 131 132 $(".intro").hide(); 133 var children = $(".waconcookiemanagement .box-cookie-management").find('.cookie-info'); 134 for (var i = 0; i < children.length; i++) { 135 if ($(this).hasClass("cookieuid-" + i)) { 136 $(".cookieinfo-" + i).parent().show(); 137 $(".cookieinfo-" + i).parent().prev().hide(); 138 $(".cookie-on.cookie" + i).show(); 139 $(".cookie-off.cookie" + i).hide(); 140 } 141 } 142 } 143 } 144 }); 145 146 $(".cookie-save").click(function (event) { 147 event.preventDefault(); 148 wert = ""; 149 150 $('.cookie-info').each(function () { 151 if ($(this).find(".cookie-on").css("display") == "block") { 152 var className = $(this).attr('class'); 153 var classarray = className.split("-"); 154 wert += "c" + classarray['2']; 155 } 156 }); 157 if (wert == "") { 158 wert = "min"; 159 }
160 setCookie("waconcookiemanagement", wert, Date.now()); 161 $(".waconcookiemanagement").hide(); 162 location.reload(); 163 }); 164 165 $(".cookie-save").keypress(function (event) { 166 if (event.key === "Enter") { 167 event.preventDefault(); 168 // Trigger the button element with a click 169 $(this).click(); 170 } 171 }); 172 173 $(".cookie-accept").click(function (event) { 174 event.preventDefault(); 175 setCookie("waconcookiemanagement", "max", Date.now()); 176 $(".waconcookiemanagement").hide(); 177 location.reload(); 178 }); 179 180 $(".cookie-accept").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 $(".cookie-refuse").click(function (event) { 189 event.preventDefault(); 190 setCookie("waconcookiemanagement", "min", Date.now()); 191 $(".waconcookiemanagement").hide(); 192 location.reload(); 193 }); 194 195 $(".cookie-refuse").keypress(function (event) { 196 if (event.key === "Enter") { 197 event.preventDefault(); 198 // Trigger the button element with a click 199 $(this).click(); 200 } 201 }); 202 203 $(".cookie-management").click(function () { 204 $(".box-cookie-management").show(); 205 $(".box-cookie-management").focus(); 206 $(".cookie-fix").show(); 207 var varGes = $('#CookieBox').height(); 208 var varFix = $('.cookie-fix').height(); 209 var neuHeight = varGes - varFix - 100; 210 if (neuHeight >= 300) { 211 $('.box-cookie-management').height(neuHeight); 212 } 213 if (neuHeight < 300) { 214 $('#CookieBox').css("overflow", "auto"); 215 } 216 $(".intro").hide(); 217 }); 218 219 $(".cookie-management").keypress(function (event) { 220 if (event.key === "Enter") { 221 event.preventDefault(); 222 // Trigger the button element with a click 223 $(this).click(); 224 } 225 }); 226 227 $(".cookieback").click(function (event) { 228 event.preventDefault(); 229 $(".box-cookie-management").hide(); 230 $(".cookie-fix").hide(); 231 232 $(".intro").show(); 233 $(".intro").focus(); 234 }); 235 236 $(".cookieback").keypress(function (event) { 237 if (event.key === "Enter") { 238 event.preventDefault(); 239 // Trigger the button element with a click 240 $(this).click(); 241 } 242 }); 243 244 $(".show-n").click(function (event) { 245 event.preventDefault(); 246 $(".box-cookie-management").show(); 247 $(".cookie-n").next().show(); 248 $(".cookie-n").hide(); 249 $(".intro").hide(); 250 }); 251 252 $(".show-n").keypress(function (event) { 253 if (event.key === "Enter") { 254 event.preventDefault(); 255 // Trigger the button element with a click 256 $(this).click(); 257 } 258 }); 259 260 $(".show-m").click(function (event) { 261 event.preventDefault(); 262 $(".box-cookie-management").show(); 263 $(".cookie-m").next().show(); 264 $(".cookie-m").hide(); 265 $(".intro").hide(); 266 }); 267 268 $(".show-m").keypress(function (event) { 269 if (event.key === "Enter") { 270 event.preventDefault(); 271 // Trigger the button element with a click 272 $(this).click(); 273 } 274 }); 275 276 $(".show-s").click(function (event) { 277 event.preventDefault(); 278 $(".box-cookie-management").show(); 279 $(".cookie-s").next().show(); 280 $(".cookie-s").hide(); 281 $(".intro").hide(); 282 }); 283 284 $(".show-s").keypress(function (event) { 285 if (event.key === "Enter") { 286 event.preventDefault(); 287 // Trigger the button element with a click 288 $(this).click(); 289 } 290 }); 291 292 $(".show-e").click(function (event) { 293 event.preventDefault(); 294 $(".box-cookie-management").show(); 295 $(".cookie-e").next().show(); 296 $(".cookie-e").hide(); 297 $(".intro").hide(); 298 }); 299 300 $(".show-e").keypress(function (event) { 301 if (event.key === "Enter") { 302 event.preventDefault(); 303 // Trigger the button element with a click 304 $(this).click(); 305 } 306 }); 307 308 $(".cookie-on.cookiecat").click(function (event) { 309 event.preventDefault(); 310 $(this).parent().find(".cookie-off").show(); 311 $(this).parent().find(".cookie-on").hide(); 312 }); 313 314 $(".cookie-on.cookiecat").keypress(function (event) { 315 if (event.key === "Enter") { 316 event.preventDefault(); 317 // Trigger the button element with a click 318 $(this).click(); 319 } 320 }); 321 322 $(".cookie-off.cookiecat").click(function (event) { 323 event.preventDefault(); 324 $(this).parent().find(".cookie-on").show(); 325 $(this).parent().find(".cookie-off").hide(); 326 }); 327 328 $(".cookie-off.cookiecat").keypress(function (event) { 329 if (event.key === "Enter") { 330 event.preventDefault(); 331 // Trigger the button element with a click 332 $(this).click(); 333 } 334 }); 335 336 $(".cookie-info .cookie-on").click(function (event) { 337 event.preventDefault(); 338 $(this).prev().show(); 339 $(this).hide(); 340 var children = $(this).parent().parent().children(); 341 var cookieoff = 0; 342 for (var i = 0; i < children.length; i++) { 343 if (children.eq(i).find(".cookie-off").css("display") == "none") { 344 cookieoff += 1; 345 } 346 } 347 if (cookieoff == 0) { 348 $(this).parent().parent().parent().find(".cookie-off.cookiecat").show(); 349 $(this).parent().parent().parent().find(".cookie-on.cookiecat").hide(); 350 } 351 }); 352 353 $(".cookie-info .cookie-on").keypress(function (event) { 354 if (event.key === "Enter") { 355 event.preventDefault(); 356 // Trigger the button element with a click 357 $(this).click(); 358 } 359 }); 360 361 $(".cookie-info .cookie-off").click(function (event) { 362 event.preventDefault(); 363 $(this).next().show(); 364 $(this).hide(); 365 $(this).parent().parent().parent().find(".cookie-off.cookiecat").hide(); 366 $(this).parent().parent().parent().find(".cookie-on.cookiecat").show(); 367 }); 368 369 $(".cookie-info .cookie-off").keypress(function (event) { 370 if (event.key === "Enter") { 371 event.preventDefault(); 372 // Trigger the button element with a click 373 $(this).click(); 374 } 375 }); 376 377 $(".info-show").click(function (event) { 378 event.preventDefault(); 379 $(this).next().show(); 380 $(this).hide(); 381 }); 382 383 $(".info-show").keypress(function (event) { 384 if (event.key === "Enter") { 385 event.preventDefault(); 386 // Trigger the button element with a click 387 $(this).click(); 388 } 389 }); 390 391 $(".info-hide").click(function (event) { 392 event.preventDefault(); 393 $(this).parent().hide(); 394 $(this).parent().prev().show(); 395 }); 396 397 $(".info-hide").keypress(function (event) { 398 if (event.key === "Enter") { 399 event.preventDefault(); 400 // Trigger the button element with a click 401 $(this).click(); 402 } 403 }); 404 405 $(".cookieclose").click(function () { 406 $(".waconcookiemanagement").hide(); 407 }); 408 409 $(".cookieclose").keypress(function (event) { 410 if (event.key === "Enter") { 411 event.preventDefault(); 412 // Trigger the button element with a click 413 $(this).click(); 414 } 415 }); 416 417 var $menu = $('#CookieBox'); 418 $(".waconcookiemanagement").on('click', function (e) { 419 var wert = getCookie("waconcookiemanagement"); 420 if (wert != "") { 421 // If element is opened and click target is outside it, hide it 422 if ($menu.is(':visible') && !$menu.is(e.target) && !$menu.has(e.target).length) { 423 $(".waconcookiemanagement").hide(); 424 } 425 } 426 }); 427 428});
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.