;(function($){
$.fn.extend({
warning2:function(value){
value=$.extend({content: ''},value);
return $(this).html("").css({
'position':'fixed',
'top':0,
'bottom':0,
'left':0,
'right':0
}).append("
"+value.content+"
").find("div").css({
'color':'#fff',
'textAlign':'center',
'background':'rgba(0,0,0,0.5)',
'display':'table',
'padding':'3px 10px',
'position':'relative',
'top':'50%',
'left':'50%',
'borderRadius':'3px',
'transform': 'translate(-50%,-50%)'
});
}
});
})(jQuery);