74 lines
2.3 KiB
HTML
74 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="/static/site.css">
|
|
<script src="/static/htmx.min.js"></script>
|
|
<script src="/static/feather.min.js"></script>
|
|
</head>
|
|
<body class="latte">
|
|
<header>
|
|
|
|
</header>
|
|
<div class="d-flex" id="below-header">
|
|
|
|
<div id="left-col">
|
|
<nav>
|
|
<ul>
|
|
<li>
|
|
<a id="logo-a">Recount</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
hx-get="/"
|
|
hx-swap="innerHtml swap:0.2s settle:0.2s"
|
|
hx-push-url="true"
|
|
hx-boost="true"
|
|
hx-target="#main-body-content"
|
|
{{ if (eq .ActivePage "index") }}
|
|
class="active"
|
|
{{ end }}
|
|
>
|
|
Home!
|
|
</a>
|
|
|
|
</li>
|
|
<li>
|
|
<a
|
|
hx-get="/hello"
|
|
hx-swap="innerHtml swap:0.2s settle:0.2s"
|
|
hx-push-url="true"
|
|
hx-boost="true"
|
|
hx-target="#main-body-content"
|
|
{{ if (eq .ActivePage "hello") }}
|
|
class="active"
|
|
{{ end }}
|
|
>
|
|
Not home!
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<div id="main-body-content">
|
|
{{.InnerHtml}}
|
|
</div>
|
|
<div id="right-col">
|
|
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/static/index.js"></script>
|
|
<script type="module">
|
|
import {register_handlers, trigger_table_animation} from "/static/index.js";
|
|
register_handlers();
|
|
feather.replace();
|
|
htmx.onLoad(function (element) {
|
|
if (element.localName === "tr") {
|
|
console.log(element);
|
|
trigger_table_animation();
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|