mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 22:11:22 +00:00
52 lines
1.2 KiB
HTML
52 lines
1.2 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<style>
|
|
.indicator {
|
|
opacity: 0;
|
|
transition: all 200ms ease-in;
|
|
}
|
|
|
|
.hx-show-indicator .indicator {
|
|
opacity: 100%;
|
|
}
|
|
|
|
div {
|
|
transition: all 1000ms ease-in;
|
|
}
|
|
|
|
div.foo {
|
|
color: red;
|
|
transition: all 1000ms ease-in;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
|
|
|
</head>
|
|
<body>
|
|
<script src="../node_modules/sinon/pkg/sinon.js"></script>
|
|
<script src="../src/htmx.js"></script>
|
|
<script src="util.js"></script>
|
|
<script src="scratch_server.js"></script>
|
|
|
|
<script>
|
|
this.server.respondWith("GET", "/test", "Clicked<div id='d1' ic-swap-direct='true'>Swapped</div>");
|
|
var div = make('<div hx-get="/test">click me</div>');
|
|
make('<div id="d1"></div>');
|
|
</script>
|
|
|
|
|
|
<h2>Server Options</h2>
|
|
<button onclick="server.respond()">Server Respond</button>
|
|
<br/>
|
|
Autorespond: <input id="autorespond" type="checkbox" onclick="toggleAutoRespond()">
|
|
<br/>
|
|
<br/>
|
|
<em>Work Area</em>
|
|
<hr/>
|
|
|
|
<div id="work-area" class="hx-history-element">
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|