Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to get an external link working at the end of the slide show? #78

Open
martharotter opened this issue Oct 2, 2012 · 0 comments

Comments

@martharotter
Copy link

I was hoping to be able to do something like:

  • navigate through all the slides
  • replace final next button link with an anchor tag so the user goes to a different section

However after replacing the href attribute, the navigation never happens.

Wondering why something like the below wouldn't work?

    // Update state of next/prev navigation:
    if( ( !!opt.prevSlide || !!opt.nextSlide ) ) {
        var $target = $('[href*="#' + this.id + '"]');

    $target.removeClass( opt.namespace + '-disabled' );

    if( ind == 0 ) {
        $target.filter(opt.prevSlide).addClass( opt.namespace + '-disabled' );
    } else if( ind == $slides.length - 1 ) {
        // Here we are on the last index, so we want to set the navigation to the next section
        $target.filter(opt.nextSlide).addClass('scrollme');
        $target.filter(opt.nextSlide).attr("href", "#early-access");
        $target.filter(opt.nextSlide).attr("title", "Find out more");
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant