toastr.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. $(document).ready(function () {
  2. $(".tst1").on("click", function () {
  3. $.toast({
  4. heading: 'Welcome to my Riday Admin',
  5. text: 'Use the predefined ones, or specify a custom position object.',
  6. position: 'top-right',
  7. loaderBg: '#ff6849',
  8. icon: 'info',
  9. hideAfter: 3000,
  10. stack: 6
  11. });
  12. });
  13. $(".tst2").on("click", function () {
  14. $.toast({
  15. heading: 'Welcome to my Riday Admin',
  16. text: 'Use the predefined ones, or specify a custom position object.',
  17. position: 'top-right',
  18. loaderBg: '#ff6849',
  19. icon: 'warning',
  20. hideAfter: 3500,
  21. stack: 6
  22. });
  23. });
  24. $(".tst3").on("click", function () {
  25. $.toast({
  26. heading: 'Welcome to my Riday Admin',
  27. text: 'Use the predefined ones, or specify a custom position object.',
  28. position: 'top-right',
  29. loaderBg: '#ff6849',
  30. icon: 'success',
  31. hideAfter: 3500,
  32. stack: 6
  33. });
  34. });
  35. $(".tst4").on("click", function () {
  36. $.toast({
  37. heading: 'Welcome to my Riday Admin',
  38. text: 'Use the predefined ones, or specify a custom position object.',
  39. position: 'top-right',
  40. loaderBg: '#ff6849',
  41. icon: 'error',
  42. hideAfter: 3500
  43. });
  44. });
  45. });