-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
56 lines (52 loc) · 2.05 KB
/
Copy path404.html
File metadata and controls
56 lines (52 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Promptotyping. Specification of the Method</title>
<meta name="robots" content="noindex">
<link rel="canonical" href="https://dhcraft.org/Promptotyping/">
<script>
// Light is the default view (operator decision, 26 July 2026), so the
// attribute is always set and the system preference never decides. Applied
// before first paint, so a reader who chose dark sees no white flash.
(function () {
var t = "light";
try {
t = localStorage.getItem("promptotyping-theme") || "light";
} catch (e) {}
document.documentElement.setAttribute("data-theme", t);
})();
</script>
<link rel="stylesheet" href="assets/css/style.css">
<script>
// Subpath handover. GitHub Pages serves 404.html for any path that is not a
// real file, which makes this file the only router the site has. It states
// no address vocabulary of its own: it normalises the requested path and
// hands it to the application as ?p=, and resolveTemplateUrl in
// assets/js/registry.js translates it once, from the page registry. The
// incoming hash is passed through untouched, because the snapshot form
// /promptotyping-document/data#v0.1 carries its version there.
(function () {
var path = window.location.pathname
.replace(/^\/Promptotyping\//, "")
.replace(/^\//, "")
.replace(/\/$/, "");
// Nothing to hand over: the not-found body below stays.
if (!path) {
return;
}
// replace() rather than assign(), so the unresolved subpath leaves no
// history entry to return to.
window.location.replace("/Promptotyping/?p=" + encodeURIComponent(path) +
window.location.hash);
})();
</script>
</head>
<body class="docs not-found">
<main class="not-found-body">
<h1>Page not found</h1>
<p>This address does not exist. Back to the <a href="/Promptotyping/">start page</a>.</p>
</main>
</body>
</html>