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