content/supermgr/Base/js/common.js
(开头部分) 48KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
jQuery(document).ready(function () {
$(".ui-filter-text").click(function () {
if ($(this).next(".ui-filter-list").is(":hidden")) {
$(this).css("border-bottom-color", "#fff");
$(".ui-filter-list").slideDown(10);
$(this).addClass("active");
} else {
$(this).css("border-bottom-color", "#ccc");
$(".ui-filter-list").slideUp(10);
$(this).removeClass("active");
}
});
$(".profile-nav li").click(function () {
$(".profile-nav li").removeClass("active");
$(".profile-nav li").removeClass("hover");
$(this).addClass("active");
}).hover(function () {
if (!$(this).hasClass("active")) {
$(this).addClass("hover");
}
}, function () {
$(this).removeClass("hover");
});
});
//获取layout内容页高度
$.fn.getLayoutHeight = function () {
if ($(".content").length > 0) { //如果有.content元素,则从content元素开始计算
return $(window).height() - $(".content").offset().top;
} else {
return $(window).height();
}
}
//获取layout bottom底部距离
$.fn.getLayoutBottomHeight=function() {
return 52; //底部距离预设52
}
//获取layout中grid刨除顶部高度(包括上下内边距)
$.fn.getGridTopHeight = function () {
if ($(".gridPanel").length > 0) {
return $(".gridPanel").offset().top;
} else {
return 0;
}
}
//获取layout内容区域高度
$.fn.getLayoutContentHeight=function() {
return $.fn.getLayoutHeight() - $.fn.getLayoutBottomHeight();
}
//获取列表grid自适应高度
$.fn.getGridHeight = function (hasPage) {
var pageHeight = -18;//一种奇怪的bug,临时解决方案-18px
if (hasPage) {
pageHeight = 28;//28代表分页高度
}
return $(window).height() - $.fn.getGridTopHeight() - $.fn.getLayoutBottomHeight() - pageHeight;
}
$.loading = function (bool, text) {
后面还有 1307 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。