-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo.html
28 lines (23 loc) · 956 Bytes
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="./lightbox.css">
</head>
<body>
<a href="./liguria-2338880_640.jpg" lightbox="image">Image</a>
<a href="https://www.youtube.com/watch?v=KK9bwTlAvgo" lightbox="iframe" url="https://www.youtube.com/embed/KK9bwTlAvgo?autoplay=0">YouTube</a>
<a href="https://vimeo.com/28629415" lightbox="iframe" url="https://player.vimeo.com/video/28629415?autoplay=false">Vimeo</a>
<a href="./Soap-Bubble-7105.mp4" lightbox="video">HTML5 Video</a>
<script src="./lightbox.js"></script>
<script>
[].forEach.call(document.querySelectorAll('[lightbox]'), function(el) {
el.lightbox = new Lightbox(el);
});
</script>
</body>
</html>