Änderungen von Dokument FORMCYCLE Hilfe


Von Version 13.5
bearbeitet von gru
am 08.09.2025, 12:30
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 12.1
bearbeitet von gru
am 04.11.2024, 13:53
Änderungskommentar: Neues Bild Flag_DE.png hochladen

Zusammenfassung

Details

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