Skip to content

Index of Current Slide #196

@wcit

Description

@wcit

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions