九一福利导航,福利网址导航,九一福利视频导航,a电影网址导航
$(document).ready(function (e) {
// 侧边导航
var btnObj = $('.sidebar-toggle')
var sidebarMarkObj = $('.sidebar-mark')
var sidebarObj = $('.aside-wrap')
var hideBarObj = $('.hide-sidebar')
btnObj.click(function () {
sidebarMarkObj.css({ "display": 'block' })
sidebarObj.css({ "transform": "translateX(250px)" })
})
hideBarObj.click(function () {
sidebarMarkObj.css({ "display": 'none' })
sidebarObj.css({ "transform": "translateX(-250px)" })
})
$('.nav-wrap .item').click(function(){
$('.nav-wrap .item').removeClass('active');
$(this).addClass('active');
})
// ** hover 效果 ************
hoverBtn($(".module-a .list-wrap .item"));
hoverBtnBt($(".module-c .list-wrap .item,.module-e .list-wrap .item"));
hoverBtnBorder($(".module-d .list-wrap .item"));
var topStatus = false
$(document).scroll(function () {
var scrollTop = $(document).scrollTop()
if (scrollTop >= 300 && !topStatus) {
$(".to_top").fadeIn()
topStatus = true
} else if (scrollTop < 300 && topStatus) {
topStatus = false
$(".to_top").fadeOut()
}
})
$(".to_top").click(function () {
$(window).scrollTop(0)
})
var width = isPC() ? '700px' : '90%'
var height = isPC() ? '680px' : '90%'
$(".submit-site").click(function () {
layer.open({
type: 2,
shadeClose: true,
title: "合作/收录",
area: [width, height],
content: '/index.php?m=gbook-show.html'
});
})
})