Yeet JQuery in favor of vanilla JS

This commit is contained in:
Michał Gdula 2023-04-02 22:07:14 +00:00
parent c7e38dfcfb
commit 6f759bb678
7 changed files with 106 additions and 94 deletions

View file

@ -90,7 +90,12 @@
</div>
<div class="image-fullscreen" onclick="imageFullscreenOff()">
<img src="" alt="{{ image.post_alt }}" onload="imgFade(this);" style="opacity:0;" />
<img
src=""
alt="{{ image.post_alt }}"
onload="imgFade(this);"
style="opacity:0;"
/>
</div>
<div class="image-grid">
@ -98,7 +103,8 @@
<img
src="{{ url_for('api.file', file_name=image.file_name) }}?r=prev"
alt="{{ image.post_alt }}"
onload="imgFade(this)" style="opacity:0;"
onload="imgFade(this)"
style="opacity: 0;"
onerror="this.src='{{ url_for('static', filename='error.png')}}'"
{% if "File" in image.image_exif %}
width="{{ image.image_exif.File.Width.raw }}"