twitter_bootstrap_wizard_rails 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/twitter_bootstrap_wizard_rails.rb +10 -0
- data/lib/twitter_bootstrap_wizard_rails/version.rb +3 -0
- data/twitter_bootstrap_wizard_rails.gemspec +34 -0
- data/vendor/assets/javascript/jquery.bootstrap.wizard.js +331 -0
- data/vendor/assets/javascript/prettify.js +28 -0
- data/vendor/assets/stylesheets/prettify.css +30 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: db6b63d4f34376ba5ae631a1e91a929060e90524
|
4
|
+
data.tar.gz: 1b1b5446681d4ac9f2aaf0b26828ef8df3c53b12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bf27b6424d08dc0bb30f7de4452e452c06f3edce334985831e4ba4d9c4a30e37f2593d228591677e4fa525d69172589b377a9c142abf9116f772b33e05779207
|
7
|
+
data.tar.gz: f52d4d7afe246f0845cc579070bba1aeba38b00ecd0d19392be08c77c89dc49a6cfff0b943b03a16c3bbc00e4a2c8773e91e885bea3829d50ac01ad1955c69d6
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Shouvik Mukherjee
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Twitter Bootstrap Wizard Rails
|
2
|
+
Twitter Bootstrap Wizard Rails builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
* Include `twitter_bootstrap_wizard_rails` in your `Gemfile`:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem 'twitter_bootstrap_wizard_rails'
|
10
|
+
```
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install twitter_bootstrap_wizard_rails
|
19
|
+
|
20
|
+
|
21
|
+
* Add to `app/assets/javascripts/applications.js`:
|
22
|
+
```javascript
|
23
|
+
//= require 'jquery.bootstrap.wizard'
|
24
|
+
//= require 'prettify'
|
25
|
+
```
|
26
|
+
|
27
|
+
* Add to `app/assets/stylesheets/application.css`
|
28
|
+
```css
|
29
|
+
*= 'prettify'
|
30
|
+
```
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
See [https://github.com/VinceG/twitter-bootstrap-wizard](https://github.com/VinceG/twitter-bootstrap-wizard)
|
35
|
+
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ishouvik/twitter_bootstrap_wizard_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
40
|
+
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
45
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "twitter_bootstrap_wizard_rails"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'twitter_bootstrap_wizard_rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "twitter_bootstrap_wizard_rails"
|
8
|
+
spec.version = TwitterBootstrapWizardRails::VERSION
|
9
|
+
spec.authors = ["Shouvik Mukherjee"]
|
10
|
+
spec.email = ["contact@ishouvik.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Build wizard out of a formatter tabbable structure using Bootstrap}
|
13
|
+
spec.description = %q{Twitter Bootstrap Wizard Rails builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
|
14
|
+
}
|
15
|
+
spec.homepage = "https://github.com/ishouvik/twitter_bootstrap_wizard_rails"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
19
|
+
# delete this section to allow pushing this gem to any host.
|
20
|
+
# if spec.respond_to?(:metadata)
|
21
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
22
|
+
# else
|
23
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
24
|
+
# end
|
25
|
+
|
26
|
+
spec.files = Dir["{lib,vendor}/**/*"] + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_dependency 'railties'
|
34
|
+
end
|
@@ -0,0 +1,331 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery twitter bootstrap wizard plugin
|
3
|
+
* Examples and documentation at: http://github.com/VinceG/twitter-bootstrap-wizard
|
4
|
+
* version 1.0
|
5
|
+
* Requires jQuery v1.3.2 or later
|
6
|
+
* Supports Bootstrap 2.2.x, 2.3.x, 3.0
|
7
|
+
* Dual licensed under the MIT and GPL licenses:
|
8
|
+
* http://www.opensource.org/licenses/mit-license.php
|
9
|
+
* http://www.gnu.org/licenses/gpl.html
|
10
|
+
* Authors: Vadim Vincent Gabriel (http://vadimg.com), Jason Gill (www.gilluminate.com)
|
11
|
+
*/
|
12
|
+
;(function($) {
|
13
|
+
var bootstrapWizardCreate = function(element, options) {
|
14
|
+
var element = $(element);
|
15
|
+
var obj = this;
|
16
|
+
|
17
|
+
// selector skips any 'li' elements that do not contain a child with a tab data-toggle
|
18
|
+
var baseItemSelector = 'li:has([data-toggle="tab"])';
|
19
|
+
var historyStack = [];
|
20
|
+
|
21
|
+
// Merge options with defaults
|
22
|
+
var $settings = $.extend({}, $.fn.bootstrapWizard.defaults, options);
|
23
|
+
var $activeTab = null;
|
24
|
+
var $navigation = null;
|
25
|
+
|
26
|
+
this.rebindClick = function(selector, fn)
|
27
|
+
{
|
28
|
+
selector.unbind('click', fn).bind('click', fn);
|
29
|
+
}
|
30
|
+
|
31
|
+
this.fixNavigationButtons = function() {
|
32
|
+
// Get the current active tab
|
33
|
+
if(!$activeTab.length) {
|
34
|
+
// Select first one
|
35
|
+
$navigation.find('a:first').tab('show');
|
36
|
+
$activeTab = $navigation.find(baseItemSelector + ':first');
|
37
|
+
}
|
38
|
+
|
39
|
+
// See if we're currently in the first/last then disable the previous and last buttons
|
40
|
+
$($settings.previousSelector, element).toggleClass('disabled', (obj.firstIndex() >= obj.currentIndex()));
|
41
|
+
$($settings.nextSelector, element).toggleClass('disabled', (obj.currentIndex() >= obj.navigationLength()));
|
42
|
+
$($settings.nextSelector, element).toggleClass('hidden', (obj.currentIndex() >= obj.navigationLength() && $($settings.finishSelector, element).length > 0));
|
43
|
+
$($settings.lastSelector, element).toggleClass('hidden', (obj.currentIndex() >= obj.navigationLength() && $($settings.finishSelector, element).length > 0));
|
44
|
+
$($settings.finishSelector, element).toggleClass('hidden', (obj.currentIndex() < obj.navigationLength()));
|
45
|
+
$($settings.backSelector, element).toggleClass('disabled', (historyStack.length == 0));
|
46
|
+
$($settings.backSelector, element).toggleClass('hidden', (obj.currentIndex() >= obj.navigationLength() && $($settings.finishSelector, element).length > 0));
|
47
|
+
|
48
|
+
// We are unbinding and rebinding to ensure single firing and no double-click errors
|
49
|
+
obj.rebindClick($($settings.nextSelector, element), obj.next);
|
50
|
+
obj.rebindClick($($settings.previousSelector, element), obj.previous);
|
51
|
+
obj.rebindClick($($settings.lastSelector, element), obj.last);
|
52
|
+
obj.rebindClick($($settings.firstSelector, element), obj.first);
|
53
|
+
obj.rebindClick($($settings.finishSelector, element), obj.finish);
|
54
|
+
obj.rebindClick($($settings.backSelector, element), obj.back);
|
55
|
+
|
56
|
+
if($settings.onTabShow && typeof $settings.onTabShow === 'function' && $settings.onTabShow($activeTab, $navigation, obj.currentIndex())===false){
|
57
|
+
return false;
|
58
|
+
}
|
59
|
+
};
|
60
|
+
|
61
|
+
this.next = function(e) {
|
62
|
+
// If we clicked the last then dont activate this
|
63
|
+
if(element.hasClass('last')) {
|
64
|
+
return false;
|
65
|
+
}
|
66
|
+
|
67
|
+
if($settings.onNext && typeof $settings.onNext === 'function' && $settings.onNext($activeTab, $navigation, obj.nextIndex())===false){
|
68
|
+
return false;
|
69
|
+
}
|
70
|
+
|
71
|
+
var formerIndex = obj.currentIndex();
|
72
|
+
var $index = obj.nextIndex();
|
73
|
+
|
74
|
+
// Did we click the last button
|
75
|
+
if($index > obj.navigationLength()) {
|
76
|
+
} else {
|
77
|
+
historyStack.push(formerIndex);
|
78
|
+
$navigation.find(baseItemSelector + ':visible:eq(' + $index + ') a').tab('show');
|
79
|
+
}
|
80
|
+
};
|
81
|
+
|
82
|
+
this.previous = function(e) {
|
83
|
+
// If we clicked the first then dont activate this
|
84
|
+
if(element.hasClass('first')) {
|
85
|
+
return false;
|
86
|
+
}
|
87
|
+
|
88
|
+
if($settings.onPrevious && typeof $settings.onPrevious === 'function' && $settings.onPrevious($activeTab, $navigation, obj.previousIndex())===false){
|
89
|
+
return false;
|
90
|
+
}
|
91
|
+
|
92
|
+
var formerIndex = obj.currentIndex();
|
93
|
+
var $index = obj.previousIndex();
|
94
|
+
|
95
|
+
if($index < 0) {
|
96
|
+
} else {
|
97
|
+
historyStack.push(formerIndex);
|
98
|
+
$navigation.find(baseItemSelector + ':visible:eq(' + $index + ') a').tab('show');
|
99
|
+
}
|
100
|
+
};
|
101
|
+
|
102
|
+
this.first = function (e) {
|
103
|
+
if($settings.onFirst && typeof $settings.onFirst === 'function' && $settings.onFirst($activeTab, $navigation, obj.firstIndex())===false){
|
104
|
+
return false;
|
105
|
+
}
|
106
|
+
|
107
|
+
// If the element is disabled then we won't do anything
|
108
|
+
if(element.hasClass('disabled')) {
|
109
|
+
return false;
|
110
|
+
}
|
111
|
+
|
112
|
+
historyStack.push(obj.currentIndex());
|
113
|
+
$navigation.find(baseItemSelector + ':eq(0) a').tab('show');
|
114
|
+
};
|
115
|
+
|
116
|
+
this.last = function(e) {
|
117
|
+
if($settings.onLast && typeof $settings.onLast === 'function' && $settings.onLast($activeTab, $navigation, obj.lastIndex())===false){
|
118
|
+
return false;
|
119
|
+
}
|
120
|
+
|
121
|
+
// If the element is disabled then we won't do anything
|
122
|
+
if(element.hasClass('disabled')) {
|
123
|
+
return false;
|
124
|
+
}
|
125
|
+
|
126
|
+
historyStack.push(obj.currentIndex());
|
127
|
+
$navigation.find(baseItemSelector + ':eq(' + obj.navigationLength() + ') a').tab('show');
|
128
|
+
};
|
129
|
+
|
130
|
+
this.finish = function (e) {
|
131
|
+
if ($settings.onFinish && typeof $settings.onFinish === 'function') {
|
132
|
+
$settings.onFinish($activeTab, $navigation, obj.lastIndex());
|
133
|
+
}
|
134
|
+
};
|
135
|
+
|
136
|
+
this.back = function () {
|
137
|
+
if (historyStack.length == 0) {
|
138
|
+
return null;
|
139
|
+
}
|
140
|
+
|
141
|
+
var formerIndex = historyStack.pop();
|
142
|
+
if ($settings.onBack && typeof $settings.onBack === 'function' && $settings.onBack($activeTab, $navigation, formerIndex) === false) {
|
143
|
+
historyStack.push(formerIndex);
|
144
|
+
return false;
|
145
|
+
}
|
146
|
+
|
147
|
+
element.find(baseItemSelector + ':eq(' + formerIndex + ') a').tab('show');
|
148
|
+
};
|
149
|
+
|
150
|
+
this.currentIndex = function() {
|
151
|
+
return $navigation.find(baseItemSelector).index($activeTab);
|
152
|
+
};
|
153
|
+
|
154
|
+
this.firstIndex = function() {
|
155
|
+
return 0;
|
156
|
+
};
|
157
|
+
|
158
|
+
this.lastIndex = function() {
|
159
|
+
return obj.navigationLength();
|
160
|
+
};
|
161
|
+
this.getIndex = function(e) {
|
162
|
+
return $navigation.find(baseItemSelector).index(e);
|
163
|
+
};
|
164
|
+
this.nextIndex = function() {
|
165
|
+
return $navigation.find(baseItemSelector).index($activeTab) + 1;
|
166
|
+
};
|
167
|
+
this.previousIndex = function() {
|
168
|
+
return $navigation.find(baseItemSelector).index($activeTab) - 1;
|
169
|
+
};
|
170
|
+
this.navigationLength = function() {
|
171
|
+
return $navigation.find(baseItemSelector).length - 1;
|
172
|
+
};
|
173
|
+
this.activeTab = function() {
|
174
|
+
return $activeTab;
|
175
|
+
};
|
176
|
+
this.nextTab = function() {
|
177
|
+
return $navigation.find(baseItemSelector + ':eq('+(obj.currentIndex()+1)+')').length ? $navigation.find(baseItemSelector + ':eq('+(obj.currentIndex()+1)+')') : null;
|
178
|
+
};
|
179
|
+
this.previousTab = function() {
|
180
|
+
if(obj.currentIndex() <= 0) {
|
181
|
+
return null;
|
182
|
+
}
|
183
|
+
return $navigation.find(baseItemSelector + ':eq('+parseInt(obj.currentIndex()-1)+')');
|
184
|
+
};
|
185
|
+
this.show = function(index) {
|
186
|
+
var tabToShow = isNaN(index) ?
|
187
|
+
element.find(baseItemSelector + ' a[href=#' + index + ']') :
|
188
|
+
element.find(baseItemSelector + ':eq(' + index + ') a');
|
189
|
+
if (tabToShow.length > 0) {
|
190
|
+
historyStack.push(obj.currentIndex());
|
191
|
+
tabToShow.tab('show');
|
192
|
+
}
|
193
|
+
};
|
194
|
+
this.disable = function (index) {
|
195
|
+
$navigation.find(baseItemSelector + ':eq('+index+')').addClass('disabled');
|
196
|
+
};
|
197
|
+
this.enable = function(index) {
|
198
|
+
$navigation.find(baseItemSelector + ':eq('+index+')').removeClass('disabled');
|
199
|
+
};
|
200
|
+
this.hide = function(index) {
|
201
|
+
$navigation.find(baseItemSelector + ':eq('+index+')').hide();
|
202
|
+
};
|
203
|
+
this.display = function(index) {
|
204
|
+
$navigation.find(baseItemSelector + ':eq('+index+')').show();
|
205
|
+
};
|
206
|
+
this.remove = function(args) {
|
207
|
+
var $index = args[0];
|
208
|
+
var $removeTabPane = typeof args[1] != 'undefined' ? args[1] : false;
|
209
|
+
var $item = $navigation.find(baseItemSelector + ':eq('+$index+')');
|
210
|
+
|
211
|
+
// Remove the tab pane first if needed
|
212
|
+
if($removeTabPane) {
|
213
|
+
var $href = $item.find('a').attr('href');
|
214
|
+
$($href).remove();
|
215
|
+
}
|
216
|
+
|
217
|
+
// Remove menu item
|
218
|
+
$item.remove();
|
219
|
+
};
|
220
|
+
|
221
|
+
var innerTabClick = function (e) {
|
222
|
+
// Get the index of the clicked tab
|
223
|
+
var $ul = $navigation.find(baseItemSelector);
|
224
|
+
var clickedIndex = $ul.index($(e.currentTarget).parent(baseItemSelector));
|
225
|
+
var $clickedTab = $( $ul[clickedIndex] );
|
226
|
+
if($settings.onTabClick && typeof $settings.onTabClick === 'function' && $settings.onTabClick($activeTab, $navigation, obj.currentIndex(), clickedIndex, $clickedTab)===false){
|
227
|
+
return false;
|
228
|
+
}
|
229
|
+
};
|
230
|
+
|
231
|
+
var innerTabShown = function (e) { // use shown instead of show to help prevent double firing
|
232
|
+
var $element = $(e.target).parent();
|
233
|
+
var nextTab = $navigation.find(baseItemSelector).index($element);
|
234
|
+
|
235
|
+
// If it's disabled then do not change
|
236
|
+
if($element.hasClass('disabled')) {
|
237
|
+
return false;
|
238
|
+
}
|
239
|
+
|
240
|
+
if($settings.onTabChange && typeof $settings.onTabChange === 'function' && $settings.onTabChange($activeTab, $navigation, obj.currentIndex(), nextTab)===false){
|
241
|
+
return false;
|
242
|
+
}
|
243
|
+
|
244
|
+
$activeTab = $element; // activated tab
|
245
|
+
obj.fixNavigationButtons();
|
246
|
+
};
|
247
|
+
|
248
|
+
this.resetWizard = function() {
|
249
|
+
|
250
|
+
// remove the existing handlers
|
251
|
+
$('a[data-toggle="tab"]', $navigation).off('click', innerTabClick);
|
252
|
+
$('a[data-toggle="tab"]', $navigation).off('shown shown.bs.tab', innerTabShown);
|
253
|
+
|
254
|
+
// reset elements based on current state of the DOM
|
255
|
+
$navigation = element.find('ul:first', element);
|
256
|
+
$activeTab = $navigation.find(baseItemSelector + '.active', element);
|
257
|
+
|
258
|
+
// re-add handlers
|
259
|
+
$('a[data-toggle="tab"]', $navigation).on('click', innerTabClick);
|
260
|
+
$('a[data-toggle="tab"]', $navigation).on('shown shown.bs.tab', innerTabShown);
|
261
|
+
|
262
|
+
obj.fixNavigationButtons();
|
263
|
+
};
|
264
|
+
|
265
|
+
$navigation = element.find('ul:first', element);
|
266
|
+
$activeTab = $navigation.find(baseItemSelector + '.active', element);
|
267
|
+
|
268
|
+
if(!$navigation.hasClass($settings.tabClass)) {
|
269
|
+
$navigation.addClass($settings.tabClass);
|
270
|
+
}
|
271
|
+
|
272
|
+
// Load onInit
|
273
|
+
if($settings.onInit && typeof $settings.onInit === 'function'){
|
274
|
+
$settings.onInit($activeTab, $navigation, 0);
|
275
|
+
}
|
276
|
+
|
277
|
+
// Load onShow
|
278
|
+
if($settings.onShow && typeof $settings.onShow === 'function'){
|
279
|
+
$settings.onShow($activeTab, $navigation, obj.nextIndex());
|
280
|
+
}
|
281
|
+
|
282
|
+
$('a[data-toggle="tab"]', $navigation).on('click', innerTabClick);
|
283
|
+
|
284
|
+
// attach to both shown and shown.bs.tab to support Bootstrap versions 2.3.2 and 3.0.0
|
285
|
+
$('a[data-toggle="tab"]', $navigation).on('shown shown.bs.tab', innerTabShown);
|
286
|
+
};
|
287
|
+
$.fn.bootstrapWizard = function(options) {
|
288
|
+
//expose methods
|
289
|
+
if (typeof options == 'string') {
|
290
|
+
var args = Array.prototype.slice.call(arguments, 1)
|
291
|
+
if(args.length === 1) {
|
292
|
+
args.toString();
|
293
|
+
}
|
294
|
+
return this.data('bootstrapWizard')[options](args);
|
295
|
+
}
|
296
|
+
return this.each(function(index){
|
297
|
+
var element = $(this);
|
298
|
+
// Return early if this element already has a plugin instance
|
299
|
+
if (element.data('bootstrapWizard')) return;
|
300
|
+
// pass options to plugin constructor
|
301
|
+
var wizard = new bootstrapWizardCreate(element, options);
|
302
|
+
// Store plugin object in this element's data
|
303
|
+
element.data('bootstrapWizard', wizard);
|
304
|
+
// and then trigger initial change
|
305
|
+
wizard.fixNavigationButtons();
|
306
|
+
});
|
307
|
+
};
|
308
|
+
|
309
|
+
// expose options
|
310
|
+
$.fn.bootstrapWizard.defaults = {
|
311
|
+
tabClass: 'nav nav-pills',
|
312
|
+
nextSelector: '.wizard li.next',
|
313
|
+
previousSelector: '.wizard li.previous',
|
314
|
+
firstSelector: '.wizard li.first',
|
315
|
+
lastSelector: '.wizard li.last',
|
316
|
+
finishSelector: '.wizard li.finish',
|
317
|
+
backSelector: '.wizard li.back',
|
318
|
+
onShow: null,
|
319
|
+
onInit: null,
|
320
|
+
onNext: null,
|
321
|
+
onPrevious: null,
|
322
|
+
onLast: null,
|
323
|
+
onFirst: null,
|
324
|
+
onFinish: null,
|
325
|
+
onBack: null,
|
326
|
+
onTabChange: null,
|
327
|
+
onTabClick: null,
|
328
|
+
onTabShow: null
|
329
|
+
};
|
330
|
+
|
331
|
+
})(jQuery);
|
@@ -0,0 +1,28 @@
|
|
1
|
+
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
|
2
|
+
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
|
3
|
+
[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
|
4
|
+
f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
|
5
|
+
(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
|
6
|
+
{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
|
7
|
+
t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
|
8
|
+
"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
|
9
|
+
l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
|
10
|
+
q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
|
11
|
+
q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
|
12
|
+
"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
|
13
|
+
a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
|
14
|
+
for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
|
15
|
+
m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
|
16
|
+
a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
|
17
|
+
j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
|
18
|
+
"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
|
19
|
+
H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
|
20
|
+
J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
|
21
|
+
I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
|
22
|
+
["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
|
23
|
+
/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
|
24
|
+
["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
|
25
|
+
hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
|
26
|
+
!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
|
27
|
+
250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
|
28
|
+
PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();
|
@@ -0,0 +1,30 @@
|
|
1
|
+
.com { color: #93a1a1; }
|
2
|
+
.lit { color: #195f91; }
|
3
|
+
.pun, .opn, .clo { color: #93a1a1; }
|
4
|
+
.fun { color: #dc322f; }
|
5
|
+
.str, .atv { color: #D14; }
|
6
|
+
.kwd, .prettyprint .tag { color: #1e347b; }
|
7
|
+
.typ, .atn, .dec, .var { color: teal; }
|
8
|
+
.pln { color: #48484c; }
|
9
|
+
|
10
|
+
.prettyprint {
|
11
|
+
padding: 8px;
|
12
|
+
background-color: #f7f7f9;
|
13
|
+
border: 1px solid #e1e1e8;
|
14
|
+
}
|
15
|
+
.prettyprint.linenums {
|
16
|
+
-webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
|
17
|
+
-moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
|
18
|
+
box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* Specify class=linenums on a pre to get line numbering */
|
22
|
+
ol.linenums {
|
23
|
+
margin: 0 0 0 33px; /* IE indents via margin-left */
|
24
|
+
}
|
25
|
+
ol.linenums li {
|
26
|
+
padding-left: 12px;
|
27
|
+
color: #bebec5;
|
28
|
+
line-height: 20px;
|
29
|
+
text-shadow: 0 1px 0 #fff;
|
30
|
+
}
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: twitter_bootstrap_wizard_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shouvik Mukherjee
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: railties
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: |
|
56
|
+
Twitter Bootstrap Wizard Rails builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
|
57
|
+
email:
|
58
|
+
- contact@ishouvik.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- CODE_OF_CONDUCT.md
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE.txt
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- bin/console
|
70
|
+
- bin/setup
|
71
|
+
- lib/twitter_bootstrap_wizard_rails.rb
|
72
|
+
- lib/twitter_bootstrap_wizard_rails/version.rb
|
73
|
+
- twitter_bootstrap_wizard_rails.gemspec
|
74
|
+
- vendor/assets/javascript/jquery.bootstrap.wizard.js
|
75
|
+
- vendor/assets/javascript/prettify.js
|
76
|
+
- vendor/assets/stylesheets/prettify.css
|
77
|
+
homepage: https://github.com/ishouvik/twitter_bootstrap_wizard_rails
|
78
|
+
licenses:
|
79
|
+
- MIT
|
80
|
+
metadata: {}
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 2.4.5
|
98
|
+
signing_key:
|
99
|
+
specification_version: 4
|
100
|
+
summary: Build wizard out of a formatter tabbable structure using Bootstrap
|
101
|
+
test_files: []
|