parent
56195ee48f
commit
feb523c50b
|
@ -1,12 +1,14 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<title>notes</title>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
<title>notes</title>
|
<link rel="stylesheet" href="https://fonts.cdnfonts.com/css/inconsolata-2">
|
||||||
<link href="https://fonts.cdnfonts.com/css/inconsolata-2" rel="stylesheet">
|
<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>
|
</head>
|
||||||
|
|
||||||
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()">
|
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()">
|
||||||
|
|
13
main.js
13
main.js
|
@ -75,7 +75,7 @@ var themes =
|
||||||
"Plus plus":
|
"Plus plus":
|
||||||
{
|
{
|
||||||
bgcolor: "white",
|
bgcolor: "white",
|
||||||
fontfamily: "'Courier New'",
|
fontfamily: "'Consolas', 'Courier New', monospace",
|
||||||
fontsize: "15px",
|
fontsize: "15px",
|
||||||
fontcolor: "black",
|
fontcolor: "black",
|
||||||
lineheight: "110%",
|
lineheight: "110%",
|
||||||
|
@ -505,8 +505,12 @@ function showtemporaryinfo(data)
|
||||||
data = new Array(data);
|
data = new Array(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filter.placeholder = "Info";
|
||||||
searchinlist(data)
|
searchinlist(data)
|
||||||
.then();
|
.then(() =>
|
||||||
|
{
|
||||||
|
filter.placeholder = "Search...";
|
||||||
|
});
|
||||||
md.focus();
|
md.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1569,9 +1573,10 @@ function mainkeydownhandler()
|
||||||
{
|
{
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
searchdialog.hidden = true;
|
searchdialog.hidden = true;
|
||||||
|
filter.placeholder = "Search...";
|
||||||
md.focus();
|
md.focus();
|
||||||
}
|
}
|
||||||
else if (currentnote.title == "Help")
|
else if (currentnote.title == "Help" || currentnote.title == "Search result")
|
||||||
{
|
{
|
||||||
loadlast();
|
loadlast();
|
||||||
}
|
}
|
||||||
|
@ -1599,7 +1604,7 @@ function mainkeydownhandler()
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (command.savedonly && !saved)
|
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)
|
else if (command.action)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue