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