This commit is contained in:
make
2025-04-21 17:49:17 +08:00
parent 7ef217c1b9
commit 2337ab4f7d
942 changed files with 209166 additions and 0 deletions

View File

@@ -0,0 +1,281 @@
/*@import url(https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/layui/2.6.8/css/layui.css);*/
body,html{margin:0;padding:0;width:100%;height:100%;background-color:#efefef}
.hide{display:none}
.left{float:left!important}
.right{float:right!important}
.i_home:after{content:'\e68e'}
.i_back:after{content:'\e603'}
.i_menu:after{content:'\e65f'}
.i_search:after{content:'\e615'}
.i_history:after{content:'\e705'}
.i_cancel:after{content:'\1007'}
.i_more:after{content:'\e602'}
.i_author:after{content:'\e606'}
.i_sort:after{content:'\e715'}
.i_top:after{content:'\e735'}
.i_visit:after{content:'\e756'}
.i_vote:after{content:'\e6c6'}
.i_mark:after{content:'\e600'}
.i_size:after{content:'\e642'}
.i_time:after{content:'\e60e'}
.i_set:after{content:'\e614'}
.i_book:after{content:'\e705'}
.i_read:after{content:'\e60a'}
.i_prev:after{content:'\e65a'}
.i_next:after{content:'\e65b'}
.i_down:after{content:'\e64c'}
.header{top:0;right:0;left:0;z-index:9999;padding:0 5px;height:45px;background-color:darkcyan;text-align:center;}
.header i{float:right;display:block;width:45px;height:45px;color:#fff;font-size:25px;line-height:48px}
.header i.i_back{float:left}
.header a{display:inline-block}
.header a.logo{float:left;height:45px;color:#fff;font-weight:600;font-size:20px;line-height:46px}
.header h1,.header p{overflow:hidden;height:45px;color:#fff;font-size:18px;line-height:46px}
.header ul{display:inline-block;overflow:hidden;margin-top:8px;border-radius:45px;background-color:#fff}
.header li{display:inline-block;padding:1px}
.header li a{display:inline-block;padding:2px 10px;color:#333;font-size:17px}
.header li.now a{border-radius:45px;background-color:darkcyan;color:#fff}
div.menu{box-shadow:0 0 10px 5px rgba(0,0,0,.1)}
div.menu a{display:block;padding:10px 15px;color:#00aded;font-size:14px}
div.menu a+a{border-top:1px solid #ddd}
.footer{margin:10px 10px 0;padding:10px;border-top:1px solid #ccc;text-align:center}
.footer p{color:#666;line-height:25px}
.footer a{padding:0 3px;color:#999}
.nav{top:49px;right:0;left:0;z-index:9999;height:35px;background-color:#fff;text-align:center}
.nav li{display:inline-block;width:19%;height:35px}
.nav li a{display:block;height:34px;color:#666;font-size:16px;line-height:35px}
.nav li.now a{border-bottom:2px solid darkcyan;color:darkcyan}
.account{margin:15px}
.search{display:-webkit-flex;display:flex;padding:10px 10px 0;height:35px}
.search span{position:relative;display:inline-block;margin-right:10px;padding:0 45px;height:35px;border-radius:35px;background-color:#fff;line-height:35px;flex-grow:1}
.search span i{position:absolute;top:0;right:0;display:block;width:38px;height:35px;color:#ccc;text-align:center;font-size:20px;line-height:38px}
.search span i:first-child{right:auto;left:0;color:#aaa}
.search span input{width:100%;height:25px;border:0 none;font-size:15px;line-height:25px}
.search button{padding:0 12px;height:35px;border-radius:4px;background-color:darkcyan;font-size:17px;line-height:35px}
.search.in{padding:10px;}
.search.in button{background-color:darkcyan}
.search+.layui-btn-container{padding:11px 0 0 11px;background-color:#fff}
.path{padding:6px 10px}
.path a{padding:5px;color:#666}
.caption{margin-top:10px;padding:6px;border:1px solid #cacaca;background-color:#E1ECED;color:#8f8f8f;font-weight:700;font-family:"Microsoft YaHei",,,仿_GB2312,Verdana,Arial,sans-seri}
.caption span{float:right}
.caption a{color:#0067c8}
.search+.caption{padding-bottom:0;font-size:15px}
.last{padding:12px 15px;border-top:1px solid #e5e5e5;background-color:#fff;color:#999;font-size:15px}
.last p{float:left}
.last a{display:block;color:#00aeef}
.library{padding:10px 10px 5px;background-color:#f4f4f4;-webkit-user-select:none;user-select:none}
.library ul{display:none}
.library ul.filter{display:block}
.library ul.filter li{cursor:pointer}
.library ul.filter li i:after{content:'\e61a'}
.library ul.filter li.active i:after{content:'\e619'}
.library ul li{display:inline-block;overflow:hidden;width:32%;height:30px;color:#333;text-align:center;line-height:30px}
.library li a{padding:4px 10px;border:1px solid #e5e5e5;border-radius:20px;color:#666}
.library li.on a{border-color:darkcyan;background-color:darkcyan;color:#fff}
.library li i{color:#999;font-size:12px}
.sort{margin:5px}
.sort li{display:inline-block;width:32%}
.sort li i{position:relative;top:1.5px;float:right;display:block;width:50px;border-left:1px solid #ddd;color:#ff6000;text-align:right;font-style:normal}
.sort li a{display:block;margin:5px;padding:8px;border:1px solid #ddd;background-color:#fcfcfc;text-align: center;color:#666}
.sort li a:active,.sort li a:hover{background-color:#f4f4f4}
.top li{margin:10px;border:1px solid #ddd;background-color:#fff}
.top li p{padding:10px;border-bottom:1px solid #ddd;background-color:#fff}
.top li a{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;padding:10px 0;width:25%;color:darkcyan;text-align:center}
.top li a:first-child{padding-left:10px;width:100%;color:#666;text-align:left}
.top li a+a{border-left:1px solid #ddd}
.top li a:active,.top li a:hover{background-color:#f4f4f4}
.top li a>i{float:right;margin-right:10px}
.box{margin:10px 0;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background-color:#fff}
.box .title{position:relative;overflow:hidden;padding:10px 20px 5px 30px;height:20px;color:#666;font-size:16px;line-height:20px}
.box .title:before{position:absolute;top:10px;left:15px;display:block;width:1px;height:16px;border:2px solid #52c3f2;border-radius:2px;background-color:#52c3f2;content:' '}
.box .title a{position:relative;display:block;color:#666}
.box .title a:after{position:absolute;top:4px;right:1px;display:block;width:9px;height:9px;border-top:3px solid #52c3f2;border-right:3px solid #52c3f2;content:' ';-webkit-transform:rotate(45deg);transform:rotate(45deg)}
.cover{overflow-x:auto;margin:0 10px;white-space:nowrap}
.cover li{display:inline-block;overflow:hidden;padding:5px;width:106px;height:200px}
.cover li a{color:#888}
.cover li img{padding:1px;width:100px;height:150px;border:1px solid #e5e5e5}
.cover li img:active,.cover li img:hover{padding:0;border:2px solid darkcyan}
.cover li p{overflow:hidden;height:25px;color:#333;font-size:15px;line-height:25px}
.vote{padding:5px 10px}
.vote span.layui-badge{float:left;margin:5px 8px 0 4px}
.vote img{float:left;margin-right:15px;margin-right:10px;padding:2px;width:100px;height:150px;border:1px solid #e5e5e5}
.vote img:active,.vote img:hover{padding:1px;border:2px solid darkcyan}
.vote p{overflow:hidden}
.vote p.bookname{height:35px;font-size:17px;line-height:35px}
.vote p.author{height:25px;font-size:15px;line-height:25px}
.vote p.intro{margin:10px 0 15px;height:80px;font-size:14px;line-height:20px}
.vote p span.data{float:right;margin-right:5px}
.vlist{padding:0 10px}
.vlist li{overflow:hidden;border-top:1px solid #eee;color:#666}
.vlist li a{position:relative;display:block;overflow:hidden;padding:10px 5px;height:20px;border-left:5px solid #fff}
.vlist li span{position:absolute;top:11px;left:5px;color:#0078ad}
.vlist li.now{background-color:#f7fdff;margin-bottom: 10px;}
.vlist li.now a{color:darkcyan;border-left-color:darkcyan}
.vlist li.now span{float:right;color:#009688}
.vlist p{overflow:hidden;margin-left:50px;height:20px;font-size:16px;line-height:20px}
.vlist p.bookname{float:left;margin-left:26px}
.vlist p.author{float:right;font-size:14px}
.title+.vlist li:first-child{border-top:0 none}
.alist{padding:10px;background-color:#fff}
.alist li+li{border-top:1px solid #eee}
.alist li a{display:block;overflow:hidden;padding:10px;height:20px;font-size:16px;line-height:20px}
.ilist{padding:8px 5px}
.ilist li{display:inline-block;padding:8px 0;width:32%;text-align:center}
.ilist li img{width:100px;height:150px;border:1px solid #ccc}
.ilist li p{overflow:hidden;padding:0 5px;height:30px;color:#555;font-size:16px;line-height:30px}
.ilist li i.layui-icon{position:relative;display:none}
.ilist.edit li i.layui-icon{display:inline}
.ilist li i.layui-icon:before{position:absolute;top:-80px;right:-15px;z-index:999;color:#727272;content:'\1007';font-size:32px}
.ilist li i.layui-icon:active:before,.ilist li i.layui-icon:hover:before{color:#dd5a4c}
.ilist li i.layui-icon:after{position:absolute;top:-72px;right:-7px;display:block;width:15px;height:15px;background-color:#fff;content:' '}
.clear{display:none;margin:0 10px}
.list{padding:0 15px;border-bottom:1px solid #e5e5e5;background-color:#fff}
.list li{padding:10px 5px;margin-bottom: 10px;}
.list li+li{border-top:1px solid #e5e5e5}
.list li img{float:left;margin:5px 10px 0 0;width:86px;height:116px;border:1px solid #e5e5e5}
.list li p{line-height:25px}
.list li p i{color:#0067c8;font-style:normal}
.list li p.data{height:20px;color:#888;line-height:20px}
.list li p.chapter{height:25px;line-height:25px;overflow: hidden;}
.list li p.chapter a{color:#333}
.list li p.intro{height:40px;line-height:20px}
.list li p.data+p.intro{height:60px;line-height:20px}
.list li span.data{float:right;color:#ff6000;font-size:14px}
.list li span.data i{margin-right:2px;color:#999;vertical-align:-1px}
.list a.mark_read{float:right;display:block}
.list a.mark_del{float:right;display:none}
.list.edit a.mark_read{display:none}
.list.edit a.mark_del{display:block}
.list.lite{padding:0 10px}
.list.lite li{padding:5px;border-top:0 none}
.layui-btns {margin-left: 10px;height: 38px;line-height: 30px;border: 1px solid transparent;padding: 0 28px;background-color: #009688;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border-radius: 2px;cursor: pointer;}
.load-more{margin:10px}
.detail{padding:10px;margin-top:10px;height:150px;background-color:#fff}
.detail img{float:left;margin:0 15px 0 5px;margin-right:10px;padding:1px;width:108px;height:150px;border:1px solid #e5e5e5}
.detail p{overflow:hidden;height:30px;color:#666;line-height:30px}
.detail p.name{height:32px;font-size:20px;line-height:32px}
.detail p.name strong{color:darkcyan;}
.detail p.author{height:32px;color:#444;font-size:16px;line-height:32px}
.detail p.author i{margin-right:5px;color:#ff5722;vertical-align:-1px;font-weight:700}
.action{padding:5px 10px 10px;background-color:#fff;text-align:center}
.action li{display:inline-block;width:23.8%}
.action li a{display:block;margin:5px;padding:2px;border:1px solid darkcyan;border-radius:3px;background-color:#fff;color:darkcyan;font-size:13.8px}
.action li:nth-child(2) a{background-color:darkcyan;color:#fff}
.title+.intro{padding:5px 15px 0;color:#666;text-indent:2em;font-size:12px;line-height:22px;line-height:180%}
.update{margin:0 10px;padding:10px 5px;border-top:1px solid #e5e5e5;color:#666;font-size:15px}
.update a{color:#ff6000}
.bookname{color:#333;font-size:16px}
.author{color:#666;font-size:14px}
.intro{color:#999;font-size:13px}
.intro p+p{margin-top:2px}
.intro a{color:#83af9b;}
.read{background-color:#fff}
.read li{border-top:1px solid #e5e5e5}
.read li a{display:block;overflow:hidden;padding:0 12px;height:45px;border-left:5px solid #fff;font-size:15px;line-height:45px}
.read li.now{background-color:#f7fdff}
.read li.now a{color:darkcyan;border-left-color:darkcyan}
.read li.now span{float:right;color:#009688}
.index-container{display: flex;justify-content: space-between;padding: 10px;}
#indexselect{width: 49%;margin: 0 1rem;text-indent: 5px;border: none;border: 1px solid #8D6661;background: #fff;outline: none;}
.index-container-btn{background: #008b8b;border-radius: 3px;height: 34px;line-height: 34px;text-align: center;display: block;color: #fff;width: 25%;}
#chapter{height:auto;min-height:100%;-webkit-user-select:none;user-select:none}
.headline{margin:5px;text-align:center;font-weight:500;font-size:16px;}
.content p{margin:10px;text-indent:2em;font-size:18px;line-height:180%}
.pager{padding:0;text-align:center;height: 36px;line-height: 36px;}
.pager a {display: inline-block;margin-right: 3px;width: 20%;height: 33px;border: 1px solid #ece6da;background:darkcyan;color:#fff;line-height: 33px;}
.pagelist{margin:10px 0;text-align:center;line-height:30px}
.pagelist a,.pagelist span{display:inline-block;margin:2px;padding:0 10px;border:1px solid #ccc;border-radius:3px;background-color:#fff;color:#666;font-size:15px;-webkit-user-select:none;user-select:none}
.pagelist #s{padding-right:10px;background-color:#008b8b;color:#fbfbfb;font-style:normal}
.pagelist a,.pagelist b{color:darkcyan;}
.pagelist a:active,.pagenum:active{border-color:#dd5114}
.shadow{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999}
#chapter .header{top:-45px;overflow:hidden;background-color:#0067c8;color:#fff;-webkit-transition:top .2s;transition:top .2s}
#chapter .header p{text-align:left}
.tabbar{position:fixed;right:0;bottom:-100px;left:0;height:100px;background-color:#0067c8;color:#f4f4f4;text-align:center;-webkit-transition:bottom .2s;transition:bottom .2s}
.tabbar li{display:inline-block;width:20%;height:50px;font-size:12px;line-height:20px}
.tabbar li.now,.tabbar li:active,.tabbar li:hover{background-color:#333}
.tabbar li i{display:block;height:25px;font-size:17px;line-height:33px}
.setting{position:fixed;right:0;bottom:100px;left:0;display:none;height:200px;background-color:#333;color:#f4f4f4;text-align:center}
.setting ul{position:relative;margin:10px;padding:0 0 0 50px}
.setting ul:before{position:absolute;top:0;left:0;width:50px;height:50px;line-height:50px}
.size:before{content:'字号'}
.size li{display:inline-block;margin:10px 0;width:50%;line-height:28px}
.size li:before{display:block;overflow:hidden;margin:0 10px;border:1px solid #fff;border-radius:30px;content:'A+'}
.size li:first-child:before{content:'A-'}
.size li.disabled:before{border-color:#999;color:#999}
.theme:before{content:'主题'}
.theme li{float:left;display:inline;margin:5px 0;line-height:36px}
.theme li:before{display:inline-block;overflow:hidden;margin:0 10px;padding:1px;width:36px;border:1px solid #fff;border-radius:50px;line-height:36px}
.theme li.now:before{padding:0;border:2px solid #ff6000}
.theme li:nth-child(1):before{background-color:#ecd9ac;color:#3c3c3c;content:'白天'}
.theme li:nth-child(2):before{background-color:#32373b;color:#999;content:'夜间'}
.theme li:nth-child(3):before{background-color:#f2e7cc;color:#643525;content:'怀旧'}
.theme li:nth-child(4):before{background-color:#fbf6ec;color:#c71585;content:'浪漫'}
.theme li:nth-child(5):before{background-color:#DCECD2;color:#000;content:'护眼'}
.theme li:nth-child(6):before{background-color:#bbe9f0;color:#2c3838;content:'青春'}
.theme li:nth-child(7):before{background-color:#e6e6e6;color:#333;content:'灰色'}
.style_0{background-color:#Fcfcfc;color:#3c3c3c}
.style_1{background-color:#32373b;color:#999}
.style_2{background-color:#f2e7cc;color:#643525}
.style_3{background-color:#fbf6ec;color:#c71585}
.style_4{background-color:#cce8cf;color:#555d54}
.style_5{background-color:#bbe9f0;color:#2c3838}
.style_6{background-color:#e6e6e6;color:#333}
#help{background-color:rgba(0,0,0,.5)}
#help li{position:absolute;color:#fff;text-align:center;font-size:16px}
#help li:before{display:inline-block;height:100%;content:' ';vertical-align:middle}
.help-top{top:0;right:35%;left:35%;height:30%;border-right:2px dashed #fff}
.help-bottom{right:35%;bottom:0;left:35%;height:30%;border-left:2px dashed #fff}
.help-left{top:30%;bottom:30%;left:0;width:35%}
.help-right{top:30%;right:0;bottom:30%;width:35%}
.help-center{top:30%;right:35%;bottom:30%;left:35%;border:2px dashed #fff}
.new{margin-top:5px;border-top:1px solid #e5e5e5;color:#666}
.new a{color:#0067c8;}
.tui{margin:8px 0;border:1px solid;border-color:#fff #efefef #d3d3d3 #efefef;box-shadow:0 1px 1px #efefef}
.tui strong{margin-right:2px;padding:3px;background:#333;color:#fff;font-weight:400;font-size:10.5px}
.lasttop,.listtop,.newtop,.quantop,.readtop{overflow:hidden;margin:1px;box-shadow:0 1px 1px #efefef}
.lasttop a,.listtop a,.newtop a,.quantop a,.readtop a{margin:0 3px;color:#101010;font-size:9.5px}
#navdown,#navup{clear:both;display:block;overflow:hidden;margin:0 auto;max-height:120px;text-align:center;word-wrap:break-word}
#navcon{clear:both;display:block;overflow:hidden;margin:10px 0 5px 0;max-height:120px;text-align:center;word-wrap:break-word}
.reg{float:right;padding-right:10px;font-size:16px;color:#fff}
.reg a{color:#fff}
.reg .login{background:#0b5252;padding:5px;margin-top:10px;margin-left:5px;border-radius:3px;color:#fff;height:20px;font-size:14px}
.page_num{text-align: center;font-size: 14px;box-sizing: border-box;padding: 10px;width:350px;margin: 0 auto;}
.page_num select{padding: 0 10px;height: 34px;line-height: 35px;box-sizing: border-box;border: 1px solid #7d9465;background: #fff;border-radius: 5px;margin: 0 10px;width: 140px;cursor: pointer;}
.page_num a{height:34px;line-height: 35px;padding: 0 15px;display: block;margin: 0;box-sizing: border-box;background: #dcebcd;
color: #004d00;border-radius:5px;transition: all 0.3s;}
.page_num a:hover{background: #004d00;color:#fff}
.habt{font-size: 14px;font-weight: normal;color: #F44336;}
.z{float: left;}
.y{float: right;}
.dvfd{background: #fff;width: 200px;height: 140px;position: absolute;top: 50%;left: 50%;margin-top: -70px;margin-left: -100px;box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);text-align: center;border-radius: 5px;z-index: 99999;position: fixed;}
.dvfd .red{display: block;margin:35px 0 15px;font-size: 18px;}
.dvfd .qdbtn{background: #03A9F4;display: inline-block;padding: 5px 30px;color: #fff;border-radius: 3px;font-size: 16px;border: solid 1px #2196F3;}
.dvfd .qdbtn:hover{background: #F44336;border: solid 1px #E91E63;}
.novel_login #login{line-height: 50px;background: #fff;overflow: hidden;padding: 10px;box-sizing: border-box;position: relative;}
.novel_login #login h2{font-size: 18px;text-align: center;height: 34px;line-height: 24px;border-bottom: 1px solid #eee;color: #2c7498;letter-spacing: 0.5em;}
.novel_login #login a{height:30px; line-height:30px;color: #F44336;}
.novel_login #login i{ position:absolute;left:29%;}
.novel_login #login input[type="text"],#login input[type="password"]{width:220px;padding:0px;border:none;outline:medium;height:30px; line-height:30px;padding-left:10px;background: #F7F7F7;}
.novel_login .login_name,.login_pass,.login_email,.login_code{width:100%;overflow: hidden;box-sizing: border-box;}
.novel_login #login .l1,#login .l2{ float:left;}
.login_xs #logintips{text-align: center;color: #de2900;}
.novel_login #login .l1{text-align: right;}
.novel_login #login .l2{width:100%;text-align: left;position: absolute;box-sizing: border-box;padding-left:100px;right:10px;overflow: hidden;}
.novel_login .login_name input{-webkit-appearance: none;}
.novel_login .login_pass input{-webkit-appearance: none;}
.novel_login .login_code input{-webkit-appearance: none;}
.novel_login .login_code2{margin:0;padding: 0 0 10px;text-align:center;border-bottom: 1px solid #eee;}
.novel_login .login_code2>img{display: block;margin:20px auto 0;cursor: pointer;width: 150px;}
.novel_login .login_btn{text-align: center;margin:0;overflow: hidden;}
.novel_login .login_btn a{display:block;color: #fff;border-radius: 2px;text-align: center;margin:20px 60px;box-sizing:border-box;border: 1px solid #2196F3;color:#2196F3;height: 40px;line-height: 40px;}
.novel_login .login_btn a.ok{color:#fff;background:#03A9F4;}
.novel_login .login_btn a.ok:hover{background:#3F51B5;border: 1px solid #3F51B5;}
.novel_login #login .login_save{width:20px;height:20px; padding:5px;}
.novel_login .login_code{margin-bottom:0;}

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,108 @@
function qsskel(o){function w(b,a){return(b<<a)|(b>>>(32-a))}function E(k,b){var U,a,d,x,c;d=(k&2147483648);x=(b&2147483648);U=(k&1073741824);a=(b&1073741824);c=(k&1073741823)+(b&1073741823);if(U&a){return(c^2147483648^d^x)}if(U|a){if(c&1073741824){return(c^3221225472^d^x)}else{return(c^1073741824^d^x)}}else{return(c^d^x)}}function s(a,c,b){return(a&c)|((~a)&b)}function r(a,c,b){return(a&b)|(c&(~b))}function q(a,c,b){return(a^c^b)}function p(a,c,b){return(c^(a|(~b)))}function f(V,U,Z,Y,k,W,X){V=E(V,E(E(s(U,Z,Y),k),X));return E(w(V,W),U)}function C(V,U,Z,Y,k,W,X){V=E(V,E(E(r(U,Z,Y),k),X));return E(w(V,W),U)}function t(V,U,Z,Y,k,W,X){V=E(V,E(E(q(U,Z,Y),k),X));return E(w(V,W),U)}function e(V,U,Z,Y,k,W,X){V=E(V,E(E(p(U,Z,Y),k),X));return E(w(V,W),U)}function g(k){var V;var d=k.length;var c=d+8;var b=(c-(c%64))/64;var U=(b+1)*16;var W=Array(U-1);var a=0;var x=0;while(x<d){V=(x-(x%4))/4;a=(x%4)*8;W[V]=(W[V]|(k.charCodeAt(x)<<a));x++}V=(x-(x%4))/4;a=(x%4)*8;W[V]=W[V]|(128<<a);W[U-2]=d<<3;W[U-1]=d>>>29;return W}function G(c){var b="",d="",k,a;for(a=0;a<=3;a++){k=(c>>>(a*8))&255;d="0"+k.toString(16);b=b+d.substr(d.length-2,2)}return b}function u(b){b=b.replace(/\r\n/g,"\n");var a="";for(var k=0;k<b.length;k++){var d=b.charCodeAt(k);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}var D=Array();var K,i,F,v,h,T,S,R,Q;var N=7,L=12,I=17,H=22;var B=5,A=9,z=14,y=20;var n=4,m=11,l=16,j=23;var P=6,O=10,M=15,J=21;o=u(o);D=g(o);T=1732584193;S=4023233417;R=2562383102;Q=271733878;for(K=0;K<D.length;K+=16){i=T;F=S;v=R;h=Q;T=f(T,S,R,Q,D[K+0],N,3614090360);Q=f(Q,T,S,R,D[K+1],L,3905402710);R=f(R,Q,T,S,D[K+2],I,606105819);S=f(S,R,Q,T,D[K+3],H,3250441966);T=f(T,S,R,Q,D[K+4],N,4118548399);Q=f(Q,T,S,R,D[K+5],L,1200080426);R=f(R,Q,T,S,D[K+6],I,2821735955);S=f(S,R,Q,T,D[K+7],H,4249261313);T=f(T,S,R,Q,D[K+8],N,1770035416);Q=f(Q,T,S,R,D[K+9],L,2336552879);R=f(R,Q,T,S,D[K+10],I,4294925233);S=f(S,R,Q,T,D[K+11],H,2304563134);T=f(T,S,R,Q,D[K+12],N,1804603682);Q=f(Q,T,S,R,D[K+13],L,4254626195);R=f(R,Q,T,S,D[K+14],I,2792965006);S=f(S,R,Q,T,D[K+15],H,1236535329);T=C(T,S,R,Q,D[K+1],B,4129170786);Q=C(Q,T,S,R,D[K+6],A,3225465664);R=C(R,Q,T,S,D[K+11],z,643717713);S=C(S,R,Q,T,D[K+0],y,3921069994);T=C(T,S,R,Q,D[K+5],B,3593408605);Q=C(Q,T,S,R,D[K+10],A,38016083);R=C(R,Q,T,S,D[K+15],z,3634488961);S=C(S,R,Q,T,D[K+4],y,3889429448);T=C(T,S,R,Q,D[K+9],B,568446438);Q=C(Q,T,S,R,D[K+14],A,3275163606);R=C(R,Q,T,S,D[K+3],z,4107603335);S=C(S,R,Q,T,D[K+8],y,1163531501);T=C(T,S,R,Q,D[K+13],B,2850285829);Q=C(Q,T,S,R,D[K+2],A,4243563512);R=C(R,Q,T,S,D[K+7],z,1735328473);S=C(S,R,Q,T,D[K+12],y,2368359562);T=t(T,S,R,Q,D[K+5],n,4294588738);Q=t(Q,T,S,R,D[K+8],m,2272392833);R=t(R,Q,T,S,D[K+11],l,1839030562);S=t(S,R,Q,T,D[K+14],j,4259657740);T=t(T,S,R,Q,D[K+1],n,2763975236);Q=t(Q,T,S,R,D[K+4],m,1272893353);R=t(R,Q,T,S,D[K+7],l,4139469664);S=t(S,R,Q,T,D[K+10],j,3200236656);T=t(T,S,R,Q,D[K+13],n,681279174);Q=t(Q,T,S,R,D[K+0],m,3936430074);R=t(R,Q,T,S,D[K+3],l,3572445317);S=t(S,R,Q,T,D[K+6],j,76029189);T=t(T,S,R,Q,D[K+9],n,3654602809);Q=t(Q,T,S,R,D[K+12],m,3873151461);R=t(R,Q,T,S,D[K+15],l,530742520);S=t(S,R,Q,T,D[K+2],j,3299628645);T=e(T,S,R,Q,D[K+0],P,4096336452);Q=e(Q,T,S,R,D[K+7],O,1126891415);R=e(R,Q,T,S,D[K+14],M,2878612391);S=e(S,R,Q,T,D[K+5],J,4237533241);T=e(T,S,R,Q,D[K+12],P,1700485571);Q=e(Q,T,S,R,D[K+3],O,2399980690);R=e(R,Q,T,S,D[K+10],M,4293915773);S=e(S,R,Q,T,D[K+1],J,2240044497);T=e(T,S,R,Q,D[K+8],P,1873313359);Q=e(Q,T,S,R,D[K+15],O,4264355552);R=e(R,Q,T,S,D[K+6],M,2734768916);S=e(S,R,Q,T,D[K+13],J,1309151649);T=e(T,S,R,Q,D[K+4],P,4149444226);Q=e(Q,T,S,R,D[K+11],O,3174756917);R=e(R,Q,T,S,D[K+2],M,718787259);S=e(S,R,Q,T,D[K+9],J,3951481745);T=E(T,i);S=E(S,F);R=E(R,v);Q=E(Q,h)}return(G(T)+G(S)+G(R)+G(Q)).toLowerCase()};
jq = jQuery.noConflict();//重定义JQ
var varslehj3 = qsskel(jq.cookie('user_id') + jq.cookie('user_name') + kdeh2);
if(jq.cookie('user_name')){//登录判断
var user_name = jq.cookie('user_name');
jq('#qs_login').html('<a href=\"/mybook.html\" title=\"访问会员书架\" class="login">'+user_name+'</a><a href=\"javascript:qs_logout();\" class="login">退出</a><a href="/mybook.html" class="login">书架</a>');
}else{
jq('#qs_login').html('<a href=\"/login.html?url='+lg_url+'\" class="login">登录</a><a class="login" href=\"/register.html?url='+lg_url+'\">注册</a><a href="/mybook.html" class="login">书架</a>');
}
function qs_logout(){//退出登录
jq.removeCookie(varslehj3,{ path: '/'});
jq.removeCookie('user_id',{ path: '/'});
jq.removeCookie('user_name',{ path: '/'});
window.location.reload();
}
function login(lg_url){//用户登录
user_name = document.getElementById("user_name").value;
user_pass = qsskel(document.getElementById("user_pass").value);
user_code = document.getElementById("user_code").value;
jq.post('/qs_login_go.php',{'user_name':user_name,'user_pass':user_pass,'user_code':user_code},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
erword=data[1];
if(data[0]==1){
window.location.href = lg_url;
}
else{
reloadcode();
jq('#shuqian').html('<div class=\"dvfd\"><span class=red>'+erword+'</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
});
}
function register(lg_url){//用户注册
name = document.getElementById("name").value;
mobile = document.getElementById("mobile").value;
pass = qsskel(document.getElementById("pass").value);
pass2 = qsskel(document.getElementById("pass2").value);
code = document.getElementById("code").value;
if(pass == pass2){
jq.post('/qs_register_go.php',{'name':name,'mobile':mobile,'pass':pass,'pass2':pass2,'code':code},
function(data){
data=data.replace(/\s/g,'');data=data.split('|');
erword=data[1];
if(data[0]==1){
window.location.href = lg_url;
}
else{
reloadcode();
jq('#shuqian').html('<div class=\"dvfd\"><span class=red>'+erword+'</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
});
}else{
reloadcode();
jq('#shuqian').html('<div class=\"dvfd\"><span class=red>两次密码不一致</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
}
function case_del(aid,xstitle){//从书架删除小说
jq.post("/ajax.php",{"aid":aid,"case_del":"1"},function(data){
jq("#"+aid).html("<span class=\"s5\">删除中</span>");if(data != ""){
jq("#"+aid).html("<span class=\"s5\">已删除</span>");
}
});
}
function shanchusc(){document.getElementById('shuqian').innerHTML = '';}//清空shuqian DIV
function addbookcase(url,aid){//添加小说到书架
jq.get('/ajax.php',{'addbookcase':'1','url':url,'aid':aid},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
if(data[0]==1){
jq('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('<div class=\"dvfd\"><span class=red>添加成功</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
else{
window.location.href = "/login.html?url="+data[1];
}
});
}
function shuqian(aid,cid,url){//存书签
//alert("shuqian");
jq.get('/ajax.php',{'addmark':'1','url':url,'aid':aid,'cid':cid},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
if(data[0]==1){
jq('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('<div class=\"dvfd\"><span class=red>书签已保存</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
else{
window.location.href = "/login.html?url="+data[1];
}
});
}
function shuqian2(t){
var t = t.replace(/\s/g,'');
//alert(t);
var a = t.split("|");
if(a[0]==1){
jq("#shuqian").html("<div class=\"dvfd\"><span class=red>收藏成功</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>");
}
if(a[0]==0){
window.location.href = "/login.php?url="+a[1];
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,106 @@
function qsskel(o){function w(b,a){return(b<<a)|(b>>>(32-a))}function E(k,b){var U,a,d,x,c;d=(k&2147483648);x=(b&2147483648);U=(k&1073741824);a=(b&1073741824);c=(k&1073741823)+(b&1073741823);if(U&a){return(c^2147483648^d^x)}if(U|a){if(c&1073741824){return(c^3221225472^d^x)}else{return(c^1073741824^d^x)}}else{return(c^d^x)}}function s(a,c,b){return(a&c)|((~a)&b)}function r(a,c,b){return(a&b)|(c&(~b))}function q(a,c,b){return(a^c^b)}function p(a,c,b){return(c^(a|(~b)))}function f(V,U,Z,Y,k,W,X){V=E(V,E(E(s(U,Z,Y),k),X));return E(w(V,W),U)}function C(V,U,Z,Y,k,W,X){V=E(V,E(E(r(U,Z,Y),k),X));return E(w(V,W),U)}function t(V,U,Z,Y,k,W,X){V=E(V,E(E(q(U,Z,Y),k),X));return E(w(V,W),U)}function e(V,U,Z,Y,k,W,X){V=E(V,E(E(p(U,Z,Y),k),X));return E(w(V,W),U)}function g(k){var V;var d=k.length;var c=d+8;var b=(c-(c%64))/64;var U=(b+1)*16;var W=Array(U-1);var a=0;var x=0;while(x<d){V=(x-(x%4))/4;a=(x%4)*8;W[V]=(W[V]|(k.charCodeAt(x)<<a));x++}V=(x-(x%4))/4;a=(x%4)*8;W[V]=W[V]|(128<<a);W[U-2]=d<<3;W[U-1]=d>>>29;return W}function G(c){var b="",d="",k,a;for(a=0;a<=3;a++){k=(c>>>(a*8))&255;d="0"+k.toString(16);b=b+d.substr(d.length-2,2)}return b}function u(b){b=b.replace(/\r\n/g,"\n");var a="";for(var k=0;k<b.length;k++){var d=b.charCodeAt(k);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}var D=Array();var K,i,F,v,h,T,S,R,Q;var N=7,L=12,I=17,H=22;var B=5,A=9,z=14,y=20;var n=4,m=11,l=16,j=23;var P=6,O=10,M=15,J=21;o=u(o);D=g(o);T=1732584193;S=4023233417;R=2562383102;Q=271733878;for(K=0;K<D.length;K+=16){i=T;F=S;v=R;h=Q;T=f(T,S,R,Q,D[K+0],N,3614090360);Q=f(Q,T,S,R,D[K+1],L,3905402710);R=f(R,Q,T,S,D[K+2],I,606105819);S=f(S,R,Q,T,D[K+3],H,3250441966);T=f(T,S,R,Q,D[K+4],N,4118548399);Q=f(Q,T,S,R,D[K+5],L,1200080426);R=f(R,Q,T,S,D[K+6],I,2821735955);S=f(S,R,Q,T,D[K+7],H,4249261313);T=f(T,S,R,Q,D[K+8],N,1770035416);Q=f(Q,T,S,R,D[K+9],L,2336552879);R=f(R,Q,T,S,D[K+10],I,4294925233);S=f(S,R,Q,T,D[K+11],H,2304563134);T=f(T,S,R,Q,D[K+12],N,1804603682);Q=f(Q,T,S,R,D[K+13],L,4254626195);R=f(R,Q,T,S,D[K+14],I,2792965006);S=f(S,R,Q,T,D[K+15],H,1236535329);T=C(T,S,R,Q,D[K+1],B,4129170786);Q=C(Q,T,S,R,D[K+6],A,3225465664);R=C(R,Q,T,S,D[K+11],z,643717713);S=C(S,R,Q,T,D[K+0],y,3921069994);T=C(T,S,R,Q,D[K+5],B,3593408605);Q=C(Q,T,S,R,D[K+10],A,38016083);R=C(R,Q,T,S,D[K+15],z,3634488961);S=C(S,R,Q,T,D[K+4],y,3889429448);T=C(T,S,R,Q,D[K+9],B,568446438);Q=C(Q,T,S,R,D[K+14],A,3275163606);R=C(R,Q,T,S,D[K+3],z,4107603335);S=C(S,R,Q,T,D[K+8],y,1163531501);T=C(T,S,R,Q,D[K+13],B,2850285829);Q=C(Q,T,S,R,D[K+2],A,4243563512);R=C(R,Q,T,S,D[K+7],z,1735328473);S=C(S,R,Q,T,D[K+12],y,2368359562);T=t(T,S,R,Q,D[K+5],n,4294588738);Q=t(Q,T,S,R,D[K+8],m,2272392833);R=t(R,Q,T,S,D[K+11],l,1839030562);S=t(S,R,Q,T,D[K+14],j,4259657740);T=t(T,S,R,Q,D[K+1],n,2763975236);Q=t(Q,T,S,R,D[K+4],m,1272893353);R=t(R,Q,T,S,D[K+7],l,4139469664);S=t(S,R,Q,T,D[K+10],j,3200236656);T=t(T,S,R,Q,D[K+13],n,681279174);Q=t(Q,T,S,R,D[K+0],m,3936430074);R=t(R,Q,T,S,D[K+3],l,3572445317);S=t(S,R,Q,T,D[K+6],j,76029189);T=t(T,S,R,Q,D[K+9],n,3654602809);Q=t(Q,T,S,R,D[K+12],m,3873151461);R=t(R,Q,T,S,D[K+15],l,530742520);S=t(S,R,Q,T,D[K+2],j,3299628645);T=e(T,S,R,Q,D[K+0],P,4096336452);Q=e(Q,T,S,R,D[K+7],O,1126891415);R=e(R,Q,T,S,D[K+14],M,2878612391);S=e(S,R,Q,T,D[K+5],J,4237533241);T=e(T,S,R,Q,D[K+12],P,1700485571);Q=e(Q,T,S,R,D[K+3],O,2399980690);R=e(R,Q,T,S,D[K+10],M,4293915773);S=e(S,R,Q,T,D[K+1],J,2240044497);T=e(T,S,R,Q,D[K+8],P,1873313359);Q=e(Q,T,S,R,D[K+15],O,4264355552);R=e(R,Q,T,S,D[K+6],M,2734768916);S=e(S,R,Q,T,D[K+13],J,1309151649);T=e(T,S,R,Q,D[K+4],P,4149444226);Q=e(Q,T,S,R,D[K+11],O,3174756917);R=e(R,Q,T,S,D[K+2],M,718787259);S=e(S,R,Q,T,D[K+9],J,3951481745);T=E(T,i);S=E(S,F);R=E(R,v);Q=E(Q,h)}return(G(T)+G(S)+G(R)+G(Q)).toLowerCase()};
var varslehj3 = qsskel($.cookie('user_id') + $.cookie('user_name') + kdeh2);
if($.cookie('user_name')){//登录判断
var user_name = $.cookie('user_name');
$('#qs_login').html('<a class=\"a1 y\" href=\"javascript:qs_logout();\"><span class=\"ico ico-tuichu1\"></span>退出登录</a>');
}else{
$('#qs_login').html('<a class=\"a1 y\" href=\"/login.html?url='+lg_url+'\"><span class=\"ico ico-login\"></span>登录</a><a class=\"a2 y\" href=\"/register.html?url='+lg_url+'\"><span class=\"ico ico-zhuce\"></span>注册</a>');
}
function qs_logout(){//退出登录
$.removeCookie(varslehj3,{ path: '/'});
$.removeCookie('user_id',{ path: '/'});
$.removeCookie('user_name',{ path: '/'});
window.location.reload();
}
function login(lg_url){//用户登录
user_name = document.getElementById("user_name").value;
user_pass = qsskel(document.getElementById("user_pass").value);
user_code = document.getElementById("user_code").value;
$.post('/qs_login_go.php',{'user_name':user_name,'user_pass':user_pass,'user_code':user_code},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
erword=data[1];
if(data[0]==1){
window.location.href = lg_url;
}
else{
reloadcode();
$('#shuqian').html('<div class=\"dvfd\"><span class=red>'+erword+'</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
});
}
function register(lg_url){//用户注册
name = document.getElementById("name").value;
mobile = document.getElementById("mobile").value;
pass = qsskel(document.getElementById("pass").value);
pass2 = qsskel(document.getElementById("pass2").value);
code = document.getElementById("code").value;
if(pass == pass2){
$.post('/qs_register_go.php',{'name':name,'mobile':mobile,'pass':pass,'pass2':pass2,'code':code},
function(data){
data=data.replace(/\s/g,'');data=data.split('|');
erword=data[1];
if(data[0]==1){
window.location.href = lg_url;
}
else{
reloadcode();
$('#shuqian').html('<div class=\"dvfd\"><span class=red>'+erword+'</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
});
}else{
reloadcode();
$('#shuqian').html('<div class=\"dvfd\"><span class=red>两次密码不一致</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
}
function case_del(aid,xstitle){//从书架删除小说
$.post("/ajax.php",{"aid":aid,"case_del":"1"},function(data){
$("#"+aid).html("<span class=\"s5\">删除中</span>");if(data != ""){
$("#"+aid).html("<span class=\"s5\">已删除</span>");
}
});
}
function shanchusc(){document.getElementById('shuqian').innerHTML = '';}//清空shuqian DIV
function addbookcase(url,aid){//添加小说到书架
$.get('/ajax.php',{'addbookcase':'1','url':url,'aid':aid},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
if(data[0]==1){
$('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('<div class=\"dvfd\"><span class=red>添加成功</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
else{
window.location.href = "/login.html?url="+data[1];
}
});
}
function shuqian(aid,cid,url){//存书签
//alert("shuqian");
$.get('/ajax.php',{'addmark':'1','url':url,'aid':aid,'cid':cid},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
if(data[0]==1){
$('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('<div class=\"dvfd\"><span class=red>书签已保存</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
else{
window.location.href = "/login.html?url="+data[1];
}
});
}
function shuqian2(t){
var t = t.replace(/\s/g,'');
//alert(t);
var a = t.split("|");
if(a[0]==1){
$("#shuqian").html("<div class=\"dvfd\"><span class=red>收藏成功</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>");
}
if(a[0]==0){
window.location.href = "/login.php?url="+a[1];
}
}

View File

@@ -0,0 +1,212 @@
var _num = 100;
function LastRead(){
this.bookList="bookList"
}
LastRead.prototype={
set:function(bid,tid,title,texttitle,read_page,author){
if(!(bid&&tid&&title&&texttitle,read_page))return;
var v=bid+'#'+tid+'#'+title+'#'+texttitle+'#'+read_page+'#'+author;
this.setItem(bid,v);
this.setBook(bid)
},
get:function(k){
return this.getItem(k)?this.getItem(k).split("#"):"";
},
remove:function(k){
this.removeItem(k);
this.removeBook(k)
},
setBook:function(v){
var reg=new RegExp("(^|#)"+v);
var books = this.getItem(this.bookList);
if(books==""){
books=v
}
else{
if(books.search(reg)==-1){
books+="#"+v
}
else{
books.replace(reg,"#"+v)
}
}
this.setItem(this.bookList,books)
},
getBook:function(){
var v=this.getItem(this.bookList)?this.getItem(this.bookList).split("#"):Array();
var books=Array();
if(v.length){
for(var i=0;i<v.length;i++){
var tem=this.getItem(v[i]).split('#');
if(i>v.length-(_num+1)){
if (tem.length>3) books.push(tem);
}
else{
lastread.remove(tem[0]);
}
}
}
return books
},
removeBook:function(v){
var reg=new RegExp("(^|#)"+v);
var books = this.getItem(this.bookList);
if(!books){
books=""
}
else{
if(books.search(reg)!=-1){
books=books.replace(reg,"")
}
}
this.setItem(this.bookList,books)
},
setItem:function(k,v){
if(!!window.localStorage){
localStorage.setItem(k,v);
}
else{
var expireDate=new Date();
var EXPIR_MONTH=30*24*3600*1000;
expireDate.setTime(expireDate.getTime()+12*EXPIR_MONTH)
document.cookie=k+"="+encodeURIComponent(v)+";expires="+expireDate.toGMTString()+"; path=/";
}
},
getItem:function(k){
var value=""
var result=""
if(!!window.localStorage){
result=window.localStorage.getItem(k);
value=result||"";
}
else{
var reg=new RegExp("(^| )"+k+"=([^;]*)(;|\x24)");
var result=reg.exec(document.cookie);
if(result){
value=decodeURIComponent(result[2])||""}
}
return value
},
removeItem:function(k){
if(!!window.localStorage){
window.localStorage.removeItem(k);
}
else{
var expireDate=new Date();
expireDate.setTime(expireDate.getTime()-1000)
document.cookie=k+"= "+";expires="+expireDate.toGMTString()
}
},
removeAll:function(){
if(!!window.localStorage){
window.localStorage.clear();
}
else{
var v=this.getItem(this.bookList)?this.getItem(this.bookList).split("#"):Array();
var books=Array();
if(v.length){
for( i in v ){
var tem=this.removeItem(v[k])
}
}
this.removeItem(this.bookList)
}
}
}
function showbook(){
var showbook=document.getElementById('tmpbook');
var books=lastread.getBook();
var bookhtml = '';
if(books.length){
var k = 1;
for(var i=books.length-1;i>-1;i--){
var articleid = parseInt(books[i][0]);
var shortid = parseInt(articleid/1000);
var articlename = books[i][2];
var lastchapter = books[i][3];
var lastchapterid = books[i][1];
var read_page = parseInt(books[i][4]);
var author = books[i][5];
var read_ym = parseInt(read_page+1);
info_url = info_rewrite.replace(/{aid}/, articleid);
info_url = info_url.replace(/{bid}/, shortid);
read_url = read_rewrite.replace(/{aid}/, articleid);
read_url = read_url.replace(/{bid}/,shortid);
read_url = read_url.replace(/{cid}/,lastchapterid);
read_page_url = read_page_rewrite.replace(/{aid}/, articleid);
read_page_url = read_page_url.replace(/{bid}/,shortid);
read_page_url = read_page_url.replace(/{cid}/,lastchapterid);
read_page_url = read_page_url.replace(/{pid}/,read_page);
var info_url,read_url;
var c = '';
if((k % 2) == 0){
c = 'hot_saleEm';
}
if(read_page == 0){
page_word='';
}else{
page_word='第'+read_ym+'页';
}
/*
if(read_page == 0){
jxyd ='<a href="'+read_url+'" class="a3"><span class="iconfont icon-yuedu1"></span>继续阅读</a></div>';
}else{
jxyd ='<a href="'+read_page_url+'" class="a3"><span class="iconfont icon-yuedu1"></span>继续阅读</a></div>';
}
*/
if(read_page == 0){
jxyd ='<a href="'+read_url+'" class="mark_read layui-btn layui-bg-cyan">继续阅读</a></div>';
}else{
jxyd ='<a href="'+read_page_url+'" class="mark_read layui-btn layui-bg-cyan">继续阅读</a></div>';
}
var jxyd;
//bookhtml+='<li id="'+articleid+'"><span class="s1"><a href="'+info_url+'">《'+articlename+'》</a></span><span class="s2">作 者:'+author+'</span><span class="s3">阅读至:'+lastchapter+page_word+'</span><span class="s5"><a href="javascript:removebook('+articleid+')" class="xsdel">删除</a><a onclick=\'shuqian('+articleid+','+lastchapterid+',"'+tmpbook_rewrite+'")\' class="a2"><span class="iconfont icon-gengxin"></span>保存至书架</a>'+jxyd+'</span></li>';
bookhtml+='<li>'+jxyd+'<a href="'+info_url+'"><img src="/'+Math.floor(articleid/1000)+'/'+articleid+'/'+articleid+'s.jpg" onerror="this.onerror=null;this.src=\'/qs_theme/defaultimg.png\'"></a><p class="bookname"><a href="'+info_url+'">'+articlename+'</a></p><p class="author"><a href="/author/'+author+'.html"><i class="layui-icon i_author"></i> '+author+'</a></p><p></p><p class="chapter">读到:'+lastchapter+page_word+'</p><p><a href="javascript:removebook('+articleid+')" class="layui-btns layui-btn-danger">删除</a><a href="'+info_url+'" class="layui-btns layui-btn-danger">收藏</a></p></li>';
k++;
}
showbook.innerHTML = bookhtml;
}
else{
showbook.innerHTML = '<li>您还木有阅读本站小说,未产生阅读记录。</li>';
}
}
function removebook(k){
lastread.remove(k);
showbook()
}
function yuedu(){
//document.write("<a href='javascript:showbook();' target='_self'>点击查看阅读记录</a>");
showbook();
}
window.lastread = new LastRead();
function removebook(k){
lastread.remove(k);
showbook()
}

View File

@@ -0,0 +1,320 @@
body,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,html,img,input,li,ol,p,select,table,td,th,ul{margin:auto;padding:0}
body{background-color:#fcfcfc;color:#555;font-family:,;font-size:12px;margin:0 auto}
ul li{list-style:none outside none}
a{color:darkcyan;text-decoration:none}
a:hover{text-decoration:underline;top:-1px}
.clear{clear:both}
#fmimg span,.frii .int,.header_logo,.reader_mark0 a,.reader_mark1 a,.ywtop_addfavorite,.ywtop_sethome{background:url(/qs_theme/book_pc/css/all.gif) no-repeat scroll 0 0 transparent}
.ywtop{overflow: hidden;background-color: #FFF;border-bottom: 1px solid darkcyan;}
.ywtop_con{height:38px;background-color:#e43770}
.topbar{height:38px;background-color:darkcyan;}
.topbar ul{width:980px;margin:0 auto}
.topbar ul li{float:left;height:38px;line-height:38px}
.topbar ul li a{display:block;overflow:hidden;height:38px;line-height:38px;padding:0 30px 0 30px;font-size:14px;color:#fff;float:left;border-right:1px solid #83af9b;}
.topbar ul li a:hover{background-color:#FFF;color:darkcyan;}
.nav{width:980px;line-height:36px;font-size:14px;margin:0 auto}
#home a{width:40px;background-color:#FFF;color:darkcyan; text-align: center;}
#loginbarx{float:right}
#loginbarx a{width:40px;padding:0px;text-indent:-9999px;background-position:8px -325px}
#loginbarx a:hover{background-position:8px -363px}
.nav em{font-style:normal;font-family:simsun;margin:0 6px;color:#999;font-size:12px}
.nav strong{color:#390;font-weight:bold}
.nav .all{color:#06c}
.nav .nav-left{float:left}
.nav .nav-right{float:right}
#nav-link{padding:0 7px 0 17px;background-color:#FFF}
.nri{float:right;font-size:13px}
.nri .cc{float:left;overflow:hidden;width:155px}
.cc .txt{color:gray;float:left;text-align:right}
.cc .inp{float:left;padding-top:3px;width:90px}
.inp input,.header_search input.search,#xx_search input.search,table.grid td{border:1px solid darkcyan;}
.inp input{background-color:#fff;float:left;height:18px;width:87px;margin:1px 0}
.nri .frii{float:left;font-size:14px;margin-left:5px;padding-top:3px;width:55px}
.frii .int{background-position:0 -96px;border:medium;color:#2a4e8a;float:left;font-size:12px;height:21px;line-height:21px;text-align:center;width:51px}
.nri .ccc{float:left;overflow:hidden;padding-left:10px}
.ccc .txtt{color:gray;float:left;padding-left:10px}
.txtt a,.txtt a:hover{color:gray;text-decoration:none}
.header{height:61px;width:980px;margin:auto}
.header_logo{background-position:42px -34px;float:left;height:55px;width:165px;padding-top:5px;padding-right:100px;text-align:center;}
.header_logo a{font-size:20px;line-height:40px;color: #e43770;text-decoration:none;font-weight:520;}
.header_logo p{font-size:16px;line-height:16px;color: #e43770;}
.header_search{float:left;overflow:hidden;width:450px;margin:20px auto auto 30px}
.header_search input.search{font:16px/22px arial;height:24px;margin-right:5px;width:320px;padding:3px}
.header_search input.searchBtn{background:none repeat scroll 0 0 #008b8b;color: #fefeff;cursor:pointer;font-size:14px;height:32px;width:95px}
#xx_search{overflow:hidden;width:525px;margin:auto}
#xx_search input.search{font:16px/22px arial;height:24px;margin-right:5px;width:390px;padding:3px}
#xx_search button{background:none repeat scroll 0 0 #ddd;cursor:pointer;font-size:14px;height:32px;width:95px}
.userpanel{border:1px dotted darkcyan;color:#9e9e9e;float:right;margin-right:5px;margin-top:3px;text-align:center;width:220px;padding:5px 3px}
.userpanel a{padding:0 5px;color:darkcyan;line-height:200%}
.nav{background:none repeat scroll 0 0 darkcyan;border-bottom: 3px solid darkcyan;height:40px;overflow:hidden;width:980px;margin:10px auto auto;overflow:hidden}
.nav ul li{float:left;line-height:44px}
.nav ul li a{color:#fff;font-size:15px;padding:0 8px}
#admin{border:solid 2px #fcf5f0;height:30px;line-height:30px;width:88%;text-align:center;margin:5px;padding:3px}
.gridtop,table.grid caption{border:solid 2px darkcyan;border-bottom:0;font-size:14px;font-weight:700;margin:auto;padding-bottom:5px;padding-top:5px;text-align:center;vertical-align:middle}
table.grid{border:2px solid darkcyan;border-collapse:collapse;margin:auto;padding:3px}
table.grid td{background-color:#fff!important;padding:4px}
.hottext{color:red}
.MessageDiv{background:#fff9d9;border:1px solid #fc3;line-height:150%;width:800px;margin:10px auto auto;padding:10px;text-align:center}
#main{width:980px;margin: 10px auto; overflow: hidden;}
.boys,.boys a{color:#0b4d05;}
.girls,.girls a{color:#a12f2f;}
#hotcontent{padding-top:10px}
#hotcontent .l,#hotcontent .r,.novelslist,.novelslist2,#newscontent .l,#newscontent .l,#newscontent .r,.novelslist h2{background:#fcfcfc;}
#hotcontent .l{float:left;height:330px;overflow:hidden;width:695px;padding:0 0 10px}
#hotcontent .l .item{float:left;width:335px;padding:10px 0 0 10px}
#hotcontent .l .item dl dt{border-bottom:1px dotted #ddd;font-size:14px;font-weight:700;height:25px;line-height:25px;overflow:hidden}
#hotcontent .l .item dl dt span{color:#b3b3b3;float:right;font-weight:400}
#hotcontent .l .item dl dd{height:120px;line-height:20px;overflow:hidden;text-indent:2em;padding:7px 0 0}
#hotcontent .l .item dl{float:right;width:190px;padding:0 5px 0 0}
#hotcontent .l .item .image{float:left;width:120px}
#hotcontent .l .item .image img{background-color:#fff;border:1px solid #ddd;padding:1px}
#hotcontent .ll{margin:0 0 10px;padding:5px;float:left;width:964px;height:320px;overflow:hidden}
#hotcontent .ll .item{width:315px;float:left;padding:5px 0 0 5px}
#hotcontent .ll .item .image{float:left;width:120px}
#hotcontent .ll .item .image img{border:solid 1px #ddd;padding:1px;background-color:#fff}
#hotcontent .ll .item dl{padding:0 5px 0 0;float:right;width:180px}
#hotcontent .ll .item dl dt{height:25px;line-height:25px;overflow:hidden;font-size:14px;border-bottom:dotted 1px #6191d0;font-weight:700}
#hotcontent .ll .item dl dt span{float:right;font-weight:400}
#hotcontent .ll .item dl dd{padding:7px 0 0;line-height:20px;color:#9e9e9e;text-indent:2em;height:120px;overflow:hidden}
#hotcontent .r{float:right;width:265px;}
#hotcontent h2{border-bottom:1px solid #ddd;font-size:14px;font-weight:700;height:30px;line-height:30px;overflow:hidden;margin:0;padding:0 0 0 10px}
#flash{height:308px;overflow:hidden}
#hotcontent .r ul{padding:10px}
#hotcontent .r li{border-bottom:1px solid #ddd;height:26px;line-height:27px;overflow:hidden;padding:5px 0 0}
#hotcontent .r li span{display:inline-block;float:left}
#hotcontent .r li .s1{width:40px}
#hotcontent .r li .s2{color:#b3b3b3}
#hotcontent .r li .s3{width:30px}
#hotcontent .r li .s4{color:#b3b3b3;width:50px}
#hotcontent .r li .s5{float:right;text-align:right}
#hotcontent .r li a,.novelslist li a,#newscontent .l li a,#newscontent .r li a{color:#555;}
.novelslist,.novelslist2,#newscontent .l,#newscontent .r,#hotcontent .l,#hotcontent .r,#hotcontent .ll{border:3px solid darkcyan;}
.novelslist{margin:10px auto;width:968px;padding:3px;}
.novelslist .content{border-right:dotted 1px #ddd;padding:0 3px;float:left;width:315px}
.novelslist .content h2{border-bottom:solid 1px #ddd;font-size:14px;font-weight:700;padding-left:5px;line-height:25px;height:25px;overflow:hidden;margin:0}
.novelslist .content .image{padding:10px 0 0 5px;float:left;width:71px}
.novelslist .content .image img{width:67px;height:82px;border:solid 1px #ddd;padding:1px;background-color:#fff}
.novelslist .content dl{padding:10px 0 0;float:right;width:219px}
.novelslist .content dl dt{height:25px;line-height:25px;overflow:hidden;font-weight:700}
.novelslist .content dl dd{line-height:20px;height:60px;overflow:hidden}
.novelslist .content ul{padding:10px 0 0}
.novelslist .content ul li{color:#b3b3b3;height:20px;line-height:20px;font-size:12px;overflow:hidden;float:left;width:155px}
.novelslist .content ul li a{font-size:13px}
.novelslist .border{border:0}
.novelslist h2{border-bottom:1px solid #ddd;font-size:14px;font-weight:700;height:30px;line-height:30px;overflow:hidden;padding:0 0 0 10px}
.novelslist ul{padding:10px}
.novelslist li{padding:5px 0 0;border-bottom:solid 1px #ddd;height:25px;line-height:25px;overflow:hidden}
.novelslist li span{float:left;display:inline-block}
.novelslist li .s1{width:10%}
.novelslist li .s2{width:20%}
.novelslist li .s3{width:49%}
.novelslist li .s4{color:#b3b3b3;width:15%;text-align:right}
.novelslist li .s5{color:#b3b3b3;float:right;text-align:right}
.novelslist li .s6{width:20%;color:#b3b3b3}
.novelslist2{margin:10px auto;width:974px;}
.novelslist2 h2{margin:0;border-bottom:1px solid #ddd;font-size:14px;font-weight:700;height:30px;line-height:30px;overflow:hidden;padding:0 0 0 10px}
.novelslist2 ul{padding:10px}
.novelslist2 li{padding:5px 0 0;border-bottom:solid 1px #ddd;height:25px;line-height:25px;overflow:hidden}
.novelslist2 li span{float:left;display:inline-block}
.novelslist2 li .s1{width:10%;overflow:hidden}
.novelslist2 li .s2{width:20%;overflow:hidden}
.novelslist2 li .s3{width:25%;overflow:hidden}
.novelslist2 li .s4{width:15%;overflow:hidden}
.novelslist2 li .s5{width:7%;overflow:hidden}
.novelslist2 li .s6{width:8%;overflow:hidden}
.novelslist2 li .s7{width:15%;overflow:hidden}
.novelslist2 li a{color:#83af9b;}
#newscontent{margin:auto}
#newscontent .l{float:left;width:695px;}
#newscontent .l ul{padding:10px}
#newscontent .l li{padding:5px 0 0;border-bottom:solid 1px #ddd;height:25px;line-height:25px;overflow:hidden}
#newscontent .l li span{float:left;display:inline-block}
#newscontent .l li .s1{width:75px}
#newscontent .l li .s2{width:165px}
#newscontent .l li .s3{width:265px}
#newscontent .l li .s4{color:#b3b3b3;width:90px;text-align:right}
#newscontent .l li .s5{color:#b3b3b3;float:right;text-align:right}
#newscontent .r{float:right;width:265px;}
#newscontent .r ul{padding:10px}
#newscontent .r li{padding:5px 0 0;border-bottom:solid 1px #ddd;height:25px;line-height:25px;overflow:hidden}
#newscontent .r li span{float:left;display:inline-block}
#newscontent .r li .s1{width:40px}
#newscontent .r li .s2{color:#b3b3b3}
#newscontent .r li .s3{width:30px}
#newscontent .r li .s4{width:50px;color:#b3b3b3}
#newscontent .r li .s5{float:right;text-align:right}
#newscontent h2{margin:0;overflow:hidden;padding:0 0 0 10px;height:30px;line-height:30px;font-size:14px;font-weight:700;border-bottom:solid 1px #ddd}
#firendlink{border:1px solid #ddd;width:960px;padding:10px}
#firendlink a{color:#548161;display:inline-block;margin:0 9px 0 0}
.xiaoshuo{overflow: hidden;width: 976px;margin: 10px auto;}
.xiaoshuo h2{border-bottom: darkcyan 1px solid;text-align: left;padding: 0 10px;line-height: 20px;height: 20px;font-size: 16px;}
.xiaoshuo p {text-indent: 2em;margin: 5px;}
.xiaoshuo h2,.con_home,.con_top,#fmimg,.tabstit,.list_center .update_title,.newrap,#product h2,#list dt,.toptab,#hotcontent h2,.gridtop,table.grid caption{background-color: #fcfcfc;}
.tuibook,.hotbook{overflow: hidden;width: 966px;padding: 5px;margin: 5px auto;}
.tuibook b,.hotbook b{float: left;margin-right: 5px;}
.mobile,.pc{border: 1px solid #d9d9d9;overflow: hidden;width: 976px;margin: 10px auto;}
.mobile p,.pc p{padding:0 2px;margin:5px;}
.mobile a,.pc a,.hotbook a,.tuibook a{color:#555;}
.con_home{border:1px darkcyan solid;text-align:left;padding:0 10px;line-height:30px;height:30px;}
.nav_home{margin: 5px 0;border: 1px solid #ddd;background: #fff;line-height: 20px;overflow:hidden}
.nav_home ul li{float:left;line-height:20px;padding:0 10px}
.novellist{margin:10px auto;width:968px;padding:3px}
.novellist h2{background-color:#f6f8fe;border-bottom:1px solid #ddd;font-size:14px;font-weight:700;height:30px;line-height:30px;overflow:hidden;padding:0 0 0 10px}
.novellist ul{padding:10px}
.novellist li{float:left;color:#b3b3b3;padding:5px 0 0;border-bottom:solid 1px #ddd;height:25px;width:20%;line-height:25px;overflow:hidden;display:inline-block}
.novellist li a:link{color:#6f78a7;text-decoration:none}
.novellist li a:visited{color:red}
.dahengfu{overflow:hidden;width:976px;margin:10px auto}
.box_con{border:2px solid darkcyan;overflow:hidden;width:976px;margin:10px auto}
.con_top{border-bottom:darkcyan 1px solid;text-align:left;padding:0 10px;line-height:40px;height:40px;}
.con_top #bdshare{float:right;line-height:20px;padding-right:20px;padding-top:9px;text-align:right}
#sidebar{float:left;width:140px;text-align:left}
#maininfo{float:right;width:830px}
#fmimg{float:left;width:126px;margin:12px;padding:12px;position:relative}
#fmimg img{border:medium;height:150px;width:120px;margin:3px}
#fmimg span{top:8px;right:8px;width:88px;height:88px;position:absolute;display:block;z-index:999}
#info{padding:10px;margin:10px;font-size:15px}
#info h1{font-family:;font-size:28px;font-weight:700;overflow:hidden;margin:auto;padding:1px}
#info p{height:25px;line-height:25px;padding-top:2px;width:350px;margin:auto;overflow:hidden;float:left}
#intro{width:96%;overflow:hidden;line-height:150%;border-top:1px dashed darkcyan;padding:5px;font-size:13px}
#intro p{text-indent:2em;margin-top:5px}
#listtj{width:960px;padding:5px;float:left}
#list{padding:2px}
#list dl{float:left;overflow:hidden;padding-bottom:1px;margin:auto;width: 100%;}
#list dt{background:#eee;display:inline;float:left;font-size:14px;line-height:28px;overflow:hidden;text-align:left;vertical-align:middle;width:98%;margin:auto auto 5px;padding:5px 10px}
#list dd{border-bottom:1px dashed #ccc;display:inline;float:left;height:25px;line-height:200%;margin-bottom:5px;overflow:hidden;text-align:left;text-indent:10px;vertical-align:middle;width:33%}
#list dd a:link{color:#444}
.con_top #page_set{float:right;text-align:right;height:20px;line-height:20px;padding-right:5px;padding-top:10px}
.bookname{line-height:30px;padding-top:10px;margin-bottom:10px}
.bookname h1{font:25px/35px ;padding-top:10px;text-align:center}
.bottem1{clear:both!important;text-align:center;width:900px;margin:5px}
.lm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px}
.box_con #content,.box_con #content a,.box_con #content div{font-family:<EFBFBD>,microsoft yahei,,;font-size:19pt;letter-spacing:.2em;line-height:150%;padding-top:15px;width:85%;margin:auto}
.box_con #content p div img,.box_con #content p img,.divimage,.imagecontent{text-align:center;margin:auto}
#content p {margin: 10px;line-height: 2em;text-indent: 2em;width:100%;border:0px;float:left;margin-top:1px;}
.content_read{overflow:hidden;width:980px;margin:0 auto auto}
.bottem2{border-top:1px dashed darkcyan;clear:both!important;text-align:center;width:900px;margin:auto 20px;padding:15px}
.bottem a,.bottem1 a,.bottem2 a{color:#085308;font-size:14px;margin-left:10px;margin-right:10px}
#bdshare{padding:5px 5px 5px 13%}
#footer,.footer{overflow:hidden;text-align:center;width:980px;margin:10px auto auto}
.footer_link{border-bottom:2px solid darkcyan;height:25px;line-height:25px;overflow:hidden;width:92%;margin:5px auto}
.footer_cont p{color:#b2b2b2;line-height:20px;width:88%}
#fanye{padding:6px 8px;height:24px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;background:#f9f9f9;border-top:#e2e2e2 1px solid}
#fanye .fanyetxt{float:left;padding:0 0 0 3px}
#fanye .pagen{text-align:right;float:right}
#sform{margin:30px 0 30px 120px}
#pages{clear:both;padding: 10px 0;text-align:center;border: 2px solid darkcyan;}
#pages a,#pagess a:hover,#pages a:visited,#pages strong{display:inline-block;margin:0 2px;width: 40px;height: 30px;border: 1px solid darkcyan;border-radius:3px;color: #666;text-align:center;text-decoration:none;line-height: 30px;background: #fff;}
#pages a.curr,#pagess a.curr:visited,#pages a:hover,#pages strong{background: darkcyan;color:#fbfbfb;}
#pages #s{display:inline-block;margin:0 2px;width:50px;height: 30px;border: 1px solid darkcyan;border-radius:3px;color:#fff;text-align:center;text-decoration:none;line-height: 30px;background:#008b8b;}
#pages input{width:20px;height:25px;border:1px solid #07B1A6;border-radius:3px;}
#pagess{clear:both;padding: 10px 0;text-align:center;border: 2px solid darkcyan;}
#pagess a,#pagess a:hover,#pagess a:visited,#pagess strong{display:inline-block;margin:0 2px;width:70px;height: 30px;border: 1px solid darkcyan;border-radius:3px;color: #666;text-align:center;text-decoration:none;line-height: 30px;background: #fff;}
#pagess #s{display:inline-block;margin:0 2px;width:100px;height: 30px;border: 1px solid darkcyan;border-radius:3px;color:#fff;text-align:center;text-decoration:none;line-height: 30px;background:#008b8b;}
#pagess a.curr,#pagess a.curr:visited,#pagess a:hover,#pagess strong{background: darkcyan;color:#fbfbfb;}
#pagess input{width:20px;height:25px;border:1px solid #07B1A6;border-radius:3px;}
.book_more {margin:10px;line-height:32px;background:#007BB1;border-radius:5px;font-size: 14px;}
.book_more a {text-align:center;display:block;color:#fff;}
.title .more{float:right; color: #e43770;}
li {list-style-type: none;}
/* read */
ul.tools{float:right;margin-top:4px;height:30px;line-height:20px;}
ul.tools li{float:left;margin-right:10px;padding:0 5px;background-color:#fff;border:1px solid #d8d8d8;border-radius:3px;}
ul.tools p{float:left;margin:5px;}
ul.tools a{float:left;display:block;margin:6px;width:18px;height:18px;line-height:18px;border-radius:2px;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:pointer;overflow:hidden;}
ul.tools a:hover{text-decoration:none;top:0}
ul.tools li.theme a{position:relative;box-shadow:0 0 2px 1px rgba(0,0,0,0.2);}
ul.tools li.theme a.on{box-shadow:0 0 4px 1px rgba(0,0,0,0.4);}
ul.tools li.theme a.on:after{display:block;content:' ';position:absolute;top:3px;left:2px;width:12px;height:6px;border-left:2px solid #fe4e30;border-bottom:2px solid #fe4e30;transform:-webkit-rotate(-45deg);transform:rotate(-45deg);}
ul.tools li.size a.disabled{background-color:#eee;cursor:not-allowed;}
ul.tools li.size a{background-color:#e3e3e3;text-align:center;font-size:15px;line-height:15px;color:#333;}
ul.tools li.size a:hover{background-color:#eee;color:#555;}
ul.tools li.reset{padding:5px 15px;background-color:#0d8f72;border-color:#0d8f72;color:#fff;}
ul.tools li.reset:hover{background-color:#4aa994;cursor:pointer;}
.night{background-color:#222;}
.night .top,.night .nav,.night .toolbar{background-color:#444 !important;}
.night .top a,.night .nav a,.night .links a{color:#ddd !important;}
.night #center{background-color:#111;}
.night #content{color:#999;}
.pink{background-color:#fff5f8;}
.pink #center{background-color:#f5e4e4;}
.pink #content{color:#7f333d;}
.yellow{background-color:#f2e8c8;}
.yellow #center{background-color:#ddcda1;}
.blue{background-color:#dfecf0;}
.blue #center{background-color:#cedce0;}
.green{background-color:#e3efe3;}
.green #center{background-color:#d0e2d0;}
.gray{background-color:#e0e0e0;}
.gray #center{background-color:#cfcfcf;}
.page_num{text-align: center;font-size: 14px;box-sizing: border-box;padding: 10px;width: 400px;margin: 0 auto;}
.page_num select{padding: 0 10px;height: 34px;line-height: 35px;box-sizing: border-box;border: 1px solid #7d9465;background: #fff;border-radius: 5px;margin: 0 10px;width: 140px;cursor: pointer;}
.page_num a{height:34px;line-height: 35px;padding: 0 15px;display: block;margin: 0;box-sizing: border-box;background: #dcebcd;
color: #004d00;border-radius:5px;transition: all 0.3s;}
.page_num a:hover{background: #004d00;color:#fff}
.habt{font-size: 14px;font-weight: normal;color: #F44336;}
.z{float: left;}
.y{float: right;}
.novel_login{background: #fff;}
.novel_login .login{line-height: 50px;background: #fff;overflow: hidden;padding: 10px;box-sizing: border-box;border:1px solid #ebf1f3;margin:50px auto;width: 350px;position: relative;}
.novel_login .login h2{font-size: 18px;text-align: center;height: 34px;line-height: 24px;border-bottom: 1px solid #eee;color: #2c7498;letter-spacing: 0.5em;}
.novel_login .login a{height:30px; line-height:30px;color: #F44336;}
.novel_login .login i{ position:absolute;left:29%;}
.novel_login .login input[type="text"],.login input[type="password"]{width:220px;padding:0px;border:none;outline:medium;height:30px; line-height:30px;padding-left:10px;background: #F7F7F7;}
.novel_login .login_name,.login_pass,.login_email,.login_code{width:100%;overflow: hidden;box-sizing: border-box;}
.novel_login .login .l1,.login .l2{ float:left;}
.login_xs #logintips{text-align: center;color: #de2900;}
.novel_login .login .l1{width:75px;text-align: right;}
.novel_login .login .l2{width:100%;text-align: left;position: absolute;box-sizing: border-box;padding-left:100px;right:10px;overflow: hidden;}
.novel_login .login_name input{-webkit-appearance: none;}
.novel_login .login_pass input{-webkit-appearance: none;}
.novel_login .login_code input{-webkit-appearance: none;}
.novel_login .login_code2{margin:0;padding: 0 0 10px;text-align:center;border-bottom: 1px solid #eee;}
.novel_login .login_code2>img{display: block;margin:20px auto 0;cursor: pointer;width: 150px;}
.novel_login .login_btn{text-align: center;margin:0;overflow: hidden;}
.novel_login .login_btn a{display:block;color: #fff;border-radius: 2px;text-align: center;margin:20px 60px;box-sizing:border-box;border: 1px solid #ca0d4d;color:#ce1f5a;height: 40px;line-height: 40px;}
.novel_login .login_btn a:hover{box-sizing:border-box;border: 1px solid #F44336;color: #F44336;}
.novel_login .login_btn a.ok{color:#fff;background:#e84c81;}
.novel_login .login_btn a.ok:hover{background:#3F51B5;border: 1px solid #3F51B5;}
.novel_login .login .login_save{width:20px;height:20px; padding:5px;}
.novel_login .login_code{margin-bottom:0;}
.dvfd{background: #fff;width: 200px;height: 140px;position: absolute;top: 50%;left: 50%;margin-top: -70px;margin-left: -100px;box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);text-align: center;border-radius: 5px;z-index: 99999;position: fixed;}
.dvfd .red{display: block;margin:35px 0 15px;font-size: 18px;}
.dvfd .qdbtn{background: #03A9F4;display: inline-block;padding: 5px 30px;color: #fff;border-radius: 3px;font-size: 16px;border: solid 1px #2196F3;}
.dvfd .qdbtn:hover{background: #F44336;border: solid 1px #E91E63;}
.phb_title {padding: 0 10px;height: 40px;background: #fbfbfb;line-height: 40px;font-size:16px;border-bottom: 1px solid #c8eeeb;}
.phb_title>b{color: #168C84;font-weight: 700;font-size: 16px;display: inline-block;border-bottom: 1px solid #eb6100;box-sizing: border-box;height: 40px;}
.novel_tmpbook .txt-list .s1{width: 240px;}
.novel_tmpbook .txt-list .s2{width: 100px;}
.novel_tmpbook .txt-list .s3{width: 240px;text-align: left;}
.novel_tmpbook .txt-list .s5{text-align:center;width:332px;float:right}
.novel_tmpbook .txt-list .s5>a{display: inline-block;padding: 0 10px;margin: 0 5px;background: #03A9F4;height: 26px;line-height: 26px;border-radius: 3px;color: #fff;cursor:pointer;transition: all 0.3s;}
.novel_tmpbook .txt-list .s5>a.xsdel{background:#F44336;}
.novel_tmpbook .txt-list .s5>a.a3{background:#00c3b1;}
.novel_tmpbook .txt-list .s5>a:hover{background:#673AB7;}
.novel_tmpbook .txt-list{padding:10px;background: #fff;}
.novel_tmpbook .txt-list li{border-bottom:1px solid #f5f5f5;height:48px;line-height:48px;overflow:hidden}
.novel_tmpbook .txt-list li>span{float:left;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;padding: 0 5px;}
.novel_tmpbook .txt-list li:nth-of-type(2n){background: #f7f7f7;}
.novel_tmpbook .txt-list li .s1 a{font-size:16px;}
.novel_tmpbook .txt-list.txt-list-row5 .s4{width: 240px;}
.novel_tmpbook .txt-list.txt-list-row5 .s5{width:190px;float:right;}

View File

@@ -0,0 +1,203 @@
/*
if (navigator.userAgent.toLowerCase().match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null) {
let url = window.location.href;
window.location = url.replace("//www", "//m");
}
*/
// function login() {
// if ($.cookie('ss_username')) {
// document.writeln('欢迎你: '+$.cookie('ss_username')+' | <a href="/logout/">退出登录</a>');
// } else {
// document.writeln('<a href="/login/">用户登陆</a> | <a href="/register/">用户注册</a>');
// }
// }
function search() {
document.writeln('<form target="_blank" style="margin:0;padding:0;" action="/search.html" method="post">');
document.writeln('<input type="hidden" name="searchtype" value="all">');
document.writeln("<input class=\"search\" id=\"bdcsMain\" name=\"s\" type=\"text\" maxlength=\"30\" value=\"可搜书名和作者,请您少字也别输错字。\" title=\"请正确输入\" onfocus=\"this.style.color = '#000000';this.focus();if(this.value=='可搜书名和作者,请您少字也别输错字。'){this.value='';}\" ondblclick=\"javascript:this.value=''\" />");
document.writeln('<input type="submit" class="searchBtn" value="搜索" title="搜索" /></form>');
}
function textselect() {
document.writeln('<ul class="tools">\
<li class="theme"><p>主题:</p><a class="day"></a><a class="night"></a><a class="pink"></a><a class="yellow"></a><a class="blue"></a><a class="green"></a><a class="gray"></a></li>\
<li class="size"><p>字体:</p><a class="dec">-</a><p id="fontsize">18</p><a class="inc">+</a></li>\
<li class="reset">重置</li>\
</ul>');
}
function formatDate(time) {
var date = new Date(time);
var month = date.getMonth()+1;
var day = date.getDate();
var hour = date.getHours();
var minute = date.getMinutes();
if (month < 10) month = '0' + month;
if (day < 10) day = '0' + day;
if (hour < 10) hour = '0' + hour;
if (minute < 10) minute = '0' + minute;
return month+'-'+day+' '+hour+':'+minute;
}
function init(type){
var articleid = $('body').attr('article-id') || 0, chapterid = $('body').attr('chapter-id') || 0;
if (chapterid > 0) {
var book = {name:$('body').attr('article-name'),author:$('body').attr('article-author'),dataid:$('body').attr('data-id')||0,readid:chapterid,readname:$('h1').text(),readtime:$.now()};
window.localStorage.setItem('book_'+articleid, JSON.stringify(book));
var theme = function(v){
if (typeof v === 'undefined') v = window.localStorage.getItem('theme') || 'day';
$('body').attr('class', v);
$('li.theme a.'+v).addClass('on').siblings().removeClass('on');
window.localStorage.setItem('theme', v);
};
var size = function(v){
if (typeof v === 'undefined') v = parseInt(window.localStorage.getItem('size')) || 24;
$('li.size a.num').text(v);
$('#content').css('font-size', v);
$('li.size a').removeClass('disabled');
if (v<=10) $('li.size a.dec').addClass('disabled');
if (v>=50) $('li.size a.inc').addClass('disabled');
$('#fontsize').text(v);
window.localStorage.setItem('size', v);
};
$('li.theme a').click(function(){
theme($(this).attr('class'));
});
$('li.size a').click(function(){
if ($(this).hasClass('disabled')) return;
size(parseInt($('#fontsize').text()) + ($(this).hasClass('dec') ? -2 : 2));
});
$('li.reset').click(function(){
theme('day');
size(24);
});
theme();
size();
$(document).keydown(function(e){
switch (e.which) {
case 37:
$(window).attr('location', $('#pager_prev').attr('href'));
break;
case 39:
$(window).attr('location', $('#pager_next').attr('href'));
break;
case 13:
$(window).attr('location', $('#pager_current').attr('href'));
break;
}
});
}
}
function showone(n){
$('.commend').hide();
$('#ft'+n).show();
}
function addbookcase(aid,name,cid,cname){
if($.cookie('ss_userid') && $.cookie('PHPSESSID') != -1) {
rico_data = {
articleid: aid,
articlename: name,
chapterid: cid,
chaptername: cname
}
$.ajax({
type: "post",
url: "/addbookcase/",
data: rico_data,
success: function(data){
alert(data);
}
})
}else{
if (window.confirm("\n永久书架需要登录才能使用转到登录页面吗")) {
window.location.href = "/login/";
}else{
return;
}
}
}
function delbookcase(aid){
if (window.confirm("\n确定要删除吗")) {
if($.cookie('ss_userid') && $.cookie('PHPSESSID') != -1) {
rico_data = {
articleid: aid,
},
$.ajax({
type: "post",
url: "/delbookcase/",
data: rico_data,
success: function(data){
alert(data);
window.location.reload();
}
})
}
}else{
return;
}
}
function register_check() {
if ($('#regname').val() == '' || $('#regpass').val() == '' || $('#repass').val() == '' || $('#email').val() == '') {
alert('每项都必须填写');
return false;
};
if($('#regpass').val() !== $('#repass').val()){
alert('两次输入的密码不一致');
return false;
}
return true;
}
function gotop(){$('body,html').animate({scrollTop:0},100);}
let bookmax = 50;
function LastRead(){this.bookList="bookList"} LastRead.prototype={ set:function(bid,uri,bookname,chaptername,author,img_url){ if(!(bid&&uri&&bookname&&chaptername&&author&&img_url))return; var v=bid+'#'+uri+'#'+bookname+'#'+chaptername+'#'+author+'#'+img_url; var aBooks = lastread.getBook(); var aBid = new Array(); for (i=0; i<aBooks.length;i++){aBid.push(aBooks[i][0]);} if($.inArray(bid, aBid) != -1){ lastread.remove(bid); }else{ while (aBooks.length >= bookmax) { lastread.remove(aBooks[0][0]); aBooks = lastread.getBook(); } } this.setItem(bid,v); this.setBook(bid) }, get:function(k){ return this.getItem(k)?this.getItem(k).split("#"):""; }, remove:function(k){ this.removeItem(k); this.removeBook(k) }, setBook:function(v){ var reg=new RegExp("(^|#)"+v); var books = this.getItem(this.bookList); if(books==""){ books=v; } else{ if(books.search(reg)==-1){ books+="#"+v; } else{ books.replace(reg,"#"+v); } } this.setItem(this.bookList,books) }, getBook:function(){ var v=this.getItem(this.bookList)?this.getItem(this.bookList).split("#"):Array(); var books=Array(); if(v.length){ for(var i=0;i<v.length;i++){ var tem=this.getItem(v[i]).split('#'); if (tem.length>3)books.push(tem); } } return books }, removeBook:function(v){ var reg=new RegExp("(^|#)"+v); var books=this.getItem(this.bookList); if(!books){ books=""; } else{ if(books.search(reg)!=-1){ books=books.replace(reg,""); } } this.setItem(this.bookList,books) }, setItem:function(k,v){ if(!!window.localStorage){ localStorage.setItem(k,v); } else{ var expireDate=new Date(); var EXPIR_MONTH=30*24*3600*1000; expireDate.setTime(expireDate.getTime()+12*EXPIR_MONTH); document.cookie=k+"="+encodeURIComponent(v)+";expires="+expireDate.toGMTString()+"; path=/"; } }, getItem:function(k){ var value=""; var result=""; if(!!window.localStorage){ result=window.localStorage.getItem(k); value=result||""; } else{ var reg=new RegExp("(^| )"+k+"=([^;]*)(;|\x24)"); var result=reg.exec(document.cookie); if(result){ value=decodeURIComponent(result[2])||""; } } return value }, removeItem:function(k){ if(!!window.localStorage){ window.localStorage.removeItem(k); } else{ var expireDate=new Date(); expireDate.setTime(expireDate.getTime()-1000); document.cookie=k+"= "+";expires="+expireDate.toGMTString(); } }, removeAll:function(){ if(!!window.localStorage){ window.localStorage.clear(); } else{ var v=this.getItem(this.bookList)?this.getItem(this.bookList).split("#"):Array(); var books=Array(); if(v.length){ for( i in v ){ var tem=this.removeItem(v[k]); } } this.removeItem(this.bookList); } } }
function removebook(k){lastread.remove(k);showtempbooks();}function removeall(){lastread.removeAll();showtempbooks();}
function showtempbooks(){
var books=lastread.getBook().reverse(); //倒序
bookhtml = '';
if (books.length){
for(var i=0 ;i<books.length;i++){
if (i < bookmax) {
/*
bookhtml += '<div class="bookcase-book">';
bookhtml += '<div class="book-img"><a href="'+books[i][0]+'"><img src="'+books[i][5]+'"></a></div>';
bookhtml += '<div class="book-info"><h4><a href="'+books[i][0]+'">'+books[i][2]+'</a></h4><p class="author">作者:'+books[i][4]+'</p>';
bookhtml += '<p class="read"><span>已读到:</span><a href="'+books[i][1]+'">'+books[i][3]+'</a></p></div>';
bookhtml += '<div class="del-btn"><a class="border-btn" href="javascript:removebook(\''+books[i][0]+'\')">删除</a></div>';
bookhtml += '</div>';
*/
bookhtml += '<li><span class="s1">'+books[i][5]+'</span><span class="s2"><a href="'+books[i][0]+'" target="_blank">'+books[i][2]+'</a></span><span class="s3"><a href="'+books[i][1]+'">'+books[i][3]+'</a></span><span class="s4">'+books[i][4]+'</span><span class="s5"><a href="javascript:removebook(\''+books[i][0]+'\')">删除</a></span></li>';
}
}
}else{
bookhtml += '<b style="display:flex;color:red;padding:20px;">还没有阅读记录哦 ( ˙﹏˙ )( ˙﹏˙ ),去找找书看吧。</b>';
}
$("#tempBookcase").html(bookhtml);
}
window.lastread = new LastRead();

View File

@@ -0,0 +1,2 @@
/*! jquery.cookie v1.4.1 | MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,106 @@
function qsskel(o){function w(b,a){return(b<<a)|(b>>>(32-a))}function E(k,b){var U,a,d,x,c;d=(k&2147483648);x=(b&2147483648);U=(k&1073741824);a=(b&1073741824);c=(k&1073741823)+(b&1073741823);if(U&a){return(c^2147483648^d^x)}if(U|a){if(c&1073741824){return(c^3221225472^d^x)}else{return(c^1073741824^d^x)}}else{return(c^d^x)}}function s(a,c,b){return(a&c)|((~a)&b)}function r(a,c,b){return(a&b)|(c&(~b))}function q(a,c,b){return(a^c^b)}function p(a,c,b){return(c^(a|(~b)))}function f(V,U,Z,Y,k,W,X){V=E(V,E(E(s(U,Z,Y),k),X));return E(w(V,W),U)}function C(V,U,Z,Y,k,W,X){V=E(V,E(E(r(U,Z,Y),k),X));return E(w(V,W),U)}function t(V,U,Z,Y,k,W,X){V=E(V,E(E(q(U,Z,Y),k),X));return E(w(V,W),U)}function e(V,U,Z,Y,k,W,X){V=E(V,E(E(p(U,Z,Y),k),X));return E(w(V,W),U)}function g(k){var V;var d=k.length;var c=d+8;var b=(c-(c%64))/64;var U=(b+1)*16;var W=Array(U-1);var a=0;var x=0;while(x<d){V=(x-(x%4))/4;a=(x%4)*8;W[V]=(W[V]|(k.charCodeAt(x)<<a));x++}V=(x-(x%4))/4;a=(x%4)*8;W[V]=W[V]|(128<<a);W[U-2]=d<<3;W[U-1]=d>>>29;return W}function G(c){var b="",d="",k,a;for(a=0;a<=3;a++){k=(c>>>(a*8))&255;d="0"+k.toString(16);b=b+d.substr(d.length-2,2)}return b}function u(b){b=b.replace(/\r\n/g,"\n");var a="";for(var k=0;k<b.length;k++){var d=b.charCodeAt(k);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}var D=Array();var K,i,F,v,h,T,S,R,Q;var N=7,L=12,I=17,H=22;var B=5,A=9,z=14,y=20;var n=4,m=11,l=16,j=23;var P=6,O=10,M=15,J=21;o=u(o);D=g(o);T=1732584193;S=4023233417;R=2562383102;Q=271733878;for(K=0;K<D.length;K+=16){i=T;F=S;v=R;h=Q;T=f(T,S,R,Q,D[K+0],N,3614090360);Q=f(Q,T,S,R,D[K+1],L,3905402710);R=f(R,Q,T,S,D[K+2],I,606105819);S=f(S,R,Q,T,D[K+3],H,3250441966);T=f(T,S,R,Q,D[K+4],N,4118548399);Q=f(Q,T,S,R,D[K+5],L,1200080426);R=f(R,Q,T,S,D[K+6],I,2821735955);S=f(S,R,Q,T,D[K+7],H,4249261313);T=f(T,S,R,Q,D[K+8],N,1770035416);Q=f(Q,T,S,R,D[K+9],L,2336552879);R=f(R,Q,T,S,D[K+10],I,4294925233);S=f(S,R,Q,T,D[K+11],H,2304563134);T=f(T,S,R,Q,D[K+12],N,1804603682);Q=f(Q,T,S,R,D[K+13],L,4254626195);R=f(R,Q,T,S,D[K+14],I,2792965006);S=f(S,R,Q,T,D[K+15],H,1236535329);T=C(T,S,R,Q,D[K+1],B,4129170786);Q=C(Q,T,S,R,D[K+6],A,3225465664);R=C(R,Q,T,S,D[K+11],z,643717713);S=C(S,R,Q,T,D[K+0],y,3921069994);T=C(T,S,R,Q,D[K+5],B,3593408605);Q=C(Q,T,S,R,D[K+10],A,38016083);R=C(R,Q,T,S,D[K+15],z,3634488961);S=C(S,R,Q,T,D[K+4],y,3889429448);T=C(T,S,R,Q,D[K+9],B,568446438);Q=C(Q,T,S,R,D[K+14],A,3275163606);R=C(R,Q,T,S,D[K+3],z,4107603335);S=C(S,R,Q,T,D[K+8],y,1163531501);T=C(T,S,R,Q,D[K+13],B,2850285829);Q=C(Q,T,S,R,D[K+2],A,4243563512);R=C(R,Q,T,S,D[K+7],z,1735328473);S=C(S,R,Q,T,D[K+12],y,2368359562);T=t(T,S,R,Q,D[K+5],n,4294588738);Q=t(Q,T,S,R,D[K+8],m,2272392833);R=t(R,Q,T,S,D[K+11],l,1839030562);S=t(S,R,Q,T,D[K+14],j,4259657740);T=t(T,S,R,Q,D[K+1],n,2763975236);Q=t(Q,T,S,R,D[K+4],m,1272893353);R=t(R,Q,T,S,D[K+7],l,4139469664);S=t(S,R,Q,T,D[K+10],j,3200236656);T=t(T,S,R,Q,D[K+13],n,681279174);Q=t(Q,T,S,R,D[K+0],m,3936430074);R=t(R,Q,T,S,D[K+3],l,3572445317);S=t(S,R,Q,T,D[K+6],j,76029189);T=t(T,S,R,Q,D[K+9],n,3654602809);Q=t(Q,T,S,R,D[K+12],m,3873151461);R=t(R,Q,T,S,D[K+15],l,530742520);S=t(S,R,Q,T,D[K+2],j,3299628645);T=e(T,S,R,Q,D[K+0],P,4096336452);Q=e(Q,T,S,R,D[K+7],O,1126891415);R=e(R,Q,T,S,D[K+14],M,2878612391);S=e(S,R,Q,T,D[K+5],J,4237533241);T=e(T,S,R,Q,D[K+12],P,1700485571);Q=e(Q,T,S,R,D[K+3],O,2399980690);R=e(R,Q,T,S,D[K+10],M,4293915773);S=e(S,R,Q,T,D[K+1],J,2240044497);T=e(T,S,R,Q,D[K+8],P,1873313359);Q=e(Q,T,S,R,D[K+15],O,4264355552);R=e(R,Q,T,S,D[K+6],M,2734768916);S=e(S,R,Q,T,D[K+13],J,1309151649);T=e(T,S,R,Q,D[K+4],P,4149444226);Q=e(Q,T,S,R,D[K+11],O,3174756917);R=e(R,Q,T,S,D[K+2],M,718787259);S=e(S,R,Q,T,D[K+9],J,3951481745);T=E(T,i);S=E(S,F);R=E(R,v);Q=E(Q,h)}return(G(T)+G(S)+G(R)+G(Q)).toLowerCase()};
var varslehj3 = qsskel($.cookie('user_id') + $.cookie('user_name') + kdeh2);
if($.cookie('user_name')){//登录判断
var user_name = $.cookie('user_name');
$('#qs_login').html('<a class=\"a1 y\" href=\"javascript:qs_logout();\"><span class=\"ico ico-tuichu1\"></span>退出登录</a>');
}else{
$('#qs_login').html('<a class=\"a1 y\" href=\"/login.html?url='+lg_url+'\"><span class=\"ico ico-login\"></span>登录</a><a class=\"a2 y\" href=\"/register.html?url='+lg_url+'\"><span class=\"ico ico-zhuce\"></span>注册</a>');
}
function qs_logout(){//退出登录
$.removeCookie(varslehj3,{ path: '/'});
$.removeCookie('user_id',{ path: '/'});
$.removeCookie('user_name',{ path: '/'});
window.location.reload();
}
function login(lg_url){//用户登录
user_name = document.getElementById("user_name").value;
user_pass = qsskel(document.getElementById("user_pass").value);
user_code = document.getElementById("user_code").value;
$.post('/qs_login_go.php',{'user_name':user_name,'user_pass':user_pass,'user_code':user_code},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
erword=data[1];
if(data[0]==1){
window.location.href = lg_url;
}
else{
reloadcode();
$('#shuqian').html('<div class=\"dvfd\"><span class=red>'+erword+'</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
});
}
function register(lg_url){//用户注册
name = document.getElementById("name").value;
mobile = document.getElementById("mobile").value;
pass = qsskel(document.getElementById("pass").value);
pass2 = qsskel(document.getElementById("pass2").value);
code = document.getElementById("code").value;
if(pass == pass2){
$.post('/qs_register_go.php',{'name':name,'mobile':mobile,'pass':pass,'pass2':pass2,'code':code},
function(data){
data=data.replace(/\s/g,'');data=data.split('|');
erword=data[1];
if(data[0]==1){
window.location.href = lg_url;
}
else{
reloadcode();
$('#shuqian').html('<div class=\"dvfd\"><span class=red>'+erword+'</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
});
}else{
reloadcode();
$('#shuqian').html('<div class=\"dvfd\"><span class=red>两次密码不一致</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
}
function case_del(aid,xstitle){//从书架删除小说
$.post("/ajax.php",{"aid":aid,"case_del":"1"},function(data){
$("#"+aid).html("<span class=\"s5\">删除中</span>");if(data != ""){
$("#"+aid).html("<span class=\"s5\">已删除</span>");
}
});
}
function shanchusc(){document.getElementById('shuqian').innerHTML = '';}//清空shuqian DIV
function addbookcase(url,aid){//添加小说到书架
$.get('/ajax.php',{'addbookcase':'1','url':url,'aid':aid},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
if(data[0]==1){
$('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('<div class=\"dvfd\"><span class=red>添加成功</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
else{
window.location.href = "/login.html?url="+data[1];
}
});
}
function shuqian(aid,cid,url){//存书签
//alert("shuqian");
$.get('/ajax.php',{'addmark':'1','url':url,'aid':aid,'cid':cid},
function(data){
data=data.replace(/\s/g,'');data=data.split("|");
if(data[0]==1){
$('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('<div class=\"dvfd\"><span class=red>书签已保存</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>');
}
else{
window.location.href = "/login.html?url="+data[1];
}
});
}
function shuqian2(t){
var t = t.replace(/\s/g,'');
//alert(t);
var a = t.split("|");
if(a[0]==1){
$("#shuqian").html("<div class=\"dvfd\"><span class=red>收藏成功</span><a href=\"javascript:shanchusc();\" class=\"qdbtn\">确 定</a></div>");
}
if(a[0]==0){
window.location.href = "/login.php?url="+a[1];
}
}