Update item.tpl.html

This commit is contained in:
noxy 2016-10-20 21:43:13 +00:00
parent 6412ae7d98
commit 873eed0413

View File

@ -16,7 +16,7 @@
{% endif %}
<div class="medium">
{% if item == "video" %}
<video src="{{ dest }}" style="max-width: 1280px; height: 50%;" preload="auto" autoplay controls loop></video>
<video id="player" src="{{ dest }}" style="max-width: 1280px; height: 50%;" preload="auto" autoplay controls loop></video>
{% elseif item == "audio" %}
<audio controls loop src="{{ dest }}" type="audio/mp3" autoplay></audio>
{% elseif item == "image" %}
@ -61,6 +61,8 @@
document.addEventListener('keydown', arrowKeys);
});
}
var video = document.getElementById('player');
video.volume = 0.5;
</script>
</body>
<! Fuck git… seriously-->