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,111 @@
|
|
1
|
+
/**
|
2
|
+
* Twitter wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSTwitter = {
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig: {
|
19
|
+
dateFormat: '%b. %d, %Y',
|
20
|
+
template: '<div class="js-slide">' +
|
21
|
+
'<blockquote class="g-font-size-18 g-mb-10--xs">' +
|
22
|
+
'{{tweet}}' +
|
23
|
+
'</blockquote>' +
|
24
|
+
'<h4 class="g-font-size-18 g-mb-10--xs">' +
|
25
|
+
'<a class="g-color-primary" href="https://twitter.com/{{screen_name}}">' +
|
26
|
+
'@{{screen_name}}' +
|
27
|
+
'</a>' +
|
28
|
+
'</h4>' +
|
29
|
+
'<ul class="list-inline g-font-size-18 g-mb-0--xs">' +
|
30
|
+
'<li class="list-inline-item g-px-5--xs">' +
|
31
|
+
'<a href="https://twitter.com/intent/tweet?in_reply_to={{tweet_id}}">' +
|
32
|
+
'<i class="fa fa-reply"></i>' +
|
33
|
+
'</a>' +
|
34
|
+
'</li>' +
|
35
|
+
'<li class="list-inline-item g-px-5--xs">' +
|
36
|
+
'<a href="https://twitter.com/intent/retweet?tweet_id={{tweet_id}}">' +
|
37
|
+
'<i class="fa fa-retweet"></i>' +
|
38
|
+
'</a>' +
|
39
|
+
'</li>' +
|
40
|
+
'<li class="list-inline-item g-px-5--xs">' +
|
41
|
+
'<a href="https://twitter.com/intent/like?tweet_id={{tweet_id}}">' +
|
42
|
+
'<i class="fa fa-star"></i>' +
|
43
|
+
'</a>' +
|
44
|
+
'</li>' +
|
45
|
+
'</ul>' +
|
46
|
+
'</div>'
|
47
|
+
},
|
48
|
+
|
49
|
+
/**
|
50
|
+
*
|
51
|
+
*
|
52
|
+
* @var jQuery pageCollection
|
53
|
+
*/
|
54
|
+
pageCollection: $(),
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Initialization of Twitter wrapper.
|
58
|
+
*
|
59
|
+
* @param String selector (optional)
|
60
|
+
* @param Object config (optional)
|
61
|
+
*
|
62
|
+
* @return jQuery pageCollection - collection of initialized items.
|
63
|
+
*/
|
64
|
+
|
65
|
+
init: function (selector, config, callback) {
|
66
|
+
|
67
|
+
this.collection = selector && $(selector).length ? $(selector) : $();
|
68
|
+
if (!$(selector).length) return;
|
69
|
+
|
70
|
+
this.config = config && $.isPlainObject(config) ?
|
71
|
+
$.extend({}, this._baseConfig, config) : this._baseConfig;
|
72
|
+
|
73
|
+
this.config.itemSelector = selector;
|
74
|
+
|
75
|
+
this.callback = callback;
|
76
|
+
|
77
|
+
this.twitterInit();
|
78
|
+
|
79
|
+
return this.pageCollection;
|
80
|
+
|
81
|
+
},
|
82
|
+
|
83
|
+
twitterInit: function () {
|
84
|
+
//Variables
|
85
|
+
var $self, config, collection, callback;
|
86
|
+
//Variables values
|
87
|
+
$self = this;
|
88
|
+
config = $self.config;
|
89
|
+
collection = $self.pageCollection;
|
90
|
+
callback = $self.callback;
|
91
|
+
|
92
|
+
//Actions
|
93
|
+
this.collection.each(function (i, el) {
|
94
|
+
//Variables
|
95
|
+
var $this;
|
96
|
+
//Variables values
|
97
|
+
$this = $(el);
|
98
|
+
|
99
|
+
$this.twittie({
|
100
|
+
dateFormat: config['dateFormat'],
|
101
|
+
template: config['template']
|
102
|
+
}, callback);
|
103
|
+
|
104
|
+
//Actions
|
105
|
+
collection = collection.add($this);
|
106
|
+
});
|
107
|
+
}
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
})(jQuery);
|
@@ -0,0 +1,111 @@
|
|
1
|
+
/**
|
2
|
+
* Validation wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
;(function ($) {
|
9
|
+
'use strict';
|
10
|
+
|
11
|
+
$.HSCore.components.HSValidation = {
|
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 Validation 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.initValidation();
|
46
|
+
|
47
|
+
return this.pageCollection;
|
48
|
+
|
49
|
+
},
|
50
|
+
|
51
|
+
initValidation: 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
|
+
|
61
|
+
if($this.hasClass('js-step-form')) {
|
62
|
+
$.validator.setDefaults({
|
63
|
+
ignore: ':hidden:not(.active select)'
|
64
|
+
});
|
65
|
+
} else {
|
66
|
+
$.validator.setDefaults({
|
67
|
+
ignore: ':hidden:not(select)'
|
68
|
+
});
|
69
|
+
}
|
70
|
+
|
71
|
+
$this.validate({
|
72
|
+
errorPlacement: $self.errorPlacement,
|
73
|
+
highlight: $self.highlight,
|
74
|
+
unhighlight: $self.unHighlight
|
75
|
+
});
|
76
|
+
|
77
|
+
$('select').change(function(){
|
78
|
+
$(this).valid();
|
79
|
+
});
|
80
|
+
|
81
|
+
//Actions
|
82
|
+
collection = collection.add($this);
|
83
|
+
});
|
84
|
+
},
|
85
|
+
|
86
|
+
errorPlacement: function (error, element) {
|
87
|
+
var $this = $(element),
|
88
|
+
errorMsgClasses = $this.data('msg-classes');
|
89
|
+
|
90
|
+
error.addClass(errorMsgClasses);
|
91
|
+
error.appendTo(element.parents('.form-group'));
|
92
|
+
},
|
93
|
+
|
94
|
+
highlight: function (element) {
|
95
|
+
var $this = $(element),
|
96
|
+
errorClass = $this.data('error-class');
|
97
|
+
|
98
|
+
$this.parents('.form-group').addClass(errorClass);
|
99
|
+
},
|
100
|
+
|
101
|
+
unHighlight: function (element) {
|
102
|
+
var $this = $(element),
|
103
|
+
errorClass = $this.data('error-class'),
|
104
|
+
successClass = $this.data('success-class');
|
105
|
+
|
106
|
+
$this.parents('.form-group').removeClass(errorClass).addClass(successClass);
|
107
|
+
}
|
108
|
+
|
109
|
+
};
|
110
|
+
|
111
|
+
})(jQuery);
|
@@ -0,0 +1,70 @@
|
|
1
|
+
/**
|
2
|
+
* Video and audio wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function ($) {
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSVideoAudio = {
|
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.initVideoAudio();
|
47
|
+
|
48
|
+
return this.pageCollection;
|
49
|
+
|
50
|
+
},
|
51
|
+
|
52
|
+
initVideoAudio: function () {
|
53
|
+
//Variables
|
54
|
+
var $self = this,
|
55
|
+
collection = $self.pageCollection;
|
56
|
+
|
57
|
+
//Actions
|
58
|
+
this.collection.each(function (i, el) {
|
59
|
+
//Variables
|
60
|
+
var $videoAudio = el;
|
61
|
+
|
62
|
+
plyr.setup($videoAudio);
|
63
|
+
|
64
|
+
//Add object to collection
|
65
|
+
collection = collection.add($videoAudio);
|
66
|
+
});
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
})(jQuery);
|
@@ -0,0 +1,348 @@
|
|
1
|
+
/**
|
2
|
+
* Text Slideshow wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires charming.js, anime.js, textfx.js
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;
|
10
|
+
(function($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
$.HSCore.components.HSTextSlideshow = {
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Base configuration.
|
17
|
+
*
|
18
|
+
* @var Object _baseConfig
|
19
|
+
*/
|
20
|
+
_baseConfig: {
|
21
|
+
autoplay: false,
|
22
|
+
autoplayDelay: 3000,
|
23
|
+
slideSelector: '.u-text-slideshow__slide',
|
24
|
+
activeSlideClass: 'u-text-slideshow__slide--current',
|
25
|
+
slideTargetSelector: '.u-text-slideshow__slide-target'
|
26
|
+
},
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Collection of all instances of the page.
|
30
|
+
*
|
31
|
+
* @var jQuery _pageCollection
|
32
|
+
*/
|
33
|
+
_pageCollection: $(),
|
34
|
+
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Initialization of Slideshow.
|
38
|
+
*
|
39
|
+
* @param jQuery collection (optional)
|
40
|
+
* @param Object config (optional)
|
41
|
+
*
|
42
|
+
* @return jQuery pageCollection - collection of initialized items.
|
43
|
+
*/
|
44
|
+
init: function(collection, config) {
|
45
|
+
|
46
|
+
if(!collection || !collection.length) return this._pageCollection;
|
47
|
+
|
48
|
+
var self = this;
|
49
|
+
|
50
|
+
config = config && $.isPlainObject(config) ? $.extend(true, {}, this._baseConfig, config) : this._baseConfig;
|
51
|
+
|
52
|
+
|
53
|
+
collection.each(function(i, el){
|
54
|
+
|
55
|
+
var $this = $(this);
|
56
|
+
|
57
|
+
if(!$this.data('HSTextSlideshow')) {
|
58
|
+
|
59
|
+
$this.data('HSTextSlideshow', new HSTextSlideshow($this, $.extend(true, {}, config, {
|
60
|
+
effect: $this.data('effect') ? $this.data('effect') : 'fx1'
|
61
|
+
})));
|
62
|
+
self._pageCollection = self._pageCollection.add($this);
|
63
|
+
|
64
|
+
}
|
65
|
+
|
66
|
+
|
67
|
+
});
|
68
|
+
|
69
|
+
return this._pageCollection;
|
70
|
+
}
|
71
|
+
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Constructor function of Slideshow.
|
76
|
+
*
|
77
|
+
* @param jQuery element
|
78
|
+
* @param Object config
|
79
|
+
*
|
80
|
+
* @return undefined
|
81
|
+
*/
|
82
|
+
function HSTextSlideshow(element, config) {
|
83
|
+
this.config = config && $.isPlainObject(config) ? config : {};
|
84
|
+
|
85
|
+
this.element = element;
|
86
|
+
|
87
|
+
this.config = $.extend(true, {}, this.config, this.element.data() );
|
88
|
+
|
89
|
+
var jCurrentSlide = this.element.find('.' + this.config.activeSlideClass);
|
90
|
+
|
91
|
+
this.currentIndex = this.config.currentIndex = jCurrentSlide.length ? jCurrentSlide.index() : 0;
|
92
|
+
|
93
|
+
this.slides = [];
|
94
|
+
|
95
|
+
if( this.element.attr('id') ) this._initNavigation();
|
96
|
+
|
97
|
+
this._initSlides();
|
98
|
+
|
99
|
+
if( this.config.autoplay ) {
|
100
|
+
this._autoplayStart();
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
*
|
106
|
+
*
|
107
|
+
* @param
|
108
|
+
*
|
109
|
+
* @return
|
110
|
+
*/
|
111
|
+
HSTextSlideshow.prototype._initSlides = function() {
|
112
|
+
|
113
|
+
var self = this,
|
114
|
+
jSlides = this.element.find(this.config.slideSelector);
|
115
|
+
|
116
|
+
if(jSlides.length) {
|
117
|
+
jSlides.each(function(i, el){
|
118
|
+
|
119
|
+
self.addSlide( $(el), self.config );
|
120
|
+
|
121
|
+
});
|
122
|
+
}
|
123
|
+
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
*
|
128
|
+
*
|
129
|
+
* @param
|
130
|
+
*
|
131
|
+
* @return
|
132
|
+
*/
|
133
|
+
HSTextSlideshow.prototype._updateCarouselBounds = function() {
|
134
|
+
|
135
|
+
var self = this;
|
136
|
+
|
137
|
+
this.element.stop().animate({
|
138
|
+
'width': self.slides[self.currentIndex].getElement().outerWidth() + 1
|
139
|
+
}, {
|
140
|
+
duration: 300,
|
141
|
+
easing: 'linear'
|
142
|
+
});
|
143
|
+
|
144
|
+
}
|
145
|
+
|
146
|
+
/**
|
147
|
+
*
|
148
|
+
*
|
149
|
+
* @param
|
150
|
+
*
|
151
|
+
* @return
|
152
|
+
*/
|
153
|
+
HSTextSlideshow.prototype._autoplayStart = function() {
|
154
|
+
|
155
|
+
var self = this;
|
156
|
+
|
157
|
+
this.autoplayTimeoutId = setTimeout( function autoplay() {
|
158
|
+
|
159
|
+
self.next();
|
160
|
+
|
161
|
+
self.autoplayTimeoutId = setTimeout( autoplay, self.config.autoplayDelay );
|
162
|
+
|
163
|
+
}, this.config.autoplayDelay );
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
*
|
169
|
+
*
|
170
|
+
* @param
|
171
|
+
*
|
172
|
+
* @return
|
173
|
+
*/
|
174
|
+
HSTextSlideshow.prototype._autoplayStop = function() {
|
175
|
+
|
176
|
+
clearTimeout( this.autoplayTimeoutId );
|
177
|
+
|
178
|
+
}
|
179
|
+
|
180
|
+
/**
|
181
|
+
*
|
182
|
+
*
|
183
|
+
* @param
|
184
|
+
*
|
185
|
+
* @return
|
186
|
+
*/
|
187
|
+
HSTextSlideshow.prototype._initNavigation = function() {
|
188
|
+
|
189
|
+
var self = this,
|
190
|
+
navElements = $( '[data-target="#'+this.element.attr('id')+'"]' );
|
191
|
+
|
192
|
+
navElements.on('click', function(e){
|
193
|
+
|
194
|
+
var $this = $(this);
|
195
|
+
|
196
|
+
if( $this.data('action').toUpperCase() == 'PREV' ) {
|
197
|
+
if( self.config.autoplay ) {
|
198
|
+
self._autoplayStop();
|
199
|
+
self._autoplayStart();
|
200
|
+
}
|
201
|
+
self.prev();
|
202
|
+
}
|
203
|
+
else if( $this.data('action').toUpperCase() == 'NEXT' ) {
|
204
|
+
if( self.config.autoplay ) {
|
205
|
+
self._autoplayStop();
|
206
|
+
self._autoplayStart();
|
207
|
+
}
|
208
|
+
self.next();
|
209
|
+
}
|
210
|
+
|
211
|
+
e.preventDefault();
|
212
|
+
});
|
213
|
+
|
214
|
+
navElements.each(function(i, el){
|
215
|
+
|
216
|
+
var $this = $(el);
|
217
|
+
|
218
|
+
if( $this.data('action') ) {
|
219
|
+
self['_initAction' + $this.data('action').toUpperCase( $this )];
|
220
|
+
}
|
221
|
+
|
222
|
+
});
|
223
|
+
|
224
|
+
}
|
225
|
+
|
226
|
+
/**
|
227
|
+
*
|
228
|
+
*
|
229
|
+
* @param
|
230
|
+
*
|
231
|
+
* @return
|
232
|
+
*/
|
233
|
+
HSTextSlideshow.prototype.addSlide = function(element, config) {
|
234
|
+
|
235
|
+
if(!element || !element.length) return;
|
236
|
+
this.slides.push( new HSTextSlide( element, config ) );
|
237
|
+
|
238
|
+
}
|
239
|
+
|
240
|
+
/**
|
241
|
+
*
|
242
|
+
*
|
243
|
+
* @param
|
244
|
+
*
|
245
|
+
* @return
|
246
|
+
*/
|
247
|
+
HSTextSlideshow.prototype.next = function() {
|
248
|
+
|
249
|
+
if(this.slides.length <= 1) return;
|
250
|
+
|
251
|
+
this.slides[this.currentIndex].hide();
|
252
|
+
|
253
|
+
this.currentIndex++;
|
254
|
+
|
255
|
+
if(this.currentIndex > this.slides.length - 1) this.currentIndex = 0;
|
256
|
+
|
257
|
+
this._updateCarouselBounds();
|
258
|
+
this.slides[this.currentIndex].show();
|
259
|
+
}
|
260
|
+
|
261
|
+
/**
|
262
|
+
*
|
263
|
+
*
|
264
|
+
* @param
|
265
|
+
*
|
266
|
+
* @return
|
267
|
+
*/
|
268
|
+
HSTextSlideshow.prototype.prev = function() {
|
269
|
+
|
270
|
+
if(this.slides.length <= 1) return;
|
271
|
+
|
272
|
+
this.slides[this.currentIndex].hide();
|
273
|
+
|
274
|
+
this.currentIndex--;
|
275
|
+
|
276
|
+
if(this.currentIndex < 0) this.currentIndex = this.slides.length - 1;
|
277
|
+
|
278
|
+
this._updateCarouselBounds();
|
279
|
+
this.slides[this.currentIndex].show();
|
280
|
+
}
|
281
|
+
|
282
|
+
|
283
|
+
/**
|
284
|
+
* Constructor function of Slide.
|
285
|
+
*
|
286
|
+
* @param jQuery element
|
287
|
+
*
|
288
|
+
* @return undefined
|
289
|
+
*/
|
290
|
+
function HSTextSlide(element, config) {
|
291
|
+
this.element = element;
|
292
|
+
this.config = config;
|
293
|
+
|
294
|
+
this.target = element.find( config.slideTargetSelector ).get(0);
|
295
|
+
|
296
|
+
if(!this.target) return;
|
297
|
+
|
298
|
+
this.textfx = new TextFx( this.target );
|
299
|
+
|
300
|
+
if( this.config.currentIndex != this.element.index() ) {
|
301
|
+
$(this.target).find('[class*="letter"]').css( this.textfx.effects[config.effect].out );
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
/**
|
306
|
+
*
|
307
|
+
*
|
308
|
+
* @param
|
309
|
+
*
|
310
|
+
* @return
|
311
|
+
*/
|
312
|
+
HSTextSlide.prototype.show = function() {
|
313
|
+
if(!this.target) return;
|
314
|
+
|
315
|
+
this.element.addClass(this.config.activeSlideClass);
|
316
|
+
|
317
|
+
this.textfx.show(this.config.effect);
|
318
|
+
}
|
319
|
+
|
320
|
+
/**
|
321
|
+
*
|
322
|
+
*
|
323
|
+
* @param
|
324
|
+
*
|
325
|
+
* @return
|
326
|
+
*/
|
327
|
+
HSTextSlide.prototype.hide = function() {
|
328
|
+
if(!this.target) return;
|
329
|
+
|
330
|
+
this.element.removeClass(this.config.activeSlideClass);
|
331
|
+
|
332
|
+
this.textfx.hide(this.config.effect);
|
333
|
+
}
|
334
|
+
|
335
|
+
/**
|
336
|
+
*
|
337
|
+
*
|
338
|
+
* @param
|
339
|
+
*
|
340
|
+
* @return
|
341
|
+
*/
|
342
|
+
HSTextSlide.prototype.getElement = function() {
|
343
|
+
|
344
|
+
return this.element;
|
345
|
+
|
346
|
+
}
|
347
|
+
|
348
|
+
})(jQuery);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Background video helper-wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
;(function ($) {
|
9
|
+
'use strict';
|
10
|
+
|
11
|
+
$.HSCore.helpers.HSBgVideo = {
|
12
|
+
/**
|
13
|
+
* Rating.
|
14
|
+
*
|
15
|
+
* @return undefined
|
16
|
+
*/
|
17
|
+
init: function (el) {
|
18
|
+
var $selector = $(el);
|
19
|
+
|
20
|
+
$selector.hsBgVideo();
|
21
|
+
}
|
22
|
+
};
|
23
|
+
})(jQuery);
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/**
|
2
|
+
* Charts helper-wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires chart.js (v1.0.3)
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function($){
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.helpers.HSChart = {
|
13
|
+
|
14
|
+
|
15
|
+
/**
|
16
|
+
* ChartJS
|
17
|
+
*/
|
18
|
+
ChartJS: {
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* @var Object _baseConfig
|
23
|
+
*/
|
24
|
+
_baseConfig : {
|
25
|
+
defaultFontColor: '#555',
|
26
|
+
defaultFontFamily: "'Open Sans', 'Helvetica', 'Arial', 'sans-serif'",
|
27
|
+
defaultFontSize: 14,
|
28
|
+
defaultFontStyle: 'normal',
|
29
|
+
legend: {
|
30
|
+
labels: {
|
31
|
+
usePointStyle: true
|
32
|
+
}
|
33
|
+
},
|
34
|
+
elements: {
|
35
|
+
point: {
|
36
|
+
radius: 5,
|
37
|
+
hoverRadius: 7
|
38
|
+
}
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Sets default configuration of charts.
|
44
|
+
*
|
45
|
+
* @param Object config (optional)
|
46
|
+
*
|
47
|
+
* @return undefined
|
48
|
+
*/
|
49
|
+
setDefaults: function(config){
|
50
|
+
|
51
|
+
if(config && $.isPlainObject(config)) {
|
52
|
+
|
53
|
+
$.extend(true, Chart.defaults.global, this._baseConfig, config);
|
54
|
+
return;
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
$.extend(true, Chart.defaults.global, this._baseConfig);
|
59
|
+
|
60
|
+
}
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
};
|
65
|
+
|
66
|
+
})(jQuery);
|