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

Function initEvent

docsify.js:4702–4712  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

4700 }
4701
4702 function initEvent(vm) {
4703 // Bind toggle button
4704 btn('button.sidebar-toggle', vm.router);
4705 collapse('.sidebar', vm.router);
4706 // Bind sticky effect
4707 if (vm.config.coverpage) {
4708 !isMobile && on('scroll', sticky);
4709 } else {
4710 body.classList.add('sticky');
4711 }
4712 }
4713
4714 function loadNested(path, qs, file, next, vm, first) {
4715 path = first ? path : path.replace(/\/$/, '');

Callers 1

initMixinFunction · 0.85

Calls 3

btnFunction · 0.85
collapseFunction · 0.85
onFunction · 0.85

Tested by

no test coverage detected