I am using this JS Gallery to display some images.
The problem is that I want to display the link of the image between the current large image and the row of thumbnails. Unfortunately, I can't output it in the container of the thumbnail, because it is not clickable.
Therefore, it seems easiest to me to output an additional container for the output between the large image and the thumbnails.
That are my code:
<ul id="pgwCotainer" class="pgwSlideshow">
<!-- begin additional part -->
<div class="moreInfo col-md-12">
<div class="row">
<div class="row articleinfos">
<ul class="col-md-3 einzeldownload">
<li class="item-1 show">
<a download class="download-archive icon-download-pfeil-boden uppercase" href="https://domain/files/image1.zip">image1.zip</a>
</li>
<li class="item-2 hidden">
<a download class="download-archive icon-download-pfeil-boden uppercase" href="https://domain/files/image2.zip">image2.zip</a>
</li>
<li class="item-3 hidden">
<a download class="download-archive icon-download-pfeil-boden uppercase" href="https://domain/files/image3.zip">image3.zip</a>
</li>
</ul>
<a href="#" class="col-md-3 icon-download-pfeil-boden uppercase">Alle Bilder</a>
<a href="#" class="col-md-6 text-right text-beitrag icon-download-pfeil-boden uppercase">kompletter Beitrag</a>
</div>
</div>
</div>
<!-- end additional part -->
<li>
<img src="https://domain/image/image-1.jpg" alt="Bild 1 Lorem ipsum "
data-description=""
data-large-src="https://domain/small-image/image-1.jpg"/>
<p class="uppercase">Bild 1</p>
</li>
<li>
<img src="https://domain/image/image-2.jpg" alt="Bild 2 Lorem ipsum "
data-description=""
data-large-src="https://domain/small-image/image-2.jpg"/>
<p class="uppercase">Bild 2</p>
</li>
<li>
<img src="https://domain/image/image-3.jpg" alt="Bild 3 Lorem ipsum "
data-description=""
data-large-src="https://domain/small-image/image-3.jpg"/>
<p class="uppercase">Bild 3</p>
</li>
</ul>
How can I add a class "show" and "hide" at another place in the DOM?
When I click on a thumbnail or when I click on the big image, the class "show" should be added at the respective download link and at the other links should not be visible in each case.