PageSourceSearch

https://stadtplandienst.de/js/cookies.js

js stadtplandienst.de collected 2026-10-02 05:32:46 UTC 627 bytes, 22 lines download raw bytes

1function setCookie(cname,cvalue,exdays) {
2  const d = new Date();
3  d.setTime(d.getTime() + (exdays*86400000));
4  let expires = "expires=" + d.toUTCString();
5  document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/; SameSite=lax";
6};
7
8function getCookie(cname) {
9  let name = cname + "=";
10  let decodedCookie = decodeURIComponent(document.cookie);
11  let ca = decodedCookie.split(';');
12  for(let i = 0; i < ca.length; i++) {
13    let c = ca[i];
14    while (c.charAt(0) == ' ') {
15      c = c.substring(1);
16    }
17    if (c.indexOf(name) == 0) {
18      return c.substring(name.length, c.length);
19    }
20  }
21  return "";
22};

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.