nwex.de/index.html

26 lines
826 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>nwex.de</title>
</head>
<body style="background: #292D3E;">
<h1>networkException</h1>
<p></p>
<script type="module">
import { tokenize, normalizeNewlines, highlight } from './html.js';
import { render } from './view.js';
const response = await fetch(window.location.href);
const text = await response.text();
const tokens = tokenize(normalizeNewlines(text));
const nodes = highlight(tokens);
document.body.replaceChildren(render(nodes));
</script>
</body>
</html>