... |
... |
@@ -905,13 +905,17 @@ |
905 |
905 |
border-top: 1px solid black; |
906 |
906 |
} |
907 |
907 |
|
908 |
|
- .dialog-buttons DIV { |
909 |
|
- padding: 10px 20px; |
|
908 |
+ .dialogv8-buttons DIV { |
|
909 |
+ padding: 7px 9px; |
910 |
910 |
font-size: 15px; |
911 |
911 |
border: none; |
912 |
912 |
border-radius: 15px; |
913 |
913 |
cursor: pointer; |
914 |
914 |
} |
|
915 |
+ .dialogv8-buttons DIV:hover { |
|
916 |
+ opacity: 0.8; |
|
917 |
+ cursor: pointer; |
|
918 |
+ } |
915 |
915 |
|
916 |
916 |
.continue-button { |
917 |
917 |
background-color: #617496; |
... |
... |
@@ -942,7 +942,7 @@ |
942 |
942 |
|
943 |
943 |
<div id="overlayv8" style="display: none;"> |
944 |
944 |
<div id="dialogv8"> |
945 |
|
- <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> |
946 |
946 |
<div> |
947 |
947 |
<input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true"> |
948 |
948 |
<label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br> |
... |
... |
@@ -959,6 +959,7 @@ |
959 |
959 |
const d = new Date(); |
960 |
960 |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); |
961 |
961 |
let expires = "expires="+d.toUTCString(); |
|
966 |
+ console.log("make cookie:",cname + "=" + cvalue + ";" + expires + ";path=/"); |
962 |
962 |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; |
963 |
963 |
} |
964 |
964 |
|
... |
... |
@@ -978,7 +978,8 @@ |
978 |
978 |
} |
979 |
979 |
|
980 |
980 |
function checkCookie() { |
981 |
|
- let user = getCookie("dialogv8"); |
|
986 |
+ let dialogv8 = getCookie("dialogv8"); |
|
987 |
+ console.log("cookie got",dialogv8); |
982 |
982 |
if (dialogv8 != "") { |
983 |
983 |
console.log("Cookie found " + dialogv8); |
984 |
984 |
return false; |
... |
... |
@@ -992,6 +992,8 @@ |
992 |
992 |
console.log("checkCookie",cookieValue); |
993 |
993 |
if (0 && cookieValue != null) { |
994 |
994 |
console.log("cookieValue",cookieValue); |
|
1001 |
+ } else if (0) { |
|
1002 |
+ window.location.href = "https://help8.formcycle.eu/support/home"; |
995 |
995 |
} else { |
996 |
996 |
document.getElementById("overlayv8").style.display = "flex"; |
997 |
997 |
} |
... |
... |
@@ -1000,7 +1000,7 @@ |
1000 |
1000 |
// Redirect on continue |
1001 |
1001 |
document.getElementById("continueBtn").onclick = function() { |
1002 |
1002 |
window.location.href = "https://help8.formcycle.eu/support/home"; |
1003 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1011 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1004 |
1004 |
setCookie("dialogv8", "true", 90); |
1005 |
1005 |
} |
1006 |
1006 |
}; |
... |
... |
@@ -1008,7 +1008,7 @@ |
1008 |
1008 |
// Close overlay on abort |
1009 |
1009 |
document.getElementById("abortBtn").onclick = function() { |
1010 |
1010 |
document.getElementById("overlayv8").style.display = "none"; |
1011 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1019 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1012 |
1012 |
setCookie("dialogv8", "false", 90); |
1013 |
1013 |
} |
1014 |
1014 |
}; |