MCPcopy
hub / github.com/scutan90/DeepLearning-500-questions / collapse

Function collapse

docsify.js:3713–3729  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

3711 }
3712
3713 function collapse(el) {
3714 el = getNode(el);
3715 if (el == null) {
3716 return
3717 }
3718 on(el, 'click', function (ref) {
3719 var target = ref.target;
3720
3721 if (
3722 target.nodeName === 'A' &&
3723 target.nextSibling &&
3724 target.nextSibling.classList.contains('app-sub-sidebar')
3725 ) {
3726 toggleClass(target.parentNode, 'collapse');
3727 }
3728 });
3729 }
3730
3731 function sticky() {
3732 var cover = getNode('section.cover');

Callers 1

initEventFunction · 0.85

Calls 3

getNodeFunction · 0.85
onFunction · 0.85
toggleClassFunction · 0.85

Tested by

no test coverage detected