Änderungen von Dokument FORMCYCLE Hilfe


Von Version 11.9
bearbeitet von Release Notes
am 06.05.2024, 11:31
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 13.10
bearbeitet von gru
am 08.09.2025, 13:01
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.ReleaseNotes
1 +XWiki.gru
Inhalt
... ... @@ -855,3 +855,159 @@
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 + }
887 +
888 + #dialogv8 h2, #dialogv8 label {
889 + margin-top: 0;
890 + font-size: 15px;
891 + font-family: "Corporate S W01","HelveticaNeue","Helvetica Neue","HelveticaNeueRoman","HelveticaNeue-Roman","Helvetica Neue Roman",'TeXGyreHerosRegular',"Helvetica","Tahoma","Geneva","Arial",sans-serif !important;
892 + border-bottom: none;
893 + }
894 +
895 + .dialogv8-buttons {
896 + margin-top: 20px;
897 + display: flex;
898 + justify-content: space-around;
899 + flex-wrap: wrap;
900 + gap: 10px;
901 + border-top: 1px solid black;
902 + }
903 +
904 + .dialog-buttons button {
905 + padding: 10px 20px;
906 + font-size: 15px;
907 + border: none;
908 + border-radius: 15px;
909 + cursor: pointer;
910 + }
911 +
912 + .continue-button {
913 + background-color: #617496;
914 + color: white;
915 + }
916 +
917 + .abort-button {
918 + background-color: #efefef;
919 + color: black;
920 + }
921 +
922 + /* Responsive adjustments */
923 + @media (max-width: 480px) {
924 + #dialogv8 {
925 + width: 95%;
926 + padding: 15px;
927 + }
928 +
929 + .dialogv8-buttons {
930 + flex-direction: column;
931 + }
932 +
933 + .dialogv8-buttons button {
934 + width: 100%;
935 + }
936 + }
937 +</style>
938 +
939 +<div id="overlayv8" style="display: none;">
940 + <div id="dialogv8">
941 + <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version weitergeleitet werden?</h2>
942 + <div>
943 + <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true">
944 + <label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br>
945 + </div>
946 + <div class="dialogv8-buttons">
947 + <button class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</button>
948 + <button class="abort-button" id="abortBtn">In der V7 Hilfe bleiben</button>
949 + </div>
950 + </div>
951 +</div>
952 +
953 +<script>
954 +function setCookie(cname, cvalue, exdays) {
955 + const d = new Date();
956 + d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
957 + let expires = "expires="+d.toUTCString();
958 + document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
959 +}
960 +
961 +function getCookie(cname) {
962 + let name = cname + "=";
963 + let ca = document.cookie.split(';');
964 + for(let i = 0; i < ca.length; i++) {
965 + let c = ca[i];
966 + while (c.charAt(0) == ' ') {
967 + c = c.substring(1);
968 + }
969 + if (c.indexOf(name) == 0) {
970 + return c.substring(name.length, c.length);
971 + }
972 + }
973 + return "";
974 +}
975 +
976 +function checkCookie() {
977 + let user = getCookie("dialogv8");
978 + if (dialogv8 != "") {
979 + console.log("Cookie found " + dialogv8);
980 + return false;
981 + }
982 + return null;
983 +}
984 +
985 + // Show the overlay dialog when the page loads
986 + window.onload = function() {
987 + let cookieValue = checkCookie();
988 + console.log("checkCookie",cookieValue);
989 + if (0 && cookieValue != null) {
990 + console.log("cookieValue",cookieValue);
991 + } else {
992 + document.getElementById("overlayv8").style.display = "flex";
993 + }
994 + };
995 +
996 + // Redirect on continue
997 + document.getElementById("continueBtn").onclick = function() {
998 + window.location.href = "https://help8.formcycle.eu/support/home";
999 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1000 + setCookie("dialogv8", "true", 90);
1001 + }
1002 + };
1003 +
1004 + // Close overlay on abort
1005 + document.getElementById("abortBtn").onclick = function() {
1006 + document.getElementById("overlayv8").style.display = "none";
1007 + if ($('[INPUT name="dialogv8cb"]').val() == "true") {
1008 + setCookie("dialogv8", "false", 90);
1009 + }
1010 + };
1011 +</script>
1012 +{{/html}}
1013 +{{/velocity}}
Flag_DE.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.gru
Größe
... ... @@ -1,0 +1,1 @@
1 +339 bytes
Inhalt