web/js/main.js
/**
       * Returns the absolute page-offset of the given element.
       */
Returns the absolute page-offset of the given element.
Returns the absolute page - offset of the given element .
function pos(el) {
        var o = { x:el.offsetLeft, y:el.offsetTop }
        while((el = el.offsetParent))
          o.x+=el.offsetLeft, o.y+=el.offsetTop
        return o
      }
function pos ( el ) { var o = { x : el . offsetLeft , y : el . offsetTop } while ( ( el = el . offsetParent ) ) o . x += el . offsetLeft , o . y += el . offsetTop return o }
Returns the absolute page-offset of the given element.
Returns the absolute page - offset of the given element .