fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporary view to avoid redirection.
[wolnelektury.git]
/
src
/
social
/
templates
/
social
/
embed_video.html
diff --git
a/src/social/templates/social/embed_video.html
b/src/social/templates/social/embed_video.html
index
9810e7f
..
fe3400d
100644
(file)
--- a/
src/social/templates/social/embed_video.html
+++ b/
src/social/templates/social/embed_video.html
@@
-1,6
+1,6
@@
{% if youtube_id %}
{% if youtube_id %}
-<iframe style="position: absolute; left:0;right:0;height:100%;width:100%;"
+<iframe style="position: absolute; left:0;right:0;height:100%;width:100%;
background-image:url('https://img.youtube.com/vi/{{ youtube_id }}/maxresdefault.jpg'); background-position: 50%; background-size: 100% auto; background-repeat:no-repeat;
"
type="text/html" width="100%" height="360"
type="text/html" width="100%" height="360"
-
src="http
://www.youtube.com/embed/{{ youtube_id }}"
-
frameborder="0"></iframe>
-
{% endif %}
+
data-src="https
://www.youtube.com/embed/{{ youtube_id }}"
+ frameborder="0"></iframe>
+{% endif %}