rDrama/files/templates/fistmas/music.html

9 lines
424 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-01-01 05:33:09 +00:00
{% set path = "assets/fistmas/media/music" %}
2023-03-21 13:58:14 +00:00
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=1' %}
2023-01-01 02:24:36 +00:00
<input hidden id="fistmas-song" value="{{song}}">
{% endif %}
2023-01-01 05:33:09 +00:00
<script defer src="{{'fistmas/js/music.js' | asset}}"></script>
{% endif %}