Add mardown link (thumb + link to full)

This commit is contained in:
Knah Tsaeb 2020-10-12 15:21:53 +02:00
parent a470613d24
commit a59950db91

View file

@ -238,7 +238,7 @@
document.getElementById("comment01").innerHTML = element.dataset.desc; document.getElementById("comment01").innerHTML = element.dataset.desc;
document.getElementById("thumburl").innerHTML = "Thumbnail : " + element.firstElementChild.currentSrc; document.getElementById("thumburl").innerHTML = "Thumbnail : " + element.firstElementChild.currentSrc;
document.getElementById("fullurl").innerHTML = "Full : " + element.href; document.getElementById("fullurl").innerHTML = "Full : " + element.href;
document.getElementById("markdown").innerHTML = "Markdown : [![](" + element.firstElementChild.currentSrc + "](" + element.href + ")"; document.getElementById("markdown").innerHTML = "Markdown : [![](" + element.firstElementChild.currentSrc + ")](" + 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";