moved functions around

This commit is contained in:
2025-06-24 16:22:33 +02:00
parent 5227beb02a
commit 00ccb96581
4 changed files with 55 additions and 4 deletions

View File

@@ -193,8 +193,6 @@
window.scrollTo({ top: 0, behavior: 'smooth' }) window.scrollTo({ top: 0, behavior: 'smooth' })
} }
window.onload = function () { filter() };
function updateImageList() { function updateImageList() {
var str = "" var str = ""
var imagelist = document.getElementById("imagelist"); var imagelist = document.getElementById("imagelist");
@@ -252,14 +250,24 @@
} }
}); });
updateImageList(); updateImageList();
}
function onLoad() {
{%- if tags|length > 0 %}
filter();
{%- else %}
shown = items;
updateImageList();
{%- endif %}
if (re.test(window.location.href)) { if (re.test(window.location.href)) {
var pid = window.location.href.match(re)[1]; var pid = window.location.href.match(re)[1];
console.log(pid);
console.log(shown);
openSwipe(parseInt(pid)); openSwipe(parseInt(pid));
} }
} }
window.onload = function () { onLoad() };
</script> </script>
{%- endif %} {%- endif %}
</body> </body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 MiB

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:exif="http://ns.adobe.com/exif/1.0/"
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:darktable="http://darktable.sf.net/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
exif:DateTimeOriginal="2024:06:19 13:48:20.000"
xmp:Rating="1"
xmpMM:DerivedFrom="000041900001.jpg"
darktable:import_timestamp="63886218833615590"
darktable:change_timestamp="-1"
darktable:export_timestamp="-1"
darktable:print_timestamp="-1"
darktable:xmp_version="5"
darktable:raw_params="0"
darktable:auto_presets_applied="0"
darktable:history_end="0"
darktable:iop_order_version="4">
<darktable:masks_history>
<rdf:Seq/>
</darktable:masks_history>
<darktable:history>
<rdf:Seq/>
</darktable:history>
<dc:subject>
<rdf:Bag>
<rdf:li>darktable</rdf:li>
<rdf:li>format</rdf:li>
<rdf:li>jpg</rdf:li>
</rdf:Bag>
</dc:subject>
<lr:hierarchicalSubject>
<rdf:Bag>
<rdf:li>darktable|format|jpg</rdf:li>
</rdf:Bag>
</lr:hierarchicalSubject>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>

Binary file not shown.