forked from MarseyWorld/MarseyWorld
fix chat
parent
3eddb8f391
commit
e6d5839e4d
|
@ -80,7 +80,8 @@ socket.on('speak', function(json) {
|
|||
document.getElementsByClassName('userlink')[0].classList.remove('d-none')
|
||||
document.getElementsByClassName('avatar')[0].classList.remove('d-none')
|
||||
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].style.color = '#' + json['namecolor']
|
||||
document.getElementsByClassName('time')[0].classList.remove('d-none')
|
||||
|
|
|
@ -222,6 +222,6 @@
|
|||
|
||||
<script src="{{asset('js/lozad.js')}}"></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>
|
Loading…
Reference in New Issue