User:Canadabonk/common.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 26: | Line 26: | ||
stickytoc.fadeOut(200); |
stickytoc.fadeOut(200); |
||
}); |
}); |
||
/* |
|||
window.onclick = function(event) { |
window.onclick = function(event) { |
||
if (!event.target.matches('ct-stickytoc').children && !stickytoc.attr('style')) { |
if (!event.target.matches('ct-stickytoc').children && !stickytoc.attr('style')) { |
||
stickytoc.fadeOut(200); |
|||
} |
|||
}; |
|||
*/ |
|||
window.onclick = function(event) { |
|||
if (!$('ct-toc').find('*').includes(event.target) && !stickytoc.attr('style')) { |
|||
stickytoc.fadeOut(200); |
stickytoc.fadeOut(200); |
||
} |
} |