Name of current slide #116

Closed
githubbb opened this Issue Apr 7, 2011 · 2 comments

Comments

Projects
None yet
2 participants
@githubbb

githubbb commented Apr 7, 2011

Can i change the url of the current slide, etc "#3" , to #something?

@nathansearles

This comment has been minimized.

Show comment Hide comment
@nathansearles

nathansearles Apr 13, 2011

Owner

Not by default but it'd be pretty damn easy to do something like that.

You could use "location.hash" to get the hash i.e. "#something" and set the start slide to what ever you like.

Here's an example of that.

var startSlide = 1;

if (location.hash == "#something") {
    startSlide = 3;
}

// Initialize Slides
$('#slides').slides({
    start: startSlide
});
Owner

nathansearles commented Apr 13, 2011

Not by default but it'd be pretty damn easy to do something like that.

You could use "location.hash" to get the hash i.e. "#something" and set the start slide to what ever you like.

Here's an example of that.

var startSlide = 1;

if (location.hash == "#something") {
    startSlide = 3;
}

// Initialize Slides
$('#slides').slides({
    start: startSlide
});
@githubbb

This comment has been minimized.

Show comment Hide comment
@githubbb

githubbb Apr 15, 2011

Works great, thank you!

Works great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment