featherlight
Version:
Featherlight is a very lightweight jQuery lightbox plugin. It's simple yet flexible and easy to use. Featherlight has minimal css and uses no inline styles, everything is name-spaced, it's completely customizable via configuration object and offers image,
69 lines (61 loc) • 2.3 kB
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">
</section>
</body>
</html>