24 lines
838 B
HTML
24 lines
838 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="/styles.css">
|
|
<link rel="stylesheet" type="text/css" href="/local.css">
|
|
<link rel="icon" type="image/svg" href="/logo.svg">
|
|
|
|
<script src="/nunjucks-slim.js"></script>
|
|
<script src="/templates.js"></script>
|
|
<script src="/shaka-player.compiled.js"></script>
|
|
|
|
<script>
|
|
nunjucks.configure({ autoescape: true });
|
|
//should check for and refresh login tokens on pageload..
|
|
if(document.cookie.match(/^(.*;)?\s*X-Auth-As\s*=\s*[^;]+(.*)?$/) !== null) {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open("POST", "/api/login", true);
|
|
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
xhr.send("");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="render(window.location.pathname)">
|
|
<script src="/index.js"></script>
|
|
</body> |