forked from bigskysoftware/htmx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e92e28
commit a68cdad
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<html> | ||
<head> | ||
<script type="application/javascript" src="htmx.js"></script> | ||
</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> | ||
˙˙ | ||
<hr/> | ||
<div id="video-container"> | ||
--- | ||
</div> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<h1>The Best Song On The Internet</h1> | ||
|
||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<h1>The Best Song On The Internet</h1> | ||
|
||
<section id="summary"> | ||
<h2>The Song</h2> | ||
<p> | ||
"Never Gonna Give You Up" is a song by English singer Rick Astley, released on 27 July 1987. Written and | ||
produced by Stock Aitken Waterman, it was released by RCA Records as the first single from Astley's debut studio | ||
album, Whenever You Need Somebody (1987). The song became a worldwide hit, initially in the United Kingdom in | ||
1987, where it stayed at the top of the chart for five weeks and was the best-selling single of that year. It | ||
eventually topped charts in 25 different countries, including the United States and West Germany,[7] and winning | ||
Best British Single at the 1988 Brit Awards. The song is widely regarded as Astley's most popular, as well as | ||
his signature song, and it is often played at the end of his live concerts. | ||
</p> | ||
</section> | ||
|
||
<section id="the-video"> | ||
<h2>The Video</h2> | ||
<div style="margin: auto;text-align: center"> | ||
<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> | ||
</section> | ||
|
||
<section id="artist"> | ||
<h2>The Artist</h2> | ||
<p> | ||
Richard Paul Astley (born 6 February 1966) is an English singer. He gained fame through his association with the | ||
production trio Stock Aitken Waterman, releasing the 1987 album Whenever You Need Somebody, which sold 15 | ||
million copies worldwide. His debut single "Never Gonna Give You Up" was a No. 1 hit in 25 countries, winning | ||
the 1988 Brit Award for Best British Single.[1][2] His 1988 single "Together Forever" became his second song to | ||
top the US Billboard Hot 100 and was one of his eight songs to reach the Top 10 on the UK Singles Chart. The | ||
title track, "Whenever You Need Somebody", was also a No. 1 hit. | ||
</p> | ||
</section> |