sample.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Generated by CoffeeScript 2.1.0
  2. (function() {
  3. $(function() {
  4. $.growl({
  5. title: "Growl",
  6. message: "Hi I'm Sash"
  7. });
  8. $('.error').click(function(event) {
  9. event.preventDefault();
  10. event.stopPropagation();
  11. return $.growl.error({
  12. message: "please check Your details ...file is missing"
  13. });
  14. });
  15. $('.notice').click(function(event) {
  16. event.preventDefault();
  17. event.stopPropagation();
  18. return $.growl.notice({
  19. message: "You have 4 notification"
  20. });
  21. });
  22. $('.warning').click(function(event) {
  23. event.preventDefault();
  24. event.stopPropagation();
  25. return $.growl.warning({
  26. message: "read all details carefully"
  27. });
  28. });
  29. $('.error1').click(function(event) {
  30. event.preventDefault();
  31. event.stopPropagation();
  32. return $.growl.error1({
  33. message: "please check Your details ...file is missing"
  34. });
  35. });
  36. $('.notice1').click(function(event) {
  37. event.preventDefault();
  38. event.stopPropagation();
  39. return $.growl.notice1({
  40. message: "You have 4 notification"
  41. });
  42. });
  43. return $('.warning1').click(function(event) {
  44. event.preventDefault();
  45. event.stopPropagation();
  46. return $.growl.warning1({
  47. message: "read all details carefully"
  48. });
  49. });
  50. });
  51. }).call(this);
  52. function not1() {
  53. notif({
  54. msg: "<b>Success:</b> Well done Details Submitted Successfully",
  55. type: "success"
  56. });
  57. }
  58. function not2() {
  59. notif({
  60. msg: "<b>Oops!</b> An Error Occurred",
  61. type: "error",
  62. position: "center"
  63. });
  64. }
  65. function not3() {
  66. notif({
  67. type: "warning",
  68. msg: "<b>Warning:</b> Something Went Wrong",
  69. position: "left"
  70. });
  71. }
  72. function not4() {
  73. notif({
  74. type: "info",
  75. msg: "<b>Info: </b>Some info here.",
  76. width: "all",
  77. height: 100,
  78. position: "center"
  79. });
  80. }
  81. function not5() {
  82. notif({
  83. type: "error",
  84. msg: "<b>Error: </b>This error will stay here until you click it.",
  85. position: "center",
  86. width: 500,
  87. height: 60,
  88. autohide: false
  89. });
  90. }
  91. function not6() {
  92. notif({
  93. type: "warning",
  94. msg: "Opacity is cool!",
  95. position: "center",
  96. opacity: 0.8
  97. });
  98. }