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