fastlane-plugin-polidea 2.2.0.pre → 3.0.1
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 +4 -4
- data/README.md +9 -13
- data/lib/fastlane/plugin/polidea.rb +4 -0
- data/lib/fastlane/plugin/polidea/actions/fota_mail.rb +13 -3
- data/lib/fastlane/plugin/polidea/actions/fota_s3.rb +36 -29
- data/lib/fastlane/plugin/polidea/actions/release_notes.rb +1 -1
- data/lib/fastlane/plugin/polidea/actions/release_notes_from_commits.rb +1 -1
- data/lib/fastlane/plugin/polidea/helper/page_generator.rb +28 -56
- data/lib/fastlane/plugin/polidea/helper/qr_generator.rb +7 -42
- data/lib/fastlane/plugin/polidea/version.rb +1 -1
- data/templates/install.erb +238 -0
- data/{lib/fastlane/plugin/polidea/templates/download.erb → templates/mail.erb} +18 -23
- metadata +10 -111
- data/lib/fastlane/plugin/polidea/actions/extract_app_icon.rb +0 -172
- data/lib/fastlane/plugin/polidea/actions/extract_app_name.rb +0 -100
- data/lib/fastlane/plugin/polidea/actions/extract_version.rb +0 -106
- data/lib/fastlane/plugin/polidea/actions/get_binary_size.rb +0 -57
- data/lib/fastlane/plugin/polidea/templates/images/cover-shuttle.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/icon-placeholder.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/polidea-logo.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-behance.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-dribbble.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-facebook.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-github.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-instagram.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-linkedin.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-twitter.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css +0 -4895
- data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css.map +0 -7
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/bg.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1024.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1280.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1360.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1440.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1680.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_768.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_ipad_1024.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_ipad_768.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/logo.svg +0 -32
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/logo_square.svg +0 -12
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation.min.js +0 -10
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.abide.js +0 -294
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.accordion.js +0 -65
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js +0 -43
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.clearing.js +0 -558
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.dropdown.js +0 -313
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.equalizer.js +0 -74
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.interchange.js +0 -344
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.joyride.js +0 -915
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.js +0 -625
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.magellan.js +0 -189
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.offcanvas.js +0 -139
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.orbit.js +0 -472
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.reveal.js +0 -443
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.slider.js +0 -231
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.tab.js +0 -167
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.tooltip.js +0 -298
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.topbar.js +0 -436
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/aes.js +0 -35
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/enc-base64-min.js +0 -8
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/fastclick.js +0 -9
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/jquery.cookie.js +0 -8
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/jquery.js +0 -26
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/modernizr.js +0 -8
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/pbkdf2.js +0 -19
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/placeholder.js +0 -2
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/fonts.scss +0 -64
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation.scss +0 -45
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/_functions.scss +0 -101
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/_settings.scss +0 -1441
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_accordion.scss +0 -156
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_alert-boxes.scss +0 -126
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_block-grid.scss +0 -132
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_breadcrumbs.scss +0 -132
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_button-groups.scss +0 -200
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_buttons.scss +0 -252
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_clearing.scss +0 -247
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_dropdown-buttons.scss +0 -129
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_dropdown.scss +0 -248
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_flex-video.scss +0 -51
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_forms.scss +0 -570
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_global.scss +0 -447
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_grid.scss +0 -275
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_icon-bar.scss +0 -293
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_inline-lists.scss +0 -57
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_joyride.scss +0 -222
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_keystrokes.scss +0 -61
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_labels.scss +0 -105
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_magellan.scss +0 -34
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_offcanvas.scss +0 -510
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_orbit.scss +0 -368
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_pagination.scss +0 -162
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_panels.scss +0 -93
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_pricing-tables.scss +0 -150
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_progress-bars.scss +0 -79
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_range-slider.scss +0 -168
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_reveal.scss +0 -220
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_side-nav.scss +0 -116
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_split-buttons.scss +0 -191
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_sub-nav.scss +0 -125
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_switches.scss +0 -226
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tables.scss +0 -135
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tabs.scss +0 -123
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_thumbs.scss +0 -66
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_toolbar.scss +0 -70
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tooltips.scss +0 -142
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_top-bar.scss +0 -676
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_type.scss +0 -523
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_visibility.scss +0 -408
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/installation-page.scss +0 -171
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/normalize.scss +0 -425
- data/lib/fastlane/plugin/polidea/templates/installation_template.erb +0 -54
- data/lib/fastlane/plugin/polidea/templates/mailgun_template.erb +0 -1257
- data/lib/fastlane/plugin/polidea/templates/secure_installation_template.erb +0 -130
data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.magellan.js
DELETED
@@ -1,189 +0,0 @@
|
|
1
|
-
;(function ($, window, document, undefined) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Foundation.libs['magellan-expedition'] = {
|
5
|
-
name : 'magellan-expedition',
|
6
|
-
|
7
|
-
version : '5.3.3',
|
8
|
-
|
9
|
-
settings : {
|
10
|
-
active_class: 'active',
|
11
|
-
threshold: 0, // pixels from the top of the expedition for it to become fixes
|
12
|
-
destination_threshold: 20, // pixels from the top of destination for it to be considered active
|
13
|
-
throttle_delay: 30, // calculation throttling to increase framerate
|
14
|
-
fixed_top: 0 // top distance in pixels assigend to the fixed element on scroll
|
15
|
-
},
|
16
|
-
|
17
|
-
init : function (scope, method, options) {
|
18
|
-
Foundation.inherit(this, 'throttle');
|
19
|
-
this.bindings(method, options);
|
20
|
-
},
|
21
|
-
|
22
|
-
events : function () {
|
23
|
-
var self = this,
|
24
|
-
S = self.S,
|
25
|
-
settings = self.settings;
|
26
|
-
|
27
|
-
// initialize expedition offset
|
28
|
-
self.set_expedition_position();
|
29
|
-
|
30
|
-
S(self.scope)
|
31
|
-
.off('.magellan')
|
32
|
-
.on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href^="#"]', function (e) {
|
33
|
-
e.preventDefault();
|
34
|
-
var expedition = $(this).closest('[' + self.attr_name() + ']'),
|
35
|
-
settings = expedition.data('magellan-expedition-init'),
|
36
|
-
hash = this.hash.split('#').join(''),
|
37
|
-
target = $("a[name='"+hash+"']");
|
38
|
-
|
39
|
-
if (target.length === 0) {
|
40
|
-
target = $('#'+hash);
|
41
|
-
|
42
|
-
}
|
43
|
-
|
44
|
-
|
45
|
-
// Account for expedition height if fixed position
|
46
|
-
var scroll_top = target.offset().top - settings.destination_threshold + 1;
|
47
|
-
scroll_top = scroll_top - expedition.outerHeight();
|
48
|
-
|
49
|
-
$('html, body').stop().animate({
|
50
|
-
'scrollTop': scroll_top
|
51
|
-
}, 700, 'swing', function () {
|
52
|
-
if(history.pushState) {
|
53
|
-
history.pushState(null, null, '#'+hash);
|
54
|
-
}
|
55
|
-
else {
|
56
|
-
location.hash = '#'+hash;
|
57
|
-
}
|
58
|
-
});
|
59
|
-
})
|
60
|
-
.on('scroll.fndtn.magellan', self.throttle(this.check_for_arrivals.bind(this), settings.throttle_delay));
|
61
|
-
|
62
|
-
$(window)
|
63
|
-
.on('resize.fndtn.magellan', self.throttle(this.set_expedition_position.bind(this), settings.throttle_delay));
|
64
|
-
},
|
65
|
-
|
66
|
-
check_for_arrivals : function() {
|
67
|
-
var self = this;
|
68
|
-
self.update_arrivals();
|
69
|
-
self.update_expedition_positions();
|
70
|
-
},
|
71
|
-
|
72
|
-
set_expedition_position : function() {
|
73
|
-
var self = this;
|
74
|
-
$('[' + this.attr_name() + '=fixed]', self.scope).each(function(idx, el) {
|
75
|
-
var expedition = $(this),
|
76
|
-
settings = expedition.data('magellan-expedition-init'),
|
77
|
-
styles = expedition.attr('styles'), // save styles
|
78
|
-
top_offset, fixed_top;
|
79
|
-
|
80
|
-
expedition.attr('style', '');
|
81
|
-
top_offset = expedition.offset().top + settings.threshold;
|
82
|
-
|
83
|
-
//set fixed-top by attribute
|
84
|
-
fixed_top = parseInt(expedition.data('magellan-fixed-top'));
|
85
|
-
if(!isNaN(fixed_top))
|
86
|
-
self.settings.fixed_top = fixed_top;
|
87
|
-
|
88
|
-
expedition.data(self.data_attr('magellan-top-offset'), top_offset);
|
89
|
-
expedition.attr('style', styles);
|
90
|
-
});
|
91
|
-
},
|
92
|
-
|
93
|
-
update_expedition_positions : function() {
|
94
|
-
var self = this,
|
95
|
-
window_top_offset = $(window).scrollTop();
|
96
|
-
|
97
|
-
$('[' + this.attr_name() + '=fixed]', self.scope).each(function() {
|
98
|
-
var expedition = $(this),
|
99
|
-
settings = expedition.data('magellan-expedition-init'),
|
100
|
-
styles = expedition.attr('style'), // save styles
|
101
|
-
top_offset = expedition.data('magellan-top-offset');
|
102
|
-
|
103
|
-
//scroll to the top distance
|
104
|
-
if (window_top_offset+self.settings.fixed_top >= top_offset) {
|
105
|
-
// Placeholder allows height calculations to be consistent even when
|
106
|
-
// appearing to switch between fixed/non-fixed placement
|
107
|
-
var placeholder = expedition.prev('[' + self.add_namespace('data-magellan-expedition-clone') + ']');
|
108
|
-
if (placeholder.length === 0) {
|
109
|
-
placeholder = expedition.clone();
|
110
|
-
placeholder.removeAttr(self.attr_name());
|
111
|
-
placeholder.attr(self.add_namespace('data-magellan-expedition-clone'),'');
|
112
|
-
expedition.before(placeholder);
|
113
|
-
}
|
114
|
-
expedition.css({position:'fixed', top: settings.fixed_top}).addClass('fixed');
|
115
|
-
} else {
|
116
|
-
expedition.prev('[' + self.add_namespace('data-magellan-expedition-clone') + ']').remove();
|
117
|
-
expedition.attr('style',styles).css('position','').css('top','').removeClass('fixed');
|
118
|
-
}
|
119
|
-
});
|
120
|
-
},
|
121
|
-
|
122
|
-
update_arrivals : function() {
|
123
|
-
var self = this,
|
124
|
-
window_top_offset = $(window).scrollTop();
|
125
|
-
|
126
|
-
$('[' + this.attr_name() + ']', self.scope).each(function() {
|
127
|
-
var expedition = $(this),
|
128
|
-
settings = expedition.data(self.attr_name(true) + '-init'),
|
129
|
-
offsets = self.offsets(expedition, window_top_offset),
|
130
|
-
arrivals = expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']'),
|
131
|
-
active_item = false;
|
132
|
-
offsets.each(function(idx, item) {
|
133
|
-
if (item.viewport_offset >= item.top_offset) {
|
134
|
-
var arrivals = expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']');
|
135
|
-
arrivals.not(item.arrival).removeClass(settings.active_class);
|
136
|
-
item.arrival.addClass(settings.active_class);
|
137
|
-
active_item = true;
|
138
|
-
return true;
|
139
|
-
}
|
140
|
-
});
|
141
|
-
|
142
|
-
if (!active_item) arrivals.removeClass(settings.active_class);
|
143
|
-
});
|
144
|
-
},
|
145
|
-
|
146
|
-
offsets : function(expedition, window_offset) {
|
147
|
-
var self = this,
|
148
|
-
settings = expedition.data(self.attr_name(true) + '-init'),
|
149
|
-
viewport_offset = window_offset;
|
150
|
-
|
151
|
-
return expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']').map(function(idx, el) {
|
152
|
-
var name = $(this).data(self.data_attr('magellan-arrival')),
|
153
|
-
dest = $('[' + self.add_namespace('data-magellan-destination') + '=' + name + ']');
|
154
|
-
if (dest.length > 0) {
|
155
|
-
var top_offset = Math.floor(dest.offset().top - settings.destination_threshold - expedition.outerHeight());
|
156
|
-
return {
|
157
|
-
destination : dest,
|
158
|
-
arrival : $(this),
|
159
|
-
top_offset : top_offset,
|
160
|
-
viewport_offset : viewport_offset
|
161
|
-
}
|
162
|
-
}
|
163
|
-
}).sort(function(a, b) {
|
164
|
-
if (a.top_offset < b.top_offset) return -1;
|
165
|
-
if (a.top_offset > b.top_offset) return 1;
|
166
|
-
return 0;
|
167
|
-
});
|
168
|
-
},
|
169
|
-
|
170
|
-
data_attr: function (str) {
|
171
|
-
if (this.namespace.length > 0) {
|
172
|
-
return this.namespace + '-' + str;
|
173
|
-
}
|
174
|
-
|
175
|
-
return str;
|
176
|
-
},
|
177
|
-
|
178
|
-
off : function () {
|
179
|
-
this.S(this.scope).off('.magellan');
|
180
|
-
this.S(window).off('.magellan');
|
181
|
-
},
|
182
|
-
|
183
|
-
reflow : function () {
|
184
|
-
var self = this;
|
185
|
-
// remove placeholder expeditions used for height calculation purposes
|
186
|
-
$('[' + self.add_namespace('data-magellan-expedition-clone') + ']', self.scope).remove();
|
187
|
-
}
|
188
|
-
};
|
189
|
-
}(jQuery, window, window.document));
|
data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.offcanvas.js
DELETED
@@ -1,139 +0,0 @@
|
|
1
|
-
;(function ($, window, document, undefined) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Foundation.libs.offcanvas = {
|
5
|
-
name : 'offcanvas',
|
6
|
-
|
7
|
-
version : '5.3.3',
|
8
|
-
|
9
|
-
settings : {
|
10
|
-
open_method: 'move',
|
11
|
-
close_on_click: false
|
12
|
-
},
|
13
|
-
|
14
|
-
init : function (scope, method, options) {
|
15
|
-
this.bindings(method, options);
|
16
|
-
},
|
17
|
-
|
18
|
-
events : function () {
|
19
|
-
var self = this,
|
20
|
-
S = self.S,
|
21
|
-
move_class = '',
|
22
|
-
right_postfix = '',
|
23
|
-
left_postfix = '';
|
24
|
-
|
25
|
-
if (this.settings.open_method === 'move') {
|
26
|
-
move_class = 'move-';
|
27
|
-
right_postfix = 'right';
|
28
|
-
left_postfix = 'left';
|
29
|
-
} else if (this.settings.open_method === 'overlap_single') {
|
30
|
-
move_class = 'offcanvas-overlap-';
|
31
|
-
right_postfix = 'right';
|
32
|
-
left_postfix = 'left';
|
33
|
-
} else if (this.settings.open_method === 'overlap') {
|
34
|
-
move_class = 'offcanvas-overlap';
|
35
|
-
}
|
36
|
-
|
37
|
-
S(this.scope).off('.offcanvas')
|
38
|
-
.on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
|
39
|
-
self.click_toggle_class(e, move_class + right_postfix);
|
40
|
-
if (self.settings.open_method !== 'overlap'){
|
41
|
-
S(".left-submenu").removeClass(move_class + right_postfix);
|
42
|
-
}
|
43
|
-
})
|
44
|
-
.on('click.fndtn.offcanvas', '.left-off-canvas-menu a', function (e) {
|
45
|
-
var settings = self.get_settings(e);
|
46
|
-
var parent = S(this).parent();
|
47
|
-
|
48
|
-
if(settings.close_on_click && !parent.hasClass("has-submenu") && !parent.hasClass("back")){
|
49
|
-
self.hide.call(self, move_class + right_postfix, self.get_wrapper(e));
|
50
|
-
parent.parent().removeClass(move_class + right_postfix);
|
51
|
-
}else if(S(this).parent().hasClass("has-submenu")){
|
52
|
-
e.preventDefault();
|
53
|
-
S(this).siblings(".left-submenu").toggleClass(move_class + right_postfix);
|
54
|
-
}else if(parent.hasClass("back")){
|
55
|
-
e.preventDefault();
|
56
|
-
parent.parent().removeClass(move_class + right_postfix);
|
57
|
-
}
|
58
|
-
})
|
59
|
-
.on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
|
60
|
-
self.click_toggle_class(e, move_class + left_postfix);
|
61
|
-
if (self.settings.open_method !== 'overlap'){
|
62
|
-
S(".right-submenu").removeClass(move_class + left_postfix);
|
63
|
-
}
|
64
|
-
})
|
65
|
-
.on('click.fndtn.offcanvas', '.right-off-canvas-menu a', function (e) {
|
66
|
-
var settings = self.get_settings(e);
|
67
|
-
var parent = S(this).parent();
|
68
|
-
|
69
|
-
if(settings.close_on_click && !parent.hasClass("has-submenu") && !parent.hasClass("back")){
|
70
|
-
self.hide.call(self, move_class + left_postfix, self.get_wrapper(e));
|
71
|
-
parent.parent().removeClass(move_class + left_postfix);
|
72
|
-
}else if(S(this).parent().hasClass("has-submenu")){
|
73
|
-
e.preventDefault();
|
74
|
-
S(this).siblings(".right-submenu").toggleClass(move_class + left_postfix);
|
75
|
-
}else if(parent.hasClass("back")){
|
76
|
-
e.preventDefault();
|
77
|
-
parent.parent().removeClass(move_class + left_postfix);
|
78
|
-
}
|
79
|
-
})
|
80
|
-
.on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
|
81
|
-
self.click_remove_class(e, move_class + left_postfix);
|
82
|
-
S(".right-submenu").removeClass(move_class + left_postfix);
|
83
|
-
if (right_postfix){
|
84
|
-
self.click_remove_class(e, move_class + right_postfix);
|
85
|
-
S(".left-submenu").removeClass(move_class + left_postfix);
|
86
|
-
}
|
87
|
-
});
|
88
|
-
},
|
89
|
-
|
90
|
-
toggle: function(class_name, $off_canvas) {
|
91
|
-
$off_canvas = $off_canvas || this.get_wrapper();
|
92
|
-
if ($off_canvas.is('.' + class_name)) {
|
93
|
-
this.hide(class_name, $off_canvas);
|
94
|
-
} else {
|
95
|
-
this.show(class_name, $off_canvas);
|
96
|
-
}
|
97
|
-
},
|
98
|
-
|
99
|
-
show: function(class_name, $off_canvas) {
|
100
|
-
$off_canvas = $off_canvas || this.get_wrapper();
|
101
|
-
$off_canvas.trigger('open').trigger('open.fndtn.offcanvas');
|
102
|
-
$off_canvas.addClass(class_name);
|
103
|
-
},
|
104
|
-
|
105
|
-
hide: function(class_name, $off_canvas) {
|
106
|
-
$off_canvas = $off_canvas || this.get_wrapper();
|
107
|
-
$off_canvas.trigger('close').trigger('close.fndtn.offcanvas');
|
108
|
-
$off_canvas.removeClass(class_name);
|
109
|
-
},
|
110
|
-
|
111
|
-
click_toggle_class: function(e, class_name) {
|
112
|
-
e.preventDefault();
|
113
|
-
var $off_canvas = this.get_wrapper(e);
|
114
|
-
this.toggle(class_name, $off_canvas);
|
115
|
-
},
|
116
|
-
|
117
|
-
click_remove_class: function(e, class_name) {
|
118
|
-
e.preventDefault();
|
119
|
-
var $off_canvas = this.get_wrapper(e);
|
120
|
-
this.hide(class_name, $off_canvas);
|
121
|
-
},
|
122
|
-
|
123
|
-
get_settings: function(e) {
|
124
|
-
var offcanvas = this.S(e.target).closest('[' + this.attr_name() + ']');
|
125
|
-
return offcanvas.data(this.attr_name(true) + '-init') || this.settings;
|
126
|
-
},
|
127
|
-
|
128
|
-
get_wrapper: function(e) {
|
129
|
-
var $off_canvas = this.S(e ? e.target : this.scope).closest('.off-canvas-wrap');
|
130
|
-
|
131
|
-
if ($off_canvas.length === 0) {
|
132
|
-
$off_canvas = this.S('.off-canvas-wrap');
|
133
|
-
}
|
134
|
-
return $off_canvas;
|
135
|
-
},
|
136
|
-
|
137
|
-
reflow : function () {}
|
138
|
-
};
|
139
|
-
}(jQuery, window, window.document));
|
data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.orbit.js
DELETED
@@ -1,472 +0,0 @@
|
|
1
|
-
;(function ($, window, document, undefined) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
var noop = function() {};
|
5
|
-
|
6
|
-
var Orbit = function(el, settings) {
|
7
|
-
// Don't reinitialize plugin
|
8
|
-
if (el.hasClass(settings.slides_container_class)) {
|
9
|
-
return this;
|
10
|
-
}
|
11
|
-
|
12
|
-
var self = this,
|
13
|
-
container,
|
14
|
-
slides_container = el,
|
15
|
-
number_container,
|
16
|
-
bullets_container,
|
17
|
-
timer_container,
|
18
|
-
idx = 0,
|
19
|
-
animate,
|
20
|
-
timer,
|
21
|
-
locked = false,
|
22
|
-
adjust_height_after = false;
|
23
|
-
|
24
|
-
|
25
|
-
self.slides = function() {
|
26
|
-
return slides_container.children(settings.slide_selector);
|
27
|
-
};
|
28
|
-
|
29
|
-
self.slides().first().addClass(settings.active_slide_class);
|
30
|
-
|
31
|
-
self.update_slide_number = function(index) {
|
32
|
-
if (settings.slide_number) {
|
33
|
-
number_container.find('span:first').text(parseInt(index)+1);
|
34
|
-
number_container.find('span:last').text(self.slides().length);
|
35
|
-
}
|
36
|
-
if (settings.bullets) {
|
37
|
-
bullets_container.children().removeClass(settings.bullets_active_class);
|
38
|
-
$(bullets_container.children().get(index)).addClass(settings.bullets_active_class);
|
39
|
-
}
|
40
|
-
};
|
41
|
-
|
42
|
-
self.update_active_link = function(index) {
|
43
|
-
var link = $('[data-orbit-link="'+self.slides().eq(index).attr('data-orbit-slide')+'"]');
|
44
|
-
link.siblings().removeClass(settings.bullets_active_class);
|
45
|
-
link.addClass(settings.bullets_active_class);
|
46
|
-
};
|
47
|
-
|
48
|
-
self.build_markup = function() {
|
49
|
-
slides_container.wrap('<div class="'+settings.container_class+'"></div>');
|
50
|
-
container = slides_container.parent();
|
51
|
-
slides_container.addClass(settings.slides_container_class);
|
52
|
-
|
53
|
-
if (settings.stack_on_small) {
|
54
|
-
container.addClass(settings.stack_on_small_class);
|
55
|
-
}
|
56
|
-
|
57
|
-
if (settings.navigation_arrows) {
|
58
|
-
container.append($('<a href="#"><span></span></a>').addClass(settings.prev_class));
|
59
|
-
container.append($('<a href="#"><span></span></a>').addClass(settings.next_class));
|
60
|
-
}
|
61
|
-
|
62
|
-
if (settings.timer) {
|
63
|
-
timer_container = $('<div>').addClass(settings.timer_container_class);
|
64
|
-
timer_container.append('<span>');
|
65
|
-
timer_container.append($('<div>').addClass(settings.timer_progress_class));
|
66
|
-
timer_container.addClass(settings.timer_paused_class);
|
67
|
-
container.append(timer_container);
|
68
|
-
}
|
69
|
-
|
70
|
-
if (settings.slide_number) {
|
71
|
-
number_container = $('<div>').addClass(settings.slide_number_class);
|
72
|
-
number_container.append('<span></span> ' + settings.slide_number_text + ' <span></span>');
|
73
|
-
container.append(number_container);
|
74
|
-
}
|
75
|
-
|
76
|
-
if (settings.bullets) {
|
77
|
-
bullets_container = $('<ol>').addClass(settings.bullets_container_class);
|
78
|
-
container.append(bullets_container);
|
79
|
-
bullets_container.wrap('<div class="orbit-bullets-container"></div>');
|
80
|
-
self.slides().each(function(idx, el) {
|
81
|
-
var bullet = $('<li>').attr('data-orbit-slide', idx).on('click', self.link_bullet);;
|
82
|
-
bullets_container.append(bullet);
|
83
|
-
});
|
84
|
-
}
|
85
|
-
|
86
|
-
};
|
87
|
-
|
88
|
-
self._goto = function(next_idx, start_timer) {
|
89
|
-
// if (locked) {return false;}
|
90
|
-
if (next_idx === idx) {return false;}
|
91
|
-
if (typeof timer === 'object') {timer.restart();}
|
92
|
-
var slides = self.slides();
|
93
|
-
|
94
|
-
var dir = 'next';
|
95
|
-
locked = true;
|
96
|
-
if (next_idx < idx) {dir = 'prev';}
|
97
|
-
if (next_idx >= slides.length) {
|
98
|
-
if (!settings.circular) return false;
|
99
|
-
next_idx = 0;
|
100
|
-
} else if (next_idx < 0) {
|
101
|
-
if (!settings.circular) return false;
|
102
|
-
next_idx = slides.length - 1;
|
103
|
-
}
|
104
|
-
|
105
|
-
var current = $(slides.get(idx));
|
106
|
-
var next = $(slides.get(next_idx));
|
107
|
-
|
108
|
-
current.css('zIndex', 2);
|
109
|
-
current.removeClass(settings.active_slide_class);
|
110
|
-
next.css('zIndex', 4).addClass(settings.active_slide_class);
|
111
|
-
|
112
|
-
slides_container.trigger('before-slide-change.fndtn.orbit');
|
113
|
-
settings.before_slide_change();
|
114
|
-
self.update_active_link(next_idx);
|
115
|
-
|
116
|
-
var callback = function() {
|
117
|
-
var unlock = function() {
|
118
|
-
idx = next_idx;
|
119
|
-
locked = false;
|
120
|
-
if (start_timer === true) {timer = self.create_timer(); timer.start();}
|
121
|
-
self.update_slide_number(idx);
|
122
|
-
slides_container.trigger('after-slide-change.fndtn.orbit',[{slide_number: idx, total_slides: slides.length}]);
|
123
|
-
settings.after_slide_change(idx, slides.length);
|
124
|
-
};
|
125
|
-
if (slides_container.height() != next.height() && settings.variable_height) {
|
126
|
-
slides_container.animate({'height': next.height()}, 250, 'linear', unlock);
|
127
|
-
} else {
|
128
|
-
unlock();
|
129
|
-
}
|
130
|
-
};
|
131
|
-
|
132
|
-
if (slides.length === 1) {callback(); return false;}
|
133
|
-
|
134
|
-
var start_animation = function() {
|
135
|
-
if (dir === 'next') {animate.next(current, next, callback);}
|
136
|
-
if (dir === 'prev') {animate.prev(current, next, callback);}
|
137
|
-
};
|
138
|
-
|
139
|
-
if (next.height() > slides_container.height() && settings.variable_height) {
|
140
|
-
slides_container.animate({'height': next.height()}, 250, 'linear', start_animation);
|
141
|
-
} else {
|
142
|
-
start_animation();
|
143
|
-
}
|
144
|
-
};
|
145
|
-
|
146
|
-
self.next = function(e) {
|
147
|
-
e.stopImmediatePropagation();
|
148
|
-
e.preventDefault();
|
149
|
-
self._goto(idx + 1);
|
150
|
-
};
|
151
|
-
|
152
|
-
self.prev = function(e) {
|
153
|
-
e.stopImmediatePropagation();
|
154
|
-
e.preventDefault();
|
155
|
-
self._goto(idx - 1);
|
156
|
-
};
|
157
|
-
|
158
|
-
self.link_custom = function(e) {
|
159
|
-
e.preventDefault();
|
160
|
-
var link = $(this).attr('data-orbit-link');
|
161
|
-
if ((typeof link === 'string') && (link = $.trim(link)) != "") {
|
162
|
-
var slide = container.find('[data-orbit-slide='+link+']');
|
163
|
-
if (slide.index() != -1) {self._goto(slide.index());}
|
164
|
-
}
|
165
|
-
};
|
166
|
-
|
167
|
-
self.link_bullet = function(e) {
|
168
|
-
var index = $(this).attr('data-orbit-slide');
|
169
|
-
if ((typeof index === 'string') && (index = $.trim(index)) != "") {
|
170
|
-
if(isNaN(parseInt(index)))
|
171
|
-
{
|
172
|
-
var slide = container.find('[data-orbit-slide='+index+']');
|
173
|
-
if (slide.index() != -1) {self._goto(slide.index() + 1);}
|
174
|
-
}
|
175
|
-
else
|
176
|
-
{
|
177
|
-
self._goto(parseInt(index));
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
}
|
182
|
-
|
183
|
-
self.timer_callback = function() {
|
184
|
-
self._goto(idx + 1, true);
|
185
|
-
}
|
186
|
-
|
187
|
-
self.compute_dimensions = function() {
|
188
|
-
var current = $(self.slides().get(idx));
|
189
|
-
var h = current.height();
|
190
|
-
if (!settings.variable_height) {
|
191
|
-
self.slides().each(function(){
|
192
|
-
if ($(this).height() > h) { h = $(this).height(); }
|
193
|
-
});
|
194
|
-
}
|
195
|
-
slides_container.height(h);
|
196
|
-
};
|
197
|
-
|
198
|
-
self.create_timer = function() {
|
199
|
-
var t = new Timer(
|
200
|
-
container.find('.'+settings.timer_container_class),
|
201
|
-
settings,
|
202
|
-
self.timer_callback
|
203
|
-
);
|
204
|
-
return t;
|
205
|
-
};
|
206
|
-
|
207
|
-
self.stop_timer = function() {
|
208
|
-
if (typeof timer === 'object') timer.stop();
|
209
|
-
};
|
210
|
-
|
211
|
-
self.toggle_timer = function() {
|
212
|
-
var t = container.find('.'+settings.timer_container_class);
|
213
|
-
if (t.hasClass(settings.timer_paused_class)) {
|
214
|
-
if (typeof timer === 'undefined') {timer = self.create_timer();}
|
215
|
-
timer.start();
|
216
|
-
}
|
217
|
-
else {
|
218
|
-
if (typeof timer === 'object') {timer.stop();}
|
219
|
-
}
|
220
|
-
};
|
221
|
-
|
222
|
-
self.init = function() {
|
223
|
-
self.build_markup();
|
224
|
-
if (settings.timer) {
|
225
|
-
timer = self.create_timer();
|
226
|
-
Foundation.utils.image_loaded(this.slides().children('img'), timer.start);
|
227
|
-
}
|
228
|
-
animate = new FadeAnimation(settings, slides_container);
|
229
|
-
if (settings.animation === 'slide')
|
230
|
-
animate = new SlideAnimation(settings, slides_container);
|
231
|
-
|
232
|
-
container.on('click', '.'+settings.next_class, self.next);
|
233
|
-
container.on('click', '.'+settings.prev_class, self.prev);
|
234
|
-
|
235
|
-
if (settings.next_on_click) {
|
236
|
-
container.on('click', '.'+settings.slides_container_class+' [data-orbit-slide]', self.link_bullet);
|
237
|
-
}
|
238
|
-
|
239
|
-
container.on('click', self.toggle_timer);
|
240
|
-
if (settings.swipe) {
|
241
|
-
container.on('touchstart.fndtn.orbit', function(e) {
|
242
|
-
if (!e.touches) {e = e.originalEvent;}
|
243
|
-
var data = {
|
244
|
-
start_page_x: e.touches[0].pageX,
|
245
|
-
start_page_y: e.touches[0].pageY,
|
246
|
-
start_time: (new Date()).getTime(),
|
247
|
-
delta_x: 0,
|
248
|
-
is_scrolling: undefined
|
249
|
-
};
|
250
|
-
container.data('swipe-transition', data);
|
251
|
-
e.stopPropagation();
|
252
|
-
})
|
253
|
-
.on('touchmove.fndtn.orbit', function(e) {
|
254
|
-
if (!e.touches) { e = e.originalEvent; }
|
255
|
-
// Ignore pinch/zoom events
|
256
|
-
if(e.touches.length > 1 || e.scale && e.scale !== 1) return;
|
257
|
-
|
258
|
-
var data = container.data('swipe-transition');
|
259
|
-
if (typeof data === 'undefined') {data = {};}
|
260
|
-
|
261
|
-
data.delta_x = e.touches[0].pageX - data.start_page_x;
|
262
|
-
|
263
|
-
if ( typeof data.is_scrolling === 'undefined') {
|
264
|
-
data.is_scrolling = !!( data.is_scrolling || Math.abs(data.delta_x) < Math.abs(e.touches[0].pageY - data.start_page_y) );
|
265
|
-
}
|
266
|
-
|
267
|
-
if (!data.is_scrolling && !data.active) {
|
268
|
-
e.preventDefault();
|
269
|
-
var direction = (data.delta_x < 0) ? (idx+1) : (idx-1);
|
270
|
-
data.active = true;
|
271
|
-
self._goto(direction);
|
272
|
-
}
|
273
|
-
})
|
274
|
-
.on('touchend.fndtn.orbit', function(e) {
|
275
|
-
container.data('swipe-transition', {});
|
276
|
-
e.stopPropagation();
|
277
|
-
})
|
278
|
-
}
|
279
|
-
container.on('mouseenter.fndtn.orbit', function(e) {
|
280
|
-
if (settings.timer && settings.pause_on_hover) {
|
281
|
-
self.stop_timer();
|
282
|
-
}
|
283
|
-
})
|
284
|
-
.on('mouseleave.fndtn.orbit', function(e) {
|
285
|
-
if (settings.timer && settings.resume_on_mouseout) {
|
286
|
-
timer.start();
|
287
|
-
}
|
288
|
-
});
|
289
|
-
|
290
|
-
$(document).on('click', '[data-orbit-link]', self.link_custom);
|
291
|
-
$(window).on('load resize', self.compute_dimensions);
|
292
|
-
Foundation.utils.image_loaded(this.slides().children('img'), self.compute_dimensions);
|
293
|
-
Foundation.utils.image_loaded(this.slides().children('img'), function() {
|
294
|
-
container.prev('.'+settings.preloader_class).css('display', 'none');
|
295
|
-
self.update_slide_number(0);
|
296
|
-
self.update_active_link(0);
|
297
|
-
slides_container.trigger('ready.fndtn.orbit');
|
298
|
-
});
|
299
|
-
};
|
300
|
-
|
301
|
-
self.init();
|
302
|
-
};
|
303
|
-
|
304
|
-
var Timer = function(el, settings, callback) {
|
305
|
-
var self = this,
|
306
|
-
duration = settings.timer_speed,
|
307
|
-
progress = el.find('.'+settings.timer_progress_class),
|
308
|
-
start,
|
309
|
-
timeout,
|
310
|
-
left = -1;
|
311
|
-
|
312
|
-
this.update_progress = function(w) {
|
313
|
-
var new_progress = progress.clone();
|
314
|
-
new_progress.attr('style', '');
|
315
|
-
new_progress.css('width', w+'%');
|
316
|
-
progress.replaceWith(new_progress);
|
317
|
-
progress = new_progress;
|
318
|
-
};
|
319
|
-
|
320
|
-
this.restart = function() {
|
321
|
-
clearTimeout(timeout);
|
322
|
-
el.addClass(settings.timer_paused_class);
|
323
|
-
left = -1;
|
324
|
-
self.update_progress(0);
|
325
|
-
};
|
326
|
-
|
327
|
-
this.start = function() {
|
328
|
-
if (!el.hasClass(settings.timer_paused_class)) {return true;}
|
329
|
-
left = (left === -1) ? duration : left;
|
330
|
-
el.removeClass(settings.timer_paused_class);
|
331
|
-
start = new Date().getTime();
|
332
|
-
progress.animate({'width': '100%'}, left, 'linear');
|
333
|
-
timeout = setTimeout(function() {
|
334
|
-
self.restart();
|
335
|
-
callback();
|
336
|
-
}, left);
|
337
|
-
el.trigger('timer-started.fndtn.orbit')
|
338
|
-
};
|
339
|
-
|
340
|
-
this.stop = function() {
|
341
|
-
if (el.hasClass(settings.timer_paused_class)) {return true;}
|
342
|
-
clearTimeout(timeout);
|
343
|
-
el.addClass(settings.timer_paused_class);
|
344
|
-
var end = new Date().getTime();
|
345
|
-
left = left - (end - start);
|
346
|
-
var w = 100 - ((left / duration) * 100);
|
347
|
-
self.update_progress(w);
|
348
|
-
el.trigger('timer-stopped.fndtn.orbit');
|
349
|
-
};
|
350
|
-
};
|
351
|
-
|
352
|
-
var SlideAnimation = function(settings, container) {
|
353
|
-
var duration = settings.animation_speed;
|
354
|
-
var is_rtl = ($('html[dir=rtl]').length === 1);
|
355
|
-
var margin = is_rtl ? 'marginRight' : 'marginLeft';
|
356
|
-
var animMargin = {};
|
357
|
-
animMargin[margin] = '0%';
|
358
|
-
|
359
|
-
this.next = function(current, next, callback) {
|
360
|
-
current.animate({marginLeft:'-100%'}, duration);
|
361
|
-
next.animate(animMargin, duration, function() {
|
362
|
-
current.css(margin, '100%');
|
363
|
-
callback();
|
364
|
-
});
|
365
|
-
};
|
366
|
-
|
367
|
-
this.prev = function(current, prev, callback) {
|
368
|
-
current.animate({marginLeft:'100%'}, duration);
|
369
|
-
prev.css(margin, '-100%');
|
370
|
-
prev.animate(animMargin, duration, function() {
|
371
|
-
current.css(margin, '100%');
|
372
|
-
callback();
|
373
|
-
});
|
374
|
-
};
|
375
|
-
};
|
376
|
-
|
377
|
-
var FadeAnimation = function(settings, container) {
|
378
|
-
var duration = settings.animation_speed;
|
379
|
-
var is_rtl = ($('html[dir=rtl]').length === 1);
|
380
|
-
var margin = is_rtl ? 'marginRight' : 'marginLeft';
|
381
|
-
|
382
|
-
this.next = function(current, next, callback) {
|
383
|
-
next.css({'margin':'0%', 'opacity':'0.01'});
|
384
|
-
next.animate({'opacity':'1'}, duration, 'linear', function() {
|
385
|
-
current.css('margin', '100%');
|
386
|
-
callback();
|
387
|
-
});
|
388
|
-
};
|
389
|
-
|
390
|
-
this.prev = function(current, prev, callback) {
|
391
|
-
prev.css({'margin':'0%', 'opacity':'0.01'});
|
392
|
-
prev.animate({'opacity':'1'}, duration, 'linear', function() {
|
393
|
-
current.css('margin', '100%');
|
394
|
-
callback();
|
395
|
-
});
|
396
|
-
};
|
397
|
-
};
|
398
|
-
|
399
|
-
|
400
|
-
Foundation.libs = Foundation.libs || {};
|
401
|
-
|
402
|
-
Foundation.libs.orbit = {
|
403
|
-
name: 'orbit',
|
404
|
-
|
405
|
-
version: '5.3.3',
|
406
|
-
|
407
|
-
settings: {
|
408
|
-
animation: 'slide',
|
409
|
-
timer_speed: 10000,
|
410
|
-
pause_on_hover: true,
|
411
|
-
resume_on_mouseout: false,
|
412
|
-
next_on_click: true,
|
413
|
-
animation_speed: 500,
|
414
|
-
stack_on_small: false,
|
415
|
-
navigation_arrows: true,
|
416
|
-
slide_number: true,
|
417
|
-
slide_number_text: 'of',
|
418
|
-
container_class: 'orbit-container',
|
419
|
-
stack_on_small_class: 'orbit-stack-on-small',
|
420
|
-
next_class: 'orbit-next',
|
421
|
-
prev_class: 'orbit-prev',
|
422
|
-
timer_container_class: 'orbit-timer',
|
423
|
-
timer_paused_class: 'paused',
|
424
|
-
timer_progress_class: 'orbit-progress',
|
425
|
-
slides_container_class: 'orbit-slides-container',
|
426
|
-
preloader_class: 'preloader',
|
427
|
-
slide_selector: '*',
|
428
|
-
bullets_container_class: 'orbit-bullets',
|
429
|
-
bullets_active_class: 'active',
|
430
|
-
slide_number_class: 'orbit-slide-number',
|
431
|
-
caption_class: 'orbit-caption',
|
432
|
-
active_slide_class: 'active',
|
433
|
-
orbit_transition_class: 'orbit-transitioning',
|
434
|
-
bullets: true,
|
435
|
-
circular: true,
|
436
|
-
timer: true,
|
437
|
-
variable_height: false,
|
438
|
-
swipe: true,
|
439
|
-
before_slide_change: noop,
|
440
|
-
after_slide_change: noop
|
441
|
-
},
|
442
|
-
|
443
|
-
init : function (scope, method, options) {
|
444
|
-
var self = this;
|
445
|
-
this.bindings(method, options);
|
446
|
-
},
|
447
|
-
|
448
|
-
events : function (instance) {
|
449
|
-
var orbit_instance = new Orbit(this.S(instance), this.S(instance).data('orbit-init'));
|
450
|
-
this.S(instance).data(this.name + '-instance', orbit_instance);
|
451
|
-
},
|
452
|
-
|
453
|
-
reflow : function () {
|
454
|
-
var self = this;
|
455
|
-
|
456
|
-
if (self.S(self.scope).is('[data-orbit]')) {
|
457
|
-
var $el = self.S(self.scope);
|
458
|
-
var instance = $el.data(self.name + '-instance');
|
459
|
-
instance.compute_dimensions();
|
460
|
-
} else {
|
461
|
-
self.S('[data-orbit]', self.scope).each(function(idx, el) {
|
462
|
-
var $el = self.S(el);
|
463
|
-
var opts = self.data_options($el);
|
464
|
-
var instance = $el.data(self.name + '-instance');
|
465
|
-
instance.compute_dimensions();
|
466
|
-
});
|
467
|
-
}
|
468
|
-
}
|
469
|
-
};
|
470
|
-
|
471
|
-
|
472
|
-
}(jQuery, window, window.document));
|