add ignore

This commit is contained in:
qingwei.li 2016-11-20 22:39:07 +08:00
commit 76ed1f2c65
3 changed files with 2 additions and 10 deletions

View file

@ -1,12 +1,3 @@
function activeSidebar () {
document.addEventListener('click', ({ target }) => {
if (target.classList.contains('section-link') && target.nodeName === 'A') {
[].slice.call(document.querySelectorAll('.sidebar li')).forEach(node => node.classList.remove('active'))
target.parentNode.classList.toggle('active')
}
})
}
function scrollActiveSidebar () {
if (/mobile/i.test(navigator.userAgent)) return