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

Update index.php

parent 6c7955db
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE HTML>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
...@@ -13,10 +13,11 @@ ...@@ -13,10 +13,11 @@
<?php <?php
$text = "Beispieltext"; $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>"; $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="Aurelia" style="background-color: #FFCCCB"/>"; $imgTag = "<img class="front-face" src="$src" alt="$text" style="$style"/>";
echo $imgTag; echo $imgTag;
?> ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment