Änderungen von Dokument FORMCYCLE Hilfe


Von Version 13.14
bearbeitet von gru
am 08.09.2025, 13:11
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 13.27
bearbeitet von gru
am 08.09.2025, 13:29
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

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