2023-05-03 22:59:28 +02:00
|
|
|
$(document).ready(function() {
|
|
|
|
$.fancybox.defaults.loop = "true";
|
2023-10-08 16:29:09 +02:00
|
|
|
$.fancybox.defaults.afterLoad = function(instance, current) {
|
|
|
|
current.$image.attr('alt', current.opts.$orig.find('img').attr('alt') );
|
|
|
|
current.$image.attr('title', current.opts.$orig.find('img').attr('title') );
|
|
|
|
};
|
|
|
|
$.fancybox.defaults.caption = function (instance, slide, caption) {
|
|
|
|
return slide.$thumb.attr('alt');
|
|
|
|
};
|
|
|
|
});
|