mirror of
https://github.com/oupala/apaxy.git
synced 2026-03-09 13:40:30 +01:00
24 lines
861 B
HTML
24 lines
861 B
HTML
<div class="block">
|
|
You can add your own HTML above or below the directory listing. Simply explore the <code>header.html</code> and <code>footer.html</code> files.
|
|
</div><!--/.postlisting-->
|
|
|
|
</div><!--/.wrapper-->
|
|
|
|
<div class="footer">
|
|
Apaxy by <a href="https://twitter.com/adamwhitcroft">@adamwhitcroft</a>
|
|
</div><!--/.footer-->
|
|
<script type="text/javascript">
|
|
// grab the 2nd child and add the parent class. tr:nth-child(2)
|
|
document.getElementsByTagName('tr')[1].className = 'parent';
|
|
// fix links when not adding a / at the end of the URI
|
|
var uri = window.location.pathname.substr(1);
|
|
if (uri.substring(uri.length-1) != '/'){
|
|
var indexes = document.getElementsByClassName('indexcolname'),
|
|
i = indexes.length;
|
|
while (i--){
|
|
var a = indexes[i].getElementsByTagName('a')[0];
|
|
a.href = '/' + uri + '/' + a.getAttribute('href',2);
|
|
}
|
|
}
|
|
</script>
|