Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Timeout #366

Open
wants to merge 70 commits into
base: rewrite
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
239c3ef
v1.31
arielsalminen May 2, 2012
264680c
Updates changelog
arielsalminen May 2, 2012
1cc5418
New callbacks
arielsalminen May 2, 2012
b478c13
Updates the changelog (v1.32)
arielsalminen May 9, 2012
d6cee55
Adds correct version
arielsalminen May 9, 2012
7af1d2b
v1.32
arielsalminen May 9, 2012
579c083
Clear the event queue when changing between active and inactive tabs …
arielsalminen May 9, 2012
7bcc454
v1.32
arielsalminen May 9, 2012
68eaff3
Remove classes that are used for namespacing from the html and let th…
arielsalminen May 25, 2012
0c57e6b
Use custom namespace on all example slideshow as the css styles are t…
arielsalminen May 25, 2012
93f8fa2
Update demos to use the newest jQuery
arielsalminen Oct 22, 2012
64fef2f
Update the description to include that the plugin has been tested up …
arielsalminen Oct 22, 2012
f99bf9d
Avoid using :animated pseudo-selector
i-like-robots Nov 2, 2012
dbae274
Fixed regression, not filtering for current slide
i-like-robots Nov 2, 2012
df46381
Adds Pull Request Guidelines
arielsalminen Nov 13, 2012
ea2c40b
Merge pull request #87 from i-like-robots/master
arielsalminen Nov 14, 2012
a564bf7
Minifies new version with Google's closure compiler
arielsalminen Nov 14, 2012
6df54e6
Dropping the support for jQuery 1.5.2 and below. Only 1.6 and up is s…
arielsalminen Nov 15, 2012
2240ea6
Merge branch 'master' of github.com:viljamis/ResponsiveSlides.js
arielsalminen Nov 15, 2012
a9e83e2
Fixes html comments
arielsalminen Dec 10, 2012
7159e91
Allowing pager to be manually set. Refs #27.
Dec 14, 2012
8980e6f
Adding minified version and thumbnail slider to demo. Refs #27.
Dec 14, 2012
5ca300b
Remove unnecessary closing tags + switch to using newest jQuery
arielsalminen Dec 14, 2012
c69930c
Removes unnecessary closing tags
arielsalminen Dec 14, 2012
98069a9
Adds CSS3 transitions and fixes flickering + Make pause on hover opti…
arielsalminen Dec 14, 2012
78a7e5e
Updates changelog
arielsalminen Dec 14, 2012
d49207a
Update version numbers
arielsalminen Dec 14, 2012
14da292
Adds z-index to buttons
arielsalminen Dec 14, 2012
bd6bc5f
Updates features list
arielsalminen Dec 14, 2012
256f78e
Remove unnecessary delay()
arielsalminen Dec 14, 2012
c2eb1f5
Consistency fixes
arielsalminen Dec 14, 2012
481e402
Switch to using $(window).load
arielsalminen Dec 14, 2012
f720a78
Move (window).load inside comments
arielsalminen Dec 14, 2012
ec9de4b
Updates changelog
arielsalminen Dec 15, 2012
9fa6fae
Fixes bugs in the v1.50 release
arielsalminen Dec 15, 2012
d98fa32
Updates version
arielsalminen Dec 15, 2012
a416a91
Removes unused local variable and makes the feature detection variabl…
arielsalminen Dec 15, 2012
3e271e8
Comment the new code, so it's easier to follow
arielsalminen Dec 15, 2012
f33eb4b
Update to correct version number
arielsalminen Dec 15, 2012
00f35e7
Merge remote-tracking branch 'remotes/andyadams/master'
arielsalminen Jan 7, 2013
5757a81
Moving images to images folder.
arielsalminen Jan 7, 2013
3a402dd
Adds webkit-backface-visibility: hidden
arielsalminen Jan 7, 2013
af7b87f
Moving images to a new folder
arielsalminen Jan 7, 2013
1f3ff3f
Updates changelog and features list
arielsalminen Jan 7, 2013
f806b58
Adds styles for the custom pager demo
arielsalminen Jan 7, 2013
f371340
Fixing the img urls + some changes to the order of the code
arielsalminen Jan 7, 2013
97efefb
Adds option called "manualControls" which allows to write custom mark…
arielsalminen Jan 7, 2013
69af8c3
Updates description
arielsalminen Jan 7, 2013
3215062
Updates changelog
arielsalminen Jan 7, 2013
4dce217
Minor jQuery tuning
bazineta Jan 13, 2013
8eac177
Merge pull request #126 from bazineta/master
arielsalminen Jan 14, 2013
7bac22c
Updates changelog
arielsalminen Jan 14, 2013
a1242c6
v1.53
arielsalminen Jan 14, 2013
20060ea
Set "this" to target slide. Fixes request in #42.
jtwalters Feb 6, 2013
1c6b23b
Updates description
arielsalminen Feb 25, 2013
67ab223
Fixes the build site's url
arielsalminen Feb 25, 2013
515bfcb
Changed default callback functions to $.noop()
bgutschke Mar 7, 2013
bee546f
Merge pull request #160 from bgutschke/master
arielsalminen Apr 16, 2013
5928d63
Merge pull request #143 from jtwalters/master
arielsalminen Apr 26, 2013
aca492c
New minified version
arielsalminen Apr 26, 2013
0ae4180
Updates changelog.
arielsalminen Apr 26, 2013
60aa88f
Updates version
arielsalminen Apr 26, 2013
8d1af0e
Minor fixes to callbacks
arielsalminen Apr 26, 2013
323da32
New minified version
arielsalminen Apr 26, 2013
d0e2496
Adds new demo urls
arielsalminen Apr 30, 2013
1200795
Updates changelog
arielsalminen Apr 30, 2013
9214f02
Added compatibility with jQuery 3.0.0 (changed size() to length).
Requios Jun 20, 2016
195e946
Merge pull request #360 from Requios/master
arielsalminen Aug 6, 2016
477cddd
Updates changelog
arielsalminen Aug 6, 2016
2ebf9af
Fix broken links
arielsalminen Jan 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# ResponsiveSlides.js v1.3
# ResponsiveSlides.js v1.55
### Simple & lightweight responsive slider plugin (in 1kb)


[ResponsiveSlides.js](http://responsiveslides.com/) is a tiny jQuery plugin that creates a responsive slider using elements inside a container. It has been used on sites like [Microsoft's Build 2012](http://www.buildwindows.com/launch) and [Gridset App](https://gridsetapp.com). ResponsiveSlides.js works with wide range of browsers including all IE versions from IE6 and up. It also adds CSS max-width support for IE6 and other browsers that don't natively support it. Only dependency is [jQuery](http://jquery.com/) (1.6 and up supported, tested up to 1.8.3) and that all the images are the same size.

[ResponsiveSlides.js](http://responsiveslides.com/) is a tiny jQuery plugin that creates a responsive slider using list items inside <ul>. It works with wide range of browsers including all IE versions from IE6 and up. It also adds CSS max-width support for IE6 and other browsers that don't natively support it. Only dependency is [jQuery](http://jquery.com/) (1.4 and up supported) and that all the images are same size.

Biggest difference to other responsive slider plugins is the file size (1kb minified and gzipped) + that this one doesn't try to do everything. ResponsiveSlides.js has basically only two different modes: Either it just automatically fades the images, or operates as a responsive image container with pagination and/or navigation to fade between slides.
Biggest difference to other responsive slider plugins is the file size (1.4kb minified and gzipped) + that this one doesn't try to do everything. ResponsiveSlides.js has basically only two different modes: Either it just automatically fades the images, or operates as a responsive image container with pagination and/or navigation to fade between slides.

#### Features:
* Fully responsive
* 1kb minified and gzipped
* CSS3 transitions with JavaScript fallback
* Simple markup using unordered list
* Settings for transition and timeout durations
* Multiple slideshows supported
Expand All @@ -19,6 +19,7 @@ Biggest difference to other responsive slider plugins is the file size (1kb mini
* Separate pagination and next/prev controls
* Possibility to choose where the controls append to
* Possibility to randomize the order of the slides
* Possibility to use custom markup for pagination
* Can be paused while hovering slideshow and/or controls
* Images can be wrapped inside links
* Optional 'before' and 'after' callbacks
Expand All @@ -28,9 +29,12 @@ Biggest difference to other responsive slider plugins is the file size (1kb mini
Usage Instructions and demo
======

For instructions and demo go to [http://responsiveslides.com/](http://responsiveslides.com/), or [download this repository as a zip file](https://github.com/viljamis/ResponsiveSlides.js/zipball/master) and and open "index.html" from the "example" folder. There's also a file called "themes.html" inside the "themes" folder which has [more examples about the usage](http://viljamis.com/responsive-slides/themes/).
For instructions and demo go to [http://responsiveslides.com/](http://responsiveslides.com/), or [download this repository as a zip file](https://github.com/arielsalminen/ResponsiveSlides.js/zipball/master) and and open "index.html" from the "example" folder.

* View [additional usage examples online](http://responsiveslides.com/themes/themes.html).
* View [a demo with captions](http://responsiveslides.com/with-captions/themes.html).

Currently jQuery 1.4 and up is supported.
Currently jQuery 1.6 and up is supported.



Expand All @@ -39,7 +43,7 @@ License

Licensed under the MIT license.

Copyright (c) 2011-2012 Viljami Salminen, http://viljamis.com/
Copyright (c) 2011-2023 Ariel Salminen, https://arie.ls/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand All @@ -52,6 +56,23 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
Changelog
======


v1.55 (2016-08-05) - Adds jQuery 3.0 compatibility (thanks to [@Requios](https://github.com/Requios)!).

v1.54 (2013-04-26) - Fixes few bugs with the before and after callbacks.

v1.53 (2013-01-14) - Minor speed optimization (thanks [@bazineta](https://github.com/bazineta)!).

v1.52 (2013-01-07) - Adds option called "manualControls" which allows to write custom markup for pager navigation (thanks to [@andyadams](https://github.com/andyadams)). "controls" option is renamed to "navContainer". Default speed of the transition is now to 500ms. Adds also webkit-backface-visibility: hidden; style for the slides to prevent some HD acceleration issues on mobile WebKit browsers.

v1.51 (2012-12-15) - Fixes a bug where pictures would not display if next button was clicked too quickly 10 times.

v1.5 (2012-12-14) - Adds CSS3 transition support with automatic jQuery fallback.

v1.32 (2012-05-09) - Fixes a bug which caused the slideshow to break in Chrome when changing between active and inactive browser tabs.

v1.31 (2012-05-02) - Easier to use callbacks (+ optional "active" class for the next/prev buttons when animating slides. If you need this functionality, open the unminified version and search for "Adds active class during slide animation" and remove comments around it).

v1.3 (2012-04-26) - Three new options: "random", "pause", "pauseControls" + small bug fixes.

v1.25 (2012-04-19) - No more flashing of unstyled slideshow before JS has loaded. Adds also better support for cases when JavaScript isn't available.
Expand All @@ -64,7 +85,7 @@ v1.22 (2012-03-27) - Adds callback events which are similar as in [@Wilto](https

v1.21 (2012-03-23) - Added two new options: 'nextText' and 'prevText'.

v1.20 (2012-03-21) - New option called 'nav', which enables next and previous buttons. Can be used with 'pagination' and 'auto' options. Adds also new [themes folder](http://viljamis.com/responsive-slides/themes/) with three different ways to use the new next and previous buttons.
v1.20 (2012-03-21) - New option called 'nav', which enables next and previous buttons. Can be used with 'pagination' and 'auto' options. Adds also new [themes folder](http://responsiveslides.com/themes/themes.html) with three different ways to use the new next and previous buttons.

v1.10 (2012-03-12) - Refactoring, New markup style, CSS is now separated from the plugin, you can have links around images and other elements inside slides (not just images, but also captions etc.) + New option called "pagination", which enables to choose both "pagination" and "auto" at the same time. Shout outs for the help to [@bgutschke](https://github.com/bgutschke)

Expand All @@ -77,3 +98,9 @@ v1.03 (2011-12-12) - Code refactoring, smaller size, better performance
v1.01 (2011-12-11) - Better usage of styles and the namespace

v1.00 (2011-12-04) - Release


Want to do a pull request?
======

Great! New ideas are more than welcome, but please check the [Pull Request Guidelines](https://github.com/arielsalminen/ResponsiveSlides.js/wiki/Pull-Request-Guidelines) first before doing so.
24 changes: 21 additions & 3 deletions demo/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

html {
background: #222 url("bg.png") repeat;
background: #222 url("images/bg.png") repeat;
}

body {
Expand Down Expand Up @@ -43,7 +43,8 @@ p,h3,h4,pre {
margin: 0 auto 40px;
}

.rslides2 {
#slider2,
#slider3 {
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
Expand Down Expand Up @@ -206,11 +207,28 @@ h3 {
right: 0;
}

#slider3-pager a {
display: inline-block;
}

#slider3-pager img {
float: left;
}

#slider3-pager .rslides_here a {
background: transparent;
box-shadow: 0 0 0 2px #666;
}

#slider3-pager a {
padding: 0;
}

@media screen and (max-width: 600px) {
h1 {
font: 24px/50px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.callbacks_nav {
top: 47%;
}
}
}
86 changes: 57 additions & 29 deletions demo/demo.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>ResponsiveSlides.js &middot; Responsive jQuery slideshow</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="../responsiveslides.css" />
<link rel="stylesheet" href="demo.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="../responsiveslides.css">
<link rel="stylesheet" href="demo.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script src="../responsiveslides.min.js"></script>
<script>
// You can also use "$(window).load(function() {"
$(function () {

// Slideshow 1
$(".rslides1").responsiveSlides({
$("#slider1").responsiveSlides({
maxwidth: 800,
speed: 800
});

// Slideshow 2
$(".rslides2").responsiveSlides({
$("#slider2").responsiveSlides({
auto: false,
pager: true,
speed: 300,
maxwidth: 540
});

// Slideshow 3
$(".rslides3").responsiveSlides({
$("#slider3").responsiveSlides({
manualControls: '#slider3-pager',
maxwidth: 540
});

// Slideshow 4
$("#slider4").responsiveSlides({
auto: false,
pager: false,
nav: true,
speed: 500,
namespace: "callbacks"
}).bind({
// Before callback
"callbacks-before": function () {
namespace: "callbacks",
before: function () {
$('.events').append("<li>before event fired.</li>");
},
// After callback
"callbacks-after": function () {
after: function () {
$('.events').append("<li>after event fired.</li>");
}
});
Expand All @@ -51,45 +55,69 @@
<h1>ResponsiveSlides.js</h1>
<h2>Simple &amp; lightweight responsive slideshow plugin (in 1kb)</h2>



<!-- Slideshow 1 -->
<ul class="rslides rslides1">
<li><img src="1.jpg" alt="" /></li>
<li><img src="2.jpg" alt="" /></li>
<li><img src="3.jpg" alt="" /></li>
<ul class="rslides" id="slider1">
<li><img src="images/1.jpg" alt=""></li>
<li><img src="images/2.jpg" alt=""></li>
<li><img src="images/3.jpg" alt=""></li>
</ul>



<!-- Slideshow 2 -->
<ul class="rslides rslides2">
<li><a href="#"><img src="1.jpg" alt="" /></a></li>
<li><a href="#"><img src="2.jpg" alt="" /></a></li>
<li><a href="#"><img src="3.jpg" alt="" /></a></li>
<ul class="rslides" id="slider2">
<li><a href="#"><img src="images/1.jpg" alt=""></a></li>
<li><a href="#"><img src="images/2.jpg" alt=""></a></li>
<li><a href="#"><img src="images/3.jpg" alt=""></a></li>
</ul>

<!-- Slideshow 2 -->


<!-- Slideshow 3 -->
<ul class="rslides" id="slider3">
<li><img src="images/1.jpg" alt=""></li>
<li><img src="images/2.jpg" alt=""></li>
<li><img src="images/3.jpg" alt=""></li>
</ul>

<!-- Slideshow 3 Pager -->
<ul id="slider3-pager">
<li><a href="#"><img src="images/1_thumb.jpg" alt=""></a></li>
<li><a href="#"><img src="images/2_thumb.jpg" alt=""></a></li>
<li><a href="#"><img src="images/3_thumb.jpg" alt=""></a></li>
</ul>



<!-- Slideshow 4 -->
<div class="callbacks_container">
<ul class="rslides rslides3">
<ul class="rslides" id="slider4">
<li>
<img src="1.jpg" alt="" />
<img src="images/1.jpg" alt="">
<p class="caption">This is a caption</p>
</li>
<li>
<img src="2.jpg" alt="" />
<img src="images/2.jpg" alt="">
<p class="caption">This is another caption</p>
</li>
<li>
<img src="3.jpg" alt="" />
<img src="images/3.jpg" alt="">
<p class="caption">The third caption</p>
</li>
</ul>
</div>

<!-- This is here just to demonstrate the callbacks -->
<ul class="events">
<li><h3>Example 3 callback events</h3></li>
<li><h3>Example 4 callback events</h3></li>
</ul>



<a href="http://responsiveslides.com/" id="download">See the documentation</a>
<p class="footer">ResponsiveSlides.js is created by <a href="http://viljamis.com">@viljamis</a>. It's released under the MIT license. If you have any questions or feedback you can use the <a href="https://github.com/viljami/ResponsiveSlides.js">GitHub project page</a>.</p>
<p class="footer">ResponsiveSlides.js is created by <a href="https://arie.ls">@ariel</a>. It's released under the MIT license. If you have any questions or feedback you can use the <a href="https://github.com/arielsalminen/ResponsiveSlides.js">GitHub project page</a>.</p>
</div>
</body>
</html>
File renamed without changes
Binary file added demo/images/1_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added demo/images/2_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added demo/images/3_thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading