You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
808 B
37 lines
808 B
4 years ago
|
<!DOCTYPE html>
|
||
|
<head>
|
||
|
<script src="/nunjucks-slim.js"></script>
|
||
|
<script src="/templates.js"></script>
|
||
|
<script>
|
||
|
nunjucks.configure({ autoescape: true });
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="render()">
|
||
|
<script>
|
||
|
function render(){
|
||
|
switch(window.location.pathname){
|
||
|
case "/about.html":
|
||
|
document.body.innerHTML = nunjucks.render('about.html');
|
||
|
break;
|
||
|
case "/tos.html":
|
||
|
document.body.innerHTML = nunjucks.render('tos.html');
|
||
|
break;
|
||
|
default:
|
||
|
document.body.innerHTML = nunjucks.render('404.njk');
|
||
|
}
|
||
|
}
|
||
|
function getContext(){
|
||
|
var conf = {
|
||
|
sitename: "",
|
||
|
domain: "",
|
||
|
email: "",
|
||
|
version: "",
|
||
|
registration: false
|
||
|
}
|
||
|
var info = new XMLHttpRequest();
|
||
|
info.onload = () => {
|
||
|
if(xhr.status === 200)
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|