Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. 'use strict';
  2. $(window).on('load',function(){
  3. //Welcome Message (not for login page)
  4. function notify(message, type){
  5. $.growl({
  6. message: message
  7. },{
  8. type: type,
  9. allow_dismiss: false,
  10. label: 'Cancel',
  11. className: 'btn-xs btn-inverse',
  12. placement: {
  13. from: 'bottom',
  14. align: 'right'
  15. },
  16. delay: 2500,
  17. animate: {
  18. enter: 'animated fadeInRight',
  19. exit: 'animated fadeOutRight'
  20. },
  21. offset: {
  22. x: 30,
  23. y: 30
  24. }
  25. });
  26. };
  27. notify('Welcome to Notification page', 'inverse');
  28. });
  29. $(document).ready(function() {
  30. /*--------------------------------------
  31. Notifications & Dialogs
  32. ---------------------------------------*/
  33. /*
  34. * Notifications
  35. */
  36. function notify(from, align, icon, type, animIn, animOut){
  37. $.growl({
  38. icon: icon,
  39. title: ' Bootstrap Growl ',
  40. message: 'Turning standard Bootstrap alerts into awesome notifications',
  41. url: ''
  42. },{
  43. element: 'body',
  44. type: type,
  45. allow_dismiss: true,
  46. placement: {
  47. from: from,
  48. align: align
  49. },
  50. offset: {
  51. x: 30,
  52. y: 30
  53. },
  54. spacing: 10,
  55. z_index: 999999,
  56. delay: 2500,
  57. timer: 1000,
  58. url_target: '_blank',
  59. mouse_over: false,
  60. animate: {
  61. enter: animIn,
  62. exit: animOut
  63. },
  64. icon_type: 'class',
  65. template: '<div data-growl="container" class="alert" role="alert">' +
  66. '<button type="button" class="close" data-growl="dismiss">' +
  67. '<span aria-hidden="true">&times;</span>' +
  68. '<span class="sr-only">Close</span>' +
  69. '</button>' +
  70. '<span data-growl="icon"></span>' +
  71. '<span data-growl="title"></span>' +
  72. '<span data-growl="message"></span>' +
  73. '<a href="#" data-growl="url"></a>' +
  74. '</div>'
  75. });
  76. };
  77. $('.notifications .btn').on('click',function(e){
  78. e.preventDefault();
  79. var nFrom = $(this).attr('data-from');
  80. var nAlign = $(this).attr('data-align');
  81. var nIcons = $(this).attr('data-icon');
  82. var nType = $(this).attr('data-type');
  83. var nAnimIn = $(this).attr('data-animation-in');
  84. var nAnimOut = $(this).attr('data-animation-out');
  85. notify(nFrom, nAlign, nIcons, nType, nAnimIn, nAnimOut);
  86. });
  87. });