Compare commits
1 commit
master
...
anfangsunf
Author | SHA1 | Date | |
---|---|---|---|
8698cc183c |
1 changed files with 10 additions and 2 deletions
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue