Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (141 loc) · 7.65 KB
/
Copy pathindex.html
File metadata and controls
154 lines (141 loc) · 7.65 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Featherlight – The ultra slim jQuery lightbox.</title>
<link href="../assets/bootstrap.min.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="featherlight.css" title="Featherlight Styles" />
<style type="text/css">
@media all {
.lightbox { display: none; }
.fl-page h1,
.fl-page h3,
.fl-page h4 {
font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-weight: 100;
letter-spacing: 1px;
}
.fl-page h1 { font-size: 110px; margin-bottom: 0.5em; }
.fl-page h1 i { font-style: normal; color: #ddd; }
.fl-page h1 span { font-size: 30px; color: #333;}
.fl-page h3 { text-align: right; }
.fl-page h3 { font-size: 15px; }
.fl-page h4 { font-size: 2em; }
.fl-page .jumbotron { margin-top: 2em; }
.fl-page .doc { margin: 2em 0;}
.fl-page .btn-download { float: right; }
.fl-page .btn-default { vertical-align: bottom; }
.fl-page .btn-lg span { font-size: 0.7em; }
.fl-page .footer { margin-top: 3em; color: #aaa; font-size: 0.9em;}
.fl-page .footer a { color: #999; text-decoration: none; margin-right: 0.75em;}
.fl-page .github { margin: 2em 0; }
.fl-page .github a { vertical-align: top; }
.fl-page .marketing a { color: #999; }
/* override default feather style... */
.fixwidth {
background: rgba(256,256,256, 0.8);
}
.fixwidth .featherlight-content {
width: 500px;
padding: 25px;
color: #fff;
background: #111;
}
.fixwidth .featherlight-close {
color: #fff;
background: #333;
}
}
@media(max-width: 768px){
.fl-page h1 span { display: block; }
.fl-page .btn-download { float: none; margin-bottom: 1em; }
}
</style>
</head>
<body class="fl-page">
<div class="container">
<div class="jumbotron">
<h1>Featherlight<i>.js</i><span> The ultra slim lightbox.</span></h1>
<p class="lead">Featherlight is a very lightweight jQuery lightbox.</p>
<div class="btn-group btn-download">
<a class="btn btn-lg btn-info" href="https://github.com/noelboss/featherlight/">
<i class="glyphicon glyphicon-eye-open"></i>
github
</a>
<a class="btn btn-lg btn-success" href="https://github.com/noelboss/featherlight/archive/master.zip">
<i class="glyphicon glyphicon-arrow-down"></i>
Download <span>(0.4.9)</span>
</a>
</div>
<div class="btn-group">
<a class="btn btn-default" href="#" data-featherlight="#fl1">Default</a>
<a class="btn btn-default" href="#" data-featherlight="#fl2" data-featherlight-variant="fixwidth">Custom Styles</a>
<a class="btn btn-default" href="../assets/droplets.jpg" data-featherlight="image">Image</a>
<a class="btn btn-default" href="#" data-featherlight="#fl3">iFrame</a>
<a class="btn btn-default" href="index.html .ajaxcontent" data-featherlight="ajax">Ajax</a>
</div>
</div>
<div class="row github text-center">
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=noelboss&repo=Featherlight&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=noelboss&repo=Featherlight&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-counturl="noelboss.github.io/featherlight/" data-url="http://bit.ly/1hsLGpp" data-text="Featherlight – The ultra slim, responsive jQuery lightbox. It handles images, iFrames, inline- and ajax-content!
> " data-hashtags="#lightbox,#featherlight,#jQuery,#gallery,#responsive" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div class="row marketing text-center">
<div class="col-lg-4">
<h4>Lightweight</h4>
<p>Featherlight is very, very, very lightweight. Everything together weights less than 6kB and only counts less than 300 lines of JavaScript code. To get started, simply add the <em>"data-featherlight"</em> attribute with a selector, an image- or an ajax-url. <a href="https://github.com/noelboss/featherlight/#usage">It's that simple.</a>
</div>
<div class="col-lg-4">
<h4>For the Pro</h4>
<p>
Many lightbox plugins try to handle everything for you. Even the ones called «simple» or «lightweight». Featherlight is different. It's for the pro who knows what he’s doing and just needs a barebones plugin. Thanks to very low specific css selectors and little code, it's easy to customize and to understand.
It's easy to write <a href="http://noelboss.github.io/featherlight/gallery.html">plugins for Featherlight</a>.
</p>
<p>
<a class="doc btn btn-lg btn-default" href="https://github.com/noelboss/featherlight/#installation">
View Documentation
</a>
</p>
</div>
<div class="col-lg-4">
<h4>Simple yet Powerful</h4>
<p>
Don't be fooled by Featherlights small footprint! Featherlight is very flexible and surprisingly smart. It's responsive, supports images, ajax and iframes out of the box and thanks to a range of <a href="https://github.com/noelboss/featherlight/#configuration">configuration options</a>, you can adapt it to your needs. Without rewriting anything.
</p>
</div>
</div>
<div class="footer text-right">
<p><a href="//noelboss.com">© Noël Bossart.</a> Made in Switzerland.</p>
</div>
</div>
<div class="lightbox" id="fl1">
<h2>Featherlight Default</h2>
<p>
This is a default featherlight lightbox.<br>
It's flexible in height and width.<br>
Everything that is used to display and style the box can be found in the <a href="https://github.com/noelboss/featherlight/blob/master/src/featherlight.css">featherlight.css</a> file which is pretty simple.</p>
</div>
<div class="lightbox" id="fl2">
<h2>Featherlight with custom styles</h2>
<p>It's easy to override the styling of Featherlight. All you need to do is specify an additional class in the data-featherlight-variant of the triggering element. This class will be added and you can then override everything. You can also reset all CSS: <em>$('.special').featherlight({ resetCss: true });</em>
</p>
</div>
<iframe class="lightbox" src="//player.vimeo.com/video/33110953" width="500" height="281" id="fl3" style="border:none;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<div class="ajaxcontent lightbox">
<h2>This Ligthbox was loaded using ajax</h2>
<p>With <a href="https://github.com/noelboss/featherlight/#installation">little code</a>, you can build lightboxes that use custom content loaded with ajax...</p>
</div>
<script src="http://code.jquery.com/jquery-1.7.0.min.js"></script>
<script src="featherlight.js" type="text/javascript" charset="utf-8"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//stats.g.doubleclick.net/dc.js','ga');
ga('create', 'UA-5342062-6', 'noelboss.github.io');
ga('send', 'pageview');
</script>
</body>
</html>