Änderungen von Dokument FORMCYCLE Hilfe


Von Version 13.4
bearbeitet von gru
am 08.09.2025, 12:29
Ä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
... ... @@ -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;
... ... @@ -883,28 +883,38 @@
883 883   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
884 884   text-align: center;
885 885   font-family: "Corporate S W01","HelveticaNeue","Helvetica Neue","HelveticaNeueRoman","HelveticaNeue-Roman","Helvetica Neue Roman",'TeXGyreHerosRegular',"Helvetica","Tahoma","Geneva","Arial",sans-serif !important;
887 + font-weight: 400;
886 886   }
887 887  
888 888   #dialogv8 h2, #dialogv8 label {
889 889   margin-top: 0;
890 890   font-size: 15px;
893 + font-family: "Corporate S W01","HelveticaNeue","Helvetica Neue","HelveticaNeueRoman","HelveticaNeue-Roman","Helvetica Neue Roman",'TeXGyreHerosRegular',"Helvetica","Tahoma","Geneva","Arial",sans-serif !important;
894 + font-weight: 400;
895 + border-bottom: none;
891 891   }
892 892  
893 893   .dialogv8-buttons {
894 - margin-top: 20px;
899 + margin-top: 10px;
900 + padding-top: 10px;
895 895   display: flex;
896 896   justify-content: space-around;
897 897   flex-wrap: wrap;
898 898   gap: 10px;
905 + border-top: 1px solid black;
899 899   }
900 900  
901 - .dialog-buttons button {
902 - padding: 10px 20px;
908 + .dialogv8-buttons DIV {
909 + padding: 7px 9px;
903 903   font-size: 15px;
904 904   border: none;
905 905   border-radius: 15px;
906 906   cursor: pointer;
907 907   }
915 + .dialogv8-buttons DIV:hover {
916 + opacity: 0.8;
917 + cursor: pointer;
918 + }
908 908  
909 909   .continue-button {
910 910   background-color: #617496;
... ... @@ -927,7 +927,7 @@
927 927   flex-direction: column;
928 928   }
929 929  
930 - .dialogv8-buttons button {
941 + .dialogv8-buttons DIV {
931 931   width: 100%;
932 932   }
933 933   }
... ... @@ -935,12 +935,14 @@
935 935  
936 936  <div id="overlayv8" style="display: none;">
937 937   <div id="dialogv8">
938 - <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version weitergeleitet werden?</h2>
939 - <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true">
940 - <label for="dialogv8cb">Diese Entscheidung merken</label><br>
949 + <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version wechseln?</h2>
950 + <div>
951 + <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true">
952 + <label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br>
953 + </div>
941 941   <div class="dialogv8-buttons">
942 - <button class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</button>
943 - <button class="abort-button" id="abortBtn">In der V7 Hilfe bleiben</button>
955 + <div class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</div>
956 + <div class="abort-button" id="abortBtn">In der V7 Hilfe bleiben</div>
944 944   </div>
945 945   </div>
946 946  </div>
... ... @@ -950,6 +950,7 @@
950 950   const d = new Date();
951 951   d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
952 952   let expires = "expires="+d.toUTCString();
966 + console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/");
953 953   document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
954 954  }
955 955  
... ... @@ -969,7 +969,8 @@
969 969  }
970 970  
971 971  function checkCookie() {
972 - let user = getCookie("dialogv8");
986 + let dialogv8 = getCookie("dialogv8");
987 + console.log("cookie got",dialogv8);
973 973   if (dialogv8 != "") {
974 974   console.log("Cookie found " + dialogv8);
975 975   return false;
... ... @@ -981,10 +981,10 @@
981 981   window.onload = function() {
982 982   let cookieValue = checkCookie();
983 983   console.log("checkCookie",cookieValue);
984 - if (0 && cookieValue != null) {
985 - console.log("cookieValue",cookieValue);
986 - } else {
999 + if (cookieValue == null) {
987 987   document.getElementById("overlayv8").style.display = "flex";
1001 + } else if (cookieValue == "true") {
1002 + window.location.href = "https://help8.formcycle.eu/support/home";
988 988   }
989 989   };
990 990  
... ... @@ -991,7 +991,7 @@
991 991   // Redirect on continue
992 992   document.getElementById("continueBtn").onclick = function() {
993 993   window.location.href = "https://help8.formcycle.eu/support/home";
994 - if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1009 + if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
995 995   setCookie("dialogv8", "true", 90);
996 996   }
997 997   };
... ... @@ -999,7 +999,7 @@
999 999   // Close overlay on abort
1000 1000   document.getElementById("abortBtn").onclick = function() {
1001 1001   document.getElementById("overlayv8").style.display = "none";
1002 - if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1017 + if (document.querySelector('INPUT[name="dialogv8cb"]').checked) {
1003 1003   setCookie("dialogv8", "false", 90);
1004 1004   }
1005 1005   };