-
Notifications
You must be signed in to change notification settings - Fork 9
/
demo.html
38 lines (35 loc) · 1.06 KB
/
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
29
30
31
32
33
34
35
36
37
38
<!doctype HTML>
<html ng-app="DemoApp">
<head>
<title>Angular Lightbox</title>
<meta charset="utf-8" />
<script src="https://code.angularjs.org/1.7.8/angular.min.js"></script>
<script src="src/angular-lightbox.js"></script>
<script src="demo.js"></script>
<link type="text/css" rel="stylesheet" href="src/angular-lightbox.css" />
<style type="text/css">
body {
margin: 2em;
font-family: sans-serif;
color: #333;
}
</style>
</head>
<body ng-controller="DemoController">
<h1>Angular lightbox</h1>
<h2>Loop on image array, unique link</h2>
<span lightbox="images">
<a href class="lightbox-trigger">link</a>
</span>
<h2>Loop on image array, link for each element</h2>
<ul lightbox="images">
<li ng-repeat="image in images">
<a ng-href="{{ image }}" class="lightbox-trigger">{{ image }}</a>
</li>
</ul>
<h2>Single and very large image</h2>
<span lightbox="largeImage">
<a ng-href="{{ largeImage }}" class="lightbox-trigger">{{ largeImage }}</a>
</span>
</body>
</html>