30 Jahre Regenbogenschule Dessau
Impressionen vom Programm in der Marienkirche
$(document).on('click', '.js-jump-to-image', function(e) {
e.preventDefault();
var targetPath = $(this).attr('data-path');
// Erster Versuch: Exakter Match
var target = $('img, video, audio, a, source').filter(function() {
var src = $(this).attr('src');
var href = $(this).attr('href');
return src === targetPath || href === targetPath;
});
// Zweiter Versuch: Teilweiser Match
if (target.length === 0) {
target = $('img, video, audio, a, source').filter(function() {
var src = $(this).attr('src') || '';
var href = $(this).attr('href') || '';
return (src.length > 0 && src.includes(targetPath)) ||
(href.length > 0 && href.includes(targetPath));
});
}
if (target.is('source')) {
target = target.parent();
}
if (target.length > 0) {
var finalElement = $(target[0]);
if (finalElement.is('a') && finalElement.find('img').length > 0) {
finalElement = finalElement.find('img');
}
$('html, body').stop().animate({
scrollTop: finalElement.offset().top - 150
}, 800, function() {
finalElement.addClass('highlight-flash');
setTimeout(function() {
finalElement.removeClass('highlight-flash');
}, 2500);
});
} else {
console.warn("Element nicht gefunden für Pfad:", targetPath);
}
});
function openLicenseEdit(path) {
let queryString = "";
if (Array.isArray(path)) {
queryString = path.map(p => "file[]=" + encodeURIComponent(p)).join('&');
} else if (typeof path === 'string') {
queryString = "file[]=" + encodeURIComponent(path);
}
var html = ''
+ '

