fds
This commit is contained in:
parent
5afa772579
commit
072fe7aad5
4 changed files with 13 additions and 15 deletions
|
@ -22,4 +22,11 @@ if (uid)
|
|||
document.getElementById("pause2").classList.toggle("d-none");
|
||||
document.getElementById("play2").classList.toggle("d-none");
|
||||
}
|
||||
|
||||
window.addEventListener('load', (e) => {
|
||||
audio.play();
|
||||
document.getElementById('userpage').addEventListener('click', () => {
|
||||
if (audio.paused) audio.play();
|
||||
}, {once : true});
|
||||
});
|
||||
}
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue