bump 0.6.1
This commit is contained in:
parent
19bf043cf8
commit
4d56be2f10
5 changed files with 11 additions and 6 deletions
|
|
@ -2295,9 +2295,14 @@ function activeLink (dom, activeParent) {
|
|||
function bindToggle (dom) {
|
||||
dom = typeof dom === 'object' ? dom : document.querySelector(dom);
|
||||
if (!dom) { return }
|
||||
var main = document.querySelector('main');
|
||||
var body = document.body;
|
||||
|
||||
dom.addEventListener('click', function () { return main.classList.toggle('close'); });
|
||||
dom.addEventListener('click', function () { return body.classList.toggle('close'); });
|
||||
|
||||
if (!/mobile/i.test(navigator.userAgent)) { return }
|
||||
document.querySelector('aside').addEventListener('click', function (event) {
|
||||
body.classList.toggle('close');
|
||||
});
|
||||
}
|
||||
|
||||
var renderTo = function (dom, content) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue