General.Web/wwwroot/lib/jquery.smartwizard/4.0.1/js/jquery.smartWizard.js
(开头部分) 21KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* SmartWizard v4.0.1
* jQuery Wizard Plugin
* http://www.techlaboratory.net/smartwizard
*
* Created by Dipu Raj
* http://dipuraj.me
*
* Licensed under the terms of the MIT License
* https://github.com/techlab/SmartWizard/blob/master/MIT-LICENSE.txt
*/
;(function ($, window, document, undefined) {
"use strict";
// Default options
var defaults = {
selected: 0, // Initial selected step, 0 = first step
keyNavigation:true, // Enable/Disable keyboard navigation(left and right keys are used if enabled)
autoAdjustHeight:true, // Automatically adjust content height
cycleSteps: false, // Allows to cycle the navigation of steps
backButtonSupport: true, // Enable the back button support
useURLhash: true, // Enable selection of the step based on url hash
lang: { // Language variables
next: '下一步',
previous: '上一步'
},
toolbarSettings: {
toolbarPosition: 'bottom', // none, top, bottom, both
toolbarButtonPosition: 'right', // left, right
showNextButton: true, // show/hide a Next button
showPreviousButton: true, // show/hide a Previous button
toolbarExtraButtons: []
},
anchorSettings: {
anchorClickable: true, // Enable/Disable anchor navigation
enableAllAnchors: false, // Activates all anchors clickable all times
markDoneStep: true, // add done css
enableAnchorOnDoneStep: true // Enable/Disable the done steps navigation
},
contentURL: null, // content url, Enables Ajax content loading. can set as data data-content-url on anchor
disabledSteps: [], // Array Steps disabled
errorSteps: [], // Highlight step with errors
theme: 'default',
transitionEffect: 'none', // Effect on navigation, none/slide/fade
transitionSpeed: '400'
};
// The plugin constructor
function SmartWizard (element, options) {
this._defaults = defaults;
// Merge user settigs with default, recursively
this.options = $.extend( true, {}, defaults, options );
// Main container element
this.main = $(element);
// Navigation bar element
this.nav = this.main.children('ul');
// Step anchor elements
this.steps = $("li > a", this.nav);
// Content container
this.container = this.main.children('div');
// Content pages
后面还有 437 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
