SwiperSlider. How to set the .active to the li based on the slide number?

Use in the project sions slider idangero.us/swiper/#.VzzTa5GLSUk
There is a ul in it, sootvetvenno, li, they are the same as slides.
As to li to assign a class active, based on what is currently active slide?
$(document).ready(function() {
 var swiper = new Swiper('.swiper-container', {
 direction: 'vertical',
 slidesPerView: 1,
 paginationClickable: true,
 spaceBetween: 0,
 mousewheelControl: true,
 hashnav: true,
 onSlideChangeEnd: function(index) { 
 // somehow, probably, there to act...
}
 });

Thank you!
July 9th 19 at 13:09
1 answer
July 9th 19 at 13:11
As a solution, run the slider and open the web inspector.
The current slide has the class "swiper-slide-active", the previous "swiper-slide-prev" and next "swiper-slide-next". We go further down the line in the code and see the attribute data-swiper-slide-index="here is the index of the slide."
On this basis, it is already possible to think of something :)

He often use this slider, but similar tasks as you, did not arise.

Find more questions by tags JavaScript