more hat shit

master
Aevann1 2022-09-05 06:36:31 +02:00
parent b3a56ca168
commit 3eddb8f391
4 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ 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

@ -49,7 +49,7 @@ function popclick(e) {
popover.getElementsByClassName('pop-banner')[0].src = author["bannerurl"] popover.getElementsByClassName('pop-banner')[0].src = author["bannerurl"]
popover.getElementsByClassName('pop-picture')[0].src = author["profile_url"] popover.getElementsByClassName('pop-picture')[0].src = author["profile_url"]
if (author["hat"]) popover.getElementsByClassName('pop-hat')[0].src = author['hat'] + '?v=3' if (author["hat"]) popover.getElementsByClassName('pop-hat')[0].src = author['hat'] + "?v=3"
popover.getElementsByClassName('pop-username')[0].innerHTML = author["username"] popover.getElementsByClassName('pop-username')[0].innerHTML = author["username"]
if (popover.getElementsByClassName('pop-bio').length > 0) { if (popover.getElementsByClassName('pop-bio').length > 0) {
popover.getElementsByClassName('pop-bio')[0].innerHTML = author["bio_html"] popover.getElementsByClassName('pop-bio')[0].innerHTML = author["bio_html"]

View File

@ -55,7 +55,7 @@
<tbody> <tbody>
{% for hat, user in hats %} {% for hat, user in hats %}
<tr> <tr>
<td><img loading="lazy" alt="{{hat.name}}" src="{{hat.name}}.webp?v=3" style="max-width:100%;height:auto"></td> <td><img loading="lazy" alt="{{hat.name}}" src="/i/hats/{{hat.name}}.webp?v=3" style="max-width:100%;height:auto"></td>
<td>{{hat.name}}</td> <td>{{hat.name}}</td>
<td style="word-break:break-word">{{hat.censored_description(v)}}</td> <td style="word-break:break-word">{{hat.censored_description(v)}}</td>
{% if SITE == 'rdrama.net' %} {% if SITE == 'rdrama.net' %}

View File

@ -20,7 +20,7 @@
<tr {% if v.id == user.id %}class="self"{% endif %}> <tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td> <td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td> <td>{% include "user_in_table.html" %}</td>
<td><a href="{{request.path}}/{{user[0].id}}/posts">{{num}}</a></td> <td><a href="{{request.path}}/{{user.id}}/posts">{{num}}</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
{% if pos and (pos[0] > 25 or not pos[1]) %} {% if pos and (pos[0] > 25 or not pos[1]) %}