forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-30 18:54:24 +02:00
parent 9781c900a2
commit a559fa1a71
3 changed files with 6 additions and 15 deletions

View File

@ -198,17 +198,8 @@
{% endif %}
{% if u.song and v and v.mute and (not u.unmutable or v.id == u.id) %}
<a id="play1" class="btn btn-secondary" role="button" onclick="play()">Play anthem</a>
<a id="pause1" class="btn btn-secondary d-none" role="button" onclick="pause()">Pause anthem</a>
{% else %}
<script>
window.addEventListener('load', (e) => {
audio.play();
document.getElementById('userpage').addEventListener('click', () => {
if (audio.paused) audio.play();
}, {once : true});
});
</script>
<a id="pause1" class="btn btn-secondary" role="button" onclick="pause()">Pause anthem</a>
<a id="play1" class="btn btn-secondary d-none" role="button" onclick="play()">Play anthem</a>
{% endif %}
{% if v and v.id != u.id and v.admin_level > 1 %}
@ -681,11 +672,11 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=3"></script>
<script src="/static/assets/js/userpage_v.js?a=5"></script>
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}
<script src="/static/assets/js/userpage.js?a=4"></script>
<script src="/static/assets/js/userpage.js?a=3"></script>
{% endblock %}

View File

@ -110,7 +110,7 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=3"></script>
<script src="/static/assets/js/userpage_v.js?a=5"></script>
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}

View File

@ -44,7 +44,7 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=3"></script>
<script src="/static/assets/js/userpage_v.js?a=5"></script>
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}