Change 88x31 macro to make click zoom optional.

This commit is contained in:
天クマ 2026-07-04 15:18:44 -03:00
commit 117ebc4ac3
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{% macro i88x31(link, alt=link) %}
{% macro i88x31(link, alt=link, interactive=true) %}
<img
class="i88x31"
class="i88x31{% if interactive == true %} i88x31i{% endif %}"
src="{{ ('/static/images/88x31/' ~ link) | url }}"
{% if alt == link %}
data-tip="<b>{{ i18n[langKey].i88x31hover }}</b> ({{ link }})"

View file

@ -193,7 +193,7 @@ layout: base.njk
<hr style="margin-bottom: .4em;">
</div>
<a href="https://www.youtube.com/@mrnandokk">{{ i88x31("mrnandokk.gif", i18n[langKey].mrnandoChannel) }}</a>
<a href="https://www.youtube.com/@mrnandokk">{{ i88x31("mrnandokk.gif", i18n[langKey].mrnandoChannel, false) }}</a>
</div>
<div id="homeWebrings">

View file

@ -1,4 +1,4 @@
const images = document.querySelectorAll(".i88x31");
const images = document.querySelectorAll(".i88x31i");
images.forEach(image => {
image.addEventListener("click", () => {