From b4fadce184eee2b07e91b53f4c0d7418f274990b Mon Sep 17 00:00:00 2001 From: "Kreinsen, Moritz" <moritz.kreinsen@uni-hamburg.de> Date: Sun, 12 Mar 2023 20:04:37 +0000 Subject: [PATCH] Update index.php --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index e1baf2a..f2f5f14 100644 --- a/index.php +++ b/index.php @@ -12,10 +12,10 @@ <section class="memory-game"> <div class="memory-card" data-framework="A"> <?php - $text = 'A longer text which should wrap automatically'; + $text = 'A'; $width = 640 * 0.25 - 10; $height = 640 * 0.33333 - 10; - $textSize = min($width, $height) * 0.2; + $textSize = min($width, $height) * 0.1; $style = 'background-color: #FFCCCB; font-size: ' . $textSize . 'px; font-family: sans-serif; fill: #000000; text-anchor: middle; dominant-baseline: middle; word-wrap: break-word; text-align: center;'; $words = explode(' ', $text); -- GitLab