... |
... |
@@ -906,7 +906,7 @@ |
906 |
906 |
} |
907 |
907 |
|
908 |
908 |
.dialogv8-buttons DIV { |
909 |
|
- padding: 10px 20px; |
|
909 |
+ padding: 7px 9px; |
910 |
910 |
font-size: 15px; |
911 |
911 |
border: none; |
912 |
912 |
border-radius: 15px; |
... |
... |
@@ -946,7 +946,7 @@ |
946 |
946 |
|
947 |
947 |
<div id="overlayv8" style="display: none;"> |
948 |
948 |
<div id="dialogv8"> |
949 |
|
- <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> |
950 |
950 |
<div> |
951 |
951 |
<input type="checkbox" id="dialogv8cb" name="dialogv8cb" value="true"> |
952 |
952 |
<label for="dialogv8cb" style="margin-top: 3px;">Diese Entscheidung merken</label><br> |
... |
... |
@@ -982,7 +982,8 @@ |
982 |
982 |
} |
983 |
983 |
|
984 |
984 |
function checkCookie() { |
985 |
|
- let user = getCookie("dialogv8"); |
|
985 |
+ let dialogv8 = getCookie("dialogv8"); |
|
986 |
+ console.log("cookie got",dialogv8); |
986 |
986 |
if (dialogv8 != "") { |
987 |
987 |
console.log("Cookie found " + dialogv8); |
988 |
988 |
return false; |
... |
... |
@@ -996,6 +996,8 @@ |
996 |
996 |
console.log("checkCookie",cookieValue); |
997 |
997 |
if (0 && cookieValue != null) { |
998 |
998 |
console.log("cookieValue",cookieValue); |
|
1000 |
+ } else if (0) { |
|
1001 |
+ window.location.href = "https://help8.formcycle.eu/support/home"; |
999 |
999 |
} else { |
1000 |
1000 |
document.getElementById("overlayv8").style.display = "flex"; |
1001 |
1001 |
} |
... |
... |
@@ -1004,7 +1004,7 @@ |
1004 |
1004 |
// Redirect on continue |
1005 |
1005 |
document.getElementById("continueBtn").onclick = function() { |
1006 |
1006 |
window.location.href = "https://help8.formcycle.eu/support/home"; |
1007 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1010 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1008 |
1008 |
setCookie("dialogv8", "true", 90); |
1009 |
1009 |
} |
1010 |
1010 |
}; |
... |
... |
@@ -1012,7 +1012,7 @@ |
1012 |
1012 |
// Close overlay on abort |
1013 |
1013 |
document.getElementById("abortBtn").onclick = function() { |
1014 |
1014 |
document.getElementById("overlayv8").style.display = "none"; |
1015 |
|
- if ($('[INPUT name="dialogv8cb"]').val() == "true") { |
|
1018 |
+ if (document.querySelector('INPUT[name="dialogv8cb"]').checked) { |
1016 |
1016 |
setCookie("dialogv8", "false", 90); |
1017 |
1017 |
} |
1018 |
1018 |
}; |