js/product-tour.js
function getActiveStepCount() {
            var tourWrapper = jQuery('.cd-tour-wrapper'), //get the wrapper element
                tourSteps = tourWrapper.children('li'); //get all its children with tag 'li'

            var current_index = 0;
            tourSteps.each(function (index, li) {
                if (jQuery(li).hasClass('is-selected'))
                    current_index = index;
            });

            return current_index;
        }
function getActiveStepCount() {
            var tourWrapper = jQuery('.cd-tour-wrapper'), //get the wrapper element
                tourSteps = tourWrapper.children('li'); //get all its children with tag 'li'

            var current_index = 0;
            tourSteps.each(function (index, li) {
                if (jQuery(li).hasClass('is-selected'))
                    current_index = index;
            });

            return current_index;
        }
function getActiveStepCount ( ) { var tourWrapper = jQuery ( '.cd-tour-wrapper' ) , //get the wrapper element tourSteps = tourWrapper . children ( 'li' ) ; //get all its children with tag 'li' var current_index = 0 ; tourSteps . each ( function ( index , li ) { if ( jQuery ( li ) . hasClass ( 'is-selected' ) ) current_index = index ; } ) ; return current_index ; }
this returns the active step number
@return {number}
this returns the active step number