From ded0ccf04134f32bf90ee56227b9b86849fd21d8 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Mon, 12 Oct 2020 15:16:05 +0200 Subject: [PATCH] Add mardown link (thumb + link to full) --- templates/NeoKT.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/templates/NeoKT.html b/templates/NeoKT.html index 0653733..2eda01a 100644 --- a/templates/NeoKT.html +++ b/templates/NeoKT.html @@ -118,9 +118,12 @@ padding: .3em; } + #modal01 span { + text-align: left; + } + .modal-content { position: relative; - height: 100%; } #modal-content-img, @@ -131,13 +134,13 @@ #modal-content-img img, #video01 video { max-width: 98%; - max-height: 85vh; + max-height: 72vh; padding: 4px; } #comment01 { position: relative; - margin: 0 auto; + margin: 0 auto 12px; padding: 4px; box-shadow: 0px 5px rgba(89, 0, 46, 0.5); text-align: left; @@ -200,8 +203,13 @@

-

-

+

+

+

@@ -230,6 +238,7 @@ document.getElementById("comment01").innerHTML = element.dataset.desc; document.getElementById("thumburl").innerHTML = "Thumbnail : " + element.firstElementChild.currentSrc; document.getElementById("fullurl").innerHTML = "Full : " + element.href; + document.getElementById("markdown").innerHTML = "Markdown : [![](" + element.href + "](" + element.href + ")"; if (typeof element.dataset.video !== 'undefined') { document.getElementById("img01").style.display = "none";