default
This commit is contained in:
281
code/public/template/haozi/book_m/css/common.css
Normal file
281
code/public/template/haozi/book_m/css/common.css
Normal 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;}
|
||||
BIN
code/public/template/haozi/book_m/css/iconfont.ttf
Normal file
BIN
code/public/template/haozi/book_m/css/iconfont.ttf
Normal file
Binary file not shown.
BIN
code/public/template/haozi/book_m/css/iconfont.woff
Normal file
BIN
code/public/template/haozi/book_m/css/iconfont.woff
Normal file
Binary file not shown.
BIN
code/public/template/haozi/book_m/css/iconfont.woff2
Normal file
BIN
code/public/template/haozi/book_m/css/iconfont.woff2
Normal file
Binary file not shown.
5835
code/public/template/haozi/book_m/css/layui.css
Normal file
5835
code/public/template/haozi/book_m/css/layui.css
Normal file
File diff suppressed because it is too large
Load Diff
108
code/public/template/haozi/book_m/js/common.js
Normal file
108
code/public/template/haozi/book_m/js/common.js
Normal 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];
|
||||
}
|
||||
}
|
||||
4413
code/public/template/haozi/book_m/js/jquery.min.js
vendored
Normal file
4413
code/public/template/haozi/book_m/js/jquery.min.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
106
code/public/template/haozi/book_m/js/logo.js
Normal file
106
code/public/template/haozi/book_m/js/logo.js
Normal 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];
|
||||
}
|
||||
}
|
||||
212
code/public/template/haozi/book_m/js/yuedu.js
Normal file
212
code/public/template/haozi/book_m/js/yuedu.js
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user