meta-lightbox/dist/index.html

140 lines
3.1 KiB
HTML
Raw Normal View History

2021-01-25 12:15:33 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="Meta Lightbox" />
<meta name="author" content="Tony Air" />
<title>Meta-lightbox Demo</title>
<style>
.wrapper {
2019-11-27 06:27:09 +01:00
padding: 2rem;
2021-01-25 12:15:33 +01:00
}
</style>
<link href="css/app.css" rel="stylesheet"></head>
<body>
<div class="wrapper">
<h1>Meta-lightbox Demo</h1>
2021-01-30 22:00:13 +01:00
NODE_ENV: development <style>
[data-toggle='lightbox']:hover,
[data-toggle='lightbox']:focus {
text-decoration: underline;
}
</style>
<h2>Loading data</h2>
<p>
2021-01-25 12:15:33 +01:00
<a
href="../src/img/photo1.png"
data-toggle="lightbox"
data-lightbox-gallery="demo"
data-title="That's first link"
2021-01-30 22:00:13 +01:00
>Load an Image</a
>
<br />
<a href="../src/test.json" data-toggle="lightbox">
Load JSON
</a>
<br />
<a href="../src/test-pajax.html" data-toggle="lightbox">
Load Partial AJAX HTML </a
><br />
<a href="../src/not-found.html" data-toggle="lightbox"> Not Found test </a>
2021-01-25 12:15:33 +01:00
</p>
2021-01-30 22:00:13 +01:00
<h2>Embeds</h2>
2021-01-25 12:15:33 +01:00
<p>
2021-01-30 22:00:13 +01:00
<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 />
<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>
<h2>Other</h2>
<p>
<a
href="../src/img/photo2.jpg"
data-toggle="lightbox"
data-lightbox-gallery="demo"
>
Use [data-toggle="lightbox"] attribute to attach lightbox action and
[href] to specify URL.
2021-01-25 12:15:33 +01:00
</a>
</p>
<p>
2021-01-30 22:00:13 +01:00
<a
href="../src/img/photo1.png"
data-toggle="lightbox"
data-lightbox-gallery="demo"
data-title="Use data-title attribute to specify lightbox title"
>
Use [data-lightbox-gallery="YOUR_GALLERY_NAME"] to group ligthboxes with
next/prev arrows
2021-01-25 12:15:33 +01:00
</a>
</p>
2021-01-30 22:00:13 +01:00
<p
data-toggle="lightbox"
data-href="https://youtu.be/GgnClrx8N2k"
data-lightbox-gallery="demo"
data-title="Yes you can link vimeo and youtube videos as long as AJAX content"
>
Use [data-toggle="lightbox"] + [data-href] attribute to toggle lightbox on
regular elements.
<b>Click me!</b>
2021-01-25 12:15:33 +01:00
</p>
2021-01-30 22:00:13 +01:00
2021-01-25 12:15:33 +01:00
<p>
<b>Note:</b> You can add jquery-zoom plugin and lighbox will
zoom photos on hover.
</p>
<div id="App"></div>
</div>
<!-- That's optional dependencies -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.12.0/css/all.css"
/>
<!-- React is required -->
<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script><script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<!-- jQuery is required -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="js/app.js"></script></body>
</html>