boot.js 541 B

12345678910111213141516171819202122
  1. /* global Fluid */
  2. Fluid.boot = {};
  3. Fluid.boot.registerEvents = function() {
  4. Fluid.events.billboard();
  5. Fluid.events.registerNavbarEvent();
  6. Fluid.events.registerParallaxEvent();
  7. Fluid.events.registerScrollDownArrowEvent();
  8. Fluid.events.registerScrollTopArrowEvent();
  9. Fluid.events.registerImageLoadedEvent();
  10. };
  11. Fluid.boot.refresh = function() {
  12. Fluid.plugins.fancyBox();
  13. Fluid.plugins.codeWidget();
  14. Fluid.events.refresh();
  15. };
  16. document.addEventListener('DOMContentLoaded', function() {
  17. Fluid.boot.registerEvents();
  18. });