/** PTNovelSearch-v4.1.2 LPPL License By http://www.ptcms.com/ */
 ;var loading=null;$(".pt-return").click(function(){window.history.back()}),$(".btn-sign").parents("a").click(function(){var n=$(".btn-sign");return"未签到"!==n.text()||($.ajax(__ADD_SIGN,{type:"post",dataType:"json",beforeSend:function(){null==loading&&(loading=layer.open({type:2}))},complete:function(){null!=loading&&(layer.close(loading),loading=null)},success:function(e){e.code?layer.open({content:e.msg,skin:"msg",time:2,end:function(){e.data.redirect&&(window.location.href=e.data.redirect)}}):(n.text("已签到"),layer.open({content:e.msg,skin:"msg",time:2,end:function(){window.location.href=n.parents("a").attr("href")}}))},error:function(){layer.open({content:"操作失败，请刷新页面后重试！",skin:"msg",time:2})}}),!1)});