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

Update index.php

parent f4b48efd
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
<body>
<section class="memory-game">
<div class="memory-card" data-framework="A">
/* <?php
<?php
$text = 'A';
$width = 640 * 0.25 - 10;
$height = 640 * 0.33333 - 10;
......@@ -52,7 +52,7 @@
echo $imgTag;
?>
*/
<?php $text = 'A'; $style = 'background-color: #FFCCCB'; $width = 640 * 0.25 - 10; $height = 640 * 0.33333 - 10; $textSize = min($width, $height) * 0.4; $svg = "<svg xmlns='http://www.w3.org/2000/svg' width='$width' height='$height'><text x='50%' y='50%' text-anchor='middle' alignment-baseline='middle' font-size='$textSize'>$text</text></svg>"; $svgData = base64_encode($svg); $src = 'data:image/svg+xml;base64,'.$svgData; $imgTag = "<img class='front-face' src='$src' alt='$text' style='$style'/>"; echo $imgTag; ?>
<!-- <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/> -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment