... |
... |
@@ -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; |
... |
... |
@@ -883,6 +883,7 @@ |
883 |
883 |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); |
884 |
884 |
text-align: center; |
885 |
885 |
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; |
886 |
886 |
} |
887 |
887 |
|
888 |
888 |
#dialogv8 h2, #dialogv8 label { |
... |
... |
@@ -889,23 +889,31 @@ |
889 |
889 |
margin-top: 0; |
890 |
890 |
font-size: 15px; |
891 |
891 |
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; |
892 |
892 |
} |
893 |
893 |
|
894 |
894 |
.dialogv8-buttons { |
895 |
|
- margin-top: 20px; |
|
899 |
+ margin-top: 10px; |
|
900 |
+ padding-top: 10px; |
896 |
896 |
display: flex; |
897 |
897 |
justify-content: space-around; |
898 |
898 |
flex-wrap: wrap; |
899 |
899 |
gap: 10px; |
|
905 |
+ border-top: 1px solid black; |
900 |
900 |
} |
901 |
901 |
|
902 |
|
- .dialog-buttons button { |
903 |
|
- padding: 10px 20px; |
|
908 |
+ .dialogv8-buttons DIV { |
|
909 |
+ padding: 7px 9px; |
904 |
904 |
font-size: 15px; |
905 |
905 |
border: none; |
906 |
906 |
border-radius: 15px; |
907 |
907 |
cursor: pointer; |
908 |
908 |
} |
|
915 |
+ .dialogv8-buttons DIV:hover { |
|
916 |
+ opacity: 0.8; |
|
917 |
+ cursor: pointer; |
|
918 |
+ } |
909 |
909 |
|
910 |
910 |
.continue-button { |
911 |
911 |
background-color: #617496; |
... |
... |
@@ -928,7 +928,7 @@ |
928 |
928 |
flex-direction: column; |
929 |
929 |
} |
930 |
930 |
|
931 |
|
- .dialogv8-buttons button { |
|
941 |
+ .dialogv8-buttons DIV { |
932 |
932 |
width: 100%; |
933 |
933 |
} |
934 |
934 |
} |
... |
... |
@@ -936,14 +936,14 @@ |
936 |
936 |
|
937 |
937 |
<div id="overlayv8" style="display: none;"> |
938 |
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> |
|
949 |
+ <h2>Die aktuelle formcycle Version ist die Version 8. Möchten Sie zur Hilfe für diese Version wechseln?</h2> |
940 |
940 |
<div> |
941 |
941 |
<input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true"> |
942 |
942 |
<label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br> |
943 |
943 |
</div> |
944 |
944 |
<div class="dialogv8-buttons"> |
945 |
|
- <button class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</button> |
946 |
|
- <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> |
947 |
947 |
</div> |
948 |
948 |
</div> |
949 |
949 |
</div> |
... |
... |
@@ -953,6 +953,7 @@ |
953 |
953 |
const d = new Date(); |
954 |
954 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); |
955 |
955 |
let expires = "expires="+d.toUTCString(); |
|
966 |
+ console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/"); |
956 |
956 |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; |
957 |
957 |
} |
958 |
958 |
|
... |
... |
@@ -972,7 +972,8 @@ |
972 |
972 |
} |
973 |
973 |
|
974 |
974 |
function checkCookie() { |
975 |
|
- let user = getCookie("dialogv8"); |
|
986 |
+ let dialogv8 = getCookie("dialogv8"); |
|
987 |
+ console.log("cookie got",dialogv8); |
976 |
976 |
if (dialogv8 != "") { |
977 |
977 |
console.log("Cookie found " + dialogv8); |
978 |
978 |
return false; |
... |
... |
@@ -986,6 +986,8 @@ |
986 |
986 |
console.log("checkCookie",cookieValue); |
987 |
987 |
if (0 && cookieValue != null) { |
988 |
988 |
console.log("cookieValue",cookieValue); |
|
1001 |
+ } else if (0) { |
|
1002 |
+ window.location.href = "https://help8.formcycle.eu/support/home"; |
989 |
989 |
} else { |
990 |
990 |
document.getElementById("overlayv8").style.display = "flex"; |
991 |
991 |
} |
... |
... |
@@ -994,7 +994,7 @@ |
994 |
994 |
// Redirect on continue |
995 |
995 |
document.getElementById("continueBtn").onclick = function() { |
996 |
996 |
window.location.href = "https://help8.formcycle.eu/support/home"; |
997 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1011 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
998 |
998 |
setCookie("dialogv8", "true", 90); |
999 |
999 |
} |
1000 |
1000 |
}; |
... |
... |
@@ -1002,7 +1002,7 @@ |
1002 |
1002 |
// Close overlay on abort |
1003 |
1003 |
document.getElementById("abortBtn").onclick = function() { |
1004 |
1004 |
document.getElementById("overlayv8").style.display = "none"; |
1005 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1019 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1006 |
1006 |
setCookie("dialogv8", "false", 90); |
1007 |
1007 |
} |
1008 |
1008 |
}; |