j1-template 2020.0.25 → 2021.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/modules/attics/generator.html +1 -1
- data/assets/data/carousel.json +7 -15
- data/assets/themes/j1/adapter/js/carousel.js +395 -32
- data/assets/themes/j1/adapter/js/rtable.js +3 -1
- data/assets/themes/j1/adapter/js/toccer.js +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +23 -3
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +1 -1
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +89 -36
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.css +443 -0
- data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.min.css +5 -0
- data/assets/themes/j1/modules/jquery/js/jqueryUI.js +18701 -0
- data/assets/themes/j1/modules/jquery/js/jqueryUI.min.js +13 -0
- data/assets/themes/j1/modules/kofax.7z +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +21 -90
- data/lib/starter_web/_data/apps/carousel.yml +157 -336
- data/lib/starter_web/_data/apps/defaults/carousel.yml +87 -86
- data/lib/starter_web/_data/layouts/collection.yml +6 -6
- data/lib/starter_web/_data/layouts/home.yml +0 -1
- data/lib/starter_web/_data/layouts/page.yml +1 -2
- data/lib/starter_web/_data/layouts/post.yml +1 -2
- data/lib/starter_web/_data/modules/fam.yml +45 -11
- data/lib/starter_web/_data/resources.yml +3 -2
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +48 -43
- data/lib/starter_web/assets/images/quotes/colored-1.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/colored-2.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/default.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/light-blue.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/people.jpg +0 -0
- data/lib/starter_web/package.json +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +6 -23
- data/lib/starter_web/pages/public/previewer/rouge.adoc +238 -4
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +12 -53
- data/assets/themes/j1/core/css/bootstrap.css +0 -7154
- data/assets/themes/j1/core/css/bootstrap.min.css +0 -6
- data/assets/themes/j1/core/css/custom.scss +0 -28
- data/assets/themes/j1/core/css/globals.css +0 -14523
- data/assets/themes/j1/core/css/globals.min.css +0 -1
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/assets/themes/j1/core/css/theme_extensions.css +0 -11558
- data/assets/themes/j1/core/css/theme_extensions.min.css +0 -1
- data/assets/themes/j1/core/css/uno.css +0 -11823
- data/assets/themes/j1/core/css/uno.min.css +0 -1
- data/assets/themes/j1/core/css/uno.scss +0 -28
- data/assets/themes/j1/core/css/vendor.scss +0 -28
- data/lib/starter_web/assets/images/quotes/default.png +0 -0
- data/lib/starter_web/assets/images/quotes/people.png +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2018-11-01-docker-using-shared-folders.adoc +0 -494
- data/lib/starter_web/collections/posts/public/test_posts/_posts/2020-09-11-test_post.adoc +0 -218
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/attributes.asciidoc +0 -34
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/tables/debug_variables.asciidoc +0 -48
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/tables/readme +0 -0
- data/lib/starter_web/pages/public/test_pages/_includes/attributes.asciidoc +0 -49
- data/lib/starter_web/pages/public/test_pages/_includes/documents/100_gistblock.asciidoc +0 -27
- data/lib/starter_web/pages/public/test_pages/_includes/tables/000_bem_specifiers.asciidoc +0 -22
- data/lib/starter_web/pages/public/test_pages/_includes/tables/000_specifier_examples.asciidoc +0 -56
- data/lib/starter_web/pages/public/test_pages/breadcrumbs_tester.adoc +0 -62
- data/lib/starter_web/pages/public/test_pages/carousel_captions.adoc +0 -1045
- data/lib/starter_web/pages/public/test_pages/deck_of_posts.adoc +0 -165
- data/lib/starter_web/pages/public/test_pages/floating_actions_button.adoc +0 -523
- data/lib/starter_web/pages/public/test_pages/floating_ad.adoc +0 -208
- data/lib/starter_web/pages/public/test_pages/floating_div.adoc +0 -196
- data/lib/starter_web/pages/public/test_pages/lunr_tester.adoc +0 -89
- data/lib/starter_web/pages/public/test_pages/nav_pagination_tester.adoc +0 -284
- data/lib/starter_web/pages/public/test_pages/page_attribute_tester.adoc +0 -196
- data/lib/starter_web/pages/public/test_pages/responsive_images.adoc +0 -213
- data/lib/starter_web/pages/public/test_pages/responsive_tables.adoc +0 -210
- data/lib/starter_web/pages/public/test_pages/toccer_tester.adoc +0 -2245
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/attributes.asciidoc +0 -117
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/100_gistblock.asciidoc +0 -27
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_table_3_column.asciidoc +0 -47
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/419_advanced_modals_html.asciidoc +0 -928
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_test_youtube_video.adoc +0 -141
- data/lib/starter_web/pages/public/test_pages/vtutorials/100_basic_video.adoc +0 -109
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c117fd0f5e2938a14137ad1ed0758ad85de6ca7dbfdd0b630a60ab98dbf3ce1
|
4
|
+
data.tar.gz: ec0a0fb9c01b4e07c7a0118f992a832f0d878b408fbc9697bc8ceaa27a33db6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72525ff02792cddd0b86eaeec8351fa3b7a4b57d0aafe6e01199ac0af8473371c8bfbda7bb2842bc12437c8d3c652830e6196ac6343020bc9f28f1fb7de073b4
|
7
|
+
data.tar.gz: 20f0175dd97f8d012d14f5690b73af3079efe05c667f4f8ae0a85e7595e1fcd5a65c57615d19d4a533127708fbeaae21296d8a27cf723c7ebe3687fd950b1e5c
|
@@ -119,7 +119,7 @@
|
|
119
119
|
{% comment %} Main
|
120
120
|
-------------------------------------------------------------------------------- {% endcomment %}
|
121
121
|
{% if attic %}
|
122
|
-
<!-- [INFO ] [j1.
|
122
|
+
<!-- [INFO ] [j1.modules.attics.generator.html ] [ place attic detected: {{attic}} ] -->
|
123
123
|
|
124
124
|
{% comment %} Place attic detected
|
125
125
|
------------------------------------------------------------------------------- {% endcomment %}
|
data/assets/data/carousel.json
CHANGED
@@ -42,28 +42,20 @@ regenerate: true
|
|
42
42
|
{% comment %} Process YML config data
|
43
43
|
================================================================================ {% endcomment %}
|
44
44
|
|
45
|
-
{% comment %} Set config files
|
46
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
47
|
-
{% assign apps = site.data.apps %}
|
48
|
-
|
49
45
|
{% comment %} Set config data
|
50
46
|
-------------------------------------------------------------------------------- {% endcomment %}
|
51
|
-
{% assign environment
|
52
|
-
|
53
|
-
{% assign carousel_config_defaults = apps.defaults.carousel.defaults %}
|
54
|
-
{% assign carousel_config_settings = apps.carousel.settings %}
|
47
|
+
{% assign environment = site.environment %}
|
55
48
|
|
56
|
-
{% comment %} Set config
|
49
|
+
{% comment %} Set config files
|
57
50
|
-------------------------------------------------------------------------------- {% endcomment %}
|
58
|
-
{% assign
|
51
|
+
{% assign apps = site.data.apps %}
|
59
52
|
|
60
|
-
{%
|
61
|
-
{%
|
62
|
-
|
63
|
-
{% endif %}
|
53
|
+
{% comment %} Set config data (carousel settings only)
|
54
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
55
|
+
{% assign carousel_settings = apps.carousel.settings %}
|
64
56
|
|
65
57
|
{
|
66
|
-
{% for item in
|
58
|
+
{% for item in carousel_settings.carousel %}
|
67
59
|
"{{item.show.id}}" : [
|
68
60
|
{% if item.show.type == 'image' %}
|
69
61
|
{% for image in item.show.images %}
|
@@ -86,6 +86,7 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
86
86
|
var _this;
|
87
87
|
var logger;
|
88
88
|
var logText;
|
89
|
+
var dragging = false;
|
89
90
|
|
90
91
|
// ---------------------------------------------------------------------------
|
91
92
|
// Helper functions
|
@@ -143,7 +144,13 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
143
144
|
{% assign slider_title = item.show.title %}
|
144
145
|
{% assign slider_type = item.show.type %}
|
145
146
|
{% assign parallax = item.show.parallax %}
|
146
|
-
{% assign
|
147
|
+
{% assign padding = item.show.padding %}
|
148
|
+
{% assign text_color = item.show.text_color %}
|
149
|
+
{% assign font_size = item.show.font_size %}
|
150
|
+
{% assign font_weight = item.show.font_weight %}
|
151
|
+
{% assign background = item.show.background %}
|
152
|
+
{% assign darken = item.show.darken %}
|
153
|
+
{% assign gridify = item.show.gridify %}
|
147
154
|
{% assign lazyLoad = item.show.lightbox %}
|
148
155
|
|
149
156
|
// Create an Carousel INSTANCE if slider on id: {{slider_id}} exists
|
@@ -175,26 +182,63 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
175
182
|
{% assign slide_border = "" %}
|
176
183
|
{% endif %}
|
177
184
|
|
178
|
-
//
|
185
|
+
// place HTML markup for the title
|
179
186
|
{% if slider_title %}
|
180
187
|
var slider_title = '<div class="slider-title">{{slider_title}}</div>';
|
181
188
|
$('#{{slider_id}}').before(slider_title);
|
182
189
|
{% endif %}
|
183
190
|
|
184
|
-
//
|
191
|
+
// set space between the slides
|
192
|
+
$('head').append('<style>.{{slider_id}}-item{margin: {{slide_space}}px;}</style>');
|
193
|
+
|
194
|
+
// place additional parallax styles if enabled
|
185
195
|
{% if parallax %}
|
186
|
-
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax{background:url(/assets/images/quotes/default.png) 50% 0 repeat fixed}</style>');
|
187
|
-
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax{padding:75px 0 75px 25px;position:relative}</style>');
|
188
|
-
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax{color:#e5e5e5;font-size:1.5rem;font-weight:400}</style>');
|
189
|
-
$('head').append('<!-- style>.parallax-slider__owl_demo_text_carousel_parallax{text-align:center}</style -->');
|
190
|
-
$('head').append('<!-- style>.parallax-slider__owl_demo_text_carousel_parallax{text-transform:uppercase}</style -->');
|
191
|
-
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax:before{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:url(/assets/images/modules/patterns/gridtile.png) repeat;}</style>');
|
192
|
-
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax:after{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:rgba(0,0,0,0.3)}</style>');
|
193
|
-
{% endif %}
|
194
196
|
|
195
|
-
|
196
|
-
|
197
|
-
|
197
|
+
{% if padding %}
|
198
|
+
$('head').append('<style>#{{slider_id}}{padding:{{padding}};position:relative}</style>');
|
199
|
+
{% else %}
|
200
|
+
$('head').append('<style>#{{slider_id}}{padding:50px 0 50px 25px;position:relative}</style>');
|
201
|
+
{% endif %}
|
202
|
+
|
203
|
+
{% if cover %}
|
204
|
+
$('head').append('<style>#{{slider_id}}{background-size: cover}</style>');
|
205
|
+
{% endif %}
|
206
|
+
|
207
|
+
{% if background %}
|
208
|
+
$('head').append('<style>#{{slider_id}}{background:url({{background}}) 50% 0 repeat fixed}</style>');
|
209
|
+
{% else %}
|
210
|
+
$('head').append('<style>#{{slider_id}}{background:url(/assets/images/quotes/default.png) 50% 0 repeat fixed}</style>');
|
211
|
+
{% endif %}
|
212
|
+
|
213
|
+
{% if darken %}
|
214
|
+
$('head').append('<style>#{{slider_id}}:after{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:rgba(0,0,0,0.{{darken}})}</style>');
|
215
|
+
{% else %}
|
216
|
+
$('head').append('<style>#{{slider_id}}:after{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:rgba(0,0,0,0.2)}</style>');
|
217
|
+
{% endif %}
|
218
|
+
|
219
|
+
{% if text_color %}
|
220
|
+
$('#{{slider_id}}').addClass('mdi-{{text_color}}');
|
221
|
+
{% else %}
|
222
|
+
$('#{{slider_id}}').addClass('mdi-md-grey-100');
|
223
|
+
{% endif %}
|
224
|
+
|
225
|
+
{% if font_size %}
|
226
|
+
$('head').append('<style>#{{slider_id}}{font-size:{{font_size}}}</style>');
|
227
|
+
{% else %}
|
228
|
+
$('head').append('<style>#{{slider_id}}{font-size:1.5rem}</style>');
|
229
|
+
{% endif %}
|
230
|
+
|
231
|
+
{% if font_weight %}
|
232
|
+
$('head').append('<style>#{{slider_id}}{font-weight:{{font_weight}}}</style>');
|
233
|
+
{% else %}
|
234
|
+
$('head').append('<style>#{{slider_id}}{font-weight:400}</style>');
|
235
|
+
{% endif %}
|
236
|
+
|
237
|
+
{% if gridify %}
|
238
|
+
$('head').append('<style>#{{slider_id}}:before{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:url(/assets/images/modules/patterns/gridtile.png) repeat;}</style>');
|
239
|
+
{% endif %}
|
240
|
+
|
241
|
+
{% endif %}
|
198
242
|
|
199
243
|
// Initialize individual show parameters
|
200
244
|
/* eslint-disable */
|
@@ -212,32 +256,26 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
212
256
|
/* eslint-enable */
|
213
257
|
|
214
258
|
// Initialize instance variable (for later access)
|
215
|
-
//{{slider_id}} = $('#{{slider_id}}').data('owlCarousel');
|
216
|
-
|
217
259
|
j1['{{slider_id}}'] = $('#{{slider_id}}').data('owlCarousel');
|
218
260
|
|
219
|
-
//
|
261
|
+
// custom show data functions (each slide show)
|
220
262
|
function customDataSuccess_{{forloop.index}}(data){
|
221
263
|
var content = '';
|
222
264
|
for (var i in data['{{slider_id}}']) {
|
223
|
-
|
224
|
-
var lb = data['{{slider_id}}'][i].lb;
|
225
|
-
var lb_caption = data['{{slider_id}}'][i].lb_caption;
|
226
|
-
var img = data['{{slider_id}}'][i].img;
|
227
|
-
var alt = data['{{slider_id}}'][i].alt;
|
228
|
-
{% endif %}
|
265
|
+
|
229
266
|
{% if slider_type == 'text' %}
|
230
267
|
var text = data['{{slider_id}}'][i].text;
|
231
268
|
{% endif %}
|
269
|
+
|
232
270
|
var href = data['{{slider_id}}'][i].href;
|
233
|
-
{% if css_classes %}
|
234
|
-
var css_classes = 'class="{{css_classes}}";';
|
235
|
-
{% else %}
|
236
|
-
var css_classes = '';
|
237
|
-
{% endif %}
|
238
271
|
|
239
272
|
{% if slider_type == 'image' %}
|
240
|
-
|
273
|
+
var lb = data['{{slider_id}}'][i].lb;
|
274
|
+
var lb_caption = data['{{slider_id}}'][i].lb_caption;
|
275
|
+
var img = data['{{slider_id}}'][i].img;
|
276
|
+
var alt = data['{{slider_id}}'][i].alt;
|
277
|
+
|
278
|
+
// if lightbox is enabled (preference over href)
|
241
279
|
if (lb) {
|
242
280
|
if (lb_caption) {
|
243
281
|
content += '\t\t' + '<div class="item {{slider_id}}-item {{slide_border}}">'+ '\n';
|
@@ -254,9 +292,9 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
254
292
|
content += '<a class="item" href="' +img+ '" ' + 'data-lightbox="{{slider_id}}"> <img class="lazyOwl" data-src="' +img+ '" alt="' +alt+ '">' + ' </a>';
|
255
293
|
}
|
256
294
|
} else if (href) {
|
257
|
-
content += '<div class="item">' + '<img
|
295
|
+
content += '<div class="item">' + '<img src="' +img+ '" alt="' +alt+ '">' + '</div>';
|
258
296
|
} else {
|
259
|
-
content += '<div class="item">' + '<img
|
297
|
+
content += '<div class="item">' + '<img src="' +img+ '" alt="' +alt+ '">' + '</div>';
|
260
298
|
}
|
261
299
|
{% endif %}
|
262
300
|
|
@@ -324,7 +362,332 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
324
362
|
// -------------------------------------------------------------------------
|
325
363
|
getState: function () {
|
326
364
|
return _this.state;
|
327
|
-
} // END getState
|
365
|
+
}, // END getState
|
366
|
+
|
367
|
+
// -----------------------------------------------------------------------
|
368
|
+
// Caption text animation (currently NOT used)
|
369
|
+
// -----------------------------------------------------------------------
|
370
|
+
|
371
|
+
// -------------------------------------------------------------------------
|
372
|
+
// fadeIn()
|
373
|
+
// Animation (caption): fadeIn
|
374
|
+
// -------------------------------------------------------------------------
|
375
|
+
fadeIn: function (id, options) {
|
376
|
+
$(id + '.active .caption .fadeIn-1').stop().delay(options.delay)
|
377
|
+
.animate({
|
378
|
+
opacity: options.opacity
|
379
|
+
}, {
|
380
|
+
duration: options.duration,
|
381
|
+
easing: options.easing
|
382
|
+
});
|
383
|
+
$(id + '.active .caption .fadeIn-2').stop().delay(options.delay+200)
|
384
|
+
.animate({
|
385
|
+
opacity: options.opacity
|
386
|
+
}, {
|
387
|
+
duration: options.duration,
|
388
|
+
easing: options.easing
|
389
|
+
});
|
390
|
+
$(id + '.active .caption .fadeIn-3').stop().delay(options.delay+500)
|
391
|
+
.animate({
|
392
|
+
opacity: options.opacity
|
393
|
+
}, {
|
394
|
+
duration: options.duration,
|
395
|
+
easing: options.easing
|
396
|
+
});
|
397
|
+
},
|
398
|
+
|
399
|
+
// -------------------------------------------------------------------------
|
400
|
+
// fadeInUp()
|
401
|
+
// Animation (caption): fadeInUp
|
402
|
+
// -------------------------------------------------------------------------
|
403
|
+
fadeInUp: function (id, options) {
|
404
|
+
$(id + '.active .caption .fadeInUp-1')
|
405
|
+
.stop()
|
406
|
+
.delay(options.delay)
|
407
|
+
.animate({
|
408
|
+
opacity: options.opacity,
|
409
|
+
top: options.top
|
410
|
+
}, {
|
411
|
+
duration: options.duration,
|
412
|
+
easing: options.easing
|
413
|
+
});
|
414
|
+
$(id + '.active .caption .fadeInUp-2')
|
415
|
+
.stop()
|
416
|
+
.delay(options.delay+200)
|
417
|
+
.animate({
|
418
|
+
opacity: options.opacity,
|
419
|
+
top: options.top
|
420
|
+
}, {
|
421
|
+
duration: 800,
|
422
|
+
easing: "easeOutCubic"
|
423
|
+
});
|
424
|
+
$(id + '.active .caption .fadeInUp-3')
|
425
|
+
.stop()
|
426
|
+
.delay(options.delay+500)
|
427
|
+
.animate({
|
428
|
+
opacity: options.opacity,
|
429
|
+
top: options.top
|
430
|
+
}, {
|
431
|
+
duration: options.duration,
|
432
|
+
easing: options.easing
|
433
|
+
});
|
434
|
+
},
|
435
|
+
|
436
|
+
// -------------------------------------------------------------------------
|
437
|
+
// fadeInRight()
|
438
|
+
// Animation (caption): fadeInRight
|
439
|
+
// -------------------------------------------------------------------------
|
440
|
+
fadeInRight: function (id, options) {
|
441
|
+
$(id + '.active .caption .fadeInRight-1')
|
442
|
+
.stop()
|
443
|
+
.delay(options.delay)
|
444
|
+
.animate({
|
445
|
+
opacity: options.opacity,
|
446
|
+
left: options.left
|
447
|
+
}, {
|
448
|
+
duration: options.duration,
|
449
|
+
easing: options.easing
|
450
|
+
});
|
451
|
+
$(id + '.active .caption .fadeInRight-2')
|
452
|
+
.stop()
|
453
|
+
.delay(options.delay+200)
|
454
|
+
.animate({
|
455
|
+
opacity: options.opacity,
|
456
|
+
left: options.left
|
457
|
+
}, {
|
458
|
+
duration: options.duration,
|
459
|
+
easing: options.easing
|
460
|
+
});
|
461
|
+
$(id + '.active .caption .fadeInRight-3')
|
462
|
+
.stop()
|
463
|
+
.delay(options.delay+500)
|
464
|
+
.animate({
|
465
|
+
opacity: options.opacity,
|
466
|
+
left: options.left
|
467
|
+
}, {
|
468
|
+
duration: options.duration,
|
469
|
+
easing: options.easing
|
470
|
+
});
|
471
|
+
},
|
472
|
+
|
473
|
+
// -------------------------------------------------------------------------
|
474
|
+
// fadeInDown()
|
475
|
+
// Animation (caption): fadeInDown
|
476
|
+
// -------------------------------------------------------------------------
|
477
|
+
fadeInDown: function (id, options) {
|
478
|
+
$('#item-1').backstretch();
|
479
|
+
$(id + '.active .caption .fadeInDown-1')
|
480
|
+
.stop()
|
481
|
+
.delay(options.delay)
|
482
|
+
.animate({
|
483
|
+
opacity: options.opacity,
|
484
|
+
top: options.top
|
485
|
+
}, {
|
486
|
+
duration: options.duration,
|
487
|
+
easing: options.easing
|
488
|
+
});
|
489
|
+
$(id + '.active .caption .fadeInDown-2')
|
490
|
+
.stop()
|
491
|
+
.delay(options.delay+200)
|
492
|
+
.animate({
|
493
|
+
opacity: options.opacity,
|
494
|
+
top: options.top
|
495
|
+
}, {
|
496
|
+
duration: options.duration,
|
497
|
+
easing: options.easing
|
498
|
+
});
|
499
|
+
$(id + '.active .caption .fadeInDown-3')
|
500
|
+
.stop()
|
501
|
+
.delay(options.delay+500)
|
502
|
+
.animate({
|
503
|
+
opacity: options.opacity,
|
504
|
+
top: options.top
|
505
|
+
}, {
|
506
|
+
duration: options.duration,
|
507
|
+
easing: options.easing
|
508
|
+
});
|
509
|
+
},
|
510
|
+
|
511
|
+
// -------------------------------------------------------------------------
|
512
|
+
// fadeInLeft()
|
513
|
+
// Animation (caption): fadeInLeft
|
514
|
+
// -------------------------------------------------------------------------
|
515
|
+
fadeInLeft: function (id, options) {
|
516
|
+
$('#item-2').backstretch();
|
517
|
+
$(id + '.active .caption .fadeInLeft-1')
|
518
|
+
.stop()
|
519
|
+
.delay(500)
|
520
|
+
.animate({
|
521
|
+
opacity: options.opacity,
|
522
|
+
top: options.left
|
523
|
+
}, {
|
524
|
+
duration: options.duration,
|
525
|
+
easing: options.easing
|
526
|
+
});
|
527
|
+
$(id + '.active .caption .fadeInLeft-2')
|
528
|
+
.stop()
|
529
|
+
.delay(700)
|
530
|
+
.animate({
|
531
|
+
opacity: options.opacity,
|
532
|
+
top: options.left
|
533
|
+
}, {
|
534
|
+
duration: options.duration,
|
535
|
+
easing: options.easing
|
536
|
+
});
|
537
|
+
$(id + '.active .caption .fadeInLeft-3')
|
538
|
+
.stop()
|
539
|
+
.delay(1000)
|
540
|
+
.animate({
|
541
|
+
opacity: options.opacity,
|
542
|
+
top: options.left
|
543
|
+
}, {
|
544
|
+
duration: options.duration,
|
545
|
+
easing: options.easing
|
546
|
+
});
|
547
|
+
},
|
548
|
+
|
549
|
+
// -------------------------------------------------------------------------
|
550
|
+
// fadeInReset()
|
551
|
+
// Reset animation (caption): fadeIn
|
552
|
+
// -------------------------------------------------------------------------
|
553
|
+
fadeInReset: function (id, options) {
|
554
|
+
if (!options.dragging) {
|
555
|
+
$(id + '.caption .fadeIn-1,' +
|
556
|
+
id + '.caption .fadeIn-2,' +
|
557
|
+
id + '.caption .fadeIn-3')
|
558
|
+
.stop()
|
559
|
+
.delay(options.delay)
|
560
|
+
.animate({
|
561
|
+
opacity: options.opacity
|
562
|
+
}, {
|
563
|
+
duration: options.duration,
|
564
|
+
easing: options.easing
|
565
|
+
});
|
566
|
+
} else {
|
567
|
+
$(id + '.caption .fadeIn-1,' +
|
568
|
+
id + '.caption .fadeIn-2,' +
|
569
|
+
id + '.caption .fadeIn-3')
|
570
|
+
.css({
|
571
|
+
opacity: options.opacity
|
572
|
+
});
|
573
|
+
}
|
574
|
+
}, // END fadeOut
|
575
|
+
|
576
|
+
// -------------------------------------------------------------------------
|
577
|
+
// fadeInUpReset()
|
578
|
+
// Reset animation (caption): fadeInUp
|
579
|
+
// -------------------------------------------------------------------------
|
580
|
+
fadeInUpReset: function (id, options) {
|
581
|
+
if (!options.dragging) {
|
582
|
+
$(id + '.caption .fadeInUp-1,' +
|
583
|
+
id + '.caption .fadeInUp-2,' +
|
584
|
+
id + '.caption .fadeInUp-3')
|
585
|
+
.stop()
|
586
|
+
.delay(options.delay)
|
587
|
+
.animate({
|
588
|
+
opacity: options.opacity,
|
589
|
+
top: options.top
|
590
|
+
}, {
|
591
|
+
duration: options.duration,
|
592
|
+
easing: options.easing
|
593
|
+
});
|
594
|
+
} else {
|
595
|
+
$(id + '.caption .fadeInUp-1', +
|
596
|
+
id + '.caption .fadeInUp-2,' +
|
597
|
+
id + '.caption .fadeInUp-3')
|
598
|
+
.css({
|
599
|
+
opacity: options.opacity,
|
600
|
+
top: options.top
|
601
|
+
});
|
602
|
+
}
|
603
|
+
}, // END fadeInUpReset
|
604
|
+
|
605
|
+
// -------------------------------------------------------------------------
|
606
|
+
// fadeInRightReset()
|
607
|
+
// Reset animation (caption): fadeInRight
|
608
|
+
// -------------------------------------------------------------------------
|
609
|
+
fadeInRightReset: function (id, options) {
|
610
|
+
if (!options.dragging) {
|
611
|
+
$(id + '.caption .fadeInRight-1,' +
|
612
|
+
id + '.caption .fadeInRight-2,' +
|
613
|
+
id + '.caption .fadeInRight-3')
|
614
|
+
.stop()
|
615
|
+
.delay(options.delay)
|
616
|
+
.animate({
|
617
|
+
opacity: options.opacity,
|
618
|
+
left: options.left
|
619
|
+
}, {
|
620
|
+
duration: options.duration,
|
621
|
+
easing: options.easing
|
622
|
+
});
|
623
|
+
} else {
|
624
|
+
$(id + '.caption .fadeInRight-1,' +
|
625
|
+
id + '.caption .fadeInRight-2,' +
|
626
|
+
id + '.caption .fadeInRight-3')
|
627
|
+
.css({
|
628
|
+
opacity: options.opacity,
|
629
|
+
left: options.left
|
630
|
+
});
|
631
|
+
}
|
632
|
+
}, // END fadeInRightReset
|
633
|
+
|
634
|
+
// -------------------------------------------------------------------------
|
635
|
+
// fadeOutDown()
|
636
|
+
// Reset animation (caption): fadeInDown
|
637
|
+
// -------------------------------------------------------------------------
|
638
|
+
fadeInDownReset: function (id, options) {
|
639
|
+
if (!options.dragging) {
|
640
|
+
$(id + '.caption .fadeInDown-1,' +
|
641
|
+
id + '.caption .fadeInDown-2,' +
|
642
|
+
id + '.caption .fadeInDown-3')
|
643
|
+
.stop()
|
644
|
+
.delay(options.delay)
|
645
|
+
.animate({
|
646
|
+
opacity: options.opacity,
|
647
|
+
top: options.top
|
648
|
+
}, {
|
649
|
+
duration: options.duration,
|
650
|
+
easing: options.easing
|
651
|
+
});
|
652
|
+
} else {
|
653
|
+
$(id + '.caption .fadeInDown-1,' +
|
654
|
+
id + '.caption .fadeInDown-2,' +
|
655
|
+
id + '.caption .fadeInDown-3')
|
656
|
+
.css({
|
657
|
+
opacity: options.opacity,
|
658
|
+
top: options.transitionTypes
|
659
|
+
});
|
660
|
+
}
|
661
|
+
}, // END fadeOutDown
|
662
|
+
|
663
|
+
// -------------------------------------------------------------------------
|
664
|
+
// fadeInLeftReset()
|
665
|
+
// Reset animation (caption): fadeInLeft
|
666
|
+
// -------------------------------------------------------------------------
|
667
|
+
fadeInLeftReset: function (id, options) {
|
668
|
+
if (!options.dragging) {
|
669
|
+
$(id + '.caption .fadeInLeft-1,' +
|
670
|
+
id + '.caption .fadeInLeft-2,' +
|
671
|
+
id + '.caption .fadeInLeft-3')
|
672
|
+
.stop()
|
673
|
+
.delay(options.delay)
|
674
|
+
.animate({
|
675
|
+
opacity: options.opacity,
|
676
|
+
left: options.left
|
677
|
+
}, {
|
678
|
+
duration: options.duration,
|
679
|
+
easing: options.easing
|
680
|
+
});
|
681
|
+
} else {
|
682
|
+
$(id + '.caption .fadeInLeft-1,' +
|
683
|
+
id + '.caption .fadeInLeft-2,' +
|
684
|
+
id + '.caption .fadeInLeft-3')
|
685
|
+
.css({
|
686
|
+
opacity: options.opacity,
|
687
|
+
left: options.left
|
688
|
+
});
|
689
|
+
}
|
690
|
+
}, // END fadeInLeftReset
|
328
691
|
|
329
692
|
}; // END return
|
330
693
|
|