Änderungen von Dokument FORMCYCLE Hilfe


Von Version 11.8
bearbeitet von gru
am 07.02.2023, 14:40
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 13.12
bearbeitet von gru
am 08.09.2025, 13:04
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -11,7 +11,7 @@
11 11  {{/info}}
12 12  
13 13  {{info type="info"}}
14 -Die Hilfe zur vorherigen {{formcycle/}} Version 6 befindet sich unter: https://help6.formcycle.eu
14 +Die Hilfe zur neuen {{formcycle/}} Version 8 befindet sich unter: https://help8.formcycle.eu und die Hilfe zur vorherigen {{formcycle/}} Version 6 befindet sich unter: https://help6.formcycle.eu
15 15  {{/info}}
16 16  
17 17  {{velocity}}
... ... @@ -855,3 +855,162 @@
855 855  -->
856 856  {{/html}}
857 857  {{/velocity}}
858 +
859 +{{velocity}}
860 +{{html wiki="false" clean="false"}}
861 +<style>
862 + /* Overlay background */
863 + #overlayv8 {
864 + position: fixed;
865 + top: 0;
866 + left: 0;
867 + width: 100%;
868 + height: 100%;
869 + background-color: rgba(0, 0, 0, 0.5); /* 50% transparent black */
870 + display: flex;
871 + justify-content: center;
872 + align-items: center;
873 + z-index: 1000;
874 + }
875 +
876 + /* Dialog box */
877 + #dialogv8 {
878 + background-color: white;
879 + padding: 20px;
880 + border-radius: 25px;
881 + max-width: 90%;
882 + width: 400px;
883 + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
884 + text-align: center;
885 + font-family: "Corporate S W01","HelveticaNeue","Helvetica Neue","HelveticaNeueRoman","HelveticaNeue-Roman","Helvetica Neue Roman",'TeXGyreHerosRegular',"Helvetica","Tahoma","Geneva","Arial",sans-serif !important;
886 + font-weight: 400;
887 + }
888 +
889 + #dialogv8 h2, #dialogv8 label {
890 + margin-top: 0;
891 + font-size: 15px;
892 + font-family: "Corporate S W01","HelveticaNeue","Helvetica Neue","HelveticaNeueRoman","HelveticaNeue-Roman","Helvetica Neue Roman",'TeXGyreHerosRegular',"Helvetica","Tahoma","Geneva","Arial",sans-serif !important;
893 + font-weight: 400;
894 + border-bottom: none;
895 + }
896 +
897 + .dialogv8-buttons {
898 + margin-top: 10px;
899 + padding-top: 10px;
900 + display: flex;
901 + justify-content: space-around;
902 + flex-wrap: wrap;
903 + gap: 10px;
904 + border-top: 1px solid black;
905 + }
906 +
907 + .dialog-buttons button {
908 + padding: 10px 20px;
909 + font-size: 15px;
910 + border: none;
911 + border-radius: 15px;
912 + cursor: pointer;
913 + }
914 +
915 + .continue-button {
916 + background-color: #617496;
917 + color: white;
918 + }
919 +
920 + .abort-button {
921 + background-color: #efefef;
922 + color: black;
923 + }
924 +
925 + /* Responsive adjustments */
926 + @media (max-width: 480px) {
927 + #dialogv8 {
928 + width: 95%;
929 + padding: 15px;
930 + }
931 +
932 + .dialogv8-buttons {
933 + flex-direction: column;
934 + }
935 +
936 + .dialogv8-buttons button {
937 + width: 100%;
938 + }
939 + }
940 +</style>
941 +
942 +<div id="overlayv8" style="display: none;">
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>
945 + <div>
946 + <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true">
947 + <label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br>
948 + </div>
949 + <div class="dialogv8-buttons">
950 + <button class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</button>
951 + <button class="abort-button" id="abortBtn">In der V7 Hilfe bleiben</button>
952 + </div>
953 + </div>
954 +</div>
955 +
956 +<script>
957 +function setCookie(cname, cvalue, exdays) {
958 + const d = new Date();
959 + d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
960 + let expires = "expires="+d.toUTCString();
961 + document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
962 +}
963 +
964 +function getCookie(cname) {
965 + let name = cname + "=";
966 + let ca = document.cookie.split(';');
967 + for(let i = 0; i < ca.length; i++) {
968 + let c = ca[i];
969 + while (c.charAt(0) == ' ') {
970 + c = c.substring(1);
971 + }
972 + if (c.indexOf(name) == 0) {
973 + return c.substring(name.length, c.length);
974 + }
975 + }
976 + return "";
977 +}
978 +
979 +function checkCookie() {
980 + let user = getCookie("dialogv8");
981 + if (dialogv8 != "") {
982 + console.log("Cookie found " + dialogv8);
983 + return false;
984 + }
985 + return null;
986 +}
987 +
988 + // Show the overlay dialog when the page loads
989 + window.onload = function() {
990 + let cookieValue = checkCookie();
991 + console.log("checkCookie",cookieValue);
992 + if (0 && cookieValue != null) {
993 + console.log("cookieValue",cookieValue);
994 + } else {
995 + document.getElementById("overlayv8").style.display = "flex";
996 + }
997 + };
998 +
999 + // Redirect on continue
1000 + document.getElementById("continueBtn").onclick = function() {
1001 + window.location.href = "https://help8.formcycle.eu/support/home";
1002 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1003 + setCookie("dialogv8", "true", 90);
1004 + }
1005 + };
1006 +
1007 + // Close overlay on abort
1008 + document.getElementById("abortBtn").onclick = function() {
1009 + document.getElementById("overlayv8").style.display = "none";
1010 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1011 + setCookie("dialogv8", "false", 90);
1012 + }
1013 + };
1014 +</script>
1015 +{{/html}}
1016 +{{/velocity}}
Flag_DE.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.gru
Größe
... ... @@ -1,0 +1,1 @@
1 +339 bytes
Inhalt