sidebarmenu.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * JQuery para el manejo de menu
  3. */
  4. $('#dismiss, .overlay').on('click', function () {
  5. // hide sidebar
  6. $('#sidebar').removeClass('active');
  7. // hide overlay
  8. $('.overlay').removeClass('active');
  9. $('.menu').css('visibility', 'visible');
  10. });
  11. $('#sidebarCollapse').on('click', function () {
  12. // open sidebar
  13. $('#sidebar').addClass('active');
  14. // fade in the overlay
  15. $('.overlay').addClass('active');
  16. $('.menu').css('visibility', 'hidden');
  17. //$('.collapse.in').toggleClass('in');
  18. $('a[aria-expanded=true]').attr('aria-expanded', 'false');
  19. });
  20. /*
  21. var Nightly = new Nightly(true, {
  22. //body: "backgorund color", // Default: #282828
  23. //texts: "texts color", // Default: #f5f5f5
  24. //inputs: {
  25. // color: "text color inside inputs", // Default: #f5f5f5
  26. // backgroundColor: "background color" // Default #313131
  27. //},
  28. //buttons: {
  29. // color: "button's text color", // Default: #f5f5f5
  30. // backgroundColor: "button's backgournd color" // #757575
  31. //},
  32. links: "#ffffff", // Default: #009688
  33. classes: [// Classes to apply when enabling the dark mode on certain elements
  34. { apply: 'bg-head-dark', to: 'bg-head', },
  35. { apply: 'form-control-dark', to: 'form-control', },
  36. { apply: 'subMenu-dark', to: 'subMenu', },
  37. { apply: 'sistema.text-white', to: 'sistema.text-secondary', },
  38. ]
  39. });
  40. if($(".fa-adjust")){
  41. $(".fa-adjust").click(function(){
  42. Nightly.toggle();
  43. });
  44. }*/