From 0aab00f9c4bd5dc635e63aac8e4eab20ec382b54 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 28 Nov 2023 15:24:33 +0100 Subject: [PATCH] added: saved mark --- index.html | 2 ++ main.js | 5 ++++- style.css | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 94ebfdb..fc4e2bc 100644 --- a/index.html +++ b/index.html @@ -31,6 +31,8 @@
+ +
diff --git a/main.js b/main.js index 0fae926..062e120 100644 --- a/main.js +++ b/main.js @@ -13,7 +13,8 @@ var defaultsettings = password: "", sync: false, tagsinlists: true, - uselinkpopup: true + uselinkpopup: true, + useunsavedmark: false }; //builtin @@ -1917,6 +1918,7 @@ function postpone() function setsaved() { + unsavedmark.hidden = true; saved = true; lastsaved = timestamp(); } @@ -2277,6 +2279,7 @@ function datachanged() resize(); saved = false; + unsavedmark.hidden = !settings.useunsavedmark; postpone() .then(save); diff --git a/style.css b/style.css index 50f1a17..684b504 100644 --- a/style.css +++ b/style.css @@ -50,6 +50,13 @@ body::-webkit-scrollbar-thumb { /* note page and editor */ +#unsavedmark { + position: fixed; + top: 0; + left: 5px; + color: lightgrey; +} + #notepage { width: 100%; display: table;