sidebar_secondary.js 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* ------------------------------------------------------------------------------
  2. *
  3. * # Secondary sidebar
  4. *
  5. * Demo JS code for secondary sidebar pages
  6. *
  7. * ---------------------------------------------------------------------------- */
  8. // Setup module
  9. // ------------------------------
  10. var SidebarSecondary = function () {
  11. //
  12. // Setup module components
  13. //
  14. // Uniform
  15. var _componentUniform = function() {
  16. if (!$().uniform) {
  17. console.warn('Warning - uniform.min.js is not loaded.');
  18. return;
  19. }
  20. // Default initialization
  21. $('.form-input-styled').uniform();
  22. };
  23. //
  24. // Return objects assigned to module
  25. //
  26. return {
  27. initComponents: function() {
  28. _componentUniform();
  29. }
  30. }
  31. }();
  32. // Initialize module
  33. // ------------------------------
  34. document.addEventListener('DOMContentLoaded', function() {
  35. SidebarSecondary.initComponents();
  36. });