| ... |
... |
@@ -963,6 +963,7 @@ |
| 963 |
963 |
const d = new Date(); |
| 964 |
964 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); |
| 965 |
965 |
let expires = "expires="+d.toUTCString(); |
|
966 |
+ console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/"); |
| 966 |
966 |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; |
| 967 |
967 |
} |
| 968 |
968 |
|
| ... |
... |
@@ -986,7 +986,11 @@ |
| 986 |
986 |
console.log("cookie got",dialogv8); |
| 987 |
987 |
if (dialogv8 != "") { |
| 988 |
988 |
console.log("Cookie found " + dialogv8); |
| 989 |
|
- return false; |
|
990 |
+ if (dialogv8 == "true") { |
|
991 |
+ return true; |
|
992 |
+ } else { |
|
993 |
+ return false; |
|
994 |
+ } |
| 990 |
990 |
} |
| 991 |
991 |
return null; |
| 992 |
992 |
} |
| ... |
... |
@@ -995,10 +995,10 @@ |
| 995 |
995 |
window.onload = function() { |
| 996 |
996 |
let cookieValue = checkCookie(); |
| 997 |
997 |
console.log("checkCookie",cookieValue); |
| 998 |
|
- if (0 && cookieValue != null) { |
| 999 |
|
- console.log("cookieValue",cookieValue); |
| 1000 |
|
- } else { |
|
1003 |
+ if (cookieValue == null) { |
| 1001 |
1001 |
document.getElementById("overlayv8").style.display = "flex"; |
|
1005 |
+ } else if (cookieValue == true) { |
|
1006 |
+ window.location.href = "https://help8.formcycle.eu/support/home"; |
| 1002 |
1002 |
} |
| 1003 |
1003 |
}; |
| 1004 |
1004 |
|