Add link to thumb and full image

This commit is contained in:
Knah Tsaeb 2020-10-09 11:48:53 +02:00
parent f6518fa48b
commit a40d8a260b

View file

@ -185,7 +185,10 @@
<div class="modal-content">
<div id="modal-content-img"><img id="img01"></div>
<div id="video01"></div>
<div id="comment01" class="w3-theme-d3 w3-shadow">
<div class="w3-theme-d3 w3-shadow">
<p id="comment01"></p>
<p id="thumburl"></p>
<p id="fullurl"></p>
</div>
</div>
</div>
@ -207,6 +210,8 @@
document.getElementById("comment01").innerHTML = null;
document.getElementById("video01").innerHTML = null;
document.getElementById("comment01").innerHTML = element.dataset.desc;
document.getElementById("thumburl").innerHTML = "Thumbnail : "+element.firstElementChild.currentSrc;
document.getElementById("fullurl").innerHTML = "Full : "+element.href;
if (typeof element.dataset.video !== 'undefined') {
document.getElementById("img01").style.display = "none";