meta-lightbox/src/html/meta-lightbox.html

109 lines
2.2 KiB
HTML
Raw Normal View History

2021-01-30 22:00:13 +01:00
<style>
[data-toggle='lightbox']:hover,
[data-toggle='lightbox']:focus {
text-decoration: underline;
}
</style>
2021-01-31 13:08:55 +01:00
<div id="MetaLightboxContainer">
2021-02-12 17:56:05 +01:00
<div class="typography">
<h2>Loading data</h2>
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<p>
<a
href="../src/img/photo1.png"
data-toggle="lightbox"
data-gallery="demo"
data-title="That's first link"
>Load an Image</a
>
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<br />
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<a href="../src/test.json" data-toggle="lightbox">
Load JSON </a
><style>
[data-toggle='lightbox']:hover,
[data-toggle='lightbox']:focus {
text-decoration: underline;
}
</style>
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<br />
<a href="../src/test-pajax.html" data-toggle="lightbox">
Load Partial AJAX HTML </a
><br />
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<a href="../src/not-found.html" data-toggle="lightbox">
Not Found test
</a>
</p>
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<h2>Embeds</h2>
<p>
<a
href="https://www.youtube.com/watch?v=WYvZZYthDRI"
data-toggle="lightbox"
data-embed="true"
>Embed Youtube link</a
>
<br />
<a
href="https://vimeo.com/26216129"
data-toggle="lightbox"
data-embed="true"
>Embed Vimeo link</a
>
<br />
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<a
href="https://soundcloud.com/littlenapoleon/led-zeppelin-vs-rolling-stones"
data-toggle="lightbox"
data-embed="true"
>Embed SoundCloud link</a
><br />
<a
href="https://www.instagram.com/p/CKl5n87hf7R/"
data-toggle="lightbox"
data-embed="true"
>Embed Instagram</a
>
</p>
2021-01-30 22:00:13 +01:00
2021-02-12 17:56:05 +01:00
<h2>Other</h2>
<p>
<a
href="../src/img/photo2.jpg"
data-toggle="lightbox"
data-gallery="demo"
>
Use [data-toggle="lightbox"] attribute to attach lightbox action
and [href] to specify URL.
</a>
</p>
<p>
<a
href="../src/img/photo1.png"
data-toggle="lightbox"
data-gallery="demo"
data-title="Use data-title attribute to specify lightbox title"
>
Use [data-gallery="YOUR_GALLERY_NAME"] to group ligthboxes with
next/prev arrows
</a>
</p>
<p
2021-01-31 13:08:55 +01:00
data-toggle="lightbox"
2021-02-12 17:56:05 +01:00
data-href="https://youtu.be/GgnClrx8N2k"
2021-01-31 13:08:55 +01:00
data-gallery="demo"
2021-02-12 17:56:05 +01:00
data-title="Yes you can link vimeo and youtube videos as long as AJAX content"
2021-01-31 13:08:55 +01:00
>
2021-02-12 17:56:05 +01:00
Use [data-toggle="lightbox"] + [data-href] attribute to toggle
lightbox on regular elements.
<b>Click me!</b>
</p>
</div>
2021-01-31 13:08:55 +01:00
<div id="MetaLightboxApp"></div>
</div>