networkException
b1914b3815
As shown by this excellent article: https://blog.maartenballiauw.be/post/2022/11/05/mastodon-own-donain-without-hosting-server.html
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="icon" href="favicon.png" type="image/png">
|
|
<link rel="stylesheet" href="style/index.css">
|
|
<title>nwex.de/blog</title>
|
|
</head>
|
|
<body>
|
|
<h1>blog</h1>
|
|
<h2>Random things that interest me</h2>
|
|
|
|
<h3>2022</h3>
|
|
<ul>
|
|
<li>2022-02-04 <a href="/blog/nodejs-fetch.md">node.js fetch api support</a></li>
|
|
</ul>
|
|
|
|
<!-- Inner workings of the page -->
|
|
|
|
<script type="module">
|
|
import { tokenize, normalizeNewlines, highlight } from './script/html.js';
|
|
import { render } from './script/view.js';
|
|
import { Inspector } from './script/html/inspector.js';
|
|
|
|
const response = await fetch(window.location.href);
|
|
const text = await response.text();
|
|
|
|
window.tokens = tokenize(normalizeNewlines(text));
|
|
window.spans = highlight(tokens);
|
|
|
|
const inspector = new Inspector();
|
|
|
|
render(text, spans, inspector);
|
|
</script>
|
|
</body>
|
|
</html>
|