Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Order of thumbnails in tray when random option is set to 1 #64

Open
TINITUS opened this Issue · 6 comments

4 participants

@TINITUS

Order of thumbnails in thumbs tray do not match when random option is used.

@edmundojr

Same issue here… anyone found a way to do this?

@edmundojr

I found a way, sort of…

var slidesArray = [
    { image: "slide_1.jpg", thumb: "thumb_1.jpg"},
    { image: "slide_2.jpg", thumb: "thumb_2.jpg"},
    { image: "slide_3.jpg", thumb: "thumb_3.jpg"}
]

And…

$.supersized({
    random: 0,
    thumb_links: 1,
    slides: slidesArray.sort(function() {return 0.5 - Math.random()})
});

Any ideas on how to make it better?

@notph

Same problem.

I've tried your solution but with it I don't have any image.
I'll have a look on it tomorrow.

@notph

Ok, it works perfectly with the Edmundojr's method. Yesterday I've done something wrong.

Thanks.

@edmundojr

@notph I'm glad to help :)

@nickff

@edmundojr thanks for this solution! works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.