1
0
mirror of synced 2024-12-23 19:34:49 +01:00
bemaniutils/bemani/frontend/static/messages.js
2019-12-08 21:43:49 +00:00

22 lines
765 B
JavaScript

var Messages = {
error: function(message) {
$("ul.messages").append("<li class=\"error\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
warning: function(message) {
$("ul.messages").append("<li class=\"warning\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
success: function(message) {
$("ul.messages").append("<li class=\"success\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
info: function(message) {
$("ul.messages").append("<li class=\"info\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
};