mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-01 12:26:13 +00:00
goofy ah
This commit is contained in:
parent
95e5f3938f
commit
ff1af6b888
|
@ -10,7 +10,7 @@ function loadOnView() {
|
||||||
let image = lazyLoad[i];
|
let image = lazyLoad[i];
|
||||||
if (image.getBoundingClientRect().top < window.innerHeight && image.getBoundingClientRect().bottom > 0) {
|
if (image.getBoundingClientRect().top < window.innerHeight && image.getBoundingClientRect().bottom > 0) {
|
||||||
if (!image.src) {
|
if (!image.src) {
|
||||||
image.src = `/api/file/${image.getAttribute('data-src')}?r=thumb`
|
image.src = `/api/file/${image.getAttribute('data-src')}?r=thumb` // e=webp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,6 +109,7 @@ function fileDropHandle(event) {
|
||||||
|
|
||||||
fileUpload.files = event.dataTransfer.files;
|
fileUpload.files = event.dataTransfer.files;
|
||||||
|
|
||||||
|
fileDefault();
|
||||||
fileChanged();
|
fileChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,8 +198,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
fileDrop.addEventListener('dragleave', fileDefault, false);
|
fileDrop.addEventListener('dragleave', fileDefault, false);
|
||||||
// Drop file into box
|
// Drop file into box
|
||||||
fileDrop.addEventListener('drop', fileDropHandle, false);
|
fileDrop.addEventListener('drop', fileDropHandle, false);
|
||||||
|
|
||||||
// File upload change
|
// File upload change
|
||||||
fileUpload.addEventListener('change', fileChanged, false);
|
fileUpload.addEventListener('change', fileChanged, false);
|
||||||
|
// File upload clicked
|
||||||
|
fileUpload.addEventListener('click', fileDefault, false);
|
||||||
|
|
||||||
|
|
||||||
// Submit form
|
// Submit form
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Author</td>
|
<td>Author</td>
|
||||||
<td><a href="{{ url_for('gallery.profile_id', user_id=image.author_id ) }}" class="link">{{ image.author_username }}</a></td>
|
<td><a href="{{ url_for('gallery.profile_id', user_id=image.author_id) }}" class="link">{{ image.author_username }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Upload date</td>
|
<td>Upload date</td>
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if images %}
|
{% if images %}
|
||||||
<div class="gallery-grid">
|
<div class="gallery-grid">
|
||||||
{% for image in images %}
|
{% for image in images %}
|
||||||
|
|
Loading…
Reference in a new issue