cachebust badges

pull/83/head
Aevann 2022-12-27 00:10:49 +02:00
parent 41467a4d11
commit caa28817aa
4 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ function popclick(e) {
badgesDOM.innerHTML = ""; badgesDOM.innerHTML = "";
for (const badge of author["badges"]) { for (const badge of author["badges"]) {
const badgeDOM = popClickBadgeTemplateDOM.cloneNode(); const badgeDOM = popClickBadgeTemplateDOM.cloneNode();
badgeDOM.src = badge + "?b=5"; badgeDOM.src = badge + "?b=6";
badgesDOM.append(badgeDOM); badgesDOM.append(badgeDOM);
} }

View File

@ -35,7 +35,7 @@
</td> </td>
<td> <td>
<label for="badge-{{badge.id}}"> <label for="badge-{{badge.id}}">
<img class="contain" alt="{{badge.name}}" loading="lazy" src="{{badge.path}}?b=5" width=64.16 height=70> <img class="contain" alt="{{badge.name}}" loading="lazy" src="{{badge.path}}?b=6" width=64.16 height=70>
</label> </label>
</td> </td>
<td>{{badge.name}}</td> <td>{{badge.name}}</td>

View File

@ -21,7 +21,7 @@
<td>{{badge.id}}</td> <td>{{badge.id}}</td>
<td>{{badge.name}}</td> <td>{{badge.name}}</td>
<td> <td>
<img class="contain" alt="{{badge.name}}" loading="lazy" src="{{badge.path}}?b=5" width=45.83 height=50> <img class="contain" alt="{{badge.name}}" loading="lazy" src="{{badge.path}}?b=6" width=45.83 height=50>
</td> </td>
<td>{{badge.description}}</td> <td>{{badge.description}}</td>
{%- set ct = counts[badge.id] if badge.id in counts else (0, 0) %} {%- set ct = counts[badge.id] if badge.id in counts else (0, 0) %}

View File

@ -242,10 +242,10 @@
{% for b in u.badges %} {% for b in u.badges %}
{% if b.url %} {% if b.url %}
<a class="contain" rel="nofollow noopener" href="{{b.url}}"> <a class="contain" rel="nofollow noopener" href="{{b.url}}">
<img alt="{{b.name}}" width=55 height=60 loading="lazy" src="{{b.path}}?b=5" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}> <img alt="{{b.name}}" width=55 height=60 loading="lazy" src="{{b.path}}?b=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}>
</a> </a>
{% else %} {% else %}
<img class="contain" alt="{{b.name}}" width=55 height=60 loading="lazy" src="{{b.path}}?b=5" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}> <img class="contain" alt="{{b.name}}" width=55 height=60 loading="lazy" src="{{b.path}}?b=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
@ -388,10 +388,10 @@
{% for b in u.badges %} {% for b in u.badges %}
{% if b.url %} {% if b.url %}
<a rel="nofollow noopener" href="{{b.url}}"> <a rel="nofollow noopener" href="{{b.url}}">
<img class="contain" alt="{{b.name}}" width=29.33 height=32 loading="lazy" src="{{b.path}}?b=5" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}> <img class="contain" alt="{{b.name}}" width=29.33 height=32 loading="lazy" src="{{b.path}}?b=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}>
</a> </a>
{% else %} {% else %}
<img class="contain" alt="{{b.name}}" width=29.33 height=32 loading="lazy" src="{{b.path}}?b=5" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}> <img class="contain" alt="{{b.name}}" width=29.33 height=32 loading="lazy" src="{{b.path}}?b=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{b.text}}" {% if b.until %}data-until="{{b.until}}" onmouseover="badge_timestamp(this)"{% endif %}>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>