Änderungen von Dokument FORMCYCLE Hilfe


Von Version 13.25
bearbeitet von gru
am 08.09.2025, 13:26
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 13.20
bearbeitet von gru
am 08.09.2025, 13:18
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -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  
... ... @@ -983,8 +983,7 @@
983 983  }
984 984  
985 985  function checkCookie() {
986 - let dialogv8 = getCookie("dialogv8");
987 - console.log("cookie got",dialogv8);
985 + let user = getCookie("dialogv8");
988 988   if (dialogv8 != "") {
989 989   console.log("Cookie found " + dialogv8);
990 990   return false;
... ... @@ -996,10 +996,10 @@
996 996   window.onload = function() {
997 997   let cookieValue = checkCookie();
998 998   console.log("checkCookie",cookieValue);
999 - if (cookieValue == null) {
997 + if (0 && cookieValue != null) {
998 + console.log("cookieValue",cookieValue);
999 + } else {
1000 1000   document.getElementById("overlayv8").style.display = "flex";
1001 - } else if (cookieValue == "true") {
1002 - window.location.href = "https://help8.formcycle.eu/support/home";
1003 1003   }
1004 1004   };
1005 1005  
... ... @@ -1006,7 +1006,7 @@
1006 1006   // Redirect on continue
1007 1007   document.getElementById("continueBtn").onclick = function() {
1008 1008   window.location.href = "https://help8.formcycle.eu/support/home";
1009 - if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1007 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1010 1010   setCookie("dialogv8", "true", 90);
1011 1011   }
1012 1012   };
... ... @@ -1014,7 +1014,8 @@
1014 1014   // Close overlay on abort
1015 1015   document.getElementById("abortBtn").onclick = function() {
1016 1016   document.getElementById("overlayv8").style.display = "none";
1017 - if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1015 + console.log("debug cb",$('[INPUT name="dialogv8cb"]').val());
1016 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1018 1018   setCookie("dialogv8", "false", 90);
1019 1019   }
1020 1020   };