BookShop.Web/JS/base.js

(完整代码) 1KB

$.tabs = function (nav, content, e) {
    var tabNav = $("." + nav);
    var tabContent = $("." + content);
    $(tabContent).find("div.tab_div").hide();
    $(tabNav).find("li:first").addClass("active").show();
    $(tabContent).children("div.tab_div").eq(0).show();
    $(tabNav).find("li").bind(e, function () {
        $(this).addClass("active").siblings("li").removeClass("active");
        var index = $(tabNav).find("li").index(this);
        $(tabContent).children().eq(index).show().siblings().hide();
    });
};


$.extend({
    Onit_GetGrade: function (obj, hiddenobj) {

        var length = obj.length;
        var index = obj.length;

        $(obj).mouseover(function () {
            $._mouseover(obj, $(this).index());
        });
        $(obj).mouseout(function () {
            $._mouseout(obj, $(this).index());
            $._enter(obj, index);
        });
        $(obj).click(function () {
            index = $(this).index();
            $(hiddenobj).val(length - index);
            //$._enter(obj, index);
        });
        $(hiddenobj).val(index);
    },
    _mouseover: function (obj, index) {
        for (var i = obj.length; i > index - 1; i--) {
            $(obj).eq(i).addClass("bg");
        }
    },
    _mouseout: function (obj, index) {
        for (var i = obj.length; i > index - 1; i--) {
            $(obj).eq(i).removeClass("bg");
        }
    },
    _enter: function (obj, index) {
        $(obj).removeClass("bg");
        for (var i = obj.length; i > index - 1; i--) {
            $(obj).eq(i).addClass("bg");
        }
    }
});    

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。