From 5709e182c63c67991b2667ab465b2f611fb995a6 Mon Sep 17 00:00:00 2001 From: Tristan Schneider Date: Fri, 11 Dec 2020 13:00:53 +0100 Subject: [PATCH] new input area, no empty spans --- index.php | 24 ++++++++++++++---------- style.css | 17 ++++++++++++++++- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/index.php b/index.php index 28e3a8a..f7e5255 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,9 @@ if (array_key_exists("submitted", $_REQUEST)) { $content .= "
\n"; } - fwrite($sentences, $content); + if (!empty($word)) { + fwrite($sentences, $content); + } fclose($sentences); header("location: ".htmlentities($_SERVER['PHP_SELF'])); } @@ -46,7 +48,8 @@ $config_data = json_decode($raw_json_config, false); <?php print($config_data->title ?? "One Word Each"); ?> - + + " type="image/x-icon"> @@ -55,7 +58,7 @@ $config_data = json_decode($raw_json_config, false); " width="90%">

headline ?? "One Word Each Seite"); ?>

- +

-

-
- - - -
Nächstes Wort:
-
+
+
+
+ +
+