Änderungen von Dokument FORMCYCLE Hilfe


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

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -875,7 +875,6 @@
875 875  
876 876   /* Dialog box */
877 877   #dialogv8 {
878 - user-select: none;
879 879   background-color: white;
880 880   padding: 20px;
881 881   border-radius: 25px;
... ... @@ -905,17 +905,13 @@
905 905   border-top: 1px solid black;
906 906   }
907 907  
908 - .dialogv8-buttons DIV {
909 - padding: 7px 9px;
907 + .dialog-buttons DIV {
908 + padding: 10px 20px;
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 - }
919 919  
920 920   .continue-button {
921 921   background-color: #617496;
... ... @@ -946,7 +946,7 @@
946 946  
947 947  <div id="overlayv8" style="display: none;">
948 948   <div id="dialogv8">
949 - <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version wechseln?</h2>
944 + <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version weitergeleitet werden?</h2>
950 950   <div>
951 951   <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true">
952 952   <label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br>
... ... @@ -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,15 +983,10 @@
983 983  }
984 984  
985 985  function checkCookie() {
986 - let dialogv8 = getCookie("dialogv8");
987 - console.log("cookie got",dialogv8);
980 + let user = getCookie("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 - }
983 + 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) {
992 + if (0 && cookieValue != null) {
993 + console.log("cookieValue",cookieValue);
994 + } 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  
... ... @@ -1010,7 +1010,7 @@
1010 1010   // Redirect on continue
1011 1011   document.getElementById("continueBtn").onclick = function() {
1012 1012   window.location.href = "https://help8.formcycle.eu/support/home";
1013 - if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1002 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1014 1014   setCookie("dialogv8", "true", 90);
1015 1015   }
1016 1016   };
... ... @@ -1018,7 +1018,7 @@
1018 1018   // Close overlay on abort
1019 1019   document.getElementById("abortBtn").onclick = function() {
1020 1020   document.getElementById("overlayv8").style.display = "none";
1021 - if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1010 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1022 1022   setCookie("dialogv8", "false", 90);
1023 1023   }
1024 1024   };