code/Athena0.0.1/Web/Content/js/wizard/wizard.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function (b, c) {
var a = function (f, e) {
var d;
this.$element = b(f);
this.options = b.extend({}, b.fn.wizard.defaults, e);
this.currentStep = 1;
this.numSteps = this.$element.find("li").length;
/*Customized to Enable Out Of Wizard Buttons*/
this.$prevBtn = $('#'+this.$element[0].id+'-actions').find("a.btn-prev");
this.$nextBtn = $('#' + this.$element[0].id + '-actions').find("a.btn-next");
/*End Customized to Enable Out Of Wizard Buttons*/
d = this.$nextBtn.children().detach();
this.nextText = b.trim(this.$nextBtn.text());
this.$nextBtn.append(d);
this.$prevBtn.on("click", b.proxy(this.previous, this));
this.$nextBtn.on("click", b.proxy(this.next, this));
this.$element.on("click", "li.complete", b.proxy(this.stepclicked, this));
this.$stepContainer = this.$element.data("target") || "body";
this.$stepContainer = b(this.$stepContainer)
};
a.prototype = {
constructor: a,
setState: function () {
var n = (this.currentStep > 1);
var o = (this.currentStep === 1);
var d = (this.currentStep === this.numSteps);
this.$prevBtn.attr("disabled", (o === true || n === false));
var h = this.$nextBtn.data();
if (h && h.last) {
this.lastText = h.last;
if (typeof this.lastText !== "undefined") {
var l = (d !== true) ? this.nextText : this.lastText;
var f = this.$nextBtn.children().detach();
this.$nextBtn.text(l).append(f)
}
}
var j = this.$element.find("li");
j.removeClass("active").removeClass("complete");
var m = "li:lt(" + (this.currentStep - 1) + ")";
var g = this.$element.find(m);
g.addClass("complete");
var e = "li:eq(" + (this.currentStep - 1) + ")";
var k = this.$element.find(e);
k.addClass("active");
var i = k.data().target;
this.$stepContainer.find(".step-pane").removeClass("active");
b(i).addClass("active");
this.$element.trigger("changed")
},
stepclicked: function (h) {
var d = b(h.currentTarget);
var g = this.$element.find("li").index(d);
var f = b.Event("change");
this.$element.trigger(f, {
step: g + 1,
direction: "stepclicked",
currentStep: g + 1
});
if (f.isDefaultPrevented()) {
return
后面还有 74 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
