From 22e006550772b16a9f051d19ecd6a8c0f965ef7c Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 7 Oct 2024 17:57:18 +0200 Subject: [PATCH] change: preview in same tab with back button --- note.php | 49 +++++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/note.php b/note.php index 5b7e362..c29f9cb 100644 --- a/note.php +++ b/note.php @@ -27,7 +27,7 @@ } else if (isset($_POST['preview'])) { - header("Location: note.php?preview=1&title=" . $title); + header("Location: note.php?preview=true&title=" . $title); exit; } else @@ -87,26 +87,35 @@ -
> -
- - - - - - -
-
-
- -
- - ' . $lines . ' ' . $words . ' ' . $chars . ' ' . $title . '.md'; - echo linksdiv($content); - ?> -
+ +
> +
+
+ + + + + + +
+
+
+ +
+ + ' . $lines . ' ' . $words . ' ' . $chars . ' ' . $title . '.md
'; + echo linksdiv($content); + ?> + + + +
> +
+ + +