The German law I need cookie banners. #5771

Closed
opened 2025-11-02 06:35:25 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @thorstenkloehn on GitHub (Jul 23, 2020).

  • Hello Github teams.

  • The German law I need cookie banners.

  • I created it.

  • When I click Accept everything.

  • Here is the example page

  • https://code.webprogrammierung.org

  • Here is the code: file header.tmpl

<script>
var x = document.cookie;
var ergebnis = x.split(";")
var i;

function start() {
    var start = false;
    for (i = 0; i < ergebnis.length; i++) {
        ergebnis[i];
        if (ergebnis[i].trim() == "cookie=ja")
            start = true;
    }
    return start;
}

if (start() == false ) {

    document.writeln("<h2>Diese Website verwendet Cookies       <button onclick='Aktezipertalles()'>Akzeptiere alles</b>}

function Aktezipertalles() {

    document.cookie="cookie=ja";
    window.location.href = Document.referrer;
}
Originally created by @thorstenkloehn on GitHub (Jul 23, 2020). * Hello Github teams. * The German law I need cookie banners. * I created it. * When I click Accept everything. * Here is the example page * https://code.webprogrammierung.org * Here is the code: file header.tmpl ``` <script> var x = document.cookie; var ergebnis = x.split(";") var i; function start() { var start = false; for (i = 0; i < ergebnis.length; i++) { ergebnis[i]; if (ergebnis[i].trim() == "cookie=ja") start = true; } return start; } if (start() == false ) { document.writeln("<h2>Diese Website verwendet Cookies <button onclick='Aktezipertalles()'>Akzeptiere alles</b>} function Aktezipertalles() { document.cookie="cookie=ja"; window.location.href = Document.referrer; }
Author
Owner

@lunny commented on GitHub (Jul 24, 2020):

The site could not be opened.

@lunny commented on GitHub (Jul 24, 2020): The site could not be opened.
Author
Owner

@mrsdizzie commented on GitHub (Sep 7, 2020):

Closing for lack of information/question/broken link.

@mrsdizzie commented on GitHub (Sep 7, 2020): Closing for lack of information/question/broken link.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5771