SAMYANG/m/asset/js/sy.m.plugin.js
/**
         * Checks if the site needs to get responsive and disables autoScrolling if so.
         * A class `fp-responsive` is added to the plugin's container in case the user wants to use it for his own responsive CSS.
         */
Checks if the site needs to get responsive and disables autoScrolling if so.
A class `fp-responsive` is added to the plugin's container in case the user wants to use it for his own responsive CSS.
Checks if the site needs to get responsive and disables autoScrolling if so . A class ` fp - responsive ` is added to the plugin ' s container in case the user wants to use it for his own responsive CSS .
function responsive() {
            var widthLimit = options.responsive || options.responsiveWidth; 
            var heightLimit = options.responsiveHeight;
            var isBreakingPointWidth = widthLimit && $window.outerWidth() < widthLimit;
            var isBreakingPointHeight = heightLimit && $window.height() < heightLimit;
            if (widthLimit && heightLimit) {
                setResponsive(isBreakingPointWidth || isBreakingPointHeight);
            }
            else if (widthLimit) {
                setResponsive(isBreakingPointWidth);
            }
            else if (heightLimit) {
                setResponsive(isBreakingPointHeight);
            }
        }
function responsive ( ) { var widthLimit = options . responsive || options . responsiveWidth ; var heightLimit = options . responsiveHeight ; var isBreakingPointWidth = widthLimit && $window . outerWidth ( ) < widthLimit ; var isBreakingPointHeight = heightLimit && $window . height ( ) < heightLimit ; if ( widthLimit && heightLimit ) { setResponsive ( isBreakingPointWidth || isBreakingPointHeight ) ; } else if ( widthLimit ) { setResponsive ( isBreakingPointWidth ) ; } else if ( heightLimit ) { setResponsive ( isBreakingPointHeight ) ; } }
Checks if the site needs to get responsive and disables autoScrolling if so.
Checks if the site needs to get responsive and disables autoScrolling if so .
//backwards compatiblity //only calculating what we need. Remember its called on the resize event.