Skip to content

Image counter in viewer #4

@Brintaman

Description

@Brintaman

Hi!
First of all, gamma gallery is awesome!
I'm trying to add a counter in the photo viewer that shows "current image / total images"
To accomplish this i put a variable for Gamma.itemsCount; in the gamma-single-view. But I don't think a function exists to grab the id of the current image.
I tried writing a function that grabs it from the url hash but because the page doesn't reload when sliding trough the photo's this only works after refreshing. It also won't work if i bind the function on a hashchange event.
Does anyone have any ideas?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions