Änderungen von Dokument FORMCYCLE Hilfe


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

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -905,13 +905,17 @@
905 905   border-top: 1px solid black;
906 906   }
907 907  
908 - .dialog-buttons DIV {
909 - padding: 10px 20px;
908 + .dialogv8-buttons DIV {
909 + padding: 7px 9px;
910 910   font-size: 15px;
911 911   border: none;
912 912   border-radius: 15px;
913 913   cursor: pointer;
914 914   }
915 + .dialogv8-buttons DIV:hover {
916 + opacity: 0.8;
917 + cursor: pointer;
918 + }
915 915  
916 916   .continue-button {
917 917   background-color: #617496;
... ... @@ -942,7 +942,7 @@
942 942  
943 943  <div id="overlayv8" style="display: none;">
944 944   <div id="dialogv8">
945 - <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version weitergeleitet werden?</h2>
949 + <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version wechseln?</h2>
946 946   <div>
947 947   <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true">
948 948   <label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br>
... ... @@ -959,6 +959,7 @@
959 959   const d = new Date();
960 960   d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
961 961   let expires = "expires="+d.toUTCString();
966 + console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/");
962 962   document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
963 963  }
964 964  
... ... @@ -978,7 +978,8 @@
978 978  }
979 979  
980 980  function checkCookie() {
981 - let user = getCookie("dialogv8");
986 + let dialogv8 = getCookie("dialogv8");
987 + console.log("cookie got",dialogv8);
982 982   if (dialogv8 != "") {
983 983   console.log("Cookie found " + dialogv8);
984 984   return false;
... ... @@ -990,10 +990,10 @@
990 990   window.onload = function() {
991 991   let cookieValue = checkCookie();
992 992   console.log("checkCookie",cookieValue);
993 - if (0 && cookieValue != null) {
994 - console.log("cookieValue",cookieValue);
995 - } else {
999 + if (cookieValue == null) {
996 996   document.getElementById("overlayv8").style.display = "flex";
1001 + } else if (cookieValue == "true") {
1002 + window.location.href = "https://help8.formcycle.eu/support/home";
997 997   }
998 998   };
999 999  
... ... @@ -1000,7 +1000,7 @@
1000 1000   // Redirect on continue
1001 1001   document.getElementById("continueBtn").onclick = function() {
1002 1002   window.location.href = "https://help8.formcycle.eu/support/home";
1003 - if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1009 + if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1004 1004   setCookie("dialogv8", "true", 90);
1005 1005   }
1006 1006   };
... ... @@ -1008,7 +1008,7 @@
1008 1008   // Close overlay on abort
1009 1009   document.getElementById("abortBtn").onclick = function() {
1010 1010   document.getElementById("overlayv8").style.display = "none";
1011 - if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1017 + if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1012 1012   setCookie("dialogv8", "false", 90);
1013 1013   }
1014 1014   };