diff --git a/public/index.html b/public/index.html index ce7d900..75177d7 100644 --- a/public/index.html +++ b/public/index.html @@ -8,15 +8,15 @@ Archive - toom.io - - + +
- +
-
+
diff --git a/public/script.js b/public/script.js index 22f73bb..f89f3ee 100644 --- a/public/script.js +++ b/public/script.js @@ -11,11 +11,11 @@ function setPath(crumbs, files, q, path, query) { function a(sp, href, text, cls, rel) { let r = document.createElement("a"); - r.appendChild(document.createTextNode(text)); + r.appendChild(document.createTextNode(text.replace(/_/g, " "))); r.setAttribute("href", href); if (rel) r.setAttribute("rel", rel); if (cls) r.classList.add(cls); - if (sp) r.addEventListener( 'click', function(e){ + if (sp) r.addEventListener("click", function(e){ e.preventDefault(); setPath(crumbs, files, q, href, ""); }); diff --git a/public/style.css b/public/style.css index fbd307a..21a0113 100644 --- a/public/style.css +++ b/public/style.css @@ -94,7 +94,10 @@ header { #files li { padding: 5px 15px; } #files li:nth-child(even) { background-color: #eee9; } #files li:last-child { border-radius: 0 0 10px 10px; } -#files li a { font-family: monospace; } +#files li a { + font-family: monospace; + white-space: pre; +} .u:before { content: "⬆️"; } .d:before { content: "📁"; } .f:before { content: "📄"; }