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

Index of Current Slide #196

Open
wcit opened this issue Oct 27, 2014 · 0 comments
Open

Index of Current Slide #196

wcit opened this issue Oct 27, 2014 · 0 comments

Comments

@wcit
Copy link

wcit commented Oct 27, 2014

I have tried to add to the caption the number and total of slides in current display.

I used the following code

            if (caption) {
                caption = $('<p class="bjqs-caption">' + caption + '<b> [ ' + state.currentslide + ' of '+ state.currentindex + ' of '+ state.nextindex + ' of '+ state.nextslide + ' of ' + state.slidecount + ' ]</b></p>');
                caption.appendTo($(slide));
            }

state.slidecount works, state.currentslide always give 1 and the other variables give a zero value

What am I doing wrong ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant