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"> <link rel="stylesheet" type="text/css" href="style.css">
</head> </head>
<body> <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> <div>
<input type="submit" name="new" value="new" accesskey="n" form="note"> <a href="note.php?new" class="grey" accesskey="n">new</a>
<input type="submit" name="download" value="download" accesskey="d" form="home"> <a href="index.php?download" class="grey" accesskey="d">download</a>
<br> <form action="index.php" method="GET" id="home">
<input placeholder="search..." autofocus autocomplete="off" class="title" name="filter" value="<?php echo $filter; ?>" form="home"> <input hidden type="submit">
<input placeholder="filter..." autofocus autocomplete="off" class="title" name="filter" value="<?php echo $filter; ?>" form="home">
</form>
</div> </div>
<div> <div>

View File

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