SAMYANG/m/asset/js/sy.m.plugin.js
/**
         * Scrolls to the given section and slide anchors
         */
Scrolls to the given section and slide anchors
Scrolls to the given section and slide anchors
function scrollPageAndSlide(sectionAnchor, slideAnchor) {
            var section = getSectionByAnchor(sectionAnchor);
            if (!section.length) return;
            var slide = getSlideByAnchor(slideAnchor, section);
            if (sectionAnchor !== lastScrolledDestiny && !section.hasClass(ACTIVE)) {
                scrollPage(section, function () {
                    scrollSlider(slide);
                });
            }
            else {
                scrollSlider(slide);
            }
        }
function scrollPageAndSlide ( sectionAnchor , slideAnchor ) { var section = getSectionByAnchor ( sectionAnchor ) ; if ( ! section . length ) return ; var slide = getSlideByAnchor ( slideAnchor , section ) ; if ( sectionAnchor !== lastScrolledDestiny && ! section . hasClass ( ACTIVE ) ) { scrollPage ( section , function ( ) { scrollSlider ( slide ) ; } ) ; } else { scrollSlider ( slide ) ; } }
Scrolls to the given section and slide anchors
Scrolls to the given section and slide anchors
//do nothing if there's no section with the given anchor name //we need to scroll to the section and then to the slide //if we were already in the section