src/main/webapp/front/xznstatic/js/common.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function () {
//==========导航
var that,datacid;
$(".nav ul li").hover(function () {
that = $(this),
dcid = $(this).attr("data-cid");
that.addClass("on").siblings("li").removeClass("on");
},function () {
$(".nav ul li").each(function(i, v) {
datacid = $(this).attr("data-cid");
if(datacid == CATID && datacid != undefined || BCID == datacid){
$(this).addClass("on");
return false;
}
});
if(dcid != BCID){
$(this).removeClass("on");
}
});
//==========团队[Team-a]
$(".click-more-team").on("click",function () {
var pars = $(this).parents("li");
$(".dask-team-ceng").removeClass("hide");
pars.find(".dask-team").removeClass("hide");
});
$(".team-colse").on("click",function () {
var pars = $(this).parents(".dask-team");
$(".dask-team-ceng").addClass("hide");
pars.addClass("hide");
});
//放大
$("a[rel=example_table_"+BCID+"]").fancybox();
//=========搜索
$(".click-search").on("click",function () {
var keywords = $.trim($(".keywords").val());
if (keywords=='') {return false;}
});
//=========返回顶部
$("#get_top").on("click",function () {
$("body,html").animate({
scrollTop : 0
}, 1000);
});
$(".go-bottom").on("click",function () {
$("body,html").animate({
scrollTop: $('.plate').offset().top
},700)
});
//强制100%
$(".box-content .con-right").css('min-height',$(window).height() - 135 - $(".footer").outerHeight());
$(".detail iframe,.detail table").css("width","100%");
//禁止右键
if (ONCONTEXT) {
document.oncontextmenu = function (event){
if(window.event){
event = window.event;
}try{
var the = event.srcElement;
if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
return false;
后面还有 42 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
