- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 
                        $('#search-map').on('click', '.v-card-prev', function () {
            var v_next = $(this)
                .parent()
                .find('.v-card-img-block .v-card-img-hidden.active')
                .prev();
            if ($(v_next).length == 0) {
                $(this)
                    .parent()
                    .find('.v-card-img-hidden.active')
                    .removeClass('active');
                $(this)
                    .parent()
                    .find('.v-card-img-hidden:last')
                    .addClass('active');
            } else {
                $(this)
                    .parent()
                    .find('.v-card-img-hidden.active')
                    .removeClass('active');
                $(this)
                    .parent()
                    .find(v_next)
                    .addClass('active');
            }
            $(this)
                .parent()
                .find('.v-card-img-hidden.active')
                .click();
        });
        $('#search-map').on('click', '.offers-favorite', function () {
            var favorID = $(this)
                .closest('.js__product')
                .attr('data-item');
            if ($(this).hasClass('active')) var doAction = 'delete';
            else var doAction = 'add';
            updateFavorite(favorID, doAction);
            return false;
        });
                                 
        
$('#search-map').on('click', '.v-card-next', function () {
var v_next = $(this)
.parent()
.find('.v-card-img-block .v-card-img-hidden.active')
.next();
if ($(v_next).length == 0) {
$(this)
.parent()
.find('.v-card-img-hidden.active')
.removeClass('active');
$(this)
.parent()
.find('.v-card-img-hidden:first')
.addClass('active');
} else {
$(this)
.parent()
.find('.v-card-img-hidden.active')
.removeClass('active');
$(v_next).addClass('active');
}
$(this)
.parent()
.find('.v-card-img-hidden.active')
.click();
});
Именно поэтому я за Java Script