fix fullscreen

This commit is contained in:
Adrien Beudin 2016-04-30 11:57:52 +02:00
parent 5fd7b89ca9
commit 7235c09e66
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ $(function() {
});
});
var video = $("#video");
var video = $("video.lazy");
video.on('click', function(e){
var vid = video[0];
vid.play();

View File

@ -8,13 +8,14 @@
{% if section.background %}
<div class="bg-section" style="background: {{ section.background }};">
{% endif %}
<section class="bordered-picture baguette">
{% if video %}
<section class="bordered-picture baguette" style="position: relative;">
<img class="lazy" src="{{ video.generate_thumbnail("600") }}">
<video class="lazy" id="video" poster="{{ video.generate_thumbnail("600") }}" alt="" autoplay="autoplay" loop="loop" preload="auto" muted>
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
</video>
{% else %}
<section class="bordered-picture baguette">
<div class="caption">
<a href="{{ image }} {% if caption %}data-caption="{{ caption }}"{% endif %}">
<img class="lazy" data-original="{{ image }}">