var unreadNum=0,oldTitle=document.title;document.documentElement.style.overflow="hidden";function readNotification(){unreadNum=0;document.title&&(document.title=oldTitle);$(this).parent().fadeOut(200);$("#xss_panel_tab").tab("show");$("#panelGrid").jqxGrid("updatebounddata")}function showNotification(b,c,d){unreadNum+=b;$.ajax({url:urlbase+"?cmd\x3dget\x26id\x3d"+c,dataType:"json",timeout:d,success:function(a){document.title&&(document.title="\u3010\u6536\u5230"+unreadNum+"\u5c01\u6d88\u606f\u3011"+oldTitle);$("#webpushtipcontainer").remove();$("#notifications-bottom-right").append('\x3cdiv id\x3d"webpushtipcontainer" class\x3d"webpushtipoutter" \x3e\x3cdiv class\x3d"webpushtipinner"\x3e\x3cdiv id\x3d"webpushtip1" style\x3d"visibility: visible; bottom: 0px;" class\x3d"newmailNotifyItem notify_mail"\x3e\x3cdiv class\x3d"newmailNotify" id\x3d"newNotification"\x3e\x3ca nocheck\x3d"true" id\x3d"webpushtip1close" class\x3d"notify_close"title\x3d"\u5173\u95ed"\x3e\x3c/a\x3e\x3cdiv class\x3d"notify_type"\x3e\x3cspan\x3e\x3c/span\x3e\x3clabel\x3e\x3cem id\x3d"unreadNum"\x3e1\x3c/em\x3e\x3c/label\x3e\x3c/div\x3e\x3cdiv class\x3d"notify_content"\x3e\x3cp class\x3d"notify_location"\x3e\u672a\u77e5\x3c/p\x3e\x3cp class\x3d"notify_title"\x3e0.0.0.0\x3c/p\x3e\x3cp class\x3d"notify_digest"\x3eGET:0\u4e2a POST:0\u4e2a Cookie:0\u4e2a\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');$("#webpushtipcontainer").addClass("animated bounceInUp");$("#webpushtip1close").click(function(a){$(this).parent().parent().fadeOut(200);a.stopPropagation()});$("#newNotification").click(readNotification);$("#unreadNum").text(unreadNum);$(".notify_location").text(a.location);$(".notify_title").text(a.user_IP);$(".notify_digest").text("GET:"+Object.keys(a.get_data).length+"\u4e2a POST:"+Object.keys(a.post_data).length+"\u4e2a Cookie:"+Object.keys(a.cookie_data).length+"\u4e2a");$("#notifications-bottom-right").addClass("animated bounceInUp")},complete:function(a,b){"timeout"==b&&($("#webpushtipcontainer").remove(),$("#notifications-bottom-right").append('\x3cdiv id\x3d"webpushtipcontainer" class\x3d"webpushtipoutter" \x3e\x3cdiv class\x3d"webpushtipinner"\x3e\x3cdiv id\x3d"webpushtip1" style\x3d"visibility: visible; bottom: 0px;" class\x3d"newmailNotifyItem notify_mail"\x3e\x3cdiv class\x3d"newmailNotify" id\x3d"newNotification"\x3e\x3ca nocheck\x3d"true" id\x3d"webpushtip1close" class\x3d"notify_close"title\x3d"\u5173\u95ed"\x3e\x3c/a\x3e\x3cdiv class\x3d"notify_type"\x3e\x3cspan\x3e\x3c/span\x3e\x3clabel\x3e\x3cem id\x3d"unreadNum"\x3e1\x3c/em\x3e\x3c/label\x3e\x3c/div\x3e\x3cdiv class\x3d"notify_content"\x3e\x3cp class\x3d"notify_location"\x3e\u672a\u77e5\u6765\u6e90\x3c/p\x3e\x3cp class\x3d"notify_title"\x3e\u7f51\u7edc\u9519\u8bef\x3c/p\x3e\x3cp class\x3d"notify_digest"\x3e\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),$("#webpushtipcontainer").addClass("animated bounceInUp"),$("#webpushtip1close").click(function(a){$(this).parent().parent().fadeOut(200);a.stopPropagation()}),$("#newNotification").click(readNotification),$("#unreadNum").text(unreadNum),$("#notifications-bottom-right").addClass("animated bounceInUp"))}})};