... |
... |
@@ -963,7 +963,6 @@ |
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=/"); |
967 |
967 |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; |
968 |
968 |
} |
969 |
969 |
|
... |
... |
@@ -987,11 +987,7 @@ |
987 |
987 |
console.log("cookie got",dialogv8); |
988 |
988 |
if (dialogv8 != "") { |
989 |
989 |
console.log("Cookie found " + dialogv8); |
990 |
|
- if (dialogv8 == "true") { |
991 |
|
- return true; |
992 |
|
- } else { |
993 |
|
- return false; |
994 |
|
- } |
|
989 |
+ return false; |
995 |
995 |
} |
996 |
996 |
return null; |
997 |
997 |
} |
... |
... |
@@ -1000,10 +1000,10 @@ |
1000 |
1000 |
window.onload = function() { |
1001 |
1001 |
let cookieValue = checkCookie(); |
1002 |
1002 |
console.log("checkCookie",cookieValue); |
1003 |
|
- if (cookieValue == null) { |
|
998 |
+ if (0 && cookieValue != null) { |
|
999 |
+ console.log("cookieValue",cookieValue); |
|
1000 |
+ } else { |
1004 |
1004 |
document.getElementById("overlayv8").style.display = "flex"; |
1005 |
|
- } else if (cookieValue == true) { |
1006 |
|
- window.location.href = "https://help8.formcycle.eu/support/home"; |
1007 |
1007 |
} |
1008 |
1008 |
}; |
1009 |
1009 |
|