-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot.js
More file actions
24 lines (20 loc) · 715 Bytes
/
boot.js
File metadata and controls
24 lines (20 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* global Fluid, CONFIG */
Fluid.boot = {};
Fluid.boot.registerEvents = function() {
Fluid.events.billboard();
Fluid.events.registerNavbarEvent();
Fluid.events.registerParallaxEvent();
Fluid.events.registerScrollDownArrowEvent();
Fluid.events.registerScrollTopArrowEvent();
Fluid.events.registerImageLoadedEvent();
};
Fluid.boot.initPlugins = function() {
CONFIG.anchorjs.enable && Fluid.plugins.initAnchor();
CONFIG.toc.enable && Fluid.plugins.initTocBot();
CONFIG.image_zoom.enable && Fluid.plugins.initFancyBox();
CONFIG.copy_btn && Fluid.plugins.initCopyCode();
};
document.addEventListener('DOMContentLoaded', function() {
Fluid.boot.registerEvents();
Fluid.boot.initPlugins();
});