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

Update index.php

parent f44db8fd
Branches
Tags
No related merge requests found
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
<section class="memory-game"> <section class="memory-game">
<div class="memory-card" data-framework="aurelia"> <div class="memory-card" data-framework="aurelia">
<!-- <?php <?php
$text = 'Beispieltext'; $text = 'Beispieltext';
$style = 'background-color: #FFCCCB' $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>"; $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); $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'/>"; $imgTag = "<img class='front-face' src='$src' alt='$text' style='$style'/>";
echo $imgTag; echo $imgTag;
?> --> ?>
<img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/> <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/>
<img class="back-face" src="img/js-badge.svg" alt="JS Badge" /> <img class="back-face" src="img/js-badge.svg" alt="JS Badge" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment