Initial commit

This commit is contained in:
2023-05-04 23:16:34 +02:00
commit 9629b6d012
19 changed files with 2538 additions and 0 deletions

12
static/scripts/jquery.fancybox.min.js vendored Normal file

File diff suppressed because one or more lines are too long

4
static/scripts/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

16
static/scripts/main.js Normal file
View File

@@ -0,0 +1,16 @@
$(document).ready(function() {
$("[data-lightbox]").fancybox({
loop: false,
caption: function(instance, item) {
const img = this.querySelector('img');
let caption = img.getAttribute('alt') ?? '';
if (item.type === 'image') {
const download = this.getAttribute('data-original') ?? item.src;
caption = (caption.length ? caption + '<br />' : '') + '<a href="' + download + '">Stáhnout obrázek</a>' ;
}
return caption;
}
});
});