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,94 @@
|
|
1
|
+
/**
|
2
|
+
* Instagram wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSInstagram = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {
|
19
|
+
get: 'user',
|
20
|
+
limit: '12',
|
21
|
+
template: '<div class="col-md-2 g-mb-30"><a href="{{link}}" target="_blank"><img class="img-fluid" src="{{image}}" /></a></div>'
|
22
|
+
},
|
23
|
+
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
*
|
27
|
+
* @var jQuery pageCollection
|
28
|
+
*/
|
29
|
+
pageCollection: $(),
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initialization of Instagram wrapper.
|
33
|
+
*
|
34
|
+
* @param String selector (optional)
|
35
|
+
* @param Object config (optional)
|
36
|
+
*
|
37
|
+
* @return jQuery pageCollection - collection of initialized items.
|
38
|
+
*/
|
39
|
+
|
40
|
+
init: function (selector, config) {
|
41
|
+
|
42
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
43
|
+
if (!$(selector).length) return;
|
44
|
+
|
45
|
+
this.config = config && $.isPlainObject(config) ?
|
46
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
47
|
+
|
48
|
+
this.config.itemSelector = selector;
|
49
|
+
|
50
|
+
this.instaInit();
|
51
|
+
|
52
|
+
return this.pageCollection;
|
53
|
+
|
54
|
+
},
|
55
|
+
|
56
|
+
instaInit: function () {
|
57
|
+
//Variables
|
58
|
+
var $self, config, collection;
|
59
|
+
//Variables values
|
60
|
+
$self = this;
|
61
|
+
config = $self.config;
|
62
|
+
collection = $self.pageCollection;
|
63
|
+
|
64
|
+
//Actions
|
65
|
+
this.collection.each(function (i, el) {
|
66
|
+
//Variables
|
67
|
+
var $this, instaFeed, ID, userID, clientID, token;
|
68
|
+
//Variables values
|
69
|
+
$this = $(el);
|
70
|
+
ID = $this.attr('id');
|
71
|
+
userID = $this.data('user-id');
|
72
|
+
clientID = $this.data('client-id');
|
73
|
+
token = $this.data('token');
|
74
|
+
|
75
|
+
instaFeed = new Instafeed({
|
76
|
+
get: config['get'],
|
77
|
+
limit: config['limit'],
|
78
|
+
template: config['template'],
|
79
|
+
userId: userID,
|
80
|
+
clientId: clientID,
|
81
|
+
accessToken: token,
|
82
|
+
target: ID
|
83
|
+
});
|
84
|
+
|
85
|
+
instaFeed.run();
|
86
|
+
|
87
|
+
//Actions
|
88
|
+
collection = collection.add($this);
|
89
|
+
});
|
90
|
+
}
|
91
|
+
|
92
|
+
}
|
93
|
+
|
94
|
+
})(jQuery);
|
@@ -0,0 +1,82 @@
|
|
1
|
+
/**
|
2
|
+
* PinMap wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSPinMap = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {
|
19
|
+
responsive: true,
|
20
|
+
popover: {
|
21
|
+
show: false,
|
22
|
+
animate: true
|
23
|
+
}
|
24
|
+
},
|
25
|
+
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
*
|
29
|
+
* @var jQuery pageCollection
|
30
|
+
*/
|
31
|
+
pageCollection: $(),
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Initialization of PinMap wrapper.
|
35
|
+
*
|
36
|
+
* @param String selector (optional)
|
37
|
+
* @param Object config (optional)
|
38
|
+
*
|
39
|
+
* @return jQuery pageCollection - collection of initialized items.
|
40
|
+
*/
|
41
|
+
|
42
|
+
init: function (selector, config) {
|
43
|
+
|
44
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
45
|
+
if (!$(selector).length) return;
|
46
|
+
|
47
|
+
this.config = config && $.isPlainObject(config) ?
|
48
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
49
|
+
|
50
|
+
this.config.itemSelector = selector;
|
51
|
+
|
52
|
+
this.initPinMap();
|
53
|
+
|
54
|
+
return this.pageCollection;
|
55
|
+
|
56
|
+
},
|
57
|
+
|
58
|
+
initPinMap: function () {
|
59
|
+
//Variables
|
60
|
+
var $self, config, collection;
|
61
|
+
//Variables values
|
62
|
+
$self = this;
|
63
|
+
config = $self.config;
|
64
|
+
collection = $self.pageCollection;
|
65
|
+
|
66
|
+
//Actions
|
67
|
+
this.collection.each(function (i, el) {
|
68
|
+
//Variables
|
69
|
+
var $this;
|
70
|
+
//Variables values
|
71
|
+
$this = $(el);
|
72
|
+
|
73
|
+
$this.easypinShow(config);
|
74
|
+
|
75
|
+
//Actions
|
76
|
+
collection = collection.add($this);
|
77
|
+
});
|
78
|
+
}
|
79
|
+
|
80
|
+
}
|
81
|
+
|
82
|
+
})(jQuery);
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/**
|
2
|
+
* SvgMap wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSSvgMap = {
|
13
|
+
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
*
|
17
|
+
* @var Object _baseConfig
|
18
|
+
*/
|
19
|
+
_baseConfig: {
|
20
|
+
map: 'world_mill_en',
|
21
|
+
zoomOnScroll: false
|
22
|
+
},
|
23
|
+
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
*
|
27
|
+
* @var jQuery pageCollection
|
28
|
+
*/
|
29
|
+
pageCollection: $(),
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initialization of SvgMap wrapper.
|
33
|
+
*
|
34
|
+
* @param String selector (optional)
|
35
|
+
* @param Object config (optional)
|
36
|
+
*
|
37
|
+
* @return jQuery pageCollection - collection of initialized items.
|
38
|
+
*/
|
39
|
+
|
40
|
+
init: function (selector, config) {
|
41
|
+
|
42
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
43
|
+
if (!$(selector).length) return;
|
44
|
+
|
45
|
+
this.config = config && $.isPlainObject(config) ?
|
46
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
47
|
+
|
48
|
+
this.config.itemSelector = selector;
|
49
|
+
|
50
|
+
this.initSvgMap();
|
51
|
+
|
52
|
+
return this.pageCollection;
|
53
|
+
|
54
|
+
},
|
55
|
+
|
56
|
+
initSvgMap: function () {
|
57
|
+
//Variables
|
58
|
+
var $self, config, collection;
|
59
|
+
//Variables values
|
60
|
+
$self = this;
|
61
|
+
config = $self.config;
|
62
|
+
collection = $self.pageCollection;
|
63
|
+
|
64
|
+
//Actions
|
65
|
+
this.collection.each(function (i, el) {
|
66
|
+
//Variables
|
67
|
+
var $this;
|
68
|
+
//Variables values
|
69
|
+
$this = $(el);
|
70
|
+
|
71
|
+
$this.vectorMap(config);
|
72
|
+
|
73
|
+
//Actions
|
74
|
+
collection = collection.add($this);
|
75
|
+
});
|
76
|
+
}
|
77
|
+
|
78
|
+
}
|
79
|
+
|
80
|
+
})(jQuery);
|
@@ -0,0 +1,102 @@
|
|
1
|
+
/**
|
2
|
+
* Markup copy wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSMarkupCopy = {
|
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 Markup copy 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.initMarkupCopy();
|
47
|
+
|
48
|
+
return this.pageCollection;
|
49
|
+
|
50
|
+
},
|
51
|
+
|
52
|
+
initMarkupCopy: function () {
|
53
|
+
//Variables
|
54
|
+
var $self = this,
|
55
|
+
collection = $self.pageCollection,
|
56
|
+
shortcodeArr = {};
|
57
|
+
|
58
|
+
$('[data-content-target]').each(function () {
|
59
|
+
var $this = $(this),
|
60
|
+
contentTarget = $this.data('content-target');
|
61
|
+
|
62
|
+
shortcodeArr[contentTarget] = $(contentTarget).html().replace(/"/g, "'").replace(/type=\"text\/plain\"/g, '');
|
63
|
+
});
|
64
|
+
|
65
|
+
//Actions
|
66
|
+
this.collection.each(function (i, el) {
|
67
|
+
//Variables
|
68
|
+
var windW = $(window).width(),
|
69
|
+
//Tabs
|
70
|
+
$this = $(el),
|
71
|
+
defaultText = $this.get(0).lastChild.nodeValue;
|
72
|
+
|
73
|
+
$this.on('click', function (e) {
|
74
|
+
e.preventDefault();
|
75
|
+
});
|
76
|
+
|
77
|
+
new Clipboard(el, {
|
78
|
+
text: function (button) {
|
79
|
+
//Variables
|
80
|
+
var target = $(button).data('content-target');
|
81
|
+
|
82
|
+
//Actions
|
83
|
+
return shortcodeArr[target];
|
84
|
+
}
|
85
|
+
}).on('success', function () {
|
86
|
+
//Variables
|
87
|
+
var successText = $this.data('success-text');
|
88
|
+
|
89
|
+
$this.get(0).lastChild.nodeValue = ' ' + successText + ' ';
|
90
|
+
|
91
|
+
setTimeout(function () {
|
92
|
+
$this.get(0).lastChild.nodeValue = defaultText;
|
93
|
+
}, 800);
|
94
|
+
});
|
95
|
+
|
96
|
+
//Actions
|
97
|
+
collection = collection.add(el);
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
})(jQuery);
|
@@ -0,0 +1,74 @@
|
|
1
|
+
/**
|
2
|
+
* Masked input wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
;(function ($) {
|
9
|
+
'use strict';
|
10
|
+
|
11
|
+
$.HSCore.components.HSMaskedInput = {
|
12
|
+
/**
|
13
|
+
*
|
14
|
+
*
|
15
|
+
* @var Object _baseConfig
|
16
|
+
*/
|
17
|
+
_baseConfig: {},
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
*
|
22
|
+
* @var jQuery pageCollection
|
23
|
+
*/
|
24
|
+
pageCollection: $(),
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Initialization of Masked input wrapper.
|
28
|
+
*
|
29
|
+
* @param String selector (optional)
|
30
|
+
* @param Object config (optional)
|
31
|
+
*
|
32
|
+
* @return jQuery pageCollection - collection of initialized items.
|
33
|
+
*/
|
34
|
+
|
35
|
+
init: function (selector, config) {
|
36
|
+
|
37
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
38
|
+
if (!$(selector).length) return;
|
39
|
+
|
40
|
+
this.config = config && $.isPlainObject(config) ?
|
41
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
42
|
+
|
43
|
+
this.config.itemSelector = selector;
|
44
|
+
|
45
|
+
this.initMaskedInput();
|
46
|
+
|
47
|
+
return this.pageCollection;
|
48
|
+
|
49
|
+
},
|
50
|
+
|
51
|
+
initMaskedInput: function () {
|
52
|
+
//Variables
|
53
|
+
var $self = this,
|
54
|
+
collection = $self.pageCollection;
|
55
|
+
|
56
|
+
//Actions
|
57
|
+
this.collection.each(function (i, el) {
|
58
|
+
//Variables
|
59
|
+
var $this = $(el),
|
60
|
+
mask = $this.data('mask'),
|
61
|
+
placeholder = $this.attr('placeholder');
|
62
|
+
|
63
|
+
$this.mask(mask, {
|
64
|
+
placeholder: placeholder ? placeholder : false
|
65
|
+
});
|
66
|
+
|
67
|
+
//Actions
|
68
|
+
collection = collection.add($this);
|
69
|
+
});
|
70
|
+
}
|
71
|
+
|
72
|
+
};
|
73
|
+
|
74
|
+
})(jQuery);
|
@@ -0,0 +1,134 @@
|
|
1
|
+
/**
|
2
|
+
* Event Modal wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
;(function ($) {
|
9
|
+
'use strict';
|
10
|
+
$.HSCore.components.HSModalEvent = {
|
11
|
+
/**
|
12
|
+
*
|
13
|
+
*
|
14
|
+
* @var Object _baseConfig
|
15
|
+
*/
|
16
|
+
_baseConfig: {},
|
17
|
+
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
*
|
21
|
+
* @var jQuery pageCollection
|
22
|
+
*/
|
23
|
+
pageCollection: $(),
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Initialization of Modal Event wrapper.
|
27
|
+
*
|
28
|
+
* @param String selector (optional)
|
29
|
+
* @param Object config (optional)
|
30
|
+
*
|
31
|
+
* @return jQuery pageCollection - collection of initialized items.
|
32
|
+
*/
|
33
|
+
|
34
|
+
init: function (selector, config) {
|
35
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
36
|
+
if (!$(selector).length) return;
|
37
|
+
|
38
|
+
this.config = config && $.isPlainObject(config) ?
|
39
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
40
|
+
|
41
|
+
this.config.itemSelector = selector;
|
42
|
+
|
43
|
+
this.initModalEvent();
|
44
|
+
|
45
|
+
return this.pageCollection;
|
46
|
+
},
|
47
|
+
|
48
|
+
initModalEvent: function () {
|
49
|
+
//Variables
|
50
|
+
var $self = this,
|
51
|
+
collection = $self.pageCollection;
|
52
|
+
|
53
|
+
//Actions
|
54
|
+
this.collection.each(function (i, el) {
|
55
|
+
//Variables
|
56
|
+
var $this = $(el),
|
57
|
+
eventType = $this.data('event-type'); //scrollToSection | callAfterTime
|
58
|
+
|
59
|
+
if (eventType == 'scrollOnce') {
|
60
|
+
$self.scrollOnce(el);
|
61
|
+
} else if (eventType == 'callAfterTime') {
|
62
|
+
$self.callAfterTime(el);
|
63
|
+
} else if (eventType == 'scrollSequential') {
|
64
|
+
$self.scrollSequential(el);
|
65
|
+
} else if (eventType == 'exitIntent') {
|
66
|
+
$self.exitIntent(el);
|
67
|
+
}
|
68
|
+
|
69
|
+
//Actions
|
70
|
+
collection = collection.add($this);
|
71
|
+
});
|
72
|
+
},
|
73
|
+
scrollOnce: function (el) {
|
74
|
+
var counter = 0;
|
75
|
+
|
76
|
+
$(window).on('scroll', function () {
|
77
|
+
var $this = $(el),
|
78
|
+
event = $this.data('event'),
|
79
|
+
thisOffsetTop = $this.offset().top;
|
80
|
+
|
81
|
+
if (counter == 0) {
|
82
|
+
if ($(window).scrollTop() >= thisOffsetTop) {
|
83
|
+
counter += 1;
|
84
|
+
|
85
|
+
eval(event);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
});
|
89
|
+
},
|
90
|
+
scrollSequential: function (el) {
|
91
|
+
var counter = 0;
|
92
|
+
|
93
|
+
$(window).on('scroll', function () {
|
94
|
+
var $this = $(el),
|
95
|
+
eventFirst = $this.data('event-first'),
|
96
|
+
eventSecond = $this.data('event-second'),
|
97
|
+
thisOffsetTop = $this.offset().top;
|
98
|
+
|
99
|
+
if (counter == 0) {
|
100
|
+
if ($(window).scrollTop() >= thisOffsetTop) {
|
101
|
+
counter += 1;
|
102
|
+
|
103
|
+
eval(eventFirst);
|
104
|
+
}
|
105
|
+
} else if (counter == 1) {
|
106
|
+
if ($(window).scrollTop() < thisOffsetTop) {
|
107
|
+
counter -= 1;
|
108
|
+
|
109
|
+
eval(eventSecond);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
});
|
113
|
+
},
|
114
|
+
callAfterTime: function (el) {
|
115
|
+
var $this = $(el),
|
116
|
+
event = $this.data('event'),
|
117
|
+
time = $this.data('time');
|
118
|
+
|
119
|
+
setTimeout(function () {
|
120
|
+
eval(event);
|
121
|
+
}, time);
|
122
|
+
},
|
123
|
+
exitIntent: function (el) {
|
124
|
+
var $this = $(el),
|
125
|
+
event = $this.data('event');
|
126
|
+
|
127
|
+
$('html').mouseleave(function () {
|
128
|
+
eval(event);
|
129
|
+
|
130
|
+
$('html').unbind('mouseleave');
|
131
|
+
});
|
132
|
+
}
|
133
|
+
};
|
134
|
+
})(jQuery);
|