forked from rDrama/rDrama
remove unnecessary template
parent
00ece38e42
commit
a9f8d81343
|
@ -137,7 +137,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if IS_EVENT() %}
|
{% if IS_EVENT() and not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'twitter.com') %}
|
||||||
{% include "events/shared/music.html" %}
|
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
|
||||||
|
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %}
|
||||||
|
<audio id="event-song" hidden preload="none" src="{{song}}" loop></audio>
|
||||||
|
<script defer src="{{'events/shared/js/music.js' | asset}}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{% if not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'twitter.com') %}
|
|
||||||
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
|
|
||||||
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %}
|
|
||||||
<audio id="event-song" hidden preload="none" src="{{song}}" loop></audio>
|
|
||||||
<script defer src="{{'events/shared/js/music.js' | asset}}"></script>
|
|
||||||
{% endif %}
|
|
Loading…
Reference in New Issue