var PageNoticeWidget={init:function(){$(document).on("click","[page-notice-widget] [data-close]",function(){var e=$(this).closest(".item");e.fadeOut(function(){e.remove()})}),$(document).on("click","[page-notice-widget] [data-clear]",function(){var e=$("[page-notice-widget]").find(".item");e.fadeOut(function(){e.remove()})})},append:function(e){$("[page-notice-widget]").length||$("body").append("<div page-notice-widget></div>"),$("[page-notice-widget]").append(['<div class="item">','<span class="close" data-close><i class="uk-icon-close"></i></span>',e,"</div>"].join(""))}};module.exports=PageNoticeWidget;