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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kreinsen, Moritz
Matchconceptions
Commits
959a0d80
Commit
959a0d80
authored
2 years ago
by
Kreinsen, Moritz
Browse files
Options
Downloads
Patches
Plain Diff
Update index.php
parent
726fc4bd
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
+12
-11
12 additions, 11 deletions
index.php
with
12 additions
and
11 deletions
index.php
+
12
−
11
View file @
959a0d80
...
@@ -13,67 +13,68 @@
...
@@ -13,67 +13,68 @@
<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="img/js-badge.svg" alt="" /> -->
<?php
echo
$backface
;
?>
<?php
echo
$backface
;
?>
</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
;
?>
<!-- <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #90EE90"/> -->
<!-- <img class="front-face" src="img/aurelia.svg" alt="Aurelia" style="background-color: #90EE90"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"B"
>
<div
class=
"memory-card"
data-framework=
"B"
>
<?php
$text
=
'B'
;
$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
=
'B'
;
$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/vue.svg" alt="Vue" style="background-color: #FFCCCB"/> -->
<!-- <img class="front-face" src="img/vue.svg" alt="Vue" style="background-color: #FFCCCB"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"B"
>
<div
class=
"memory-card"
data-framework=
"B"
>
<?php
$text
=
'B'
;
$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
=
'B'
;
$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
;
?>
<!-- <img class="front-face" src="img/vue.svg" alt="Vue" style="background-color: #90EE90"/> -->
<!-- <img class="front-face" src="img/vue.svg" alt="Vue" style="background-color: #90EE90"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"C"
>
<div
class=
"memory-card"
data-framework=
"C"
>
<?php
$text
=
'C'
;
$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
=
'C'
;
$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/angular.svg" alt="Angular" style="background-color: #FFCCCB"/> -->
<!-- <img class="front-face" src="img/angular.svg" alt="Angular" style="background-color: #FFCCCB"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"C"
>
<div
class=
"memory-card"
data-framework=
"C"
>
<?php
$text
=
'C'
;
$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
=
'C'
;
$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
;
?>
<!-- <img class="front-face" src="img/angular.svg" alt="Angular" style="background-color: #90EE90"/> -->
<!-- <img class="front-face" src="img/angular.svg" alt="Angular" style="background-color: #90EE90"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"D"
>
<div
class=
"memory-card"
data-framework=
"D"
>
<?php
$text
=
'D'
;
$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
=
'D'
;
$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/ember.svg" alt="Ember" style="background-color: #FFCCCB"/> -->
<!-- <img class="front-face" src="img/ember.svg" alt="Ember" style="background-color: #FFCCCB"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"D"
>
<div
class=
"memory-card"
data-framework=
"D"
>
<?php
$text
=
'D'
;
$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
=
'D'
;
$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
;
?>
<!-- <img class="front-face" src="img/ember.svg" alt="Ember" style="background-color: #90EE90"/> -->
<!-- <img class="front-face" src="img/ember.svg" alt="Ember" style="background-color: #90EE90"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"E"
>
<div
class=
"memory-card"
data-framework=
"E"
>
<?php
$text
=
'E'
;
$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
=
'E'
;
$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/backbone.svg" alt="Backbone" style="background-color: #FFCCCB"/> -->
<!-- <img class="front-face" src="img/backbone.svg" alt="Backbone" style="background-color: #FFCCCB"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"E"
>
<div
class=
"memory-card"
data-framework=
"E"
>
<?php
$text
=
'E'
;
$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
=
'E'
;
$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
;
?>
<!-- <img class="front-face" src="img/backbone.svg" alt="Backbone" style="background-color: #90EE90"/> -->
<!-- <img class="front-face" src="img/backbone.svg" alt="Backbone" style="background-color: #90EE90"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"F"
>
<div
class=
"memory-card"
data-framework=
"F"
>
<?php
$text
=
'F'
;
$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
=
'F'
;
$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/react.svg" alt="React" style="background-color: #FFCCCB"/> -->
<!-- <img class="front-face" src="img/react.svg" alt="React" style="background-color: #FFCCCB"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
<div
class=
"memory-card"
data-framework=
"F"
>
<div
class=
"memory-card"
data-framework=
"F"
>
<?php
$text
=
'F'
;
$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
=
'F'
;
$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
;
?>
<!-- <img class="front-face" src="img/react.svg" alt="React" style="background-color: #90EE90"/> -->
<!-- <img class="front-face" src="img/react.svg" alt="React" style="background-color: #90EE90"/> -->
<
img
class=
"
back
-
face
"
src=
"img/js-badge.svg"
alt=
""
/
>
<
?php
echo
$
backface
;
?
>
</div>
</div>
</section>
</section>
...
...
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