chore: strip tabs, auto-formatter

This commit is contained in:
decentral1se 2022-10-02 16:54:13 +02:00
parent 42e408859b
commit 9d00038812
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
2 changed files with 20 additions and 20 deletions

View File

@ -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>

View File

@ -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>