master
Aevann1 2022-09-05 06:38:01 +02:00
parent 3eddb8f391
commit e6d5839e4d
2 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,8 @@ socket.on('speak', function(json) {
document.getElementsByClassName('userlink')[0].classList.remove('d-none') document.getElementsByClassName('userlink')[0].classList.remove('d-none')
document.getElementsByClassName('avatar')[0].classList.remove('d-none') document.getElementsByClassName('avatar')[0].classList.remove('d-none')
document.getElementsByClassName('avatar-pic')[0].src = json['avatar'] document.getElementsByClassName('avatar-pic')[0].src = json['avatar']
if (json['hat']) document.getElementsByClassName('avatar-hat')[0].src = json['hat']} + "?v=3" if (json['hat'])
document.getElementsByClassName('avatar-hat')[0].src = json['hat'] + "?v=3"
document.getElementsByClassName('userlink')[0].href = '/@' + json['username'] document.getElementsByClassName('userlink')[0].href = '/@' + json['username']
document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor'] document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor']
document.getElementsByClassName('time')[0].classList.remove('d-none') document.getElementsByClassName('time')[0].classList.remove('d-none')

View File

@ -222,6 +222,6 @@
<script src="{{asset('js/lozad.js')}}"></script> <script src="{{asset('js/lozad.js')}}"></script>
<script src="/assets/js/lite-youtube.js?v=4000"></script> <script src="/assets/js/lite-youtube.js?v=4000"></script>
<script src="/chat.js?v=4004"></script> <script src="/chat.js?v=4005"></script>
</body> </body>