Skip to content

Commit 3a79e48

Browse files
author
Rafael J. Staib
committed
Add stable version
1 parent 7e96916 commit 3a79e48

File tree

8 files changed

+391
-350
lines changed

8 files changed

+391
-350
lines changed

Gruntfile.js

+15-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ module.exports = function (grunt)
88
concat: {
99
dist: {
1010
files: {
11-
'dist/jquery.steps.js': ['jquery.steps.js']
11+
'dist/jquery.steps.js': [
12+
'src/banner.js',
13+
'src/variables.js',
14+
'src/privates.js',
15+
'src/publics.js',
16+
'src/enums.js',
17+
'src/model.js',
18+
'src/defaults.js',
19+
'src/globals.js',
20+
'src/footer.js'
21+
]
1222
}
1323
}
1424
},
@@ -35,6 +45,7 @@ module.exports = function (grunt)
3545
src: [
3646
'README.md',
3747
/*'changelog.txt',*/
48+
'src/**/*.*',
3849
'docs/**/*.*',
3950
'demo/**/*.*',
4051
'lib/*.*',
@@ -71,7 +82,7 @@ module.exports = function (grunt)
7182
}
7283
},
7384
files: [
74-
'jquery.steps.js'
85+
'dist/jquery-steps.js'
7586
],
7687
test: {
7788
options: {
@@ -128,7 +139,7 @@ module.exports = function (grunt)
128139
grunt.loadNpmTasks('grunt-contrib-compress');
129140
grunt.loadNpmTasks('grunt-contrib-clean');
130141

131-
grunt.registerTask('default', ['jshint', 'qunit']);
142+
grunt.registerTask('default', ['concat', 'jshint', 'qunit']);
132143
grunt.registerTask('api', ['clean', 'yuidoc']);
133-
grunt.registerTask('release', ['default', 'api', 'concat', 'uglify', 'compress']);
144+
grunt.registerTask('release', ['default', 'api', 'uglify', 'compress']);
134145
};

demo/add-remove.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="stylesheet" href="css/jquery.steps.css">
1515
<script src="../lib/modernizr-2.6.2.min.js"></script>
1616
<script src="../lib/jquery-1.9.1.min.js"></script>
17-
<script src="../jquery.steps.js"></script>
17+
<script src="../dist/jquery.steps.js"></script>
1818
</head>
1919
<body>
2020
<!--[if lt IE 7]>

demo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script src="../lib/modernizr-2.6.2.min.js"></script>
1616
<script src="../lib/jquery-1.9.1.min.js"></script>
1717
<script src="../lib/jquery.cookie-1.3.1.js"></script>
18-
<script src="../jquery.steps.js"></script>
18+
<script src="../dist/jquery.steps.js"></script>
1919
</head>
2020
<body>
2121
<!--[if lt IE 7]>

src/enums.js

+73-75
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,85 @@
1-
$.fn.steps.extend({
1+
/**
2+
* An enum represents the different content types of a step and their loading mechanisms.
3+
*
4+
* @class contentMode
5+
* @for steps
6+
**/
7+
$.fn.steps.contentMode = {
28
/**
3-
* An enum represents the different content types of a step and their loading mechanisms.
9+
* HTML embedded content
410
*
5-
* @class contentMode
6-
* @for steps
11+
* @readOnly
12+
* @property html
13+
* @type Integer
14+
* @for contentMode
715
**/
8-
contentMode: {
9-
/**
10-
* HTML embedded content
11-
*
12-
* @readOnly
13-
* @property html
14-
* @type Integer
15-
* @for contentMode
16-
**/
17-
html: 0,
16+
html: 0,
1817

19-
/**
20-
* IFrame embedded content
21-
*
22-
* @readOnly
23-
* @property iframe
24-
* @type Integer
25-
* @for contentMode
26-
**/
27-
iframe: 1,
18+
/**
19+
* IFrame embedded content
20+
*
21+
* @readOnly
22+
* @property iframe
23+
* @type Integer
24+
* @for contentMode
25+
**/
26+
iframe: 1,
2827

29-
/**
30-
* Async embedded content
31-
*
32-
* @readOnly
33-
* @property async
34-
* @type Integer
35-
* @for contentMode
36-
**/
37-
async: 2
38-
},
28+
/**
29+
* Async embedded content
30+
*
31+
* @readOnly
32+
* @property async
33+
* @type Integer
34+
* @for contentMode
35+
**/
36+
async: 2
37+
};
3938

39+
/**
40+
* An enum that represents the various transition animations.
41+
*
42+
* @class transitionEffect
43+
* @for steps
44+
**/
45+
$.fn.steps.transitionEffect = {
4046
/**
41-
* An enum that represents the various transition animations.
47+
* No transition animation
4248
*
43-
* @class transitionEffect
44-
* @for steps
49+
* @readOnly
50+
* @property none
51+
* @type Integer
52+
* @for transitionEffect
4553
**/
46-
transitionEffect: {
47-
/**
48-
* No transition animation
49-
*
50-
* @readOnly
51-
* @property none
52-
* @type Integer
53-
* @for transitionEffect
54-
**/
55-
none: 0,
54+
none: 0,
5655

57-
/**
58-
* Fade in transition
59-
*
60-
* @readOnly
61-
* @property fade
62-
* @type Integer
63-
* @for transitionEffect
64-
**/
65-
fade: 1,
56+
/**
57+
* Fade in transition
58+
*
59+
* @readOnly
60+
* @property fade
61+
* @type Integer
62+
* @for transitionEffect
63+
**/
64+
fade: 1,
6665

67-
/**
68-
* Slide up transition
69-
*
70-
* @readOnly
71-
* @property slide
72-
* @type Integer
73-
* @for transitionEffect
74-
**/
75-
slide: 2,
66+
/**
67+
* Slide up transition
68+
*
69+
* @readOnly
70+
* @property slide
71+
* @type Integer
72+
* @for transitionEffect
73+
**/
74+
slide: 2,
7675

77-
/**
78-
* Slide left transition
79-
*
80-
* @readOnly
81-
* @property slideLeft
82-
* @type Integer
83-
* @for transitionEffect
84-
**/
85-
slideLeft: 3
86-
}
87-
});
76+
/**
77+
* Slide left transition
78+
*
79+
* @readOnly
80+
* @property slideLeft
81+
* @type Integer
82+
* @for transitionEffect
83+
**/
84+
slideLeft: 3
85+
};

src/model.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$.fn.steps.stepModel = {
2+
title: "",
3+
content: "",
4+
contentUrl: "",
5+
contentMode: $.fn.steps.contentMode.html,
6+
contentLoaded: false
7+
};

0 commit comments

Comments
 (0)