Update item.tpl.html

This commit is contained in:
noxy 2016-10-20 22:28:09 +00:00
parent 4d25a3f789
commit 3b9e90fb97

View File

@ -14,14 +14,14 @@
<video id="player" src="{{ dest }}" style="max-width: 1280px; height: 50%;" preload="auto" autoplay controls loop></video>
{% if thumb != null %}
<!--<div class="thumbnail">-->
<div class="thumbnail">
<img src="{{ thumb }}" />
<!--</div>-->
</div>
{% endif %}
{% elseif item == "audio" %}
<audio controls loop src="{{ dest }}" type="audio/mp3" autoplay></audio>
<audio id="audioplayer" controls loop src="{{ dest }}" type="audio/mp3" autoplay></audio>
{% elseif item == "image" %}
<a href="{{ dest }}" target="_blank"><img src="{{ dest }}" style="max-width: 1024px" /></a>
{% else %}
@ -65,7 +65,10 @@
});
}
var video = document.getElementById('player');
video.volume = 0.5;
video.volume = 0.3;
var audio = document.getElementById('audioplayer');
audio.volume = 0.3;
</script>
</body>
<! Fuck git… seriously-->