added: fonts

changed: info messages
This commit is contained in:
quenousimporte 2023-01-25 18:10:21 +01:00
parent 56195ee48f
commit feb523c50b
2 changed files with 13 additions and 6 deletions

View File

@ -1,12 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>notes</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>notes</title>
<link href="https://fonts.cdnfonts.com/css/inconsolata-2" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.cdnfonts.com/css/inconsolata-2">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Droid+Serif" />
<link rel='stylesheet' href='//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack-subset.css'>
</head>
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()">

13
main.js
View File

@ -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)
{