catscope 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/bower.json +1 -0
- data/assets/bower_components/foundation/LICENSE +22 -0
- data/assets/bower_components/foundation/README.md +46 -0
- data/assets/bower_components/foundation/bower.json +2 -4
- data/assets/bower_components/foundation/css/foundation.css +1695 -1230
- data/assets/bower_components/foundation/css/foundation.css.map +1 -1
- data/assets/bower_components/foundation/css/foundation.min.css +1 -0
- data/assets/bower_components/foundation/css/normalize.css +9 -12
- data/assets/bower_components/foundation/css/normalize.css.map +1 -1
- data/assets/bower_components/foundation/css/normalize.min.css +1 -0
- data/assets/bower_components/foundation/js/foundation/foundation.abide.js +171 -75
- data/assets/bower_components/foundation/js/foundation/foundation.accordion.js +70 -12
- data/assets/bower_components/foundation/js/foundation/foundation.alert.js +5 -5
- data/assets/bower_components/foundation/js/foundation/foundation.clearing.js +84 -40
- data/assets/bower_components/foundation/js/foundation/foundation.dropdown.js +104 -79
- data/assets/bower_components/foundation/js/foundation/foundation.equalizer.js +57 -26
- data/assets/bower_components/foundation/js/foundation/foundation.interchange.js +50 -38
- data/assets/bower_components/foundation/js/foundation/foundation.joyride.js +121 -110
- data/assets/bower_components/foundation/js/foundation/foundation.js +121 -79
- data/assets/bower_components/foundation/js/foundation/foundation.magellan.js +75 -59
- data/assets/bower_components/foundation/js/foundation/foundation.offcanvas.js +95 -22
- data/assets/bower_components/foundation/js/foundation/foundation.orbit.js +127 -123
- data/assets/bower_components/foundation/js/foundation/foundation.reveal.js +147 -69
- data/assets/bower_components/foundation/js/foundation/foundation.slider.js +101 -72
- data/assets/bower_components/foundation/js/foundation/foundation.tab.js +52 -39
- data/assets/bower_components/foundation/js/foundation/foundation.tooltip.js +97 -49
- data/assets/bower_components/foundation/js/foundation/foundation.topbar.js +70 -57
- data/assets/bower_components/foundation/js/foundation.js +1544 -951
- data/assets/bower_components/foundation/js/foundation.min.js +5 -4
- data/assets/bower_components/foundation/js/vendor/fastclick.js +8 -9
- data/assets/bower_components/foundation/js/vendor/jquery.js +6 -6
- data/assets/bower_components/foundation/js/vendor/modernizr.js +1 -1
- data/assets/bower_components/foundation/package.json +57 -0
- data/assets/bower_components/foundation/scss/foundation/_functions.scss +53 -43
- data/assets/bower_components/foundation/scss/foundation/_settings.scss +59 -37
- data/assets/bower_components/foundation/scss/foundation/components/_accordion.scss +12 -8
- data/assets/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +12 -12
- data/assets/bower_components/foundation/scss/foundation/components/_block-grid.scss +14 -13
- data/assets/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +19 -19
- data/assets/bower_components/foundation/scss/foundation/components/_button-groups.scss +33 -25
- data/assets/bower_components/foundation/scss/foundation/components/_buttons.scss +30 -28
- data/assets/bower_components/foundation/scss/foundation/components/_clearing.scss +51 -47
- data/assets/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +10 -11
- data/assets/bower_components/foundation/scss/foundation/components/_dropdown.scss +45 -38
- data/assets/bower_components/foundation/scss/foundation/components/_flex-video.scss +7 -7
- data/assets/bower_components/foundation/scss/foundation/components/_forms.scss +99 -62
- data/assets/bower_components/foundation/scss/foundation/components/_global.scss +152 -67
- data/assets/bower_components/foundation/scss/foundation/components/_grid.scss +39 -36
- data/assets/bower_components/foundation/scss/foundation/components/_icon-bar.scss +337 -235
- data/assets/bower_components/foundation/scss/foundation/components/_inline-lists.scss +9 -8
- data/assets/bower_components/foundation/scss/foundation/components/_joyride.scss +40 -42
- data/assets/bower_components/foundation/scss/foundation/components/_keystrokes.scss +2 -3
- data/assets/bower_components/foundation/scss/foundation/components/_labels.scss +6 -6
- data/assets/bower_components/foundation/scss/foundation/components/_magellan.scss +2 -2
- data/assets/bower_components/foundation/scss/foundation/components/_offcanvas.scss +259 -168
- data/assets/bower_components/foundation/scss/foundation/components/_orbit.scss +82 -62
- data/assets/bower_components/foundation/scss/foundation/components/_pagination.scss +16 -15
- data/assets/bower_components/foundation/scss/foundation/components/_panels.scss +21 -15
- data/assets/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +16 -16
- data/assets/bower_components/foundation/scss/foundation/components/_progress-bars.scss +10 -4
- data/assets/bower_components/foundation/scss/foundation/components/_range-slider.scss +28 -20
- data/assets/bower_components/foundation/scss/foundation/components/_reveal.scss +38 -28
- data/assets/bower_components/foundation/scss/foundation/components/_side-nav.scss +15 -11
- data/assets/bower_components/foundation/scss/foundation/components/_split-buttons.scss +22 -18
- data/assets/bower_components/foundation/scss/foundation/components/_sub-nav.scss +14 -12
- data/assets/bower_components/foundation/scss/foundation/components/_switches.scss +22 -19
- data/assets/bower_components/foundation/scss/foundation/components/_tables.scss +8 -8
- data/assets/bower_components/foundation/scss/foundation/components/_tabs.scss +50 -31
- data/assets/bower_components/foundation/scss/foundation/components/_thumbs.scss +8 -8
- data/assets/bower_components/foundation/scss/foundation/components/_tooltips.scss +25 -25
- data/assets/bower_components/foundation/scss/foundation/components/_top-bar.scss +176 -122
- data/assets/bower_components/foundation/scss/foundation/components/_type.scss +38 -38
- data/assets/bower_components/foundation/scss/foundation/components/_visibility.scss +33 -16
- data/assets/bower_components/foundation/scss/foundation.scss +37 -40
- data/assets/bower_components/foundation/scss/normalize.scss +8 -11
- data/assets/bower_components/jquery/bower.json +2 -1
- data/assets/bower_components/jquery/dist/jquery.js +9 -4
- data/assets/bower_components/jquery/dist/jquery.min.js +4 -4
- data/assets/bower_components/jquery/dist/jquery.min.map +1 -1
- data/assets/bower_components/jquery/src/core.js +6 -1
- data/assets/scss/_settings.scss +2 -0
- data/assets/stylesheets/app.css +3066 -2429
- data/lib/catscope/version.rb +1 -1
- data/lib/catscope/views/layout.erb +6 -2
- metadata +8 -4
- data/assets/bower_components/foundation/scss/foundation/components/_toolbar.scss +0 -70
@@ -1,9 +1,9 @@
|
|
1
1
|
;(function ($, window, document, undefined) {
|
2
2
|
'use strict';
|
3
3
|
|
4
|
-
var noop = function() {};
|
4
|
+
var noop = function () {};
|
5
5
|
|
6
|
-
var Orbit = function(el, settings) {
|
6
|
+
var Orbit = function (el, settings) {
|
7
7
|
// Don't reinitialize plugin
|
8
8
|
if (el.hasClass(settings.slides_container_class)) {
|
9
9
|
return this;
|
@@ -21,16 +21,15 @@
|
|
21
21
|
locked = false,
|
22
22
|
adjust_height_after = false;
|
23
23
|
|
24
|
-
|
25
|
-
self.slides = function() {
|
24
|
+
self.slides = function () {
|
26
25
|
return slides_container.children(settings.slide_selector);
|
27
26
|
};
|
28
27
|
|
29
28
|
self.slides().first().addClass(settings.active_slide_class);
|
30
29
|
|
31
|
-
self.update_slide_number = function(index) {
|
30
|
+
self.update_slide_number = function (index) {
|
32
31
|
if (settings.slide_number) {
|
33
|
-
number_container.find('span:first').text(parseInt(index)+1);
|
32
|
+
number_container.find('span:first').text(parseInt(index) + 1);
|
34
33
|
number_container.find('span:last').text(self.slides().length);
|
35
34
|
}
|
36
35
|
if (settings.bullets) {
|
@@ -39,14 +38,14 @@
|
|
39
38
|
}
|
40
39
|
};
|
41
40
|
|
42
|
-
self.update_active_link = function(index) {
|
43
|
-
var link = $('[data-orbit-link="'+self.slides().eq(index).attr('data-orbit-slide')+'"]');
|
41
|
+
self.update_active_link = function (index) {
|
42
|
+
var link = $('[data-orbit-link="' + self.slides().eq(index).attr('data-orbit-slide') + '"]');
|
44
43
|
link.siblings().removeClass(settings.bullets_active_class);
|
45
44
|
link.addClass(settings.bullets_active_class);
|
46
45
|
};
|
47
46
|
|
48
|
-
self.build_markup = function() {
|
49
|
-
slides_container.wrap('<div class="'+settings.container_class+'"></div>');
|
47
|
+
self.build_markup = function () {
|
48
|
+
slides_container.wrap('<div class="' + settings.container_class + '"></div>');
|
50
49
|
container = slides_container.parent();
|
51
50
|
slides_container.addClass(settings.slides_container_class);
|
52
51
|
|
@@ -77,7 +76,7 @@
|
|
77
76
|
bullets_container = $('<ol>').addClass(settings.bullets_container_class);
|
78
77
|
container.append(bullets_container);
|
79
78
|
bullets_container.wrap('<div class="orbit-bullets-container"></div>');
|
80
|
-
self.slides().each(function(idx, el) {
|
79
|
+
self.slides().each(function (idx, el) {
|
81
80
|
var bullet = $('<li>').attr('data-orbit-slide', idx).on('click', self.link_bullet);;
|
82
81
|
bullets_container.append(bullet);
|
83
82
|
});
|
@@ -85,7 +84,7 @@
|
|
85
84
|
|
86
85
|
};
|
87
86
|
|
88
|
-
self._goto = function(next_idx, start_timer) {
|
87
|
+
self._goto = function (next_idx, start_timer) {
|
89
88
|
// if (locked) {return false;}
|
90
89
|
if (next_idx === idx) {return false;}
|
91
90
|
if (typeof timer === 'object') {timer.restart();}
|
@@ -95,10 +94,14 @@
|
|
95
94
|
locked = true;
|
96
95
|
if (next_idx < idx) {dir = 'prev';}
|
97
96
|
if (next_idx >= slides.length) {
|
98
|
-
if (!settings.circular)
|
97
|
+
if (!settings.circular) {
|
98
|
+
return false;
|
99
|
+
}
|
99
100
|
next_idx = 0;
|
100
101
|
} else if (next_idx < 0) {
|
101
|
-
if (!settings.circular)
|
102
|
+
if (!settings.circular) {
|
103
|
+
return false;
|
104
|
+
}
|
102
105
|
next_idx = slides.length - 1;
|
103
106
|
}
|
104
107
|
|
@@ -113,13 +116,13 @@
|
|
113
116
|
settings.before_slide_change();
|
114
117
|
self.update_active_link(next_idx);
|
115
118
|
|
116
|
-
var callback = function() {
|
117
|
-
var unlock = function() {
|
119
|
+
var callback = function () {
|
120
|
+
var unlock = function () {
|
118
121
|
idx = next_idx;
|
119
122
|
locked = false;
|
120
123
|
if (start_timer === true) {timer = self.create_timer(); timer.start();}
|
121
124
|
self.update_slide_number(idx);
|
122
|
-
slides_container.trigger('after-slide-change.fndtn.orbit',[{slide_number: idx, total_slides: slides.length}]);
|
125
|
+
slides_container.trigger('after-slide-change.fndtn.orbit', [{slide_number : idx, total_slides : slides.length}]);
|
123
126
|
settings.after_slide_change(idx, slides.length);
|
124
127
|
};
|
125
128
|
if (slides_container.outerHeight() != next.outerHeight() && settings.variable_height) {
|
@@ -131,7 +134,7 @@
|
|
131
134
|
|
132
135
|
if (slides.length === 1) {callback(); return false;}
|
133
136
|
|
134
|
-
var start_animation = function() {
|
137
|
+
var start_animation = function () {
|
135
138
|
if (dir === 'next') {animate.next(current, next, callback);}
|
136
139
|
if (dir === 'prev') {animate.prev(current, next, callback);}
|
137
140
|
};
|
@@ -143,48 +146,45 @@
|
|
143
146
|
}
|
144
147
|
};
|
145
148
|
|
146
|
-
self.next = function(e) {
|
149
|
+
self.next = function (e) {
|
147
150
|
e.stopImmediatePropagation();
|
148
151
|
e.preventDefault();
|
149
152
|
self._goto(idx + 1);
|
150
153
|
};
|
151
154
|
|
152
|
-
self.prev = function(e) {
|
155
|
+
self.prev = function (e) {
|
153
156
|
e.stopImmediatePropagation();
|
154
157
|
e.preventDefault();
|
155
158
|
self._goto(idx - 1);
|
156
159
|
};
|
157
160
|
|
158
|
-
self.link_custom = function(e) {
|
161
|
+
self.link_custom = function (e) {
|
159
162
|
e.preventDefault();
|
160
163
|
var link = $(this).attr('data-orbit-link');
|
161
164
|
if ((typeof link === 'string') && (link = $.trim(link)) != '') {
|
162
|
-
var slide = container.find('[data-orbit-slide='+link+']');
|
165
|
+
var slide = container.find('[data-orbit-slide=' + link + ']');
|
163
166
|
if (slide.index() != -1) {self._goto(slide.index());}
|
164
167
|
}
|
165
168
|
};
|
166
169
|
|
167
|
-
self.link_bullet = function(e) {
|
170
|
+
self.link_bullet = function (e) {
|
168
171
|
var index = $(this).attr('data-orbit-slide');
|
169
172
|
if ((typeof index === 'string') && (index = $.trim(index)) != '') {
|
170
|
-
if(isNaN(parseInt(index)))
|
171
|
-
|
172
|
-
var slide = container.find('[data-orbit-slide='+index+']');
|
173
|
+
if (isNaN(parseInt(index))) {
|
174
|
+
var slide = container.find('[data-orbit-slide=' + index + ']');
|
173
175
|
if (slide.index() != -1) {self._goto(slide.index() + 1);}
|
174
|
-
}
|
175
|
-
else
|
176
|
-
{
|
176
|
+
} else {
|
177
177
|
self._goto(parseInt(index));
|
178
178
|
}
|
179
179
|
}
|
180
180
|
|
181
181
|
}
|
182
182
|
|
183
|
-
self.timer_callback = function() {
|
183
|
+
self.timer_callback = function () {
|
184
184
|
self._goto(idx + 1, true);
|
185
185
|
}
|
186
186
|
|
187
|
-
self.compute_dimensions = function() {
|
187
|
+
self.compute_dimensions = function () {
|
188
188
|
var current = $(self.slides().get(idx));
|
189
189
|
var h = current.outerHeight();
|
190
190
|
if (!settings.variable_height) {
|
@@ -195,65 +195,71 @@
|
|
195
195
|
slides_container.height(h);
|
196
196
|
};
|
197
197
|
|
198
|
-
self.create_timer = function() {
|
198
|
+
self.create_timer = function () {
|
199
199
|
var t = new Timer(
|
200
|
-
container.find('.'+settings.timer_container_class),
|
200
|
+
container.find('.' + settings.timer_container_class),
|
201
201
|
settings,
|
202
202
|
self.timer_callback
|
203
203
|
);
|
204
204
|
return t;
|
205
205
|
};
|
206
206
|
|
207
|
-
self.stop_timer = function() {
|
208
|
-
if (typeof timer === 'object')
|
207
|
+
self.stop_timer = function () {
|
208
|
+
if (typeof timer === 'object') {
|
209
|
+
timer.stop();
|
210
|
+
}
|
209
211
|
};
|
210
212
|
|
211
|
-
self.toggle_timer = function() {
|
212
|
-
var t = container.find('.'+settings.timer_container_class);
|
213
|
+
self.toggle_timer = function () {
|
214
|
+
var t = container.find('.' + settings.timer_container_class);
|
213
215
|
if (t.hasClass(settings.timer_paused_class)) {
|
214
216
|
if (typeof timer === 'undefined') {timer = self.create_timer();}
|
215
217
|
timer.start();
|
216
|
-
}
|
217
|
-
else {
|
218
|
+
} else {
|
218
219
|
if (typeof timer === 'object') {timer.stop();}
|
219
220
|
}
|
220
221
|
};
|
221
222
|
|
222
|
-
self.init = function() {
|
223
|
+
self.init = function () {
|
223
224
|
self.build_markup();
|
224
225
|
if (settings.timer) {
|
225
226
|
timer = self.create_timer();
|
226
227
|
Foundation.utils.image_loaded(this.slides().children('img'), timer.start);
|
227
228
|
}
|
228
229
|
animate = new FadeAnimation(settings, slides_container);
|
229
|
-
if (settings.animation === 'slide')
|
230
|
+
if (settings.animation === 'slide') {
|
230
231
|
animate = new SlideAnimation(settings, slides_container);
|
232
|
+
}
|
231
233
|
|
232
|
-
container.on('click', '.'+settings.next_class, self.next);
|
233
|
-
container.on('click', '.'+settings.prev_class, self.prev);
|
234
|
+
container.on('click', '.' + settings.next_class, self.next);
|
235
|
+
container.on('click', '.' + settings.prev_class, self.prev);
|
234
236
|
|
235
237
|
if (settings.next_on_click) {
|
236
|
-
container.on('click', '.'+settings.slides_container_class+' [data-orbit-slide]', self.link_bullet);
|
238
|
+
container.on('click', '.' + settings.slides_container_class + ' [data-orbit-slide]', self.link_bullet);
|
237
239
|
}
|
238
240
|
|
239
241
|
container.on('click', self.toggle_timer);
|
240
242
|
if (settings.swipe) {
|
241
|
-
container.on('touchstart.fndtn.orbit', function(e) {
|
243
|
+
container.on('touchstart.fndtn.orbit', function (e) {
|
242
244
|
if (!e.touches) {e = e.originalEvent;}
|
243
245
|
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
|
246
|
+
start_page_x : e.touches[0].pageX,
|
247
|
+
start_page_y : e.touches[0].pageY,
|
248
|
+
start_time : (new Date()).getTime(),
|
249
|
+
delta_x : 0,
|
250
|
+
is_scrolling : undefined
|
249
251
|
};
|
250
252
|
container.data('swipe-transition', data);
|
251
253
|
e.stopPropagation();
|
252
254
|
})
|
253
|
-
.on('touchmove.fndtn.orbit', function(e) {
|
254
|
-
if (!e.touches) {
|
255
|
+
.on('touchmove.fndtn.orbit', function (e) {
|
256
|
+
if (!e.touches) {
|
257
|
+
e = e.originalEvent;
|
258
|
+
}
|
255
259
|
// Ignore pinch/zoom events
|
256
|
-
if(e.touches.length > 1 || e.scale && e.scale !== 1)
|
260
|
+
if (e.touches.length > 1 || e.scale && e.scale !== 1) {
|
261
|
+
return;
|
262
|
+
}
|
257
263
|
|
258
264
|
var data = container.data('swipe-transition');
|
259
265
|
if (typeof data === 'undefined') {data = {};}
|
@@ -266,22 +272,22 @@
|
|
266
272
|
|
267
273
|
if (!data.is_scrolling && !data.active) {
|
268
274
|
e.preventDefault();
|
269
|
-
var direction = (data.delta_x < 0) ? (idx+1) : (idx-1);
|
275
|
+
var direction = (data.delta_x < 0) ? (idx + 1) : (idx - 1);
|
270
276
|
data.active = true;
|
271
277
|
self._goto(direction);
|
272
278
|
}
|
273
279
|
})
|
274
|
-
.on('touchend.fndtn.orbit', function(e) {
|
280
|
+
.on('touchend.fndtn.orbit', function (e) {
|
275
281
|
container.data('swipe-transition', {});
|
276
282
|
e.stopPropagation();
|
277
283
|
})
|
278
284
|
}
|
279
|
-
container.on('mouseenter.fndtn.orbit', function(e) {
|
285
|
+
container.on('mouseenter.fndtn.orbit', function (e) {
|
280
286
|
if (settings.timer && settings.pause_on_hover) {
|
281
287
|
self.stop_timer();
|
282
288
|
}
|
283
289
|
})
|
284
|
-
.on('mouseleave.fndtn.orbit', function(e) {
|
290
|
+
.on('mouseleave.fndtn.orbit', function (e) {
|
285
291
|
if (settings.timer && settings.resume_on_mouseout) {
|
286
292
|
timer.start();
|
287
293
|
}
|
@@ -290,8 +296,8 @@
|
|
290
296
|
$(document).on('click', '[data-orbit-link]', self.link_custom);
|
291
297
|
$(window).on('load resize', self.compute_dimensions);
|
292
298
|
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');
|
299
|
+
Foundation.utils.image_loaded(this.slides().children('img'), function () {
|
300
|
+
container.prev('.' + settings.preloader_class).css('display', 'none');
|
295
301
|
self.update_slide_number(0);
|
296
302
|
self.update_active_link(0);
|
297
303
|
slides_container.trigger('ready.fndtn.orbit');
|
@@ -301,43 +307,43 @@
|
|
301
307
|
self.init();
|
302
308
|
};
|
303
309
|
|
304
|
-
var Timer = function(el, settings, callback) {
|
310
|
+
var Timer = function (el, settings, callback) {
|
305
311
|
var self = this,
|
306
312
|
duration = settings.timer_speed,
|
307
|
-
progress = el.find('.'+settings.timer_progress_class),
|
313
|
+
progress = el.find('.' + settings.timer_progress_class),
|
308
314
|
start,
|
309
315
|
timeout,
|
310
316
|
left = -1;
|
311
317
|
|
312
|
-
this.update_progress = function(w) {
|
318
|
+
this.update_progress = function (w) {
|
313
319
|
var new_progress = progress.clone();
|
314
320
|
new_progress.attr('style', '');
|
315
|
-
new_progress.css('width', w+'%');
|
321
|
+
new_progress.css('width', w + '%');
|
316
322
|
progress.replaceWith(new_progress);
|
317
323
|
progress = new_progress;
|
318
324
|
};
|
319
325
|
|
320
|
-
this.restart = function() {
|
326
|
+
this.restart = function () {
|
321
327
|
clearTimeout(timeout);
|
322
328
|
el.addClass(settings.timer_paused_class);
|
323
329
|
left = -1;
|
324
330
|
self.update_progress(0);
|
325
331
|
};
|
326
332
|
|
327
|
-
this.start = function() {
|
333
|
+
this.start = function () {
|
328
334
|
if (!el.hasClass(settings.timer_paused_class)) {return true;}
|
329
335
|
left = (left === -1) ? duration : left;
|
330
336
|
el.removeClass(settings.timer_paused_class);
|
331
337
|
start = new Date().getTime();
|
332
|
-
progress.animate({'width': '100%'}, left, 'linear');
|
333
|
-
timeout = setTimeout(function() {
|
338
|
+
progress.animate({'width' : '100%'}, left, 'linear');
|
339
|
+
timeout = setTimeout(function () {
|
334
340
|
self.restart();
|
335
341
|
callback();
|
336
342
|
}, left);
|
337
343
|
el.trigger('timer-started.fndtn.orbit')
|
338
344
|
};
|
339
345
|
|
340
|
-
this.stop = function() {
|
346
|
+
this.stop = function () {
|
341
347
|
if (el.hasClass(settings.timer_paused_class)) {return true;}
|
342
348
|
clearTimeout(timeout);
|
343
349
|
el.addClass(settings.timer_paused_class);
|
@@ -349,95 +355,94 @@
|
|
349
355
|
};
|
350
356
|
};
|
351
357
|
|
352
|
-
var SlideAnimation = function(settings, container) {
|
358
|
+
var SlideAnimation = function (settings, container) {
|
353
359
|
var duration = settings.animation_speed;
|
354
360
|
var is_rtl = ($('html[dir=rtl]').length === 1);
|
355
361
|
var margin = is_rtl ? 'marginRight' : 'marginLeft';
|
356
362
|
var animMargin = {};
|
357
363
|
animMargin[margin] = '0%';
|
358
364
|
|
359
|
-
this.next = function(current, next, callback) {
|
360
|
-
current.animate({marginLeft:'-100%'}, duration);
|
361
|
-
next.animate(animMargin, duration, function() {
|
365
|
+
this.next = function (current, next, callback) {
|
366
|
+
current.animate({marginLeft : '-100%'}, duration);
|
367
|
+
next.animate(animMargin, duration, function () {
|
362
368
|
current.css(margin, '100%');
|
363
369
|
callback();
|
364
370
|
});
|
365
371
|
};
|
366
372
|
|
367
|
-
this.prev = function(current, prev, callback) {
|
368
|
-
current.animate({marginLeft:'100%'}, duration);
|
373
|
+
this.prev = function (current, prev, callback) {
|
374
|
+
current.animate({marginLeft : '100%'}, duration);
|
369
375
|
prev.css(margin, '-100%');
|
370
|
-
prev.animate(animMargin, duration, function() {
|
376
|
+
prev.animate(animMargin, duration, function () {
|
371
377
|
current.css(margin, '100%');
|
372
378
|
callback();
|
373
379
|
});
|
374
380
|
};
|
375
381
|
};
|
376
382
|
|
377
|
-
var FadeAnimation = function(settings, container) {
|
383
|
+
var FadeAnimation = function (settings, container) {
|
378
384
|
var duration = settings.animation_speed;
|
379
385
|
var is_rtl = ($('html[dir=rtl]').length === 1);
|
380
386
|
var margin = is_rtl ? 'marginRight' : 'marginLeft';
|
381
387
|
|
382
|
-
this.next = function(current, next, callback) {
|
383
|
-
next.css({'margin':'0%', 'opacity':'0.01'});
|
384
|
-
next.animate({'opacity':'1'}, duration, 'linear', function() {
|
388
|
+
this.next = function (current, next, callback) {
|
389
|
+
next.css({'margin' : '0%', 'opacity' : '0.01'});
|
390
|
+
next.animate({'opacity' :'1'}, duration, 'linear', function () {
|
385
391
|
current.css('margin', '100%');
|
386
392
|
callback();
|
387
393
|
});
|
388
394
|
};
|
389
395
|
|
390
|
-
this.prev = function(current, prev, callback) {
|
391
|
-
prev.css({'margin':'0%', 'opacity':'0.01'});
|
392
|
-
prev.animate({'opacity':'1'}, duration, 'linear', function() {
|
396
|
+
this.prev = function (current, prev, callback) {
|
397
|
+
prev.css({'margin' : '0%', 'opacity' : '0.01'});
|
398
|
+
prev.animate({'opacity' : '1'}, duration, 'linear', function () {
|
393
399
|
current.css('margin', '100%');
|
394
400
|
callback();
|
395
401
|
});
|
396
402
|
};
|
397
403
|
};
|
398
404
|
|
399
|
-
|
400
405
|
Foundation.libs = Foundation.libs || {};
|
401
406
|
|
402
407
|
Foundation.libs.orbit = {
|
403
|
-
name: 'orbit',
|
404
|
-
|
405
|
-
version: '5.5.
|
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
|
408
|
+
name : 'orbit',
|
409
|
+
|
410
|
+
version : '5.5.3',
|
411
|
+
|
412
|
+
settings : {
|
413
|
+
animation : 'slide',
|
414
|
+
timer_speed : 10000,
|
415
|
+
pause_on_hover : true,
|
416
|
+
resume_on_mouseout : false,
|
417
|
+
next_on_click : true,
|
418
|
+
animation_speed : 500,
|
419
|
+
stack_on_small : false,
|
420
|
+
navigation_arrows : true,
|
421
|
+
slide_number : true,
|
422
|
+
slide_number_text : 'of',
|
423
|
+
container_class : 'orbit-container',
|
424
|
+
stack_on_small_class : 'orbit-stack-on-small',
|
425
|
+
next_class : 'orbit-next',
|
426
|
+
prev_class : 'orbit-prev',
|
427
|
+
timer_container_class : 'orbit-timer',
|
428
|
+
timer_paused_class : 'paused',
|
429
|
+
timer_progress_class : 'orbit-progress',
|
430
|
+
slides_container_class : 'orbit-slides-container',
|
431
|
+
preloader_class : 'preloader',
|
432
|
+
slide_selector : '*',
|
433
|
+
bullets_container_class : 'orbit-bullets',
|
434
|
+
bullets_active_class : 'active',
|
435
|
+
slide_number_class : 'orbit-slide-number',
|
436
|
+
caption_class : 'orbit-caption',
|
437
|
+
active_slide_class : 'active',
|
438
|
+
orbit_transition_class : 'orbit-transitioning',
|
439
|
+
bullets : true,
|
440
|
+
circular : true,
|
441
|
+
timer : true,
|
442
|
+
variable_height : false,
|
443
|
+
swipe : true,
|
444
|
+
before_slide_change : noop,
|
445
|
+
after_slide_change : noop
|
441
446
|
},
|
442
447
|
|
443
448
|
init : function (scope, method, options) {
|
@@ -458,7 +463,7 @@
|
|
458
463
|
var instance = $el.data(self.name + '-instance');
|
459
464
|
instance.compute_dimensions();
|
460
465
|
} else {
|
461
|
-
self.S('[data-orbit]', self.scope).each(function(idx, el) {
|
466
|
+
self.S('[data-orbit]', self.scope).each(function (idx, el) {
|
462
467
|
var $el = self.S(el);
|
463
468
|
var opts = self.data_options($el);
|
464
469
|
var instance = $el.data(self.name + '-instance');
|
@@ -468,5 +473,4 @@
|
|
468
473
|
}
|
469
474
|
};
|
470
475
|
|
471
|
-
|
472
476
|
}(jQuery, window, window.document));
|