Skip to content

Commit

Permalink
formatting js code
Browse files Browse the repository at this point in the history
  • Loading branch information
stronglab committed Jul 10, 2016
1 parent 0899fac commit e48b64d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ $(document).on("contextmenu", ".flash-modal", function (e) {
function showMessage(message, type, fade) {
fade = typeof fade !== "undefined" ? fade : 1;
type = typeof type !== "undefined" ? type : "flash-alert-info";
var style;
var top = 20 + $(".flash-modal").length * 100;
style = "top: " + top + "px";
var style = "top: " + top + "px";
var obj = $('<div>', {
'class': 'flash-modal',
'style': style
});
obj.appendTo('body');
obj.html("<b>" + message + "</b>");
obj.text(message);
obj.addClass(type);
obj.stop().animate({opacity: "100"});
obj.show();
Expand Down

0 comments on commit e48b64d

Please sign in to comment.