-
Notifications
You must be signed in to change notification settings - Fork 133
/
index.html
245 lines (205 loc) · 11.9 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Skippr. A jQuery plugin for creating tasteful slideshows.</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="57x57" href="assets/img/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/img/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/img/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/img/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/img/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/img/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/img/favicons/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-160x160.png" sizes="160x160">
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-32x32.png" sizes="32x32">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="assets/img/favicons/mstile-144x144.png">
<link rel="stylesheet" href="assets/css/reset.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="dist/skippr.css">
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="hero">
<div id="random">
<div class="yellow"></div>
<div style="background-image: url(assets/img/test5.jpg)"></div>
<div style="background-image: url(assets/img/desert.jpg); background-position:bottom;"></div>
<div style="background-image: url(assets/img/test3.jpg)"></div>
<div style="background-image: url(assets/img/boardwalk.jpg)"></div>
</div>
<!-- <div id="random">
<img src="img/test3.jpg">
<img src="img/test4.jpg">
<img src="img/test1.jpg">
<img src="img/test5.jpg">
</div> -->
<div class="container">
<div class="tagline">
<h1>Skippr.</h1>
<p>A lighter, faster slideshow plugin for jQuery.
</div>
<div class="downloads">
<div class="btn-container">
<a href="skippr-master.zip" target="_blank"><div class="btn">Download</div></a>
<a href="http://www.github.com/austenpayan/skippr" target="_blank"><div class="btn">Github</div></a>
</div>
</div>
</div>
</div>
<div class="content">
<h2>The setup.</h2>
<p>Include jquery.skippr.css inside your head tag and jquery.skippr.js just before the closing body tag.</p>
<p>Be sure to include jQuery before jquery.skippr.js</p>
<pre>
<code id="code-header">
<head>
<title>Your Awesome Website</title>
<link rel="stylesheet" href="css/jquery.skippr.css">
</head>
<body>
</code>
</pre>
<pre>
<code id="code-footer">
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="js/jquery.skippr.js"></script>
</body>
</code>
</pre>
<p>Create a target element with divs inside, one for each slide,
and add a background image with css or the style attribute.
Skippr targets div tags inside of the selected element with background-images applied to them.
Put this target element inside of a container element styled and positioned to your liking.
The target element will completely fill it's parent container element.</p>
<p> </p>
<p>**Note: The container element must have a specified width and height, and position other than static to work properly.</p>
<pre>
<code id="code-elements">
<div id="container">
<div id="theTarget">
<div style="background-image: url(img/image1.jpg)"></div>
<div style="background-image: url(img/image2.jpg)"></div>
<div style="background-image: url(img/image3.jpg)"></div>
<div style="background-image: url(img/image4.jpg)"></div>
<div style="background-image: url(img/image5.jpg)"></div>
</div>
</div>
</code>
</pre>
<h2>Initiate.</h2>
<p>Just select the target element with jQuery and call the skippr method. Thats it!</p>
<pre>
<code id="code-initiate">
$(document).ready(function(){
$("#theTarget").skippr();
});
</code>
</pre>
<h2>Options.</h2>
<p>Pass in an options object as a parameter to the skippr method for customization.</p>
<pre>
<code id="code-options">
<span class="code-comment">// Defaults </span>
$("#theTarget").skippr({
transition: 'slide',
speed: 1000,
easing: 'easeOutQuart',
navType: 'block',
childrenElementType: 'div',
arrows: true,
autoPlay: false,
autoPlayDuration: 5000,
keyboardOnAlways: true,
hidePrevious: false
});
</code>
</pre>
<p class="options-p"><b>transition</b> : specify the type of transition you want your slideshow to perform. Currently, Skippr accepts either 'fade' or 'slide'. The Slide transitions are
acccelerated using <a href="https://github.com/julianshapiro/velocity" target="_blank">velocity.js</a> by Julian Shapiro.</p>
<p class="options-p"><b>speed</b> : enter length of time in milliseconds you want the transition between slides to take. Default is 500.</p>
<p class="options-p"><b>easing</b> : enter the camelCase name of the easing property you want to use with slide transitions. All jquery UI easing properties are accepted. Default is 'easeOutQuart'. </p>
<p class="options-p"><b>navType</b> : enter a string of what shape you want the navigation elements to be. Skippr currently
takes either "block" or "bubble". Default is "block".</p>
<p class="options-p"><b>childrenElementType</b> : choose the children element type of the target element. Skippr now accepts either 'div' or 'img'. Default is 'div'. </p>
<p class="options-p"><b>arrows</b> : boolean value determining whether or not to display navigation arrows. Default is true. Set to false to hide arrows.</p>
<p class="options-p"><b>autoPlay</b> : boolean value determining whether or not to use auto-playing functionality in the slideshow. Default is false. Set to true to activate auto-play. </p>
<p class="options-p"><b>autoPlayDuration</b> : sets the amount of time in milliseconds to display each slide when autoPlay is running. Default is 5000 milliseconds.</p>
<p class="options-p"><b>keyboardOnAlways</b> : boolean value determining whether to enable keyboard arrow keys to work at all times OR only when the
skippr slidehow is being hovered over. Default is "true". </p>
<p class="options-p"><b>hidePrevious</b> : boolean value determining whether or not to hide previous arrow when first slide is showing. Default is "false".</p>
<hr>
<p style="text-align:center;">Skippr will be an ongoing project. Check back or star on Github for updates =]</p>
<hr>
<h2>Comments.</h2>
<div id="disqus_thread"></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Skippr Ad -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-3782192138617735"
data-ad-slot="4747197804"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="download">
<div>
<h1>Get it.</h1>
<div class="btn-container">
<a href="skippr-master.zip" target="_blank"><div class="btn">Download</div></a>
<a href="http://www.github.com/austenpayan/skippr" target="_blank"><div class="btn">Github</div></a>
</div>
</div>
</div>
<footer>
<div class="info">
<p>created by austen payan</p>
<p><a href="http://austen.io" target="_blank">austen.io</a></p>
</div>
</footer>
<script type="text/javascript">
var disqus_shortname = 'austenpayan';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="dist/skippr.min.js"></script>
<script>
$(document).ready(function() {
$("#random").skippr({
autoPlay : true,
autoPlayDuration : 2000,
logs : true
});
});
</script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48992056-2', 'iamapioneer.com');
ga('send', 'pageview');
</script>
</body>
</html>