diff --git a/index.php b/index.php index e1baf2a63c1f55f315f2de78c3eef587d1f26169..f2f5f14f89c8efd979eb843a69195021fc3ba28a 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);