Deploy website

Deploy website version based on 3526fe403f
This commit is contained in:
wing328
2019-05-21 16:16:48 +00:00
parent 4933b5db84
commit 7c75455abc
50 changed files with 424 additions and 142 deletions

View File

@@ -36,10 +36,16 @@
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
createToggler('#tocToggler', 'body', 'tocActive');
const headings = document.querySelector('.toc-headings');
var headings = document.querySelector('.toc-headings');
headings && headings.addEventListener('click', function(event) {
if (event.target.tagName === 'A') {
document.body.classList.remove('tocActive');
var el = event.target;
while(el !== headings){
if (el.tagName === 'A') {
document.body.classList.remove('tocActive');
break;
} else{
el = el.parentNode;
}
}
}, false);