@ -0,0 +1,46 @@
|
|||||||
|
#
|
||||||
|
# SIMPLE - apache directory listing theme
|
||||||
|
#
|
||||||
|
# (c) 2017 Miroslav Pokorný
|
||||||
|
# https://miroslavpokorny.com/simple-apache-directory-listing-theme
|
||||||
|
#
|
||||||
|
|
||||||
|
Alias /simple/ /var/www/simple/
|
||||||
|
|
||||||
|
<Directory /var/www/>
|
||||||
|
<IfModule mod_autoindex.c>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
IndexOptions +FancyIndexing +VersionSort +HTMLTable +FoldersFirst +IconsAreLinks +IgnoreCase +SuppressDescription +SuppressHTMLPreamble +XHTML +IconWidth=16 +IconHeight=16 +NameWidth=*
|
||||||
|
IndexOrderDefault Ascending Name
|
||||||
|
HeaderName /simple/header.html
|
||||||
|
ReadmeName /simple/footer.html
|
||||||
|
DefaultIcon /simple/icons/document.png
|
||||||
|
AddIcon /simple/icons/arrow-curve-180.png ..
|
||||||
|
AddIcon /simple/icons/folder.png ^^DIRECTORY^^
|
||||||
|
AddIcon /simple/icons/document-text.png README INSTALL
|
||||||
|
AddIcon /simple/icons/application.png .exe .app
|
||||||
|
AddIcon /simple/icons/box.png .tar .tgz .tbz .tbz2 .bundle .rar .z .gz .zip
|
||||||
|
AddIcon /simple/icons/database.png .db .sqlite .dat
|
||||||
|
AddIcon /simple/icons/disc.png .iso .image
|
||||||
|
AddIcon /simple/icons/document-access.png .ade .adp .adn .accdb .accdr .accdt .mdb .mda .mdn .mdt .mdw .mdf .mde .accde .mam .maq .mar .mat .maf
|
||||||
|
AddIcon /simple/icons/document-binary.png .bin .hqx .uu
|
||||||
|
AddIcon /simple/icons/document-code.png .html .htm .htx .htmls .dhtml .phtml .shtml .inc .ssi .c .cc .css .h .rb .js .rb .pl .py .sh .shar .csh .ksh .tcl .as
|
||||||
|
AddIcon /simple/icons/document-excel.png .xls .xla .xlb .xlc .xld .xlk .xll .xlm .xlt .xlv .xlw .xlsx .xlsm .xlsb .xltm .xlam
|
||||||
|
AddIcon /simple/icons/document-excel-csv.png .csv
|
||||||
|
AddIcon /simple/icons/document-flash.png .fla .flv .swf .swt .swc
|
||||||
|
AddIcon /simple/icons/document-illustrator.png .ai .eps .epsf .epsi
|
||||||
|
AddIcon /simple/icons/document-number.png .conf
|
||||||
|
AddIcon /simple/icons/document-pdf.png .pdf
|
||||||
|
AddIcon /simple/icons/document-pdf-text.png .ps
|
||||||
|
AddIcon /simple/icons/document-photoshop.png .psd
|
||||||
|
AddIcon /simple/icons/document-php.png .php .phps .php5 .php3 .php4 .phtm
|
||||||
|
AddIcon /simple/icons/document-powerpoint.png .ppt .pptx .ppz .pot .pwz .ppa .pps .pow
|
||||||
|
AddIcon /simple/icons/document-tex.png .tex .dvi
|
||||||
|
AddIcon /simple/icons/document-text.png .txt
|
||||||
|
AddIcon /simple/icons/document-word.png .docx .docm .doc .dotx .dotm .dot .rtf
|
||||||
|
AddIconByType (IMG,/simple/icons/image.png) image/*
|
||||||
|
AddIconByType (SND,/simple/icons/music.png) audio/*
|
||||||
|
AddIconByType (TXT,/simple/icons/document-text.png) text/*
|
||||||
|
AddIconByType (VID,/simple/icons/film.png) video/*
|
||||||
|
</ifModule>
|
||||||
|
</Directory>
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,41 @@
|
|||||||
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<a href="https://miroslavpokorny.com/simple-apache-directory-listing-theme"></a>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var ignoreDirectories = 0; // set how many directories should be ignored
|
||||||
|
var ignoreAsNoLink = false; // set whether to ignore as 'do not display' or ignore as 'no links in breadcrub, but visible'
|
||||||
|
|
||||||
|
var path = document.location.pathname;
|
||||||
|
var segments = path.split("/");
|
||||||
|
var breadcrumbs = '/ ';
|
||||||
|
var currentPath = "/";
|
||||||
|
var homeLink = "/";
|
||||||
|
for (var i = 0; i<segments.length; i++) {
|
||||||
|
if (segments[i] != '') {
|
||||||
|
currentPath += segments[i] + '/';
|
||||||
|
if (ignoreDirectories >= i) {
|
||||||
|
if (ignoreAsNoLink) {
|
||||||
|
breadcrumbs += segments[i] + ' / ';
|
||||||
|
}
|
||||||
|
homeLink = currentPath;
|
||||||
|
} else {
|
||||||
|
breadcrumbs += '<a href="' + currentPath + '">' + segments[i] + '</a> / ';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ignoreDirectories !== 0) {
|
||||||
|
document.getElementById('homelink').setAttribute('href', homeLink);
|
||||||
|
if (path === homeLink) {
|
||||||
|
document.querySelector('tr:nth-child(3)').remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var elements = document.getElementsByClassName('header__breadcrumbs');
|
||||||
|
var n = elements.length;
|
||||||
|
for (i = 0; i < n; i++) {
|
||||||
|
var e = elements[i];
|
||||||
|
e.innerHTML = breadcrumbs;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,26 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/simple/favicons/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" href="/simple/favicons/favicon-32x32.png" sizes="32x32">
|
||||||
|
<link rel="icon" type="image/png" href="/simple/favicons/favicon-16x16.png" sizes="16x16">
|
||||||
|
<link rel="manifest" href="/simple/favicons/manifest.json">
|
||||||
|
<link rel="mask-icon" href="/simple/favicons/safari-pinned-tab.svg" color="#b33333">
|
||||||
|
<link rel="shortcut icon" href="/simple/favicons/favicon.ico">
|
||||||
|
<meta name="msapplication-config" content="/simple/favicons/browserconfig.xml">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
<link rel="stylesheet" href="/simple/style.css">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="gradient top"></div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="header">
|
||||||
|
<div class="header__wrapper">
|
||||||
|
<div class="header__home"><a id="homelink" href="/"></a></div>
|
||||||
|
<div class="header__breadcrumbs">/ </div>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="files">
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 483 B After Width: | Height: | Size: 483 B |
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 569 B |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 652 B After Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 692 B |
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 719 B |
Before Width: | Height: | Size: 665 B After Width: | Height: | Size: 665 B |
Before Width: | Height: | Size: 717 B After Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 703 B |
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 692 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 654 B After Width: | Height: | Size: 654 B |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 562 B After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 703 B |
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 725 B |
Before Width: | Height: | Size: 805 B After Width: | Height: | Size: 805 B |
Before Width: | Height: | Size: 669 B After Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
@ -0,0 +1,43 @@
|
|||||||
|
#
|
||||||
|
# SIMPLE - apache directory listing theme
|
||||||
|
#
|
||||||
|
# (c) 2017 Miroslav Pokorný
|
||||||
|
# https://miroslavpokorny.com/simple-apache-directory-listing-theme
|
||||||
|
#
|
||||||
|
|
||||||
|
Options +Indexes
|
||||||
|
IndexOptions +FancyIndexing +VersionSort +HTMLTable +FoldersFirst +IconsAreLinks +IgnoreCase +SuppressDescription +XHTML +IconWidth=16 +IconHeight=16 +NameWidth=*
|
||||||
|
HeaderName /{SIMPLE_DIRECTORY}/simple/header.html
|
||||||
|
ReadmeName /{SIMPLE_DIRECTORY}/simple/footer.html
|
||||||
|
IndexStyleSheet /{SIMPLE_DIRECTORY}/simple/style.css
|
||||||
|
IndexIgnore .htaccess /simple
|
||||||
|
IndexHeadInsert '<meta name="viewport" content="width=device-width, initial-scale=1" /><meta charset="utf-8" /><link rel="apple-touch-icon" sizes="180x180" href="/{SIMPLE_DIRECTORY}/simple/favicons/apple-touch-icon.png" /><link rel="icon" type="image/png" href="/{SIMPLE_DIRECTORY}/simple/favicons/favicon-32x32.png" sizes="32x32" /><link rel="icon" type="image/png" href="/{SIMPLE_DIRECTORY}/simple/favicons/favicon-16x16.png" sizes="16x16" /><link rel="manifest" href="/{SIMPLE_DIRECTORY}/simple/favicons/manifest.json" /><link rel="mask-icon" href="/{SIMPLE_DIRECTORY}/simple/favicons/safari-pinned-tab.svg" color="#b33333" /><link rel="shortcut icon" href="/{SIMPLE_DIRECTORY}/simple/favicons/favicon.ico" /><meta name="msapplication-config" content="/{SIMPLE_DIRECTORY}/simple/favicons/browserconfig.xml" /><meta name="theme-color" content="#ffffff" /><link rel="stylesheet" href="/{SIMPLE_DIRECTORY}/simple/style.css" />'
|
||||||
|
IndexOrderDefault Ascending Name
|
||||||
|
DefaultIcon /{SIMPLE_DIRECTORY}/simple/icons/document.png
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/arrow-curve-180.png ..
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/folder.png ^^DIRECTORY^^
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-text.png README INSTALL
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/application.png .exe .app
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/box.png .tar .tgz .tbz .tbz2 .bundle .rar .z .gz .zip .7z
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/database.png .db .sqlite .dat
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/disc.png .iso .image
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-access.png .ade .adp .adn .accdb .accdr .accdt .mdb .mda .mdn .mdt .mdw .mdf .mde .accde .mam .maq .mar .mat .maf
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-binary.png .bin .hqx .uu
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-code.png .html .htm .htx .htmls .dhtml .phtml .shtml .inc .ssi .c .cc .css .h .rb .js .rb .pl .py .sh .shar .csh .ksh .tcl .as
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-excel.png .xls .xla .xlb .xlc .xld .xlk .xll .xlm .xlt .xlv .xlw .xlsx .xlsm .xlsb .xltm .xlam
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-excel-csv.png .csv
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-flash.png .fla .flv .swf .swt .swc
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-illustrator.png .ai .eps .epsf .epsi
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-number.png .conf
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-pdf.png .pdf
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-pdf-text.png .ps
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-photoshop.png .psd
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-php.png .php .phps .php5 .php3 .php4 .phtm
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-powerpoint.png .ppt .pptx .ppz .pot .pwz .ppa .pps .pow
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-tex.png .tex .dvi
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-text.png .txt
|
||||||
|
AddIcon /{SIMPLE_DIRECTORY}/simple/icons/document-word.png .docx .docm .doc .dotx .dotm .dot .rtf
|
||||||
|
AddIconByType (IMG,/{SIMPLE_DIRECTORY}/simple/icons/image.png) image/*
|
||||||
|
AddIconByType (SND,/{SIMPLE_DIRECTORY}/simple/icons/music.png) audio/*
|
||||||
|
AddIconByType (TXT,/{SIMPLE_DIRECTORY}/simple/icons/document-text.png) text/*
|
||||||
|
AddIconByType (VID,/{SIMPLE_DIRECTORY}/simple/icons/film.png) video/*
|
@ -0,0 +1,43 @@
|
|||||||
|
#
|
||||||
|
# SIMPLE - apache directory listing theme
|
||||||
|
#
|
||||||
|
# (c) 2017 Miroslav Pokorný
|
||||||
|
# https://miroslavpokorny.com/simple-apache-directory-listing-theme
|
||||||
|
#
|
||||||
|
|
||||||
|
Options +Indexes
|
||||||
|
IndexOptions +FancyIndexing +VersionSort +HTMLTable +FoldersFirst +IconsAreLinks +IgnoreCase +SuppressDescription +XHTML +IconWidth=16 +IconHeight=16 +NameWidth=*
|
||||||
|
HeaderName /simple/header.html
|
||||||
|
ReadmeName /simple/footer.html
|
||||||
|
IndexStyleSheet /simple/style.css
|
||||||
|
IndexIgnore .htaccess /simple
|
||||||
|
IndexHeadInsert '<meta name="viewport" content="width=device-width, initial-scale=1" /><meta charset="utf-8" /><link rel="apple-touch-icon" sizes="180x180" href="/simple/favicons/apple-touch-icon.png" /><link rel="icon" type="image/png" href="/simple/favicons/favicon-32x32.png" sizes="32x32" /><link rel="icon" type="image/png" href="/simple/favicons/favicon-16x16.png" sizes="16x16" /><link rel="manifest" href="/simple/favicons/manifest.json" /><link rel="mask-icon" href="/simple/favicons/safari-pinned-tab.svg" color="#b33333" /><link rel="shortcut icon" href="/simple/favicons/favicon.ico" /><meta name="msapplication-config" content="/simple/favicons/browserconfig.xml" /><meta name="theme-color" content="#ffffff" /><link rel="stylesheet" href="/simple/style.css" />'
|
||||||
|
IndexOrderDefault Ascending Name
|
||||||
|
DefaultIcon /simple/icons/document.png
|
||||||
|
AddIcon /simple/icons/arrow-curve-180.png ..
|
||||||
|
AddIcon /simple/icons/folder.png ^^DIRECTORY^^
|
||||||
|
AddIcon /simple/icons/document-text.png README INSTALL
|
||||||
|
AddIcon /simple/icons/application.png .exe .app
|
||||||
|
AddIcon /simple/icons/box.png .tar .tgz .tbz .tbz2 .bundle .rar .z .gz .zip .7z
|
||||||
|
AddIcon /simple/icons/database.png .db .sqlite .dat
|
||||||
|
AddIcon /simple/icons/disc.png .iso .image
|
||||||
|
AddIcon /simple/icons/document-access.png .ade .adp .adn .accdb .accdr .accdt .mdb .mda .mdn .mdt .mdw .mdf .mde .accde .mam .maq .mar .mat .maf
|
||||||
|
AddIcon /simple/icons/document-binary.png .bin .hqx .uu
|
||||||
|
AddIcon /simple/icons/document-code.png .html .htm .htx .htmls .dhtml .phtml .shtml .inc .ssi .c .cc .css .h .rb .js .rb .pl .py .sh .shar .csh .ksh .tcl .as
|
||||||
|
AddIcon /simple/icons/document-excel.png .xls .xla .xlb .xlc .xld .xlk .xll .xlm .xlt .xlv .xlw .xlsx .xlsm .xlsb .xltm .xlam
|
||||||
|
AddIcon /simple/icons/document-excel-csv.png .csv
|
||||||
|
AddIcon /simple/icons/document-flash.png .fla .flv .swf .swt .swc
|
||||||
|
AddIcon /simple/icons/document-illustrator.png .ai .eps .epsf .epsi
|
||||||
|
AddIcon /simple/icons/document-number.png .conf
|
||||||
|
AddIcon /simple/icons/document-pdf.png .pdf
|
||||||
|
AddIcon /simple/icons/document-pdf-text.png .ps
|
||||||
|
AddIcon /simple/icons/document-photoshop.png .psd
|
||||||
|
AddIcon /simple/icons/document-php.png .php .phps .php5 .php3 .php4 .phtm
|
||||||
|
AddIcon /simple/icons/document-powerpoint.png .ppt .pptx .ppz .pot .pwz .ppa .pps .pow
|
||||||
|
AddIcon /simple/icons/document-tex.png .tex .dvi
|
||||||
|
AddIcon /simple/icons/document-text.png .txt
|
||||||
|
AddIcon /simple/icons/document-word.png .docx .docm .doc .dotx .dotm .dot .rtf
|
||||||
|
AddIconByType (IMG,/simple/icons/image.png) image/*
|
||||||
|
AddIconByType (SND,/simple/icons/music.png) audio/*
|
||||||
|
AddIconByType (TXT,/simple/icons/document-text.png) text/*
|
||||||
|
AddIconByType (VID,/simple/icons/film.png) video/*
|
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 10 KiB |
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<browserconfig>
|
||||||
|
<msapplication>
|
||||||
|
<tile>
|
||||||
|
<square150x150logo src="/icons/mstile-150x150.png"/>
|
||||||
|
<TileColor>#ffffff</TileColor>
|
||||||
|
</tile>
|
||||||
|
</msapplication>
|
||||||
|
</browserconfig>
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 2.3 KiB |
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "Apache",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "\/icons\/android-chrome-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image\/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"theme_color": "#ffffff",
|
||||||
|
"display": "standalone"
|
||||||
|
}
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,39 @@
|
|||||||
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<a href="https://miroslavpokorny.com/simple-apache-directory-listing-theme"></a>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var ignoreDirectories = 0; // set how many directories should be ignored
|
||||||
|
var ignoreAsNoLink = false; // set whether to ignore as 'do not display' or ignore as 'no links in breadcrub, but visible'
|
||||||
|
|
||||||
|
var path = document.location.pathname;
|
||||||
|
var segments = path.split("/");
|
||||||
|
var breadcrumbs = '/ ';
|
||||||
|
var currentPath = "/";
|
||||||
|
var homeLink = "/";
|
||||||
|
for (var i = 0; i<segments.length; i++) {
|
||||||
|
if (segments[i] != '') {
|
||||||
|
currentPath += segments[i] + '/';
|
||||||
|
if (ignoreDirectories >= i) {
|
||||||
|
if (ignoreAsNoLink) {
|
||||||
|
breadcrumbs += segments[i] + ' / ';
|
||||||
|
}
|
||||||
|
homeLink = currentPath;
|
||||||
|
} else {
|
||||||
|
breadcrumbs += '<a href="' + currentPath + '">' + segments[i] + '</a> / ';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ignoreDirectories !== 0) {
|
||||||
|
document.getElementById('homelink').setAttribute('href', homeLink);
|
||||||
|
if (path === homeLink) {
|
||||||
|
document.querySelector('tr:nth-child(3)').remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var elements = document.getElementsByClassName('header__breadcrumbs');
|
||||||
|
var n = elements.length;
|
||||||
|
for (i = 0; i < n; i++) {
|
||||||
|
var e = elements[i];
|
||||||
|
e.innerHTML = breadcrumbs;
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,10 @@
|
|||||||
|
<div class="gradient top"></div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="header">
|
||||||
|
<div class="header__wrapper">
|
||||||
|
<div class="header__home"><a id="homelink" href="/"></a></div>
|
||||||
|
<div class="header__breadcrumbs">/ </div>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="files">
|
After Width: | Height: | Size: 341 B |
After Width: | Height: | Size: 618 B |
After Width: | Height: | Size: 829 B |
After Width: | Height: | Size: 632 B |
After Width: | Height: | Size: 508 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 575 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 569 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 630 B |
After Width: | Height: | Size: 702 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 651 B |
After Width: | Height: | Size: 702 B |
After Width: | Height: | Size: 692 B |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 719 B |
After Width: | Height: | Size: 665 B |
After Width: | Height: | Size: 717 B |
After Width: | Height: | Size: 703 B |
After Width: | Height: | Size: 692 B |
After Width: | Height: | Size: 1.6 KiB |