forked from rDrama/rDrama
dfssfd
parent
6e1216d7b3
commit
b7f2dae47a
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<script src="/assets/js/userpage.js?v=54"></script>
|
||||
<script src="/assets/js/userpage.js?v=57"></script>
|
||||
<title>{{u.username}}'s profile - {{'SITE_NAME' | app_config}}</title>
|
||||
{% if u.is_private %}
|
||||
<meta name="robots" content="noindex">
|
||||
|
@ -61,10 +61,26 @@
|
|||
);
|
||||
|
||||
setTimeout(_ => t.disabled = false, 2000);
|
||||
}
|
||||
}
|
||||
|
||||
{% if u.song %}
|
||||
var audio = new Audio('/songs/{{u.id}}');
|
||||
audio.loop=true;
|
||||
|
||||
window.addEventListener( 'load', function() {
|
||||
audio.play();
|
||||
document.getElementById('userpage').addEventListener('click', () => {
|
||||
if (audio.paused) audio.play();
|
||||
}, {once : true});
|
||||
|
||||
});
|
||||
|
||||
function pause() {
|
||||
audio.pause();
|
||||
}
|
||||
{% endif %}
|
||||
</script>
|
||||
|
||||
<textarea id="userid" style="display: none;">{% if u.song %}{{u.id}}{% else %}nosong{% endif %}</textarea>
|
||||
<div class="row d-none d-md-block">
|
||||
<div class="col px-0">
|
||||
<div class="jumbotron jumbotron-fluid jumbotron-guild d-none d-md-block" style="background-image: url({{u.banner_url}})">
|
||||
|
|
Loading…
Reference in New Issue