use plain links when possible

This commit is contained in:
quenousimporte 2024-10-08 13:11:32 +02:00
parent f3c3ddd2a6
commit 5e61fba372
2 changed files with 8 additions and 15 deletions

View File

@ -25,16 +25,13 @@
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form action="index.php" method="GET" id="home">
<input hidden type="submit" accesskey="h">
</form>
<form action="note.php" method="GET" id="note"></form>
<div>
<input type="submit" name="new" value="new" accesskey="n" form="note">
<input type="submit" name="download" value="download" accesskey="d" form="home">
<br>
<input placeholder="search..." autofocus autocomplete="off" class="title" name="filter" value="<?php echo $filter; ?>" form="home">
<a href="note.php?new" class="grey" accesskey="n">new</a>
<a href="index.php?download" class="grey" accesskey="d">download</a>
<form action="index.php" method="GET" id="home">
<input hidden type="submit">
<input placeholder="filter..." autofocus autocomplete="off" class="title" name="filter" value="<?php echo $filter; ?>" form="home">
</form>
</div>
<div>
@ -67,4 +64,4 @@
?>
</div>
</body>
</html>
</html>

View File

@ -112,14 +112,10 @@
<!-- preview -->
<div <? if(!isset($_GET['preview'])) echo 'hidden'; ?>>
<form action="note.php" method="GET">
<input type="submit" value="back">
<input hidden name="title" value="<? echo $title; ?>">
</form>
<div><a class="grey" href="note.php?title=<? echo $title; ?>">back</a></div>
<?
echo computepreview($title, $content);
?>
</div>
</body>
</html>