forked from rDrama/rDrama
parent
219482c745
commit
9485ffc21d
|
@ -4,7 +4,6 @@
|
||||||
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?v=45' %}
|
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?v=45' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script nonce="{{g.nonce}}">
|
<script nonce="{{g.nonce}}">
|
||||||
window.addEventListener('load', function() {
|
|
||||||
const audio = new Audio("{{song}}");
|
const audio = new Audio("{{song}}");
|
||||||
audio.loop=true;
|
audio.loop=true;
|
||||||
|
|
||||||
|
@ -12,6 +11,9 @@
|
||||||
audio.play();
|
audio.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audio.loop=true;
|
||||||
|
|
||||||
|
window.addEventListener('load', function() {
|
||||||
audio.play();
|
audio.play();
|
||||||
window.addEventListener('click', () => {
|
window.addEventListener('click', () => {
|
||||||
if (audio.paused) audio.play();
|
if (audio.paused) audio.play();
|
||||||
|
|
Loading…
Reference in New Issue