chore: strip tabs, auto-formatter
This commit is contained in:
parent
42e408859b
commit
9d00038812
@ -1,28 +1,28 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>{{ name }} in octomode</title>
|
<title>{{ name }} in octomode</title>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
|
|
||||||
// Insert the nav buttons, after the page is loaded
|
// Insert the nav buttons, after the page is loaded
|
||||||
const nav = document.createElement('div');
|
const nav = document.createElement('div');
|
||||||
nav.id = 'nav';
|
nav.id = 'nav';
|
||||||
|
|
||||||
nav.innerHTML = `
|
nav.innerHTML = `
|
||||||
<h1>{{ name }} <a href="/"><em class="octomode">in octomode</em></a></h1>
|
<h1>{{ name }} <a href="/"><em class="octomode">in octomode</em></a></h1>
|
||||||
<div id="buttons">
|
<div id="buttons">
|
||||||
|
|
||||||
<a href="/{{ name }}/pad"><button>pad</button></a>:
|
<a href="/{{ name }}/pad"><button>pad</button></a>:
|
||||||
<input type="text" name="pad" value="https://pad.vvvvvvaria.org/{{ name }}.md">
|
<input type="text" name="pad" value="https://pad.vvvvvvaria.org/{{ name }}.md">
|
||||||
@ -33,9 +33,9 @@ window.addEventListener('load', function () {
|
|||||||
<a href="/{{ name }}/html"><button>html</button></a>
|
<a href="/{{ name }}/html"><button>html</button></a>
|
||||||
|
|
||||||
<a href="/{{ name }}/pdf"><button>pdf</button></a>
|
<a href="/{{ name }}/pdf"><button>pdf</button></a>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
document.body.insertBefore(nav, document.body.firstChild);
|
document.body.insertBefore(nav, document.body.firstChild);
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>octomode</title>
|
<title>octomode</title>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
||||||
</head>
|
</head>
|
||||||
<body class="start-page">
|
<body class="start-page">
|
||||||
<form action="/" method="POST">
|
<form action="/" method="POST">
|
||||||
<h1><input type="submit" value="open"> <input type="text" name="name"> <em class="octomode">in octomode</em></h1>
|
<h1><input type="submit" value="open"> <input type="text" name="name"> <em class="octomode">in octomode</em></h1>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user