FixedTable.js
/**
     * Check if the element part is visible into the viewport
     * @param    {DOM element}   element:    Element use for check is is visible
     * @param    {int}           side:       Part of element to check, use _side enumeration
     * @param    {DOM element}   parent:     Element that contains the desired element; use undefined for use the viewport
     * @return   {bool}          True if the element part is visible; False another case 
     */
Check if the element part is visible into the viewport
@param    {DOM element}   element:    Element use for check is is visible
@param    {int}           side:       Part of element to check, use _side enumeration
@param    {DOM element}   parent:     Element that contains the desired element; use undefined for use the viewport
@return   {bool}          True if the element part is visible; False another case
Check if the element part is visible into the viewport @param { DOM element } element : Element use for check is is visible @param { int } side : Part of element to check use _side enumeration @param { DOM element } parent : Element that contains the desired element ; use undefined for use the viewport @return { bool } True if the element part is visible ; False another case
function isElementVisibleInViewport(element, side, parent) {
        function between(value, min, max) {
            return value >= min && value <= max;
        }
        var elementPosition = getAbsolutePosition(element),
            viewportPosition = parent ? getAbsolutePosition(parent) : getViewportAbsolutePosition();
        var topVisible = between(elementPosition.top, viewportPosition.top, viewportPosition.buttom),
            rightVisible = between(elementPosition.right, viewportPosition.left, viewportPosition.right),
            buttomVisible = between(elementPosition.buttom, viewportPosition.top, viewportPosition.buttom),
            leftVisible = between(elementPosition.left, viewportPosition.left, viewportPosition.right);
        var viewportTopVisible = between(viewportPosition.top, elementPosition.top, elementPosition.buttom),
            viewportRightVisible = between(viewportPosition.right, elementPosition.left, elementPosition.right),
            viewportButtomVisible = between(viewportPosition.buttom, elementPosition.top, elementPosition.buttom),
            viewportLeftVisible = between(viewportPosition.left, elementPosition.left, elementPosition.right);
        switch (side) {
            case _sides.all:
                return topVisible && rightVisible && buttomVisible && leftVisible;
            case _sides.Top:
                return topVisible;
            case _sides.Right:
                return rightVisible;
            case _sides.Left:
                return leftVisible;
            case _sides.Any:
                return topVisible || rightVisible || buttomVisible || leftVisible
                    || viewportTopVisible || viewportRightVisible || viewportButtomVisible || viewportLeftVisible;
            case _sides.AnyVerticalPart:
                return topVisible || buttomVisible
                    || viewportTopVisible || viewportButtomVisible;
            default:
                return false;
        }
    }
function isElementVisibleInViewport ( element , side , parent ) { function between ( value , min , max ) { return value >= min && value <= max ; } var elementPosition = getAbsolutePosition ( element ) , viewportPosition = parent ? getAbsolutePosition ( parent ) : getViewportAbsolutePosition ( ) ; var topVisible = between ( elementPosition . top , viewportPosition . top , viewportPosition . buttom ) , rightVisible = between ( elementPosition . right , viewportPosition . left , viewportPosition . right ) , buttomVisible = between ( elementPosition . buttom , viewportPosition . top , viewportPosition . buttom ) , leftVisible = between ( elementPosition . left , viewportPosition . left , viewportPosition . right ) ; var viewportTopVisible = between ( viewportPosition . top , elementPosition . top , elementPosition . buttom ) , viewportRightVisible = between ( viewportPosition . right , elementPosition . left , elementPosition . right ) , viewportButtomVisible = between ( viewportPosition . buttom , elementPosition . top , elementPosition . buttom ) , viewportLeftVisible = between ( viewportPosition . left , elementPosition . left , elementPosition . right ) ; switch ( side ) { case _sides . all : return topVisible && rightVisible && buttomVisible && leftVisible ; case _sides . Top : return topVisible ; case _sides . Right : return rightVisible ; case _sides . Left : return leftVisible ; case _sides . Any : return topVisible || rightVisible || buttomVisible || leftVisible || viewportTopVisible || viewportRightVisible || viewportButtomVisible || viewportLeftVisible ; case _sides . AnyVerticalPart : return topVisible || buttomVisible || viewportTopVisible || viewportButtomVisible ; default : return false ; } }
Check if the element part is visible into the viewport
 @param    {DOM element}   element:    Element use for check is is visible
 @param    {int}           side:       Part of element to check, use _side enumeration
 @param    {DOM element}   parent:     Element that contains the desired element; use undefined for use the viewport
 @return   {bool}          True if the element part is visible; False another case
Check if the element part is visible into the viewport @param { DOM element } element : Element use for check is is visible @param { int } side : Part of element to check use _side enumeration @param { DOM element } parent : Element that contains the desired element ; use undefined for use the viewport @return { bool } True if the element part is visible ; False another case
// Element is more small that viewport // Viewport is more small that the element