notification.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //[Javascript]
  2. $(function () {
  3. "use strict";
  4. //Alerts
  5. $(".myadmin-alert .closed").click(function(event) {
  6. $(this).parents(".myadmin-alert").fadeToggle(350);
  7. return false;
  8. });
  9. /* Click to close */
  10. $(".myadmin-alert-click").click(function(event) {
  11. $(this).fadeToggle(350);
  12. return false;
  13. });
  14. $(".showtop").click(function() {
  15. $(".alerttop").fadeToggle(350);
  16. });
  17. $(".showtop2").click(function() {
  18. $(".alerttop2").fadeToggle(350);
  19. });
  20. /** Alert Position Bottom **/
  21. $(".showbottom").click(function() {
  22. $(".alertbottom").fadeToggle(350);
  23. });
  24. $(".showbottom2").click(function() {
  25. $(".alertbottom2").fadeToggle(350);
  26. });
  27. /** Alert Position Top Left **/
  28. $("#showtopleft").click(function() {
  29. $("#alerttopleft").fadeToggle(350);
  30. });
  31. /** Alert Position Top Right **/
  32. $("#showtopright").click(function() {
  33. $("#alerttopright").fadeToggle(350);
  34. });
  35. /** Alert Position Bottom Left **/
  36. $("#showbottomleft").click(function() {
  37. $("#alertbottomleft").fadeToggle(350);
  38. });
  39. /** Alert Position Bottom Right **/
  40. $("#showbottomright").click(function() {
  41. $("#alertbottomright").fadeToggle(350);
  42. });
  43. }); // End of use strict