diff --git a/fuenfknoepfe.js b/fuenfknoepfe.js index 92611fa..f7574f1 100644 --- a/fuenfknoepfe.js +++ b/fuenfknoepfe.js @@ -7,9 +7,16 @@ function click_handler(ziel) { } else { entferneKeks(); } + geheNachKeks(ziel); return false; } +function geheNachKeks(ziel) { + var echtesZiel = "https://im.c-base.org" + keks; + console.log("gegeNach: " + echtesZiel) + window.location.replace(echtesZiel); +} + function setzeKeks(ziel) { console.log("setzen"); wirklichsetzeKeks(ziel, 30); @@ -31,9 +38,10 @@ function allewegefuehrennachKeks() { var keks = getCookie("ziel"); if (keks != "") { setzeKeks(keks); - console.log("Do redirect here: " + keks); + geheNachKeks(keks) + // console.log("Do redirect here: " + keks); // Simulate an HTTP redirect: - // window.location.replace("http://www.w3schools.com"); + //window.location.replace("https://im.c-base.org" + keks); } else { console.log("Ohne Keks keine Äktschn."); }