core/js/lib/jquery/plugins/fullpage/fullpage.js
//when resizing the site, we adjust the heights of the sections, slimScroll...
when resizing the site, we adjust the heights of the sections, slimScroll
when resizing the site we adjust the heights of the sections slimScroll
function resizeHandler() {
            responsive();
            if (isTouchDevice) {
                var activeElement = $(document.activeElement);
                if (!activeElement.is('textarea') && !activeElement.is('input') && !activeElement.is('select')) {
                    var currentHeight = $window.height();
                    if (Math.abs(currentHeight - previousHeight) > (20 * Math.max(previousHeight, currentHeight) / 100)) {
                        reBuild(true);
                        previousHeight = currentHeight;
                    }
                }
            } else {
                clearTimeout(resizeId);
                resizeId = setTimeout(function () {
                    reBuild(true);
                }, 350);
            }
        }
function resizeHandler ( ) { responsive ( ) ; if ( isTouchDevice ) { var activeElement = $ ( document . activeElement ) ; if ( ! activeElement . is ( 'textarea' ) && ! activeElement . is ( 'input' ) && ! activeElement . is ( 'select' ) ) { var currentHeight = $window . height ( ) ; if ( Math . abs ( currentHeight - previousHeight ) > ( 20 * Math . max ( previousHeight , currentHeight ) / 100 ) ) { reBuild ( true ) ; previousHeight = currentHeight ; } } } else { clearTimeout ( resizeId ) ; resizeId = setTimeout ( function ( ) { reBuild ( true ) ; } , 350 ) ; } }
when resizing the site, we adjust the heights of the sections, slimScroll...
when resizing the site we adjust the heights of the sections slimScroll ...
//checking if it needs to get responsive // rebuild immediately on touch devices //if the keyboard is NOT visible //making sure the change in the viewport size is enough to force a rebuild. (20 % of the window to avoid problems when hidding scroll bars) //in order to call the functions only when the resize is finished //http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing