code: function getAndActive (router, el, isParent, autoTitle) {
    el = getNode(el);
  
    var links = findAll(el, 'a');
    var hash = router.toURL(router.getCurrentPath());
    var target;
  
    links
      .sort(function (a, b) { return b.href.length - a.href.length; })
      .forEach(function (a) {
        var href = a.getAttribute('href');
        var node = isParent ? a.parentNode : a;
  
        if (hash.indexOf(href) === 0 && !target) {
          target = a;
          toggleClass(node, 'add', 'active');
        } else {
          toggleClass(node, 'remove', 'active');
        }
      });
  
    if (autoTitle) {
      $.title = target ? ((target.innerText) + " - " + title) : title;
    }
  
    return target
  }
docs: Get and active link
  @param  {object} router
  @param  {string|element}  el
  @param  {Boolean} isParent   acitve parent
  @param  {Boolean} autoTitle  auto set title
  @return {element}