forked from MarseyWorld/MarseyWorld
play sound
parent
0360b23805
commit
0ee3b9d6cd
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
let audio = new Audio(`/i/6.webp`);
|
||||
|
||||
audio.play();
|
||||
if (audio.paused) {
|
||||
document.addEventListener('click', () => {
|
||||
if (audio.paused) audio.play();
|
||||
}, {once : true})
|
||||
}
|
|
@ -33,6 +33,10 @@
|
|||
{% endwith %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if v and v.is_underage %}
|
||||
<script defer src="{{'js/underage.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block pagenav %}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
{%- endif %}
|
||||
{% if title == 'THIS IS AN 18+ WEBSITE' %}
|
||||
<div><a href="/contact" class="btn btn-primary mt-1">Contact Admins</a></div>
|
||||
<script defer src="{{'js/underage.js' | asset}}"></script>
|
||||
{% else %}
|
||||
<div><a href="/" class="btn btn-primary mt-3">Go to frontpage</a></div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue