|
|
|
@@ -69,7 +69,7 @@ class IHKGallery { |
|
|
|
initSingleThumb() { |
|
|
|
const first = this.items.first().addClass('loading'); |
|
|
|
const a = $('<a href="' + first.data('full') + '" />').attr('data-index', 0).appendTo(first); |
|
|
|
const img = $('<img alt="' + first.attr("alt") + '" />').appendTo(a); |
|
|
|
const img = $('<img alt="' + first.data("alt") + '" />').appendTo(a); |
|
|
|
if (first.data('copyright')) { |
|
|
|
$('<span class="copyright" aria-hidden="true">' + first.data('copyright') + '</span>').appendTo(a); |
|
|
|
$('<span class="sr-only">' + first.data('copyright') + '</span>').appendTo(a); |
|
|
|
@@ -205,7 +205,7 @@ class IHKGallery { |
|
|
|
} |
|
|
|
|
|
|
|
initPopup() { |
|
|
|
this.popup = $('<div class="gallery-popup" tabindex="-1" />').appendTo($('body')); |
|
|
|
this.popup = $('<div class="gallery-popup" tabindex="-1" />').appendTo($('header')); |
|
|
|
|
|
|
|
const slides = $('<div class="slider" />').appendTo(this.popup); |
|
|
|
const closer = $('<button class="closer" aria-label="Schließen" />').prependTo(this.popup); |
|
|
|
@@ -253,7 +253,7 @@ class IHKGallery { |
|
|
|
}); |
|
|
|
|
|
|
|
if (this.section.data('render-download')) { |
|
|
|
const download = $('<a href="#" download class="download" />').prependTo(this.popup); |
|
|
|
const download = $('<a aria-label="Download" href="#" download class="download" />').prependTo(this.popup); |
|
|
|
$(download).attr('href', this.slider.slides.eq(this.slider.currentSlide).find('.image-box').attr('data-download')); |
|
|
|
} |
|
|
|
|
|
|
|
|