... |
... |
@@ -875,6 +875,7 @@ |
875 |
875 |
|
876 |
876 |
/* Dialog box */ |
877 |
877 |
#dialogv8 { |
|
878 |
+ user-select: none; |
878 |
878 |
background-color: white; |
879 |
879 |
padding: 20px; |
880 |
880 |
border-radius: 25px; |
... |
... |
@@ -882,28 +882,39 @@ |
882 |
882 |
width: 400px; |
883 |
883 |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); |
884 |
884 |
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; |
885 |
885 |
} |
886 |
886 |
|
887 |
887 |
#dialogv8 h2, #dialogv8 label { |
888 |
888 |
margin-top: 0; |
889 |
889 |
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; |
890 |
890 |
} |
891 |
891 |
|
892 |
892 |
.dialogv8-buttons { |
893 |
|
- margin-top: 20px; |
|
899 |
+ margin-top: 10px; |
|
900 |
+ padding-top: 10px; |
894 |
894 |
display: flex; |
895 |
895 |
justify-content: space-around; |
896 |
896 |
flex-wrap: wrap; |
897 |
897 |
gap: 10px; |
|
905 |
+ border-top: 1px solid black; |
898 |
898 |
} |
899 |
899 |
|
900 |
|
- .dialog-buttons button { |
901 |
|
- padding: 10px 20px; |
902 |
|
- font-size: 1rem; |
|
908 |
+ .dialogv8-buttons DIV { |
|
909 |
+ padding: 7px 9px; |
|
910 |
+ font-size: 15px; |
903 |
903 |
border: none; |
904 |
|
- border-radius: 5px; |
|
912 |
+ border-radius: 15px; |
905 |
905 |
cursor: pointer; |
906 |
906 |
} |
|
915 |
+ .dialogv8-buttons DIV:hover { |
|
916 |
+ opacity: 0.8; |
|
917 |
+ cursor: pointer; |
|
918 |
+ } |
907 |
907 |
|
908 |
908 |
.continue-button { |
909 |
909 |
background-color: #617496; |
... |
... |
@@ -926,7 +926,7 @@ |
926 |
926 |
flex-direction: column; |
927 |
927 |
} |
928 |
928 |
|
929 |
|
- .dialogv8-buttons button { |
|
941 |
+ .dialogv8-buttons DIV { |
930 |
930 |
width: 100%; |
931 |
931 |
} |
932 |
932 |
} |
... |
... |
@@ -934,12 +934,14 @@ |
934 |
934 |
|
935 |
935 |
<div id="overlayv8" style="display: none;"> |
936 |
936 |
<div id="dialogv8"> |
937 |
|
- <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version weitergeleitet werden?</h2> |
938 |
|
- <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true"> |
939 |
|
- <label for="dialogv8cb">Diese Entscheidung merken</label><br> |
|
949 |
+ <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version wechseln?</h2> |
|
950 |
+ <div> |
|
951 |
+ <input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true"> |
|
952 |
+ <label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br> |
|
953 |
+ </div> |
940 |
940 |
<div class="dialogv8-buttons"> |
941 |
|
- <button class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</button> |
942 |
|
- <button class="abort-button" id="abortBtn">In der V7 Hilfe bleiben</button> |
|
955 |
+ <div class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</div> |
|
956 |
+ <div class="abort-button" id="abortBtn">In der V7 Hilfe bleiben</div> |
943 |
943 |
</div> |
944 |
944 |
</div> |
945 |
945 |
</div> |
... |
... |
@@ -949,6 +949,7 @@ |
949 |
949 |
const d = new Date(); |
950 |
950 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); |
951 |
951 |
let expires = "expires="+d.toUTCString(); |
|
966 |
+ console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/"); |
952 |
952 |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; |
953 |
953 |
} |
954 |
954 |
|
... |
... |
@@ -968,7 +968,8 @@ |
968 |
968 |
} |
969 |
969 |
|
970 |
970 |
function checkCookie() { |
971 |
|
- let user = getCookie("dialogv8"); |
|
986 |
+ let dialogv8 = getCookie("dialogv8"); |
|
987 |
+ console.log("cookie got",dialogv8); |
972 |
972 |
if (dialogv8 != "") { |
973 |
973 |
console.log("Cookie found " + dialogv8); |
974 |
974 |
return false; |
... |
... |
@@ -980,10 +980,10 @@ |
980 |
980 |
window.onload = function() { |
981 |
981 |
let cookieValue = checkCookie(); |
982 |
982 |
console.log("checkCookie",cookieValue); |
983 |
|
- if (0 && cookieValue != null) { |
984 |
|
- console.log("cookieValue",cookieValue); |
985 |
|
- } else { |
|
999 |
+ if (cookieValue == null) { |
986 |
986 |
document.getElementById("overlayv8").style.display = "flex"; |
|
1001 |
+ } else if (cookieValue == "true") { |
|
1002 |
+ window.location.href = "https://help8.formcycle.eu/support/home"; |
987 |
987 |
} |
988 |
988 |
}; |
989 |
989 |
|
... |
... |
@@ -990,7 +990,7 @@ |
990 |
990 |
// Redirect on continue |
991 |
991 |
document.getElementById("continueBtn").onclick = function() { |
992 |
992 |
window.location.href = "https://help8.formcycle.eu/support/home"; |
993 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1009 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
994 |
994 |
setCookie("dialogv8", "true", 90); |
995 |
995 |
} |
996 |
996 |
}; |
... |
... |
@@ -998,7 +998,7 @@ |
998 |
998 |
// Close overlay on abort |
999 |
999 |
document.getElementById("abortBtn").onclick = function() { |
1000 |
1000 |
document.getElementById("overlayv8").style.display = "none"; |
1001 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1017 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1002 |
1002 |
setCookie("dialogv8", "false", 90); |
1003 |
1003 |
} |
1004 |
1004 |
}; |