src/js/build-html.js
function getHeadingTopPos (obj) {
    var position = 0
    if (obj != document.querySelector(options.contentSelector && obj != null)) {
      position = obj.offsetTop
      if (options.hasInnerContainers)
        position += getHeadingTopPos(obj.offsetParent)
    }
    return position
  }
function getHeadingTopPos (obj) {
    var position = 0
    if (obj != document.querySelector(options.contentSelector && obj != null)) {
      position = obj.offsetTop
      if (options.hasInnerContainers)
        position += getHeadingTopPos(obj.offsetParent)
    }
    return position
  }
function getHeadingTopPos ( obj ) { var position = 0 if ( obj != document . querySelector ( options . contentSelector && obj != null ) ) { position = obj . offsetTop if ( options . hasInnerContainers ) position += getHeadingTopPos ( obj . offsetParent ) } return position }
Get top position of heading
@param {HTMLElement}
@return {integer} position
Get top position of heading