41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang='en'>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>{{ name }} in octomode</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ application_root }}static/main.css">
|
|
{% block head %}
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div id="wrapper">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
</body>
|
|
<script>
|
|
window.addEventListener('load', function () {
|
|
|
|
// Insert the nav buttons, after the page is loaded
|
|
const nav = document.createElement('div');
|
|
nav.id = 'nav';
|
|
const name = '{{ name }}';
|
|
const application_root = '{{ application_root }}';
|
|
|
|
nav.innerHTML = `
|
|
<h1>${ name } <a href="/"><em class="octomode">in octomode</em></a></h1>
|
|
<div id="buttons">
|
|
<a href="${ application_root }${ name }/pad/"><button>pad</button></a>: <input type="text" name="pad" value="https://pad.vvvvvvaria.org/${ name }.md">
|
|
<a href="${ application_root }${ name }/stylesheet/"><button>stylesheet</button></a>: <input type="text" name="pad" value="https://pad.vvvvvvaria.org/${ name }.css">
|
|
<a href="${ application_root }${ name }/html/"><button>html</button></a>
|
|
<a href="${ application_root }${ name }/pdf/"><button>pdf</button></a>
|
|
</div>`;
|
|
|
|
document.body.insertBefore(nav, document.body.firstChild);
|
|
|
|
})
|
|
</script>
|
|
{% block footer %}
|
|
{% endblock %}
|
|
</html>
|