mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-27 13:01:03 +00:00

* adding support for hx-trigger="restore" * switching over to an extension + docs + tests Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
27 lines
700 B
HTML
27 lines
700 B
HTML
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<script type="application/javascript" src="../../../src/htmx.js"></script>
|
|
<script type="application/javascript" src="../../../src/ext/restored.js"></script>
|
|
<title>Restored - Index</title>
|
|
<script>
|
|
//htmx.logAll();
|
|
</script>
|
|
|
|
</head>
|
|
<body style="padding:20px;font-family: sans-serif" hx-boost="true">
|
|
<h1>Restored Test</h1>
|
|
<p>Every popstate event on this page should display a success message below.</p>
|
|
<p id="message"
|
|
hx-ext="restored"
|
|
hx-trigger="restored"
|
|
hx-get="success.html"
|
|
></p>
|
|
<a href="1.html">1</a>
|
|
<a href="2.html">2</a>
|
|
<a href="3.html">3</a>
|
|
<a href="4.html">4</a>
|
|
<h3>3</h3>
|
|
</body>
|
|
</html>
|