This commit is contained in:
GZod01 2024-09-07 16:18:29 +02:00
parent 5262d96b5e
commit 3e2c19f46c

View file

@ -7,17 +7,24 @@
{{ end }} {{ end }}
{{ if (.Get "iframemode") }} {{ if (.Get "iframemode") }}
<center> <center>
<iframe class=youtubelink src="https://youtube.com/embed/{{ $code }}?cc_load_policy=1&cc_lang_pref=fr&hl=fr-FR&autohide=2&wmode=transparent" allowfullscreen="true"></iframe> <iframe class="youtubelink" src="https://youtube.com/embed/{{ $code }}?cc_load_policy=1&cc_lang_pref=fr&hl=fr-FR&autohide=2&wmode=transparent" allowfullscreen="true"></iframe>
</center> </center>
</center> </center>
{{ else }} {{ else }}
<center> <center>
<a class=youtubelink href="https://youtu.be/{{ $code }}"><img src="http://i3.ytimg.com/vi/{{ $code }}/hqdefault.jpg"/></a> <a class="youtubelink static" href="https://youtu.be/{{ $code }}"><img src="http://i3.ytimg.com/vi/{{ $code }}/hqdefault.jpg"/></a>
</center> </center>
{{ end }} {{ end }}
<style> <style>
.youtubelink{ .youtubelink{
width:100%; width:100%;
height:597; height:597;
&.static::after{
position:absolute;
left:50%;
top:50%;
transform: translate(-50% -50%);
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/52/YouTube_social_white_circle_%282017%29.svg/1024px-YouTube_social_white_circle_%282017%29.svg.png);
}
} }
</style> </style>