Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Matchconceptions
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kreinsen, Moritz
Matchconceptions
Commits
81f545a1
You need to sign in or sign up before continuing.
Commit
81f545a1
authored
2 years ago
by
Kreinsen, Moritz
Browse files
Options
Downloads
Patches
Plain Diff
Update index.php
parent
f4ef5060
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.php
+1
-1
1 addition, 1 deletion
index.php
with
1 addition
and
1 deletion
index.php
+
1
−
1
View file @
81f545a1
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
class=
"memory-card"
data-framework=
"A"
>
<div
class=
"memory-card"
data-framework=
"A"
>
<?php
$text
=
'A'
;
$style
=
'background-color: #FFCCCB'
;
$width
=
640
*
0.25
-
10
;
$height
=
640
*
0.33333
-
10
;
$textSize
=
min
(
$width
,
$height
)
*
0.4
;
$svg
=
"<svg xmlns='http://www.w3.org/2000/svg' width='
$width
' height='
$height
'><text x='50%' y='50%' text-anchor='middle' alignment-baseline='middle' font-size='
$textSize
'>
$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
;
?>
<?php
$text
=
'A'
;
$style
=
'background-color: #FFCCCB'
;
$width
=
640
*
0.25
-
10
;
$height
=
640
*
0.33333
-
10
;
$textSize
=
min
(
$width
,
$height
)
*
0.4
;
$svg
=
"<svg xmlns='http://www.w3.org/2000/svg' width='
$width
' height='
$height
'><text x='50%' y='50%' text-anchor='middle' alignment-baseline='middle' font-size='
$textSize
'>
$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="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #FFCCCB"/> -->
<img
class=
"back-face"
src=
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9ImRpYWd
ub2FsIj4KICAgICAgPHBhdHRlcm4gdXJsPSJodHRwOi8vd3d3LnczLm9yZy91c2VyU3BhY2VPblVzZSIgd2lkdGg9IjMwJSIgaGVpZ2h0PSI1JSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDMwNSkiPgogIC
AgICAgIDx0ZXh0IHg9IjAiIHk9IjMwIiBmb250LXNpemU9IjMwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZmlsbD0iIzAwMDAwMCI+TWF0Y2hjb25jZXB0aW9uczwvdGV4dD4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgP
GluY3JlbWVudCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2RpYWdub2FsKSIgLz4KPC9zdmc+C
g=='
alt=
"Test"
/>
<img
class=
"back-face"
src=
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9ImRpYWd
vbmFsIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB3aWR0aD0iMzAlIiBoZWlnaHQ9IjUlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoMzA1KSI+Ci
AgICAgIDx0ZXh0IHg9IjAiIHk9IjMwIiBmb250LXNpemU9IjMwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZmlsbD0iIzAwMDAwMCI+TWF0Y2hjb25jZXB0aW9uczwvdGV4dD4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgP
HJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNkaWFnb25hbCkiIC8+Cjwvc3ZnP
g=='
alt=
"Test"
/>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"A"
>
<div
class=
"memory-card"
data-framework=
"A"
>
<?php
$text
=
'A'
;
$style
=
'background-color: #90EE90'
;
$width
=
640
*
0.25
-
10
;
$height
=
640
*
0.33333
-
10
;
$textSize
=
min
(
$width
,
$height
)
*
0.4
;
$svg
=
"<svg xmlns='http://www.w3.org/2000/svg' width='
$width
' height='
$height
'><text x='50%' y='50%' text-anchor='middle' alignment-baseline='middle' font-size='
$textSize
'>
$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
;
?>
<?php
$text
=
'A'
;
$style
=
'background-color: #90EE90'
;
$width
=
640
*
0.25
-
10
;
$height
=
640
*
0.33333
-
10
;
$textSize
=
min
(
$width
,
$height
)
*
0.4
;
$svg
=
"<svg xmlns='http://www.w3.org/2000/svg' width='
$width
' height='
$height
'><text x='50%' y='50%' text-anchor='middle' alignment-baseline='middle' font-size='
$textSize
'>
$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
;
?>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment