From 4fd592ceb3e7787f37b37afabe8fc63ede278c0c Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 14 Feb 2024 18:04:29 +0100 Subject: [PATCH] change default new note name added autocomplete --- index.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 0233231..bbdcf87 100644 --- a/index.php +++ b/index.php @@ -88,8 +88,8 @@ else { echo '
- - + +
'; echo '
'; @@ -99,15 +99,18 @@ return filemtime($b) - filemtime($a); }); + $autocomplete = ''; foreach($files as $path) { - if (!str_ends_with($path, '.del')) + $name = basename($path); + if (!str_ends_with($name, '.del')) { - $name = basename($path); - $mod = date("F d Y H:i:s", filemtime($path)); - echo '
' . $mod . ' ' . $name .'
'; + $autocomplete .= '
'; + echo $autocomplete; echo '
'; } ?>