From 3f99d394443cfaaeb9925d3a08b26904a6a7abc8 Mon Sep 17 00:00:00 2001 From: "Kreinsen, Moritz" <moritz.kreinsen@uni-hamburg.de> Date: Sat, 11 Mar 2023 21:42:24 +0000 Subject: [PATCH] Update index.php --- index.html => index.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) rename index.html => index.php (85%) diff --git a/index.html b/index.php similarity index 85% rename from index.html rename to index.php index 0810899..9873753 100644 --- a/index.html +++ b/index.php @@ -10,7 +10,17 @@ <body> <section class="memory-game"> <div class="memory-card" data-framework="aurelia"> - <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/> + + <?php + $text = "Beispieltext"; + $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="Aurelia" style="background-color: #FFCCCB"/>"; + 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" /> </div> <div class="memory-card" data-framework="aurelia"> -- GitLab