Change 88x31 macro to make click zoom optional.
This commit is contained in:
parent
5a4faee769
commit
117ebc4ac3
3 changed files with 4 additions and 4 deletions
|
|
@ -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 }})"
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const images = document.querySelectorAll(".i88x31");
|
||||
const images = document.querySelectorAll(".i88x31i");
|
||||
|
||||
images.forEach(image => {
|
||||
image.addEventListener("click", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue