aboutsummaryrefslogtreecommitdiffstats
path: root/browser/templates/base.html.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-02-11 17:59:28 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-02-11 18:04:22 +0200
commit001b52fc1b6d2b30b371611f5a8b961e5c6945d3 (patch)
tree937b73ccad1aeb927d8974fe703382dafd360768 /browser/templates/base.html.j2
parente8f3a470ce693bef9303d3dd4c46523cdc691826 (diff)
Implement find
Diffstat (limited to 'browser/templates/base.html.j2')
-rw-r--r--browser/templates/base.html.j218
1 files changed, 1 insertions, 17 deletions
diff --git a/browser/templates/base.html.j2 b/browser/templates/base.html.j2
index 8b41a85..47b3f6c 100644
--- a/browser/templates/base.html.j2
+++ b/browser/templates/base.html.j2
@@ -14,22 +14,6 @@
<h1><a href="/">Database browser</a></h1>
{% block content %}{% endblock %}
- <!-- https://leanrada.com/htmz/ -->
- <iframe hidden name=htmz onload="setTimeout(()=>document.querySelector(contentWindow.location.hash||null)?.replaceWith(...contentDocument.body.childNodes))"></iframe>
- <!-- Enable progressive enhancement for htmz -->
- <script>
- document.querySelectorAll("form[htmz]").forEach(function (element) {
- const input = document.createElement("input");
- input.type = "hidden";
- input.name = "htmz";
- input.value = element.attributes.replace.value;
- element.appendChild(input);
-
- const action = new URL(element.action);
- action.hash = element.attributes.replace.value;
- element.action = action.toString();
- element.target = "htmz";
- });
- </script>
+ <script src="/static/htmp.js"></script>
</body>
</html>