2021-06-24 14:04:14 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang='en'>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2022-01-12 21:27:06 +01:00
|
|
|
<title>{{ name }}</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
|
|
|
{% block head %}
|
|
|
|
{% endblock %}
|
2021-06-24 14:04:14 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="wrapper">
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
2022-01-12 21:27:06 +01:00
|
|
|
</div>
|
2021-06-24 14:04:14 +02:00
|
|
|
</body>
|
2022-01-12 21:27:06 +01:00
|
|
|
<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 }}';
|
|
|
|
|
|
|
|
nav.innerHTML = `
|
2022-02-16 23:20:20 +01:00
|
|
|
<h1>${ name } <a href="/"><em class="octomode">in octomode</em></a></h1>
|
2022-01-12 21:27:06 +01:00
|
|
|
<div id="buttons">
|
|
|
|
<a href="/${ name }/pad/"><button>pad</button></a>: <input type="text" name="pad" value="https://pad.vvvvvvaria.org/${ name }.md">
|
|
|
|
<a href="/${ name }/stylesheet/"><button>stylesheet</button></a>: <input type="text" name="pad" value="https://pad.vvvvvvaria.org/${ name }.css">
|
|
|
|
<a href="/${ name }/template/"><button>template</button></a>: <input type="text" name="pad" value="https://pad.vvvvvvaria.org/${ name }.template">
|
|
|
|
<!-- <a href="/${ name }/html/"><button>html</button></a> -->
|
|
|
|
<a href="/${ name }/pdf/"><button>pdf</button></a>
|
|
|
|
</div>`;
|
|
|
|
|
|
|
|
document.body.insertBefore(nav, document.body.firstChild);
|
|
|
|
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
{% block footer %}
|
|
|
|
{% endblock %}
|
2021-06-24 14:04:14 +02:00
|
|
|
</html>
|