change style

change way to create new note
This commit is contained in:
quenousimporte 2024-02-14 09:43:22 +01:00
parent 98c96582d3
commit b35c6dfe51
1 changed files with 8 additions and 2 deletions

View File

@ -27,6 +27,8 @@
width: 100%;
border: none;
outline: none;
font-family: inherit;
font-size: inherit;
font-weight: bold;
}
</style>
@ -42,7 +44,11 @@
exit;
}
echo '<a accesskey="l" href="index.php">List</a>&nbsp;<a accesskey="n" href="index.php?open=' . time() . '.md">New</a>';
echo '<form action="index.php" method="GET">
<a accesskey="h" href="index.php">Home</a>&nbsp;
<input name="open" value="' . time() . '.md">&nbsp;
<input accesskey="n" type="submit" value="Create new">
</form>';
if (isset($_POST['savebutton']))
{
@ -74,7 +80,7 @@
$nblines = substr_count($content, "\r\n");
echo '<form action="index.php" method="POST">
<br><div><input class="title" readonly name="title" value="' . $title . '"></div><br>
<br><div><input class="title" name="title" value="' . $title . '"></div><br>
<div>
<textarea rows="' . $nblines. '" autofocus name="content" spellcheck="false">' . $content . '</textarea>
</div>