Add link to thumb and full image
This commit is contained in:
parent
f6518fa48b
commit
a40d8a260b
1 changed files with 6 additions and 1 deletions
|
@ -185,7 +185,10 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div id="modal-content-img"><img id="img01"></div>
|
<div id="modal-content-img"><img id="img01"></div>
|
||||||
<div id="video01"></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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -207,6 +210,8 @@
|
||||||
document.getElementById("comment01").innerHTML = null;
|
document.getElementById("comment01").innerHTML = null;
|
||||||
document.getElementById("video01").innerHTML = null;
|
document.getElementById("video01").innerHTML = null;
|
||||||
document.getElementById("comment01").innerHTML = element.dataset.desc;
|
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') {
|
if (typeof element.dataset.video !== 'undefined') {
|
||||||
document.getElementById("img01").style.display = "none";
|
document.getElementById("img01").style.display = "none";
|
||||||
|
|
Loading…
Reference in a new issue