Plugin Slider Revolution: How to influence a slide from the outside?

If you want to access slides from outside the plugin, e.g. a certain link / button should display a certain slide, you can help yourself as follows:

1. first create a corresponding link, including class.

<a href="#" class="slider-link">Show Slide Number Two</a>

2. the following code is placed in the Custom JavaScript section of the slider itself.

jQuery('body').on('click', '.slider-link', function() {
  // revapi5 equals the API identified for the slider
  // revshowslide(2) will load the second slide
  revapi5.revshowslide(2);
  return false;
});