forked from rDrama/rDrama
9 lines
421 B
HTML
9 lines
421 B
HTML
{% 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 %}
|
|
{% set path = "assets/event/media/music" %}
|
|
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?v=45' %}
|
|
<input hidden id="fistmas-song" value="{{song}}">
|
|
{% endif %}
|
|
<script defer src="{{'event/js/music.js' | asset}}"></script>
|
|
{% endif %}
|