65 lines
2.3 KiB
HTML
65 lines
2.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="{{ url_for('static', filename='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';
|
|
|
|
nav.innerHTML = `
|
|
<h1>{{ name }} <a href="{{ url_for('index') }}"><em class="octomode">in octomode</em></a></h1>
|
|
<div id="buttons">
|
|
|
|
<a href="{{ url_for('pad', name=name) }}"><button>pad</button></a>
|
|
<a class="link" href="{{ pad_url }}/{{ name }}.md" target="_blank">🔗</a>
|
|
|
|
<a href="{{ url_for('stylesheet', name=name) }}"><button>stylesheet</button></a>
|
|
<a class="link" href="{{ pad_url }}/{{ name }}.css" target="_blank">🔗</a>
|
|
|
|
<!--
|
|
<a href="{{ url_for('pandoctemplate', name=name) }}"><button>pandoc template</button></a>
|
|
<a class="link" href="{{ pad_url }}/{{ name }}.pandoc-template.html" target="_blank">🔗</a>
|
|
-->
|
|
|
|
<a href="{{ url_for('html', name=name) }}"><button>html</button></a>
|
|
<a class="link" href="{{ url_for('preview', name=name) }}" target="_blank">🔗</a>
|
|
|
|
<a href="{{ url_for('pdf', name=name) }}"><button>pdf</button></a>
|
|
<a class="link" href="{{ url_for('pagedjs', name=name) }}" target="_blank">🔗</a>
|
|
|
|
<a href="{{ url_for('pdfck', name=name) }}"><button>pdf-ck</button></a>
|
|
<a class="link" href="{{ url_for('pagedjsck', name=name) }}" target="_blank">🔗</a>
|
|
|
|
<a href="{{ url_for('pdfmyk', name=name) }}"><button>pdf-myk</button></a>
|
|
<a class="link" href="{{ url_for('pagedjsmyk', name=name) }}" target="_blank">🔗</a>
|
|
|
|
<a href="{{ url_for('wildcardtemplate', name=name) }}"><button>* template</button></a>
|
|
<a class="link" href="{{ pad_url }}/{{ name }}.wildcard-template.html" target="_blank">🔗</a>
|
|
|
|
<a href="{{ url_for('wildcard', name=name) }}"><button>*</button></a>
|
|
<a class="link" href="{{ url_for('wildcardpage', name=name) }}" target="_blank"> 🔗</a>
|
|
|
|
</div>`;
|
|
|
|
document.body.insertBefore(nav, document.body.firstChild);
|
|
|
|
})
|
|
</script>
|
|
{% block footer %}
|
|
{% endblock %}
|
|
</html>
|