Skip to content
Snippets Groups Projects
Commit b4fadce1 authored by Kreinsen, Moritz's avatar Kreinsen, Moritz
Browse files

Update index.php

parent 119a86a9
Branches
No related tags found
No related merge requests found
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<section class="memory-game"> <section class="memory-game">
<div class="memory-card" data-framework="A"> <div class="memory-card" data-framework="A">
<?php <?php
$text = 'A longer text which should wrap automatically'; $text = 'A';
$width = 640 * 0.25 - 10; $width = 640 * 0.25 - 10;
$height = 640 * 0.33333 - 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;'; $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); $words = explode(' ', $text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment