fix prev commit

master
Aevann1 2022-08-26 01:24:29 +02:00
parent d15b416397
commit 0aa631fa13
2 changed files with 4 additions and 3 deletions

View File

@ -77,7 +77,8 @@ socket.on('speak', function(json) {
document.getElementsByClassName('avatar')[0].classList.remove('d-none')
document.getElementsByClassName('avatar')[0].src = json['avatar']
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].innerHTML = 'just now'
}
document.getElementsByClassName('userlink')[0].innerHTML = json['username']

View File

@ -136,7 +136,7 @@
<div>
<img class="avatar pp20 mr-1" data-toggle="tooltip" data-placement="right">
<a href="" class="font-weight-bold text-black userlink" target="_blank"></a>
<span class="text-black time ml-2">just now</a>
<span class="text-black time ml-2"></a>
<div class="cdiv">
<span class="chat-message text-black text-break"></span>
<span class="text d-none"></span>
@ -209,6 +209,6 @@
<script src="{{asset('js/lozad.js')}}"></script>
<script src="/assets/js/lite-youtube.js?v=241"></script>
<script src="/chat.js?v=3009"></script>
<script src="/chat.js?v=3010"></script>
</body>