From 7329e5136891bc8b9c9e6c8f2f37224993c9cc70 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 17 Feb 2022 16:05:10 +0800 Subject: [PATCH] show md when no file listing --- theme/classic.html | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/theme/classic.html b/theme/classic.html index 94273f7..d22dd42 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -483,9 +483,9 @@
- + @@ -524,8 +524,20 @@ } } + + var $head = document.getElementById('head'); + if ($head) { + //document.getElementById('head-div').parentNode.insertBefore(document.getElementById('head-div'),document.getElementById('list-div')); + $head.innerHTML = marked(document.getElementById('head-md').innerText); + } + + + var $readme = document.getElementById('readme'); + if ($readme) { + $readme.innerHTML = marked(document.getElementById('readme-md').innerText); + } + - var $url = document.getElementById('url'); if ($url) { @@ -650,19 +662,6 @@ } - - var $head = document.getElementById('head'); - if ($head) { - //document.getElementById('head-div').parentNode.insertBefore(document.getElementById('head-div'),document.getElementById('list-div')); - $head.innerHTML = marked(document.getElementById('head-md').innerText); - } - - - var $readme = document.getElementById('readme'); - if ($readme) { - $readme.innerHTML = marked(document.getElementById('readme-md').innerText); - } - function showthumbnails(obj) {