2020-10-31 15:28:27 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2020-12-18 18:08:17 +00:00
|
|
|
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
|
AAAAAAAlJSUAAGIAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAIiIiIgAAAAAAAAAgAAAAAAAAAAAAADIiIiIi
|
|
|
|
IiIjMhERERERESMyERERERERIzIREREREREjMhERIRERESMyERIiIiERIzIRESEREREjMhERERER
|
|
|
|
ESMyERERERERIzIREREREREjMiIiIiIiIiMAAAAAAAAAAAAAAAAAAAAAAAAAAIABAACAAQAAgAEA
|
|
|
|
AIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAA" rel="icon" type="image/x-icon" />
|
2020-10-31 15:28:27 +00:00
|
|
|
<style>
|
|
|
|
body {
|
2020-12-18 18:08:17 +00:00
|
|
|
margin: 0px;
|
2020-11-02 19:17:22 +00:00
|
|
|
font-family: sans-serif;
|
2020-10-31 15:28:27 +00:00
|
|
|
}
|
2020-12-18 18:08:17 +00:00
|
|
|
.app {
|
|
|
|
--main-bg-color: white;
|
|
|
|
--main-fg-color: black;
|
|
|
|
--main-link-color: unset;
|
|
|
|
--odd-row-bg-color: #d8d8d8;
|
|
|
|
--grey-color: #555;
|
|
|
|
--dark-mode-transition: all 1s ease;
|
|
|
|
|
|
|
|
background-color: var(--main-bg-color);
|
|
|
|
color: var(--main-fg-color);
|
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
transition: var(--dark-mode-transition);
|
|
|
|
}
|
2021-10-20 09:51:47 +00:00
|
|
|
.fine {
|
|
|
|
color: #444;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2020-12-18 18:08:17 +00:00
|
|
|
.light_switch {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.light_switch_label {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
background-color: var(--main-fg-color);
|
|
|
|
color: var(--main-bg-color);
|
|
|
|
}
|
|
|
|
.light_switch_label::before {
|
|
|
|
content: "[ ] ";
|
|
|
|
}
|
2021-10-20 09:51:47 +00:00
|
|
|
.app a {
|
2020-12-18 18:08:17 +00:00
|
|
|
color: var(--main-link-color);
|
|
|
|
transition: var(--dark-mode-transition);
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
color: var(--main-fg-color);
|
|
|
|
transition: var(--dark-mode-transition);
|
|
|
|
}
|
2020-11-25 02:17:08 +00:00
|
|
|
td {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
td > * {
|
2020-10-31 15:28:27 +00:00
|
|
|
padding: 10px;
|
2020-11-25 02:17:08 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.entry {
|
2020-11-08 15:53:09 +00:00
|
|
|
text-decoration: none;
|
2020-10-31 15:28:27 +00:00
|
|
|
}
|
2020-11-08 17:58:14 +00:00
|
|
|
.grey {
|
2020-12-18 18:08:17 +00:00
|
|
|
color: var(--grey-color);
|
2020-11-25 02:17:08 +00:00
|
|
|
text-align: right;
|
2020-12-18 18:08:17 +00:00
|
|
|
transition: var(--dark-mode-transition);
|
2020-11-08 17:58:14 +00:00
|
|
|
}
|
|
|
|
.entry_list {
|
|
|
|
width: 100%;
|
2020-11-25 02:17:08 +00:00
|
|
|
border-collapse: collapse;
|
2020-12-18 18:08:17 +00:00
|
|
|
margin-bottom: 1em;
|
2020-11-08 17:58:14 +00:00
|
|
|
}
|
2020-11-25 02:17:08 +00:00
|
|
|
tbody tr:nth-child(odd) {
|
2020-12-18 18:08:17 +00:00
|
|
|
background-color: var(--odd-row-bg-color);
|
|
|
|
transition: var(--dark-mode-transition);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark mode colors */
|
|
|
|
[type="checkbox"]:checked + .app {
|
|
|
|
--main-bg-color: black;
|
|
|
|
--main-fg-color: white;
|
|
|
|
--main-link-color: white;
|
|
|
|
--odd-row-bg-color: #333;
|
|
|
|
--grey-color: #aaa;
|
|
|
|
}
|
|
|
|
[type="checkbox"]:checked + .app .light_switch_label::before {
|
|
|
|
content: "[X] ";
|
2020-10-31 15:28:27 +00:00
|
|
|
}
|
|
|
|
</style>
|
2020-11-08 15:53:09 +00:00
|
|
|
<title>{{path}} {{server_name}}</title>
|
2020-10-31 15:28:27 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-12-18 18:08:17 +00:00
|
|
|
<input type="checkbox" class="light_switch" id="light_switch">
|
2020-10-31 15:28:27 +00:00
|
|
|
|
2020-12-18 18:08:17 +00:00
|
|
|
<div class="app">
|
2020-11-08 15:53:09 +00:00
|
|
|
<p>{{server_name}}</p>
|
|
|
|
|
|
|
|
<p>{{path}}</p>
|
|
|
|
|
2020-11-08 17:58:14 +00:00
|
|
|
<table class="entry_list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Size</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-10-31 15:28:27 +00:00
|
|
|
|
2020-11-08 17:58:14 +00:00
|
|
|
<tr>
|
|
|
|
<td><a class="entry" href="../">📁 ../</a></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
2020-10-31 15:28:27 +00:00
|
|
|
|
2020-10-31 02:31:03 +00:00
|
|
|
{{#each entries}}
|
2020-11-08 17:58:14 +00:00
|
|
|
<tr>
|
|
|
|
<td><a class="entry" href="{{this.encoded_file_name}}{{this.trailing_slash}}">
|
|
|
|
{{this.icon}} {{this.file_name}}{{this.trailing_slash}}</a></td>
|
|
|
|
<td><span class="grey">{{this.size}}</span></td>
|
|
|
|
</tr>
|
2020-10-31 02:31:03 +00:00
|
|
|
{{/each}}
|
2020-10-31 15:28:27 +00:00
|
|
|
|
2020-11-08 17:58:14 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-10-31 15:28:27 +00:00
|
|
|
|
2020-12-18 18:08:17 +00:00
|
|
|
<!-- Doesn't work perfectly yet -->
|
2021-03-15 19:56:44 +00:00
|
|
|
<!--<label for="light_switch" class="light_switch_label">Dark mode</label>-->
|
2021-10-20 09:51:47 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="fine">
|
|
|
|
Rendered by PTTH end server.
|
|
|
|
Copyright 2020-2021 "Trish" ReactorScram. Licensed under the
|
|
|
|
<a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPLv3.</a>
|
|
|
|
<a href="https://six-five-six-four.com/git/reactor/ptth">Download source code</a>
|
|
|
|
</p>
|
|
|
|
|
2020-10-31 15:28:27 +00:00
|
|
|
</body>
|
|
|
|
</html>
|