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

Update index.php

parent ccbb5a37
No related branches found
No related tags found
No related merge requests found
......@@ -12,11 +12,11 @@
<div class="memory-card" data-framework="aurelia">
<?php
$text = "Beispieltext";
$style = "background-color: #FFCCCB"
$text = 'Beispieltext';
$style = 'background-color: #FFCCCB'
$svg = "<svg xmlns='http://www.w3.org/2000/svg' width='100' height='50'><text x='10' y='30'>$text</text></svg>";
$svgData = base64_encode($svg);
$src = "data:image/svg+xml;base64,$svgData";
$src = 'data:image/svg+xml;base64,$svgData';
$imgTag = "<img class='front-face' src='$src' alt='$text' style='$style'/>";
echo $imgTag;
?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment