jekyll-theme-glueckkanja 0.8.3 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/_sass/font-awesome/scss/_icons.scss +91 -0
- data/_sass/font-awesome/scss/_rotated-flipped.scss +3 -2
- data/_sass/font-awesome/scss/_variables.scss +93 -1
- data/_sass/font-awesome/scss/brands.scss +1 -4
- data/_sass/font-awesome/scss/fontawesome.scss +0 -4
- data/_sass/font-awesome/scss/regular.scss +1 -4
- data/_sass/font-awesome/scss/solid.scss +1 -4
- data/_sass/font-awesome/scss/v4-shims.scss +0 -4
- data/assets/favicons/de.svg +5 -0
- data/assets/favicons/gk-logo-white.png +0 -0
- data/assets/favicons/us.svg +10 -0
- data/assets/img/cbp-sprite.png +0 -0
- data/assets/js/components/_hs.dropdown.js +612 -0
- data/assets/js/components/gmap/hs.map.js +347 -0
- data/assets/js/components/hs.ajax-autocomplete.js +103 -0
- data/assets/js/components/hs.autocomplete-local-search.js +113 -0
- data/assets/js/components/hs.autocomplete.js +125 -0
- data/assets/js/components/hs.bg-video.js +70 -0
- data/assets/js/components/hs.carousel-materialize.js +75 -0
- data/assets/js/components/hs.carousel-owl.js +89 -0
- data/assets/js/components/hs.carousel-swiper.js +123 -0
- data/assets/js/components/hs.carousel.js +283 -0
- data/assets/js/components/hs.chart-pie.js +220 -0
- data/assets/js/components/hs.chart.js +155 -0
- data/assets/js/components/hs.count-qty.js +92 -0
- data/assets/js/components/hs.countdown.js +359 -0
- data/assets/js/components/hs.counter.js +220 -0
- data/assets/js/components/hs.cubeportfolio.js +163 -0
- data/assets/js/components/hs.datepicker.js +149 -0
- data/assets/js/components/hs.dropdown.js +522 -0
- data/assets/js/components/hs.file-attachement.js +135 -0
- data/assets/js/components/hs.flickr.js +180 -0
- data/assets/js/components/hs.go-to.js +121 -0
- data/assets/js/components/hs.header-fullscreen.js +397 -0
- data/assets/js/components/hs.header-side.js +1096 -0
- data/assets/js/components/hs.header.js +2128 -0
- data/assets/js/components/hs.instagram.js +94 -0
- data/assets/js/components/hs.map.pin.js +82 -0
- data/assets/js/components/hs.map.svg.js +80 -0
- data/assets/js/components/hs.markup-copy.js +102 -0
- data/assets/js/components/hs.masked-input.js +74 -0
- data/assets/js/components/hs.modal-event.js +134 -0
- data/assets/js/components/hs.modal-window.js +422 -0
- data/assets/js/components/hs.navigation.js +690 -0
- data/assets/js/components/hs.nl-form.js +70 -0
- data/assets/js/components/hs.onscroll-animation.js +190 -0
- data/assets/js/components/hs.popup.js +310 -0
- data/assets/js/components/hs.progress-bar.js +353 -0
- data/assets/js/components/hs.rating.js +153 -0
- data/assets/js/components/hs.scroll-nav.js +373 -0
- data/assets/js/components/hs.scrollbar.js +102 -0
- data/assets/js/components/hs.select.js +91 -0
- data/assets/js/components/hs.slider.js +99 -0
- data/assets/js/components/hs.smart-menu.js +233 -0
- data/assets/js/components/hs.step-form-old.js +94 -0
- data/assets/js/components/hs.step-form.js +93 -0
- data/assets/js/components/hs.sticky-block.js +418 -0
- data/assets/js/components/hs.tabs.js +186 -0
- data/assets/js/components/hs.twitter.js +111 -0
- data/assets/js/components/hs.validation.js +111 -0
- data/assets/js/components/hs.video-audio.js +70 -0
- data/assets/js/components/text-animation/hs.text-slideshow.js +348 -0
- data/assets/js/helpers/hs.bg-video.js +23 -0
- data/assets/js/helpers/hs.chart.js +66 -0
- data/assets/js/helpers/hs.compressed-form.js +55 -0
- data/assets/js/helpers/hs.file-attachments.js +39 -0
- data/assets/js/helpers/hs.focus-state.js +37 -0
- data/assets/js/helpers/hs.hamburgers.js +69 -0
- data/assets/js/helpers/hs.height-calc.js +31 -0
- data/assets/js/helpers/hs.hover-blocks.js +43 -0
- data/assets/js/helpers/hs.modal-markup.js +89 -0
- data/assets/js/helpers/hs.navigation-splitted.js +169 -0
- data/assets/js/helpers/hs.not-empty-state.js +34 -0
- data/assets/js/helpers/hs.rating.js +45 -0
- data/assets/js/helpers/hs.selecter.js +14 -0
- data/assets/js/helpers/hs.shortcode-filter.js +39 -0
- data/assets/js/hs.core.js +250 -0
- data/assets/js/hs.popup.js +155 -0
- data/assets/js/vendor/jquery.cubeportfolio.js +6054 -0
- data/assets/js/vendor/jquery.fancybox.js +4936 -0
- data/assets/nav/pixel-trans.png +0 -0
- data/assets/nav/pixel-trans@2x.png +0 -0
- metadata +75 -1
@@ -0,0 +1,70 @@
|
|
1
|
+
/**
|
2
|
+
* Background video wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSBgVideo = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {},
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* @var jQuery pageCollection
|
24
|
+
*/
|
25
|
+
pageCollection: $(),
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Initialization of Video and audio wrapper.
|
29
|
+
*
|
30
|
+
* @param String selector (optional)
|
31
|
+
* @param Object config (optional)
|
32
|
+
*
|
33
|
+
* @return jQuery pageCollection - collection of initialized items.
|
34
|
+
*/
|
35
|
+
|
36
|
+
init: function (selector, config) {
|
37
|
+
|
38
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
39
|
+
if (!$(selector).length) return;
|
40
|
+
|
41
|
+
this.config = config && $.isPlainObject(config) ?
|
42
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
43
|
+
|
44
|
+
this.config.itemSelector = selector;
|
45
|
+
|
46
|
+
this.initBgVideo();
|
47
|
+
|
48
|
+
return this.pageCollection;
|
49
|
+
|
50
|
+
},
|
51
|
+
|
52
|
+
initBgVideo: function () {
|
53
|
+
//Variables
|
54
|
+
var $this = this,
|
55
|
+
collection = $this.pageCollection;
|
56
|
+
|
57
|
+
//Actions
|
58
|
+
this.collection.each(function (i, el) {
|
59
|
+
//Variables
|
60
|
+
var $bgVideo = $(el);
|
61
|
+
|
62
|
+
$bgVideo.hsBgVideo();
|
63
|
+
|
64
|
+
//Add object to collection
|
65
|
+
collection = collection.add($bgVideo);
|
66
|
+
});
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
})(jQuery);
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* Carousel Materialize wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSCarouselMaterialize = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {
|
19
|
+
dist: -50
|
20
|
+
},
|
21
|
+
|
22
|
+
/**
|
23
|
+
*
|
24
|
+
*
|
25
|
+
* @var jQuery pageCollection
|
26
|
+
*/
|
27
|
+
pageCollection: $(),
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Initialization of Carousel wrapper.
|
31
|
+
*
|
32
|
+
* @param String selector (optional)
|
33
|
+
* @param Object config (optional)
|
34
|
+
*
|
35
|
+
* @return jQuery pageCollection - collection of initialized items.
|
36
|
+
*/
|
37
|
+
|
38
|
+
init: function (selector, config) {
|
39
|
+
|
40
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
41
|
+
if (!$(selector).length) return;
|
42
|
+
|
43
|
+
this.config = config && $.isPlainObject(config) ?
|
44
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
45
|
+
|
46
|
+
this.config.itemSelector = selector;
|
47
|
+
|
48
|
+
this.initCarouselMaterialize();
|
49
|
+
|
50
|
+
return this.pageCollection;
|
51
|
+
|
52
|
+
},
|
53
|
+
|
54
|
+
initCarouselMaterialize: function () {
|
55
|
+
//Variables
|
56
|
+
var $self = this,
|
57
|
+
config = $self.config,
|
58
|
+
collection = $self.pageCollection;
|
59
|
+
|
60
|
+
//Actions
|
61
|
+
this.collection.each(function (i, el) {
|
62
|
+
//Variables
|
63
|
+
var $this = $(el);
|
64
|
+
|
65
|
+
$this.materializeCarousel({
|
66
|
+
dist: -50
|
67
|
+
});
|
68
|
+
|
69
|
+
//Actions
|
70
|
+
collection = collection.add($this);
|
71
|
+
});
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
})(jQuery);
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/**
|
2
|
+
* Carousel wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSCarouselOwl = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {},
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
*
|
23
|
+
* @var jQuery pageCollection
|
24
|
+
*/
|
25
|
+
pageCollection: $(),
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Initialization of Owl Carousel wrapper.
|
29
|
+
*
|
30
|
+
* @param String selector (optional)
|
31
|
+
* @param Object config (optional)
|
32
|
+
*
|
33
|
+
* @return jQuery pageCollection - collection of initialized items.
|
34
|
+
*/
|
35
|
+
|
36
|
+
init: function (selector, config) {
|
37
|
+
|
38
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
39
|
+
if (!$(selector).length) return;
|
40
|
+
|
41
|
+
this.config = config && $.isPlainObject(config) ?
|
42
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
43
|
+
|
44
|
+
this.config.itemSelector = selector;
|
45
|
+
|
46
|
+
this.initOwlCarousel();
|
47
|
+
|
48
|
+
return this.pageCollection;
|
49
|
+
|
50
|
+
},
|
51
|
+
|
52
|
+
initOwlCarousel: function () {
|
53
|
+
//Variables
|
54
|
+
var $self, config, collection;
|
55
|
+
//Variables values
|
56
|
+
$self = this;
|
57
|
+
config = $self.config;
|
58
|
+
collection = $self.pageCollection;
|
59
|
+
|
60
|
+
//Actions
|
61
|
+
this.collection.each(function (i, el) {
|
62
|
+
//Variables
|
63
|
+
var $this = $(el),
|
64
|
+
setAutoplay = $this.data('autoplay'),
|
65
|
+
setAnimateIn = $this.data('animate-in'),
|
66
|
+
setAnimateOut = $this.data('animate-out');
|
67
|
+
|
68
|
+
$this.owlCarousel({
|
69
|
+
loop: true,
|
70
|
+
items: 1,
|
71
|
+
autoplay: setAutoplay ? true : config['autoplay'],
|
72
|
+
animateIn: setAnimateIn ? setAnimateIn : false,
|
73
|
+
animateOut: setAnimateOut ? setAnimateOut : false,
|
74
|
+
onTranslate: function(event) {
|
75
|
+
$(event.target.children[0].children).addClass('js-origin');
|
76
|
+
},
|
77
|
+
onTranslated: function(event) {
|
78
|
+
$(event.target.children[0].children).removeClass('js-origin');
|
79
|
+
}
|
80
|
+
});
|
81
|
+
|
82
|
+
//Actions
|
83
|
+
collection = collection.add($this);
|
84
|
+
});
|
85
|
+
}
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
})(jQuery);
|
@@ -0,0 +1,123 @@
|
|
1
|
+
/**
|
2
|
+
* Carousel wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
//Back Slide Effect
|
13
|
+
Swiper.prototype.plugins.backSlide = function (swiper) {
|
14
|
+
if (swiper.params.effect !== 'backSlide') return;
|
15
|
+
|
16
|
+
return {
|
17
|
+
onSetTranslate: function () {
|
18
|
+
var slidesWrapper = swiper.wrapper;
|
19
|
+
|
20
|
+
$(slidesWrapper).addClass('js-origin');
|
21
|
+
},
|
22
|
+
onSetTransition: function () {
|
23
|
+
var slideActive = swiper.slides[swiper.activeIndex],
|
24
|
+
nextIndex = function () {
|
25
|
+
if (swiper.activeIndex - 1 != -1) {
|
26
|
+
return swiper.activeIndex - 1;
|
27
|
+
} else {
|
28
|
+
return 0;
|
29
|
+
}
|
30
|
+
},
|
31
|
+
slideNext = swiper.slides[nextIndex()];
|
32
|
+
|
33
|
+
console.log(swiper.slides[swiper.activeIndex - 1]);
|
34
|
+
|
35
|
+
$(slideActive).addClass('js-back-slide-in');
|
36
|
+
$(slideNext).addClass('js-back-slide-out');
|
37
|
+
},
|
38
|
+
onTransitionEnd: function () {
|
39
|
+
var slidesWrapper = swiper.wrapper;
|
40
|
+
|
41
|
+
setTimeout(function() {
|
42
|
+
$(slidesWrapper).removeClass('js-origin');
|
43
|
+
|
44
|
+
for (var i = 0; i < swiper.slides.length; i++) {
|
45
|
+
var allSlides = swiper.slides[i];
|
46
|
+
|
47
|
+
$(allSlides).removeClass('js-back-slide-in js-back-slide-out');
|
48
|
+
}
|
49
|
+
}, 800);
|
50
|
+
}
|
51
|
+
};
|
52
|
+
};
|
53
|
+
|
54
|
+
$.HSCore.components.HSCarouselSwiper = {
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
*
|
58
|
+
* @var Object _baseConfig
|
59
|
+
*/
|
60
|
+
_baseConfig: {},
|
61
|
+
|
62
|
+
/**
|
63
|
+
*
|
64
|
+
*
|
65
|
+
* @var jQuery pageCollection
|
66
|
+
*/
|
67
|
+
pageCollection: $(),
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Initialization of Carousel Swiper wrapper.
|
71
|
+
*
|
72
|
+
* @param String selector (optional)
|
73
|
+
* @param Object config (optional)
|
74
|
+
*
|
75
|
+
* @return jQuery pageCollection - collection of initialized items.
|
76
|
+
*/
|
77
|
+
|
78
|
+
init: function (selector, config) {
|
79
|
+
|
80
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
81
|
+
if (!$(selector).length) return;
|
82
|
+
|
83
|
+
this.config = config && $.isPlainObject(config) ?
|
84
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
85
|
+
|
86
|
+
this.config.itemSelector = selector;
|
87
|
+
|
88
|
+
this.initCarouselSwiper();
|
89
|
+
|
90
|
+
return this.pageCollection;
|
91
|
+
},
|
92
|
+
|
93
|
+
initCarouselSwiper: function () {
|
94
|
+
//Variables
|
95
|
+
var $self, config, collection;
|
96
|
+
//Variables values
|
97
|
+
$self = this;
|
98
|
+
config = $self.config;
|
99
|
+
collection = $self.pageCollection;
|
100
|
+
|
101
|
+
//Actions
|
102
|
+
this.collection.each(function (i, el) {
|
103
|
+
//Variables
|
104
|
+
var $this = $(el),
|
105
|
+
setAutoplay = $this.data('autoplay'),
|
106
|
+
setEffect = $this.data('effect');
|
107
|
+
|
108
|
+
i = new Swiper(el, {
|
109
|
+
slidesPerView: 1,
|
110
|
+
loop: true,
|
111
|
+
autoplay: setAutoplay ? 2000 : false,
|
112
|
+
|
113
|
+
effect: setEffect ? setEffect : 'slide'
|
114
|
+
});
|
115
|
+
|
116
|
+
//Actions
|
117
|
+
collection = collection.add($this);
|
118
|
+
});
|
119
|
+
}
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
})(jQuery);
|
@@ -0,0 +1,283 @@
|
|
1
|
+
/**
|
2
|
+
* Carousel wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSCarousel = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {
|
19
|
+
autoplay: false,
|
20
|
+
infinite: true
|
21
|
+
},
|
22
|
+
|
23
|
+
/**
|
24
|
+
*
|
25
|
+
*
|
26
|
+
* @var jQuery pageCollection
|
27
|
+
*/
|
28
|
+
pageCollection: $(),
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Initialization of Carousel wrapper.
|
32
|
+
*
|
33
|
+
* @param String selector (optional)
|
34
|
+
* @param Object config (optional)
|
35
|
+
*
|
36
|
+
* @return jQuery pageCollection - collection of initialized items.
|
37
|
+
*/
|
38
|
+
|
39
|
+
init: function (selector, config) {
|
40
|
+
|
41
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
42
|
+
if (!$(selector).length) return;
|
43
|
+
|
44
|
+
this.config = config && $.isPlainObject(config) ?
|
45
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
46
|
+
|
47
|
+
this.config.itemSelector = selector;
|
48
|
+
|
49
|
+
this.initCarousel();
|
50
|
+
|
51
|
+
return this.pageCollection;
|
52
|
+
|
53
|
+
},
|
54
|
+
|
55
|
+
initCarousel: function () {
|
56
|
+
//Variables
|
57
|
+
var $self = this,
|
58
|
+
config = $self.config,
|
59
|
+
collection = $self.pageCollection;
|
60
|
+
|
61
|
+
//Actions
|
62
|
+
this.collection.each(function (i, el) {
|
63
|
+
//Variables
|
64
|
+
var $this = $(el),
|
65
|
+
id = $this.attr('id'),
|
66
|
+
|
67
|
+
//Markup elements
|
68
|
+
target = $this.data('nav-for'),
|
69
|
+
isThumb = $this.data('is-thumbs'),
|
70
|
+
arrowsClasses = $this.data('arrows-classes'),
|
71
|
+
arrowLeftClasses = $this.data('arrow-left-classes'),
|
72
|
+
arrowRightClasses = $this.data('arrow-right-classes'),
|
73
|
+
pagiClasses = $this.data('pagi-classes'),
|
74
|
+
pagiHelper = $this.data('pagi-helper'),
|
75
|
+
$pagiIcons = $this.data('pagi-icons'),
|
76
|
+
$prevMarkup = '<div class="js-prev ' + arrowsClasses + ' ' + arrowLeftClasses + '"></div>',
|
77
|
+
$nextMarkup = '<div class="js-next ' + arrowsClasses + ' ' + arrowRightClasses + '"></div>',
|
78
|
+
|
79
|
+
//Setters
|
80
|
+
setSlidesToShow = $this.data('slides-show'),
|
81
|
+
setSlidesToScroll = $this.data('slides-scroll'),
|
82
|
+
setAutoplay = $this.data('autoplay'),
|
83
|
+
setAnimation = $this.data('animation'),
|
84
|
+
setEasing = $this.data('easing'),
|
85
|
+
setFade = $this.data('fade'),
|
86
|
+
setSpeed = $this.data('speed'),
|
87
|
+
setSlidesRows = $this.data('rows'),
|
88
|
+
setCenterMode = $this.data('center-mode'),
|
89
|
+
setCenterPadding = $this.data('center-padding'),
|
90
|
+
setPauseOnHover = $this.data('pause-hover'),
|
91
|
+
setVariableWidth = $this.data('variable-width'),
|
92
|
+
setInitialSlide = $this.data('initial-slide'),
|
93
|
+
setVertical = $this.data('vertical'),
|
94
|
+
setRtl = $this.data('rtl'),
|
95
|
+
setInEffect = $this.data('in-effect'),
|
96
|
+
setOutEffect = $this.data('out-effect'),
|
97
|
+
setInfinite = $this.data('infinite'),
|
98
|
+
setDataTitlePosition = $this.data('title-pos-inside'),
|
99
|
+
setFocusOnSelect = $this.data('focus-on-select'),
|
100
|
+
setLazyLoad = $this.data('lazy-load');
|
101
|
+
|
102
|
+
$this.on('init', function (event, slick) {
|
103
|
+
$(slick.$slides).css('height', 'auto');
|
104
|
+
});
|
105
|
+
|
106
|
+
if (setInEffect && setOutEffect) {
|
107
|
+
$this.on('init', function (event, slick) {
|
108
|
+
$(slick.$slides).addClass('single-slide');
|
109
|
+
});
|
110
|
+
}
|
111
|
+
|
112
|
+
if (pagiHelper) {
|
113
|
+
$this.on('init', function (event, slick) {
|
114
|
+
var $pagination = $this.find('.js-pagination');
|
115
|
+
|
116
|
+
if (!$pagination.length) return;
|
117
|
+
|
118
|
+
$pagination.append('<span class="u-dots-helper"></span>');
|
119
|
+
});
|
120
|
+
}
|
121
|
+
|
122
|
+
if (isThumb) {
|
123
|
+
$('#' + id).on('click', '.js-slide', function (e) {
|
124
|
+
e.stopPropagation();
|
125
|
+
//Variables
|
126
|
+
var i;
|
127
|
+
|
128
|
+
//Variables values
|
129
|
+
i = $(this).data('slick-index');
|
130
|
+
|
131
|
+
if ($('#' + id).slick('slickCurrentSlide') !== i) {
|
132
|
+
$('#' + id).slick('slickGoTo', i);
|
133
|
+
}
|
134
|
+
});
|
135
|
+
}
|
136
|
+
|
137
|
+
$this.on('init', function (event, slider) {
|
138
|
+
var $pagination = $this.find('.js-pagination');
|
139
|
+
|
140
|
+
if (!$pagination.length) return;
|
141
|
+
|
142
|
+
$($pagination[0].children[0]).addClass('slick-current');
|
143
|
+
});
|
144
|
+
|
145
|
+
$this.slick({
|
146
|
+
autoplay: setAutoplay ? true : false,
|
147
|
+
autoplaySpeed: setSpeed ? setSpeed : 3000,
|
148
|
+
|
149
|
+
cssEase: setAnimation ? setAnimation : 'ease',
|
150
|
+
easing: setEasing ? setEasing : 'linear',
|
151
|
+
fade: setFade ? true : false,
|
152
|
+
|
153
|
+
infinite: setInfinite ? true : false,
|
154
|
+
initialSlide: setInitialSlide ? setInitialSlide - 1 : 0,
|
155
|
+
slidesToShow: setSlidesToShow ? setSlidesToShow : 1,
|
156
|
+
slidesToScroll: setSlidesToScroll ? setSlidesToScroll : 1,
|
157
|
+
centerMode: setCenterMode ? true : false,
|
158
|
+
variableWidth: setVariableWidth ? true : false,
|
159
|
+
pauseOnHover: setPauseOnHover ? true : false,
|
160
|
+
rows: setSlidesRows ? setSlidesRows : 1,
|
161
|
+
vertical: setVertical ? true : false,
|
162
|
+
verticalSwiping: setVertical ? true : false,
|
163
|
+
rtl: setRtl ? true : false,
|
164
|
+
centerPadding: setCenterPadding ? setCenterPadding : 0,
|
165
|
+
focusOnSelect: setFocusOnSelect ? true : false,
|
166
|
+
lazyLoad: setLazyLoad ? setLazyLoad : false,
|
167
|
+
|
168
|
+
asNavFor: target ? target : false,
|
169
|
+
prevArrow: arrowsClasses ? $prevMarkup : false,
|
170
|
+
nextArrow: arrowsClasses ? $nextMarkup : false,
|
171
|
+
dots: pagiClasses ? true : false,
|
172
|
+
dotsClass: 'js-pagination ' + pagiClasses,
|
173
|
+
customPaging: function (slider, i) {
|
174
|
+
var title = $(slider.$slides[i]).data('title');
|
175
|
+
|
176
|
+
if (title && $pagiIcons) {
|
177
|
+
return '<span>' + title + '</span>' + $pagiIcons;
|
178
|
+
} else if ($pagiIcons) {
|
179
|
+
return '<span></span>' + $pagiIcons;
|
180
|
+
} else if (title && setDataTitlePosition) {
|
181
|
+
return '<span>' + title + '</span>';
|
182
|
+
} else if (title && !setDataTitlePosition) {
|
183
|
+
return '<span></span>' + '<strong class="u-dot-title">' + title + '</strong>';
|
184
|
+
} else {
|
185
|
+
return '<span></span>';
|
186
|
+
}
|
187
|
+
}
|
188
|
+
});
|
189
|
+
|
190
|
+
$this.on('beforeChange', function (event, slider, currentSlide, nextSlide) {
|
191
|
+
var $pagination = $this.find('.js-pagination');
|
192
|
+
|
193
|
+
if (!$pagination.length) return;
|
194
|
+
|
195
|
+
if (currentSlide > nextSlide) {
|
196
|
+
$($pagination[0].children).removeClass('slick-active-right');
|
197
|
+
$($pagination[0].children[nextSlide]).addClass('slick-active-right');
|
198
|
+
} else {
|
199
|
+
$($pagination[0].children).removeClass('slick-active-right');
|
200
|
+
}
|
201
|
+
|
202
|
+
$($pagination[0].children).removeClass('slick-current');
|
203
|
+
setTimeout(function () {
|
204
|
+
$($pagination[0].children[nextSlide]).addClass('slick-current');
|
205
|
+
}, .25);
|
206
|
+
});
|
207
|
+
|
208
|
+
if (setInEffect && setOutEffect) {
|
209
|
+
$this.on('afterChange', function (event, slick, currentSlide, nextSlide) {
|
210
|
+
$(slick.$slides).removeClass('animated set-position ' + setInEffect + ' ' + setOutEffect);
|
211
|
+
});
|
212
|
+
|
213
|
+
$this.on('beforeChange', function (event, slick, currentSlide) {
|
214
|
+
$(slick.$slides[currentSlide]).addClass('animated ' + setOutEffect);
|
215
|
+
});
|
216
|
+
|
217
|
+
$this.on('setPosition', function (event, slick) {
|
218
|
+
$(slick.$slides[slick.currentSlide]).addClass('animated set-position ' + setInEffect);
|
219
|
+
});
|
220
|
+
}
|
221
|
+
|
222
|
+
//Actions
|
223
|
+
collection = collection.add($this);
|
224
|
+
});
|
225
|
+
},
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Implementation of text animation.
|
229
|
+
*
|
230
|
+
* @param jQuery carousel
|
231
|
+
* @param String textAnimationSelector
|
232
|
+
*
|
233
|
+
* @requires charming.js, anime.js, textfx.js
|
234
|
+
*
|
235
|
+
* @return undefined
|
236
|
+
*/
|
237
|
+
initTextAnimation: function(carousel, textAnimationSelector) {
|
238
|
+
|
239
|
+
if (!window.TextFx || !window.anime || !carousel.length) return;
|
240
|
+
|
241
|
+
var $text = carousel.find(textAnimationSelector);
|
242
|
+
|
243
|
+
if (!$text.length) return;
|
244
|
+
|
245
|
+
$text.each(function (i, el) {
|
246
|
+
|
247
|
+
var $this = $(el);
|
248
|
+
|
249
|
+
if (!$this.data('TextFx')) {
|
250
|
+
|
251
|
+
$this.data('TextFx', new TextFx($this.get(0)));
|
252
|
+
|
253
|
+
}
|
254
|
+
|
255
|
+
});
|
256
|
+
|
257
|
+
|
258
|
+
carousel.on('beforeChange', function (event, slick, currentSlide, nextSlide) {
|
259
|
+
|
260
|
+
var targets = slick.$slider
|
261
|
+
.find('.slick-track')
|
262
|
+
.children();
|
263
|
+
|
264
|
+
var currentTarget = targets.eq(currentSlide),
|
265
|
+
nextTarget = targets.eq(nextSlide);
|
266
|
+
|
267
|
+
currentTarget = currentTarget.find(textAnimationSelector);
|
268
|
+
nextTarget = nextTarget.find(textAnimationSelector);
|
269
|
+
|
270
|
+
if (currentTarget.length) {
|
271
|
+
currentTarget.data('TextFx').hide(currentTarget.data('effect') ? currentTarget.data('effect') : 'fx1');
|
272
|
+
}
|
273
|
+
|
274
|
+
if (nextTarget.length) {
|
275
|
+
nextTarget.data('TextFx').show(nextTarget.data('effect') ? nextTarget.data('effect') : 'fx1');
|
276
|
+
}
|
277
|
+
|
278
|
+
});
|
279
|
+
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
})(jQuery);
|