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

Allow showing the tabs bar even for a single slide #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion responsiveslides.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"speed": 500, // Integer: Speed of the transition, in milliseconds
"timeout": 4000, // Integer: Time between slide transitions, in milliseconds
"pager": false, // Boolean: Show pager, true or false
"forcePager": false, // Boolean: Show pager even for a single slide
"nav": false, // Boolean: Show navigation, true or false
"random": false, // Boolean: Randomize the order of the slides, true or false
"pause": false, // Boolean: Pause on hover, true or false
Expand Down Expand Up @@ -171,7 +172,7 @@
}

// Only run if there's more than one slide
if ($slide.size() > 1) {
if ($slide.size() > 1 || settings.forcePager) {

// Make sure the timeout is at least 100ms longer than the fade
if (waitTime < fadeTime + 100) {
Expand Down
14 changes: 7 additions & 7 deletions responsiveslides.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.