diff --git a/flat-theme/footer.html b/flat-theme/footer.html new file mode 100644 index 0000000..dc80e8a --- /dev/null +++ b/flat-theme/footer.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/flat-theme/header.html b/flat-theme/header.html new file mode 100644 index 0000000..c0d2234 --- /dev/null +++ b/flat-theme/header.html @@ -0,0 +1,35 @@ + + + + + + + + File Browser + + + + + + + + + + + +
+ +
+ +
+ + +
+
diff --git a/flat-theme/js/breadcrumbs.js b/flat-theme/js/breadcrumbs.js new file mode 100644 index 0000000..785d3f5 --- /dev/null +++ b/flat-theme/js/breadcrumbs.js @@ -0,0 +1,9 @@ +/*! + * + * This file is part of the nginx-fancyindex-flat-theme, licensed under the GNU + * General Public License. See the LICENSE file for details. + * + * Copyright (C) + * 2018-2024 Alexander Haase + */ +function generateBreadcrumbs(){for(var e,a,n,r=window.location.pathname.replace(/\/$/,"").split("/"),t="",c="",o=0;o'+(n?"":'')+e+(n?"":""));document.getElementById("breadcrumbs").innerHTML=t} diff --git a/flat-theme/js/list.js b/flat-theme/js/list.js new file mode 100644 index 0000000..8b4d277 --- /dev/null +++ b/flat-theme/js/list.js @@ -0,0 +1,9 @@ +/*! + * + * This file is part of the nginx-fancyindex-flat-theme, licensed under the GNU + * General Public License. See the LICENSE file for details. + * + * Copyright (C) + * 2018-2024 Alexander Haase + */ +function generateList(){function e(e){return''}var a=document.getElementById("list");a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.classList.add("table","table-sm","table-hover","text-nowrap"),a.tHead.children[0].classList.add("d-none","d-md-table-row"),"/"!=window.location.pathname&&a.deleteRow(1);for(var s,c=0;s=a.rows[c];c++)filetype=function(e){if(e.endsWith("/"))return"folder";switch(e.split(".").pop().toLowerCase()){case"txt":return"text";case"pdf":return"pdf";case"bmp":case"gif":case"jpeg":case"jpg":case"png":case"tif":case"tiff":return"image";case"aac":case"aiff":case"m4a":case"mp3":case"ogg":case"opus":case"wav":return"audio";case"amv":case"avi":case"flv":case"m4v":case"mkv":case"mov":case"mp4":case"m4p":case"mpeg":case"mpg":case"ogv":case"vob":case"webm":case"wmv":return"video";case"7z":case"a":case"apk":case"ar":case"bin":case"bz2":case"cab":case"dmg":case"gz":case"iso":case"jar":case"lz":case"lzma":case"lzo":case"pak":case"partimg":case"rar":case"s7z":case"tar":case"tbz2":case"tgz":case"tlz":case"txz":case"xz":case"zip":return"archive";case"doc":case"docx":case"odt":case"rtf":return"word";case"csv":case"ods":case"xls":case"xlsx":return"excel";case"odp":case"ppt":case"pptx":return"powerpoint";case"c":case"class":case"cpp":case"cs":case"h":case"hpp":case"hxx":case"java":case"py":case"sh":case"swift":case"vb":return"code"}}(s.cells[0].children[0].innerHTML),s.insertCell(0).innerHTML=0 + * + * See the LICENSE file for details. + */body{background-color:#f8f9fa;padding-bottom:20px}@media (prefers-color-scheme:dark){body{background-color:#343a40;color:#fff}}.breadcrumb{background-color:transparent;padding-left:35px}.breadcrumb .breadcrumb-item a{color:#4caf50}html{position:relative;min-height:100%}.footer{position:absolute;bottom:0;width:100%;margin-bottom:0}.footer a,.footer a:focus,.footer a:hover{color:#4caf50}.header{background-color:#4caf50;color:#fff;min-height:24px}.header .navbar-brand{padding:0 8px;font-size:16px;line-height:24px;height:24px}#list a,#list a:focus,#list a:hover{color:#000}#list colgroup{display:none}#list .filename{word-break:break-all;white-space:normal}@media (prefers-color-scheme:dark){#list a,#list a:focus,#list a:hover{color:#fff}} \ No newline at end of file