rDrama/files/templates/events/fistmas/music.html

9 lines
432 B
HTML
Raw Normal View History

{% if not (SITE_NAME == 'WPD' and not v) and not (v and v.poor) and (not v or v.event_music) and not (sub and sub.name == 'music') %}
{% if not song %}
2023-04-25 15:47:46 +00:00
{% set path = "assets/events/fistmas/music" %}
2023-06-29 20:14:30 +00:00
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=6' %}
2023-01-01 02:24:36 +00:00
<input hidden id="fistmas-song" value="{{song}}">
{% endif %}
2023-04-25 15:59:16 +00:00
<script defer src="{{'events/fistmas/js/music.js' | asset}}"></script>
{% endif %}