Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Name of current slide #116

Closed
githubbb opened this Issue · 2 comments

2 participants

@githubbb

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

@nathansearles

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

Works great, thank you!

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.