ker/mod/wdg.modal.js
function onScroll(body, evt) {
    if (body.scrollTop > 0) {
        $.addClass(body, "top");
    } else {
        $.removeClass(body, "top");
    }

    if (body.scrollHeight - body.scrollTop > body.clientHeight) {
        $.addClass(body, "bottom");
    } else {
        $.removeClass(body, "bottom");
    }
}
function onScroll(body, evt) {
    if (body.scrollTop > 0) {
        $.addClass(body, "top");
    } else {
        $.removeClass(body, "top");
    }

    if (body.scrollHeight - body.scrollTop > body.clientHeight) {
        $.addClass(body, "bottom");
    } else {
        $.removeClass(body, "bottom");
    }
}
function onScroll ( body , evt ) { if ( body . scrollTop > 0 ) { $ . addClass ( body , "top" ) ; } else { $ . removeClass ( body , "top" ) ; } if ( body . scrollHeight - body . scrollTop > body . clientHeight ) { $ . addClass ( body , "bottom" ) ; } else { $ . removeClass ( body , "bottom" ) ; } }
Help the user to understand that the `body` can or cannot scroll to
the top or to the bottom, or both.
If the user can scroll up, a thin top inset shadow is displayed.
If the user can scroll down, a thin bottom inset shadow is displayed.
Help the user to understand that the body can or cannot scroll to the top or to the bottom or both . If the user can scroll up a thin top inset shadow is displayed . If the user can scroll down a thin bottom inset shadow is displayed .