第七百九十四章 日月圣体(3/4)
require(["kernel", "mobile/controller/chapterctrl", "mobile/common/autoread"], function(core, chapterctrl, autoread){
//清除cookie
if(!core.cookie("bookfollow") == undefined){
core.cookie.removecookie("bookfollow",{})
}
chapterctrl.setup({
chapterid: 2031663,
bookid:73181,
isfree: false,
isminor:true
});
//自动阅读
autoread.create().event();
var status=true;
var arr=[1386900,1387043,1387844,1387903,1387918];//62183书前五章我二维码不显示
$.each(arr,function(i){
if(arr[i]== 2031663){
status=false;
}
})
$(window).scroll(function(){
$(".bottom-tools").remove();
})
//微信关注
if(core.weixin){
$(".head_sty02").remove()
}
if(core.weixin && status){
$("#weixinaccount").show();
}
var url=window.location.href;
if('' != ''){
core.cookie("pupo", url, {expires:1, path: '/', domain:'heiyan.com'});
}
core.cookie("bookchapter", 'true',{expires:1, path: '/', domain:'heiyan.com'});
/* if('' == 'wifi_84' ){
core.cookie("cp", "84_73181_2",{expires:2, path: '/', domain:'heiyan.com'});
} */
core.cookie("chapterurl", "/book/73181/2031663", {expires:7, path: '/', domain: _profile.site + '.com'});
core.cookie("chaptertitle", "修仙归来在校园", {expires:7, path: '/', domain: _profile.site + '.com'});
if(core.cookie("popularize") != undefined && 2031663 == arr[4] ){
require(["mobile/common/modal"],function(modal){
modal.create({
chapterid:2031663
})
})
}
});
//todo
(
function() {
var reclists = $(".recomchapter").find("li");
if (reclists.length) {
for (var i = 0; i < reclists.length; i++) {
reclists.eq(i).find("a")[0].href = reclists.eq(i).find("a")[0].href.split("?")[0] + "?from=chapterrec"
}
}
}
)();
});
_inlinerun(function(){
require(["kernel"], function( core ){
if( core.platform.is("androidos") ){
if( !core.cookie("android1") ){
var download = $(".download");
$(".download").height(0).show().animate({
height: 80
},"fast");
function disapper(){
$("body").animate({
paddingtop: 0
},"fast");
download.animate({
height: 0
},"fast");
core.cookie("android1", true, { expires: 7 });
}
download.find("a").click(function(){
disapper();
});
download.find(".close").click(function(e){
disapper();
e.stoppropagation();
})