From feb523c50b53bc035bb36f526ef164498d2da355 Mon Sep 17 00:00:00 2001 From: quenousimporte <76260127+quenousimporte@users.noreply.github.com> Date: Wed, 25 Jan 2023 18:10:21 +0100 Subject: [PATCH] added: fonts changed: info messages --- index.html | 6 ++++-- main.js | 13 +++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index ee806e0..90f431c 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,14 @@ + notes - notes - + + + diff --git a/main.js b/main.js index 80dcb53..fb392a9 100644 --- a/main.js +++ b/main.js @@ -75,7 +75,7 @@ var themes = "Plus plus": { bgcolor: "white", - fontfamily: "'Courier New'", + fontfamily: "'Consolas', 'Courier New', monospace", fontsize: "15px", fontcolor: "black", lineheight: "110%", @@ -505,8 +505,12 @@ function showtemporaryinfo(data) data = new Array(data); } + filter.placeholder = "Info"; searchinlist(data) - .then(); + .then(() => + { + filter.placeholder = "Search..."; + }); md.focus(); } @@ -1569,9 +1573,10 @@ function mainkeydownhandler() { event.preventDefault(); searchdialog.hidden = true; + filter.placeholder = "Search..."; md.focus(); } - else if (currentnote.title == "Help") + else if (currentnote.title == "Help" || currentnote.title == "Search result") { loadlast(); } @@ -1599,7 +1604,7 @@ function mainkeydownhandler() event.preventDefault(); if (command.savedonly && !saved) { - console.log("Cannot perform '" + command.hint + "' because current note is not saved."); + showtemporaryinfo("Cannot perform '" + command.hint + "' because current note is not saved."); } else if (command.action) {