Update item.tpl.html
This commit is contained in:
parent
3e260d6178
commit
384558027a
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
{% elseif item == "audio" %}
|
{% elseif item == "audio" %}
|
||||||
|
|
||||||
<audio id="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" %}
|
{% elseif item == "image" %}
|
||||||
<a href="{{ dest }}" target="_blank"><img src="{{ dest }}" style="max-width: 1024px" /></a>
|
<a href="{{ dest }}" target="_blank"><img src="{{ dest }}" style="max-width: 1024px" /></a>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -67,9 +67,8 @@
|
|||||||
var video = document.getElementById('player');
|
var video = document.getElementById('player');
|
||||||
video.volume = 0.3;
|
video.volume = 0.3;
|
||||||
|
|
||||||
window.onload = function() {
|
setVolume = function(id,vol) {
|
||||||
var audio = document.getElementById('audio');
|
sounds[audio].volume = 0.3; // vol between 0 and 1
|
||||||
audio.volume = 0.3;
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user