-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
executable file
·203 lines (192 loc) · 8.64 KB
/
index.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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Instagram header like</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Loading Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Loading Flat UI -->
<link href="css/flat-ui.css" rel="stylesheet">
<link href="css/jquery.instaheader.css" rel="stylesheet">
<link href="css/gcode/prettify.css" rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.ico">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="demo-headline">
<h1 class="demo-logo">
InstaHeader.js
<small>Instagram header made easy.</small>
</h1>
<div class="span4 offset4">
<a href="jquery.instaheader.zip" class="btn btn-large btn-success pull-left">DOWNLOAD</a>
<a href="https://github.com/mbuonomo/InstaHeader" target="_blank" class="btn btn-large btn-primary pull-right">GITHUB</a>
</div>
</div> <!-- /demo-headline -->
</div>
<div class="container">
<h3 class="demo-panel-title">Demo</h3>
</div>
<div class="instaheaderbg">
<div class="container">
<div id="header">
</div>
</div>
</div>
<div class="container">
<h3 class="demo-panel-title">Description</h3>
<div class="row demo-row">
<p>
<strong>instaheader.js</strong> is a simple jquery plugin that help you to create something looking like the Instagram Web header.
</p>
</div> <!-- /row -->
<h3 class="demo-panel-title">Usage</h3>
<div class="row demo-row">
<pre class="prettyprint linenums">
<link href="jquery.instaheader.css" rel="stylesheet">
<script src="js/jquery.instaheader.js"></script>
</pre>
<pre class="prettyprint linenums">
<div class="instaheaderbg">
<div id="header"></div>
</div>
</pre>
<pre class="prettyprint linenums">
<script>
$(document).ready(function(){
$('#header').instaheader();
});
</script>
</pre>
<pre class="prettyprint linenums">
<script>
$('#header').instaheader({
auto: true,
imgs:[],
urls:[],
selector:'img',
time:3000,
scan:false,
animation_time:500,
animationType:'random'
});
</script>
</pre>
</div> <!-- /row -->
<h3 class="demo-panel-title">Options</h3>
<div class="row demo-row">
<table class="table table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td>auto</td>
<td>If set to true all the images in the page are used</td>
<td>true</td>
</tr>
<tr>
<td>imgs</td>
<td>You can set an array of images urls. If set the auto option is override to false</td>
<td>[]</td>
</tr>
<tr>
<td>urls</td>
<td>You can set an array of urls. /!\ you must enter the exact same number of urls that imgs</td>
<td>[]</td>
</tr>
<tr>
<td>selector</td>
<td>Kind of element you want to display (img / a)</td>
<td>img</td>
</tr>
<tr>
<td>time</td>
<td>Set the time between each change</td>
<td>3000</td>
</tr>
<tr>
<td>scan</td>
<td>the identifier in wich one you want to scan the images (Ex: #header / .header)</td>
<td>false</td>
</tr>
<tr>
<td>animation_time</td>
<td>Execution time for the transition</td>
<td>500</td>
</tr>
<tr>
<td>animationType</td>
<td>Type of the animation for the transition btw 2 images</td>
<td>random</td>
</tr>
</tbody>
</table>
</div>
<h3 class="demo-panel-title">Images for example purpose</h3>
<div class="row demo-row">
<ul class="thumbnails" id="example1">
<li class="span3"><a href=""><img src="http://distilleryimage2.s3.amazonaws.com/cafe9804ab6e11e29e3522000a1fbc06_7.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://distilleryimage6.s3.amazonaws.com/a90a6eb6ab5611e2b93522000a1f96b2_6.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm1.staticflickr.com/61/366959006_94023bb220.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm1.staticflickr.com/195/492389522_d5609a92b4.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm1.staticflickr.com/235/518821732_f195b900ec.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm1.staticflickr.com/168/397834706_6a46c6ada5.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm5.staticflickr.com/4052/4391095134_1f04348e26.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm2.staticflickr.com/1426/1428279388_0c9b68295c.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://distilleryimage10.s3.amazonaws.com/0dbb4d90a81811e2a58e22000aa801d9_7.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://distilleryimage11.s3.amazonaws.com/a95f7ecaa77c11e2bc0822000a1f9737_7.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://distilleryimage1.s3.amazonaws.com/ecc510f89d3111e2846522000a1f9d5a_7.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://distilleryimage3.s3.amazonaws.com/e3846d689c5a11e2a1c022000a9e06ab_7.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm4.staticflickr.com/3008/2995262331_d41063a272.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm1.staticflickr.com/183/363695635_5621ff0da4.jpg" /></a></li>
</ul>
</div> <!-- /row -->
<h3 class="demo-panel-title">Images for example with link</h3>
<div class="row demo-row">
<ul class="thumbnails" id="example2">
<li class="span3"><a href="http://www.google1.com"><img src="http://distilleryimage2.s3.amazonaws.com/cafe9804ab6e11e29e3522000a1fbc06_7.jpg" /></a></li>
<li class="span3"><a href="http://www.google2.com"><img src="http://distilleryimage6.s3.amazonaws.com/a90a6eb6ab5611e2b93522000a1f96b2_6.jpg" /></a></li>
<li class="span3"><a href="http://www.google3.com"><img src="http://farm1.staticflickr.com/61/366959006_94023bb220.jpg" /></a></li>
<li class="span3"><a href="http://www.google4.com"><img src="http://farm1.staticflickr.com/195/492389522_d5609a92b4.jpg" /></a></li>
<li class="span3"><a href="http://www.google5.com"><img src="http://farm1.staticflickr.com/235/518821732_f195b900ec.jpg" /></a></li>
<li class="span3"><a href="http://www.google6.com"><img src="http://farm1.staticflickr.com/168/397834706_6a46c6ada5.jpg" /></a></li>
<li class="span3"><a href="http://www.google7.com"><img src="http://farm5.staticflickr.com/4052/4391095134_1f04348e26.jpg" /></a></li>
<li class="span3"><a href="http://www.google8.com"><img src="http://farm2.staticflickr.com/1426/1428279388_0c9b68295c.jpg" /></a></li>
<li class="span3"><a href="http://www.google9.com"><img src="http://distilleryimage10.s3.amazonaws.com/0dbb4d90a81811e2a58e22000aa801d9_7.jpg" /></a></li>
<li class="span3"><a href="http://www.google10.com"><img src="http://distilleryimage11.s3.amazonaws.com/a95f7ecaa77c11e2bc0822000a1f9737_7.jpg" /></a></li>
<li class="span3"><a href="http://www.google11.com"><img src="http://distilleryimage1.s3.amazonaws.com/ecc510f89d3111e2846522000a1f9d5a_7.jpg" /></a></li>
<li class="span3"><a href="http://www.google12.com"><img src="http://distilleryimage3.s3.amazonaws.com/e3846d689c5a11e2a1c022000a9e06ab_7.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm4.staticflickr.com/3008/2995262331_d41063a272.jpg" /></a></li>
<li class="span3"><a href=""><img src="http://farm1.staticflickr.com/183/363695635_5621ff0da4.jpg" /></a></li>
</ul>
</div> <!-- /row -->
</div>
<!-- Load JS here for greater good =============================-->
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/modernizr.custom.js"></script>
<script src="js/jquery.instaheader.js"></script>
<script src="js/gcode/prettify.js"></script>
<!--[if lt IE 8]>
<script src="js/icon-font-ie7.js"></script>
<script src="js/icon-font-ie7-24.js"></script>
<![endif]-->
<script type="text/javascript">
$(document).ready(function(){
$('#header').instaheader({
animate:true,
scan:"#example1"
});
});
</script>
</body>
</html>