Merge branch 'main' of hectabit.org:HectaBit/Burgernotes-client-web
This commit is contained in:
commit
8af2206bb3
|
@ -276,7 +276,6 @@ body {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
background-color: var(--note-button);
|
background-color: var(--note-button);
|
||||||
color: var(--unselected-note-button-text-color);
|
color: var(--unselected-note-button-text-color);
|
||||||
border: none;
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
border: solid;
|
border: solid;
|
||||||
|
@ -286,6 +285,7 @@ body {
|
||||||
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
white-space: nowrap;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -595,12 +595,12 @@ function isFirstTimeVisitor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function firstNewVersion() {
|
function firstNewVersion() {
|
||||||
if (document.cookie.indexOf("version=1.1") !== -1) {
|
if (document.cookie.indexOf("version=1.2") !== -1) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var expirationDate = new Date();
|
var expirationDate = new Date();
|
||||||
expirationDate.setFullYear(expirationDate.getFullYear() + 1);
|
expirationDate.setFullYear(expirationDate.getFullYear() + 1);
|
||||||
document.cookie = "version=1.1; expires=" + expirationDate.toUTCString() + "; path=/; SameSite=strict";
|
document.cookie = "version=1.2; expires=" + expirationDate.toUTCString() + "; path=/; SameSite=strict";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -638,5 +638,5 @@ if (isFirstTimeVisitor() && /Android|iPhone|iPod/i.test(navigator.userAgent)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (firstNewVersion()) {
|
if (firstNewVersion()) {
|
||||||
displayError("What's new in Burgernotes 1.1?\n\nNote titles are now the first line of a note \(will not break compatibility with older notes\)\nIntroduced improved login screen\nNote titles now scroll correctly")
|
displayError("What's new in Burgernotes 1.2?\n\nNote titles are now the first line of a note \(will not break compatibility with older notes\)\nIntroduced improved login screen\nNote titles now scroll correctly")
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue