function geturl(url) { location.href = "/user/get"+"url.html?url=" + url; } function tj(){ var array=["bqg693.cc","bqg804.cc","bqg483.cc","bqg787.cc","bqg914.cc"];if(!array.includes(getCookie("getsite"))){var go=true;array.forEach(function(u){var img=new Image();img.src="https://m."+u+"/favicon.ico";img.onload = function(){if(go && this.width>9){go=false;setCookie("getsite",u,900);}}})}$("div a").click(function(){var book = this.href.match(/(\w+)\/(\d+)\/(\d+)\.html/);if(book[2] && getCookie("getsite")){location.href="/user/get"+"url.html?url="+this.href;return false;}}); (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); $(".search").html('
'); } //donetop function lists(id){ $(".noshow").hide();$(".allshow").click(function(){$(".noshow").show();$(".allshow").hide();}); $(".comment_hide").hide();$(".comment_more").click(function(){$(".comment_hide").show();$(".comment_more").hide();}); // var looklist = window.localStorage.getItem("bookList").split('#'); // var lookid = looklist.indexOf(id);if(lookid<0){return false;} // var lastbook = window.localStorage.getItem(looklist[lookid]).split('#'); // $(".readlink .rl").attr('href', '/book/' + id + '/' + lastbook[1] + '.html'); // $(".readlink .rl").attr('title', '上次阅读到:' + lastbook[3]); // $(".readlink .rl").text('继续阅读'); var hm = Math.ceil(Math.random()*10); if(hm==1){new Image().src = '/'+id+'/hm.gif';} } function listtj(id){ // + new Date().getTime() } function read2(){ //if(getCookie('closead')){return false;} //get_lm(); } function read3(){ //if(getCookie('closead')){return false;} //get_cps(); //closeonoff();location.href = this.href;/baiduboxapp/i.test(navigator.userAgent) } function reads(){ $(".readwz a").click(function(){ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?b0e8793ebe3896a41cdc706920b8d679"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); location.href = this.href; return false; }); } function closeonoff(){ if(getCookie('closead')){var title='点击显示阅读广告';}else{var title='点击关闭阅读广告';} document.writeln("
"+title+"
"); } function closead(){ if(getCookie('closead')){ setCookie("closead",true,0);location.reload(); }else{ setCookie("closead",true,3600);location.reload(); //$.post("/unwz.html",{ id: "5"},function(data){location.reload();}); } } //isbm function logout(){ setCookie("userid",'',1);setCookie("username",'',1);location.reload(); } function setCookie(name,value,time){ var exp = new Date(); exp.setTime(exp.getTime() + time*1000); document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";path=/"; } function getCookie(name){ var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return unescape(arr[2]); else return null; } function doParse(url) { var params = {}; if (! url ) return params; var paramPart = url.substring(url.indexOf("?") + 1); var parts = paramPart.split("&"); for(var i = 0; i < parts.length; i++) { var index = parts[i].indexOf("="); if (index == -1) continue; params[parts[i].substring(0, index)] = parts[i].substring(index + 1); } return params; } function user_href(){ if(getCookie('username')){ var params = doParse(location.href); if (!params.jumpurl || params.jumpurl == "undefined") {location.href = "/user/bookcase.html";} else{location.href = decodeURIComponent(params.jumpurl);} } } function addBookCase(bookid){ $.post("/user/action.html", { action: "addbook", bookid: bookid }, function(data){ if(data==-1) { location.href = "/login.html?jumpurl="+location.href; } else if(data==0) { alert("书架已满,加入书架出错!"); } else if(data==1) { alert("加入书架成功!"); } else if(data==2) { alert("该书已在书架中!"); }else{alert("加入书架出错!");} } ); } function addBookMark(bookId,chapterId,articleName,chapterName){ $.post("/user/action.html", { action: "addbook",bookid: bookId, chapterid:chapterId, articlename: articleName, chaptername: chapterName }, function(data){ if(data==-1) { alert("您还没有登录,请登录后再加入书签!"); location.href = "/login.html?jumpurl="+location.href+"#footer"; } else if(data==0) { alert("书架已满,加入书架出错!"); } else if(data==1) { alert("加入书签成功!"); }else{alert("加入书签出错!");} } ); } function chapter_error(bookId,chapterId,articleName,chapterName,Time){ //if (confirm('你确定这章节有错吗?')) { $.post("/user/action.html", { action: "chapter_error", bookid: bookId, chapterid:chapterId, articlename: articleName, chaptername: chapterName, time: Time}, function(data){ if(data==1) { alert("举报错误章节成功,请耐心等待维护人员处理~"); } else if(data>10) { window.location.href=window.location.href+'?'+data; } else{ alert("请不要频繁提交~"); } } ); //} } function readjs(id,uid,chapterid,author,sortname,articlename,chaptername,txttime){ var randid = Math.floor(Math.random()*900 + 100); $("#read_error").html("
『点此报错』『加入书签』
"); getset();getset1();lastread.remove(uid);lastread.set(uid,chapterid,articlename,chaptername,author,sortname); } function book_error(bookId,articleName,Time){ if (confirm('你确定本书更新出错吗?')) { $.post("/user/action.html", { action: "book_error", bookid: bookId, articlename: articleName, time: Time}, function(data){ if(data==1) { alert("举报错误成功,请耐心等待维护人员处理~"); //if (confirm('举报错误成功,是否登陆留言给管理员?')) { // window.location.href= '/user/book.html?action=add&bookid='+bookId+'&title='+'《'+articleName+'》报错:'; //} } else if(data>10) { window.location.href=window.location.href+'?'+data; } else{ alert("请不要频繁提交~"); } } ); } } $(function(){ document.body.insertAdjacentHTML("afterBegin", '') }); //time:2026-12-03 02:29:11