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 {
|
} else {
|
||||||
entferneKeks();
|
entferneKeks();
|
||||||
}
|
}
|
||||||
|
geheNachKeks(ziel);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function geheNachKeks(ziel) {
|
||||||
|
var echtesZiel = "https://im.c-base.org" + keks;
|
||||||
|
console.log("gegeNach: " + echtesZiel)
|
||||||
|
window.location.replace(echtesZiel);
|
||||||
|
}
|
||||||
|
|
||||||
function setzeKeks(ziel) {
|
function setzeKeks(ziel) {
|
||||||
console.log("setzen");
|
console.log("setzen");
|
||||||
wirklichsetzeKeks(ziel, 30);
|
wirklichsetzeKeks(ziel, 30);
|
||||||
|
@ -31,9 +38,10 @@ function allewegefuehrennachKeks() {
|
||||||
var keks = getCookie("ziel");
|
var keks = getCookie("ziel");
|
||||||
if (keks != "") {
|
if (keks != "") {
|
||||||
setzeKeks(keks);
|
setzeKeks(keks);
|
||||||
console.log("Do redirect here: " + keks);
|
geheNachKeks(keks)
|
||||||
|
// console.log("Do redirect here: " + keks);
|
||||||
// Simulate an HTTP redirect:
|
// Simulate an HTTP redirect:
|
||||||
// window.location.replace("http://www.w3schools.com");
|
//window.location.replace("https://im.c-base.org" + keks);
|
||||||
} else {
|
} else {
|
||||||
console.log("Ohne Keks keine Äktschn.");
|
console.log("Ohne Keks keine Äktschn.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue