Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWest22 committed Sep 25, 2024
1 parent a68cdad commit bcbdc45
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<script type="application/javascript" src="htmx.js"></script>
<script type="application/javascript" src="htmx.js"></script>
<style>
td {
border: 1px solid black;
}
</style>
<meta name="htmx-config" content='{"selfRequestsOnly": false}' />
</head>
<body>
<main>
<button hx-get="video1.html"
hx-target="#video-container">
Load Video Layout 1
</button>
<button hx-get="video2.html"
hx-push-url="true"
hx-target="#video-container">
Load Video Layout 2
</button>
&dot;&dot;
<hr/>
<div id="video-container">
---
</div>
</main>
<table style="width:100%">
<tr>
<td><button hx-get="data:,%3Cdiv%20hx-swap-oob%3D%22innerHTML%3A%23topleft%22%3E%3Cdiv%20id%3D%22video%22%20hx-preserve%3D%22true%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E"
hx-swap="none">
top left
</button><div id="topleft">top left</div></td>
<td>b</td>

</tr>
<tr>
<td>c</td>
<td>d<div id="video"><iframe id="rick-roll" width="600" height="300" hx-preserve="true"
src="https://www.youtube.com/embed/eBGIQ7ZuuiU" title="Rick Roll" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>

</iframe></div></td>

</tr>

</table>

</body>
</html>

0 comments on commit bcbdc45

Please sign in to comment.