66 lines
1.3 KiB
PHP
66 lines
1.3 KiB
PHP
<?php require 'base.php' ?>
|
|
<html>
|
|
<head>
|
|
<title>APub Control - Panel</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="fonts/forkawesome/css/fork-awesome.min.css">
|
|
<script type="application/javascript" src="js/dayjs.min.js"></script>
|
|
<script type="application/javascript" src="js/relativeTime.js"></script>
|
|
<script type="application/javascript" src="js/updateLocale.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<?php require 'css/base.php' ?>
|
|
|
|
<main>
|
|
</main>
|
|
|
|
<?php require 'js/base.php' ?>
|
|
|
|
<script>
|
|
function hashProcessor(initial) {
|
|
var args = window.location.hash.substring(1).trim().split('/');
|
|
if (args.length > 0 && args[0].trim() === '')
|
|
args = [];
|
|
|
|
if (args.length === 0) {
|
|
// no hash arguments
|
|
return;
|
|
}
|
|
|
|
initial = initial || false;
|
|
const processArgs = function() {
|
|
switch (args[0]) {
|
|
default:
|
|
console.log(args);
|
|
}
|
|
};
|
|
processArgs();
|
|
}
|
|
|
|
window.onhashchange = function(e) { hashProcessor() }
|
|
window.onload = function(e) {
|
|
dayjs.extend(window.dayjs_plugin_relativeTime);
|
|
dayjs.extend(window.dayjs_plugin_updateLocale);
|
|
dayjs.updateLocale('en', {
|
|
relativeTime: {
|
|
future: "in %s",
|
|
past: "%s ago",
|
|
s: '%d s',
|
|
m: "1 m",
|
|
mm: "%d m",
|
|
h: "1 h",
|
|
hh: "%d h",
|
|
d: "1 d",
|
|
dd: "%d d",
|
|
M: "1 M",
|
|
MM: "%s M",
|
|
y: "1 Y",
|
|
yy: "%s Y"
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|