增加小说模板
This commit is contained in:
2496
code/public/template/kuangyu/home/new_wap/css/style.css
Normal file
2496
code/public/template/kuangyu/home/new_wap/css/style.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
code/public/template/kuangyu/home/new_wap/images/bookcase.png
Normal file
BIN
code/public/template/kuangyu/home/new_wap/images/bookcase.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
code/public/template/kuangyu/home/new_wap/images/hasreading.png
Normal file
BIN
code/public/template/kuangyu/home/new_wap/images/hasreading.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
BIN
code/public/template/kuangyu/home/new_wap/images/icon-search.png
Normal file
BIN
code/public/template/kuangyu/home/new_wap/images/icon-search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
code/public/template/kuangyu/home/new_wap/images/ranking.png
Normal file
BIN
code/public/template/kuangyu/home/new_wap/images/ranking.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
code/public/template/kuangyu/home/new_wap/images/user.png
Normal file
BIN
code/public/template/kuangyu/home/new_wap/images/user.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
71
code/public/template/kuangyu/home/new_wap/js/global.js
Normal file
71
code/public/template/kuangyu/home/new_wap/js/global.js
Normal file
@@ -0,0 +1,71 @@
|
||||
$(function(){
|
||||
//首页
|
||||
$(".icon-home").bind("click",function(){
|
||||
window.location.href="/";
|
||||
});
|
||||
//回到顶部
|
||||
$(".totop").bind("click",function(){
|
||||
$('body,html').animate({
|
||||
scrollTop: 0
|
||||
}, 1000);
|
||||
return false;
|
||||
});
|
||||
//搜索
|
||||
$(".icon-search").bind("click",function(event){
|
||||
$(".menu").removeClass("show");
|
||||
$(".search").toggleClass("show")
|
||||
event.stopPropagation();
|
||||
$(document).bind("click",function(event){
|
||||
if (!$('.search-panel').is(event.target) && $('.search-panel').has(event.target).length === 0) {
|
||||
$(".search").removeClass("show");
|
||||
}
|
||||
});
|
||||
});
|
||||
//菜单
|
||||
$(".icon-menu").bind("click",function(){
|
||||
$(".search").removeClass("show");
|
||||
$(".menu").toggleClass("show")
|
||||
event.stopPropagation();
|
||||
$(document).bind("click",function(event){
|
||||
if (!$('.menu-panel').is(event.target) && $('.menu-panel').has(event.target).length === 0) {
|
||||
$(".menu").removeClass("show");
|
||||
}
|
||||
});
|
||||
});
|
||||
//目录
|
||||
|
||||
$(".btn-bookshelf").bind("click",function(){
|
||||
if (($(".bookshelf-mask").hasClass("show")) && $(".bookshelf-panel").hasClass("show")) {
|
||||
$(".bookshelf-panel").removeClass("show");
|
||||
$(".bookshelf-mask").removeClass("show");
|
||||
}
|
||||
else {
|
||||
$(".bookshelf-panel").addClass("show");
|
||||
$(".bookshelf-mask").addClass("show");
|
||||
}
|
||||
});
|
||||
$(".bookshelf-mask").bind("click",function(){
|
||||
$(".bookshelf-panel").removeClass("show");
|
||||
$(".bookshelf-mask").removeClass("show");
|
||||
});
|
||||
$(".bookshelf-set").on("click", function() {
|
||||
$(".bookshelf-panel").removeClass("show");
|
||||
$(".bookshelf-mask").removeClass("show");
|
||||
});
|
||||
|
||||
//选项卡切换
|
||||
$(".mod-tabs ol li").bind("click",function(){
|
||||
var index = $(this).index();
|
||||
$(this).addClass("on").siblings("li").removeClass("on");
|
||||
$(".mod-body").eq(index).show().siblings(".mod-body").hide();
|
||||
});
|
||||
|
||||
var $review = $(".review-list ul");
|
||||
if ($review.children("li").length > 5) {
|
||||
$review.children("li").slice(5).css("display","none");
|
||||
$(".review-more").bind("click",function(){
|
||||
$(this).css("display","none");
|
||||
$review.children("li").slice(5).css("display","block");
|
||||
});
|
||||
}
|
||||
});
|
||||
76
code/public/template/kuangyu/home/new_wap/js/home.js
Normal file
76
code/public/template/kuangyu/home/new_wap/js/home.js
Normal file
@@ -0,0 +1,76 @@
|
||||
// $(function(){
|
||||
// add_bookshelf=function(){
|
||||
// if(user_id>0){
|
||||
// $.get("/user/bookshelf/add",{novel_id:book_id},function(data){
|
||||
// if(view.mold=="web"){
|
||||
// layer.msg(data.msg);
|
||||
// }else{
|
||||
// layer.open({content: data.msg, skin: 'msg',time: 2});
|
||||
// }
|
||||
// });
|
||||
// }else{
|
||||
// if(view.mold=="web"){
|
||||
// layer.msg("请先登录后在加入书架!");
|
||||
// }else{
|
||||
// layer.open({content: "请先登录后在加入书架!",skin: 'msg',time: 2});
|
||||
// }
|
||||
// }
|
||||
// };
|
||||
// digg=function(id,digg,type){
|
||||
// $.get("/home/"+type+"/digg",{id:id,digg:digg},function(data){
|
||||
// if(data.code==0){
|
||||
// if(view.mold=="web"){
|
||||
// layer.msg(data.msg,{icon: 0});
|
||||
// }else{
|
||||
// layer.open({content: data.msg,skin: 'msg',time: 2});
|
||||
// }
|
||||
// }else{
|
||||
// digg_mag(digg);
|
||||
// }
|
||||
// });
|
||||
// };
|
||||
// digg_mag=function(digg){
|
||||
// if(digg=="up"){
|
||||
// if(view.mold=="web"){
|
||||
// layer.msg("+1",{icon: 6});
|
||||
// }else{
|
||||
// layer.open({content: "+1",skin: 'msg',time: 2});
|
||||
// }
|
||||
// }else{
|
||||
// if(view.mold=="web"){
|
||||
// layer.msg("+1",{icon: 5});
|
||||
// }else{
|
||||
// layer.open({content: "+1",skin: 'msg',time: 2});
|
||||
// }
|
||||
// }
|
||||
// };
|
||||
|
||||
// source=function(){
|
||||
// if(typeof book_id!=="undefined"){
|
||||
// if(serialize==0){
|
||||
// $.get("/api/source/index",{id:book_id},function(data){
|
||||
// if(view.controller=='novel' && view.action=='index' && data){
|
||||
// if(view.mold=="web"){
|
||||
// layer.msg('章节已经更新,将自动刷新!',function(){
|
||||
// window.location.reload();
|
||||
// });
|
||||
// }else{
|
||||
// layer.open({content: '章节已经更新,将自动刷新!',skin: 'msg',time: 2,end: function(){
|
||||
// window.location.reload();
|
||||
// }});
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// if(view.controller=='chapter' && view.action=='index'){
|
||||
// $.get("/api/save_chapter/index",{id:book.chapter.source_id,key:book.chapter.id});
|
||||
// }
|
||||
// }
|
||||
// };
|
||||
// source();
|
||||
|
||||
// crontab=function(){
|
||||
// //$.get("/api/crontab/index");
|
||||
// };
|
||||
// crontab();
|
||||
// })
|
||||
Reference in New Issue
Block a user