... |
... |
@@ -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,11 +889,13 @@ |
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; |
892 |
892 |
border-bottom: none; |
893 |
893 |
} |
894 |
894 |
|
895 |
895 |
.dialogv8-buttons { |
896 |
|
- margin-top: 20px; |
|
899 |
+ margin-top: 10px; |
|
900 |
+ padding-top: 10px; |
897 |
897 |
display: flex; |
898 |
898 |
justify-content: space-around; |
899 |
899 |
flex-wrap: wrap; |
... |
... |
@@ -901,13 +901,17 @@ |
901 |
901 |
border-top: 1px solid black; |
902 |
902 |
} |
903 |
903 |
|
904 |
|
- .dialog-buttons button { |
905 |
|
- padding: 10px 20px; |
|
908 |
+ .dialogv8-buttons DIV { |
|
909 |
+ padding: 7px 9px; |
906 |
906 |
font-size: 15px; |
907 |
907 |
border: none; |
908 |
908 |
border-radius: 15px; |
909 |
909 |
cursor: pointer; |
910 |
910 |
} |
|
915 |
+ .dialogv8-buttons DIV:hover { |
|
916 |
+ opacity: 0.8; |
|
917 |
+ cursor: pointer; |
|
918 |
+ } |
911 |
911 |
|
912 |
912 |
.continue-button { |
913 |
913 |
background-color: #617496; |
... |
... |
@@ -930,7 +930,7 @@ |
930 |
930 |
flex-direction: column; |
931 |
931 |
} |
932 |
932 |
|
933 |
|
- .dialogv8-buttons button { |
|
941 |
+ .dialogv8-buttons DIV { |
934 |
934 |
width: 100%; |
935 |
935 |
} |
936 |
936 |
} |
... |
... |
@@ -938,14 +938,14 @@ |
938 |
938 |
|
939 |
939 |
<div id="overlayv8" style="display: none;"> |
940 |
940 |
<div id="dialogv8"> |
941 |
|
- <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> |
942 |
942 |
<div> |
943 |
943 |
<input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true"> |
944 |
944 |
<label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br> |
945 |
945 |
</div> |
946 |
946 |
<div class="dialogv8-buttons"> |
947 |
|
- <button class="continue-button" id="continueBtn">Zur V8 Hilfe wechseln</button> |
948 |
|
- <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> |
949 |
949 |
</div> |
950 |
950 |
</div> |
951 |
951 |
</div> |
... |
... |
@@ -955,6 +955,7 @@ |
955 |
955 |
const d = new Date(); |
956 |
956 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); |
957 |
957 |
let expires = "expires="+d.toUTCString(); |
|
966 |
+ console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/"); |
958 |
958 |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; |
959 |
959 |
} |
960 |
960 |
|
... |
... |
@@ -974,7 +974,8 @@ |
974 |
974 |
} |
975 |
975 |
|
976 |
976 |
function checkCookie() { |
977 |
|
- let user = getCookie("dialogv8"); |
|
986 |
+ let dialogv8 = getCookie("dialogv8"); |
|
987 |
+ console.log("cookie got",dialogv8); |
978 |
978 |
if (dialogv8 != "") { |
979 |
979 |
console.log("Cookie found " + dialogv8); |
980 |
980 |
return false; |
... |
... |
@@ -986,10 +986,10 @@ |
986 |
986 |
window.onload = function() { |
987 |
987 |
let cookieValue = checkCookie(); |
988 |
988 |
console.log("checkCookie",cookieValue); |
989 |
|
- if (0 && cookieValue != null) { |
990 |
|
- console.log("cookieValue",cookieValue); |
991 |
|
- } else { |
|
999 |
+ if (cookieValue == null) { |
992 |
992 |
document.getElementById("overlayv8").style.display = "flex"; |
|
1001 |
+ } else if (cookieValue == "true") { |
|
1002 |
+ window.location.href = "https://help8.formcycle.eu/support/home"; |
993 |
993 |
} |
994 |
994 |
}; |
995 |
995 |
|
... |
... |
@@ -996,7 +996,7 @@ |
996 |
996 |
// Redirect on continue |
997 |
997 |
document.getElementById("continueBtn").onclick = function() { |
998 |
998 |
window.location.href = "https://help8.formcycle.eu/support/home"; |
999 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1009 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1000 |
1000 |
setCookie("dialogv8", "true", 90); |
1001 |
1001 |
} |
1002 |
1002 |
}; |
... |
... |
@@ -1004,7 +1004,7 @@ |
1004 |
1004 |
// Close overlay on abort |
1005 |
1005 |
document.getElementById("abortBtn").onclick = function() { |
1006 |
1006 |
document.getElementById("overlayv8").style.display = "none"; |
1007 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1017 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1008 |
1008 |
setCookie("dialogv8", "false", 90); |
1009 |
1009 |
} |
1010 |
1010 |
}; |