Änderungen von Dokument FORMCYCLE Hilfe


Von Version 13.21
bearbeitet von gru
am 08.09.2025, 13:20
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 13.26
bearbeitet von gru
am 08.09.2025, 13:27
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -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  
... ... @@ -982,7 +982,8 @@
982 982  }
983 983  
984 984  function checkCookie() {
985 - let user = getCookie("dialogv8");
986 + let dialogv8 = getCookie("dialogv8");
987 + console.log("cookie got",dialogv8);
986 986   if (dialogv8 != "") {
987 987   console.log("Cookie found " + dialogv8);
988 988   return false;
... ... @@ -994,10 +994,10 @@
994 994   window.onload = function() {
995 995   let cookieValue = checkCookie();
996 996   console.log("checkCookie",cookieValue);
997 - if (0 && cookieValue != null) {
998 - console.log("cookieValue",cookieValue);
999 - } else {
999 + if (cookieValue == null) {
1000 1000   document.getElementById("overlayv8").style.display = "flex";
1001 + } else if (cookieValue == true) {
1002 + window.location.href = "https://help8.formcycle.eu/support/home";
1001 1001   }
1002 1002   };
1003 1003