hexo/node_modules/hexo-theme-fluid/source/js/boot.js

23 lines
541 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
/* 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();
});