forked from TheInsomniac/Nginx-Fancyindex-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.html
30 lines (30 loc) · 1.14 KB
/
footer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</div>
</div>
<script>
var loc =decodeURI(window.location.pathname);
var segments = loc.split('/');
var breadcrumbs = '';
var currentPath = '/';
for (var i=0; i<segments.length; i++) {
if (segments[i] !== '') {
currentPath += segments[i] + '/';
breadcrumbs += '<a href="' + currentPath + '">' + window.unescape(segments[i]) + '<\/a>';
} else if (segments.length -1 !== i) {
currentPath += '';
breadcrumbs += '<a href="' + currentPath + '">Root<\/a>';
}
}
document.getElementById('breadcrumbs').innerHTML = breadcrumbs;
</script>
<script src="/fancyindex/js/history.js"></script>
<footer>
<div id="copyright&themeinfo" class="page-footer" style="position:absolute;bottom:12px;left:40%;color:gray;font-size:x-small;">
<a href="#" onclick="MGJS.goTop();return false;"> 回到顶部 </a> |
<a href="https://github.com/TheInsomniac/Nginx-Fancyindex-Theme" target="_blank">Them by GitHub</a> |
<a href="https://www.wongcw.cn" target="_blank">
<script>document.write("Copyright © wangcw 2020-" + new Date().getFullYear() + " All Rights Reserved")
</script> </a>
</div>
</footer>
</body>
</html>