-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathfeatherlight.html
More file actions
75 lines (66 loc) · 2.39 KB
/
featherlight.html
File metadata and controls
75 lines (66 loc) · 2.39 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Featherlight Test Suite</title>
<link rel="stylesheet" href="../bower_components/mocha/mocha.css" />
<link rel="stylesheet" href="../src/featherlight.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../bower_components/jquery/jquery.js"></script>
<script src="../bower_components/lodash/lodash.js"></script>
<script src="../bower_components/chai/chai.js"></script>
<script src="../bower_components/chai-jquery/chai-jquery.js"></script>
<script src="../bower_components/chai-properties/chai-properties.js"></script>
<script src="../bower_components/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="../src/featherlight.js"></script>
<script src="helpers/patiently.js"></script>
<script src="featherlight_test.js"></script>
<script>
if (navigator.userAgent.indexOf('PhantomJS') < 0) {
mocha.checkLeaks();
mocha.globals(['jQuery*']);
mocha.run();
}
</script>
<section id="fixtures">
<a id="auto-bound" href="fixtures/photo.jpeg" data-featherlight>A photo</a>
<a id="plain-photo-link" href="fixtures/photo.jpeg?2">Same photo</a>
<div id="filter-test">
<div class="group">
<span class="no" href="filter No" >filter</span>
<span class="yes" href="filter Yes">filter</span>
</div>
<span class="yes" href="filter Out">filter</span>
</div>
<span id="data-attr-test">
<a href=".some-content" data-featherlight-variant="test"
data-featherlight-close-speed="42" data-featherlight-close-on-esc="false"
data-featherlight-after-open="this.$instance.append('<b>Added in callback</b>')">
x
</a>
</span>
<span id="data-attr-filter-test" data-featherlight-filter="a"
data-featherlight-variant="wrapper" data-featherlight>
<a href=".some-content">x</a>
<a href=".some-content" data-featherlight-variant="inner">y</a>
</span>
<span id="namespace-test">
<a data-custom-namespace-after-open="this.$instance.append('<b>Namespace ok</b>')"
href=".some-content">x</a>
</span>
<div class="some-content">
Hello
<i>world</i>
</div>
<input class="for-focus">
<div id="bug-235">
<div data-featherlight data-featherlight-filter="div.target">
<div class="unrelated">x</div>
</div>
</div>
</section>
</body>
</html>