精品党课
党 $(e).find('i').css({
backgroundPosition: '-68px -735px'
});
}
$(e).show();
} else {
$(e).hide();
}
});
}
chview();
$('.gengduotag').on('click', function () {
var t = $(this).siblings('.all-search-tags');
var c = h = '56px';
var p = '-68px -720px';
var m = '更多';
if (c == t.css('height')) {
h = 'auto';
p = ' -68px -735px';
m = '收起';
}
t.css({
height: h
});
$(this).html(m + '');
$(this).find('i').css({
backgroundPosition: p
});
});
$(window).resize(function() {
chview();
});
$(".search-menu").hover(function(){
$(".search-menu-box").show();
},function(){
$(".search-menu-box").hide();
});
$(".hover-main").hover(function(){
var _this = $(this);
_is_hover = true;
_is_unhover = false;
setTimeout(function () {
if (_is_unhover) return;
$('.hover-main-content').hide();
_this.find('.hover-main-content').show();
}, 10);
}, function () {
var _this = $(this);
_is_hover = false;
_is_unhover = true;
setTimeout(function () {
if (_is_hover) return;
_this.find('.hover-main-content').hide();
}, 200);
});
$(".category-list").hover(function(){
var _this = $(this);
_is_hover = true;
_is_unhover = false;
setTimeout(function () {
if (_is_unhover) return;
$('.category-list-detail').hide();
_this.find('.category-list-detail').show();
}, 10);
}, function () {
var _this = $(this);
_is_hover = false;
_is_unhover = true;
setTimeout(function () {
if (_is_hover) return;
_this.find('.category-list-detail').hide();
}, 200);
});
$(".search-menu-box ul li").click(function() {
$(".search-menu-head").html($(this).text());
$("#searchtype").val($(this).find("a").attr("catepath"));
$(this).siblings().show();
$(this).hide();
});
var ppttuiguangWidth = 0;
$(".ppttuiguang-content .ppttuiguang-part").each(function (i,v) {
ppttuiguangWidth += parseInt($(this).get(0).offsetWidth)+20;
});
if (ppttuiguangWidth>parseInt($('.ppttuiguang-content').get(0).offsetWidth)) {
$(".ppttuiguang-show-more").css("display","inline-block");
}else {
$(".ppttuiguang-show-more").css("display","none");
}
$(".ppttuiguang-show-more").click(function () {
var _this = $(this);
if (_this.hasClass("show-down")) {
$(".ppttuiguang").css("height","auto");
_this.removeClass("show-down").addClass("show-top");
return false;
}
if (_this.hasClass("show-top")) {
$(".ppttuiguang").css("height","80px");
_this.removeClass("show-top").addClass("show-down");
return false;
}
})