blog/themes/fluid/source/js/boot.js
2024-11-16 11:34:10 +08:00

23 lines
541 B
JavaScript

/* global Fluid */
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.refresh = function() {
Fluid.plugins.fancyBox();
Fluid.plugins.codeWidget();
Fluid.events.refresh();
};
document.addEventListener('DOMContentLoaded', function() {
Fluid.boot.registerEvents();
});