From 1fa13b9305e62a094e61cb0a309c1565de7fbf10 Mon Sep 17 00:00:00 2001 From: "Kreinsen, Moritz" <moritz.kreinsen@uni-hamburg.de> Date: Sun, 12 Mar 2023 18:47:43 +0000 Subject: [PATCH] Update index.php --- index.html => index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename index.html => index.php (97%) diff --git a/index.html b/index.php similarity index 97% rename from index.html rename to index.php index 80b0de0..e58c8bf 100644 --- a/index.html +++ b/index.php @@ -11,15 +11,15 @@ <section class="memory-game"> <div class="memory-card" data-framework="aurelia"> - <!-- <?php + <?php $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>"; $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"/> <img class="back-face" src="img/js-badge.svg" alt="JS Badge" /> -- GitLab