59 lines
1.6 KiB
HTML
59 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh_CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>web catalog browsing</title>
|
||
<style>
|
||
.mono-table {
|
||
font-family: monospace, monospace;
|
||
white-space: pre;
|
||
letter-spacing: 0.1em;
|
||
}
|
||
|
||
.mono-table td {
|
||
padding: 0 0.5em;
|
||
vertical-align: top;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
|
||
<h3>now path: {h3}</h3>
|
||
<hr>
|
||
<p>Request start time: {time}</p>
|
||
<p>Number of files, folders: {file_var}</p>
|
||
<p>Server internal path: {server_path}</p>
|
||
<a href="#" id="backLink" class="back-link">Return to the previous directory</a>
|
||
|
||
<script>
|
||
document.getElementById('backLink').addEventListener('click', function(e) {
|
||
e.preventDefault();
|
||
let currentPath = window.location.pathname;
|
||
currentPath = currentPath.replace(/\/$/, '');
|
||
let pathParts = currentPath.split('/');
|
||
pathParts.pop();
|
||
let parentPath = pathParts.join('/');
|
||
if (parentPath === '') parentPath = '/';
|
||
window.location.href = window.location.origin + parentPath;
|
||
});
|
||
</script>
|
||
<hr>
|
||
<table class="mono-table">
|
||
<tr>
|
||
<td style="width: 6cn">type</td>
|
||
<td style="width: 60cn">name</td>
|
||
<td style="width: 30cn">size</td>
|
||
<td style="width: 30cn">time</td>
|
||
</tr>
|
||
<tr></tr>
|
||
{file}
|
||
</table>
|
||
<hr>
|
||
|
||
<p align="center">Powered by Da_nuo</p>
|
||
</body>
|
||
</html>
|
||
|
||
|
||
|