forked from MarseyWorld/MarseyWorld
make it so the audio plays with the image
parent
eb12b58372
commit
20d77332c2
|
@ -39,7 +39,7 @@
|
||||||
{% set image_src = SITE_FULL_IMAGES ~ "/assets/events/homoween/images/jumpscares/" ~ listdir("files/assets/events/homoween/images/jumpscares")|random ~ "?x=45" %}
|
{% set image_src = SITE_FULL_IMAGES ~ "/assets/events/homoween/images/jumpscares/" ~ listdir("files/assets/events/homoween/images/jumpscares")|random ~ "?x=45" %}
|
||||||
<img src="{{image_src}}" id="jumpscare-img" style="display: none">
|
<img src="{{image_src}}" id="jumpscare-img" style="display: none">
|
||||||
{% set audio_src = "/assets/events/homoween/audio/jumpscares/" ~ listdir("files/assets/events/homoween/audio/jumpscares")|random ~ "?x=45" %}
|
{% set audio_src = "/assets/events/homoween/audio/jumpscares/" ~ listdir("files/assets/events/homoween/audio/jumpscares")|random ~ "?x=45" %}
|
||||||
<audio id="jumpscare-audio" preload="none" src="{{audio_src}}"></audio>
|
<audio id="jumpscare-audio" src="{{audio_src}}"></audio>
|
||||||
<script defer src="{{'events/homoween/js/jumpscare.js' | asset}}"></script>
|
<script defer src="{{'events/homoween/js/jumpscare.js' | asset}}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue