entById( list[i].title.substr(1) )
          var pos = (div? div.offsetTop - divScroll.scrollTop + 10: 0 )  
          if ( pos>0 && pos<divHeight ) {
            list[i].className = list[i].className.replace('active','') + ' active' // classList.add( 'active' );
          } else {
            list[i].className = list[i].className.replace('active','') // classList.remove( 'active' );
          }
        }
      }
    
  }
  //===== end of scrollspy
}  
</script>

<body onload="md.load( location.href.split('