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,353 @@
|
|
1
|
+
/**
|
2
|
+
* Progress Bar wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires appear.js (v1.0.3)
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function($){
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSProgressBar = {
|
13
|
+
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
*
|
17
|
+
* @var Object _baseConfig
|
18
|
+
*/
|
19
|
+
_baseConfig : {
|
20
|
+
bounds: -100,
|
21
|
+
debounce: 10,
|
22
|
+
time: 1000,
|
23
|
+
fps: 60,
|
24
|
+
rtl: false,
|
25
|
+
direction: 'horizontal',
|
26
|
+
useProgressElement: false,
|
27
|
+
indicatorSelector: 'progress-bar-indicator',
|
28
|
+
moveElementSelector: false,
|
29
|
+
moveElementTo: 'currentPosition',
|
30
|
+
onChange: function(value){},
|
31
|
+
beforeUpdate: function(){},
|
32
|
+
afterUpdate: function(){},
|
33
|
+
onMoveElementChange: function(value){},
|
34
|
+
beforeMoveElementUpdate: function(){},
|
35
|
+
afterMoveElementUpdate: function(){}
|
36
|
+
},
|
37
|
+
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
*
|
41
|
+
* @var jQuery _pageCollection
|
42
|
+
*/
|
43
|
+
_pageCollection : $(),
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Initialization of Progress Bar wrapper.
|
47
|
+
*
|
48
|
+
* @param String selector (optional)
|
49
|
+
* @param Object config (optional)
|
50
|
+
*
|
51
|
+
* @return jQuery currentCollection - collection of initialized items.
|
52
|
+
*/
|
53
|
+
init: function(selector, config){
|
54
|
+
|
55
|
+
if(!(selector && $(selector).length)) return;
|
56
|
+
|
57
|
+
this.extendHorizontalProgressBar();
|
58
|
+
this.extendVerticalProgressBar();
|
59
|
+
|
60
|
+
return this._initProgressBar(selector, config && $.isPlainObject(config) ? $.extend(true, {}, this._baseConfig, config) : this._baseConfig);
|
61
|
+
|
62
|
+
},
|
63
|
+
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* Initialization of each Progress Bar of the page.
|
67
|
+
*
|
68
|
+
* @return undefined
|
69
|
+
*/
|
70
|
+
_initProgressBar: function(selector, config) {
|
71
|
+
|
72
|
+
var self = this,
|
73
|
+
currentCollection = $();
|
74
|
+
|
75
|
+
appear({
|
76
|
+
|
77
|
+
bounds: config['bounds'],
|
78
|
+
debounce: config['debounce'],
|
79
|
+
|
80
|
+
init: function() {
|
81
|
+
|
82
|
+
$(selector).each(function(i, el) {
|
83
|
+
|
84
|
+
var $this = $(el);
|
85
|
+
|
86
|
+
if(config['direction'] === 'horizontal') {
|
87
|
+
|
88
|
+
$this.data('ProgressBar', new self.HorizontalProgressBar($this, config));
|
89
|
+
|
90
|
+
}
|
91
|
+
else {
|
92
|
+
|
93
|
+
$this.data('ProgressBar', new self.VerticalProgressBar($this, config));
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
currentCollection = currentCollection.add($this);
|
98
|
+
self._pageCollection = self._pageCollection.add($this);
|
99
|
+
|
100
|
+
});
|
101
|
+
|
102
|
+
},
|
103
|
+
|
104
|
+
elements: function() {
|
105
|
+
|
106
|
+
return document.querySelectorAll(selector);
|
107
|
+
|
108
|
+
},
|
109
|
+
|
110
|
+
appear: function(el) {
|
111
|
+
|
112
|
+
// console.log( $(el).data('ProgressBar'), $(el).data('value') );
|
113
|
+
|
114
|
+
$(el).data('ProgressBar').update($(el).data('value'));
|
115
|
+
|
116
|
+
}
|
117
|
+
|
118
|
+
});
|
119
|
+
|
120
|
+
return currentCollection;
|
121
|
+
|
122
|
+
},
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Constructor Function of Horizontal Progress Bar
|
126
|
+
*
|
127
|
+
* @param jQuery element
|
128
|
+
* @param Object config
|
129
|
+
*
|
130
|
+
*/
|
131
|
+
HorizontalProgressBar: function(element, config) {
|
132
|
+
|
133
|
+
this.element = element;
|
134
|
+
this.indicator = this.element.find( config.indicatorSelector );
|
135
|
+
|
136
|
+
this.config = config;
|
137
|
+
this.moveElement = config['moveElementSelector'] ? element.parent().find(config['moveElementSelector']) : $();
|
138
|
+
|
139
|
+
if(this.moveElement.length) {
|
140
|
+
|
141
|
+
if(config['rtl']) {
|
142
|
+
this.moveElement.css({
|
143
|
+
'left': 'auto',
|
144
|
+
'right': 0,
|
145
|
+
'margin-right': this.moveElement.outerWidth() / -2
|
146
|
+
});
|
147
|
+
}
|
148
|
+
else {
|
149
|
+
this.moveElement.css({
|
150
|
+
'left': 0,
|
151
|
+
'margin-left': this.moveElement.outerWidth() / -2
|
152
|
+
});
|
153
|
+
}
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
if(this.config.useProgressElement) {
|
158
|
+
this.element.data( 'value', this.element.attr( 'value' ) );
|
159
|
+
this.element.attr('value', 0);
|
160
|
+
}
|
161
|
+
else {
|
162
|
+
this.element.data(
|
163
|
+
'value',
|
164
|
+
this.indicator.length ? Math.round( this.indicator.outerWidth() / this.element.outerWidth() * 100 ) : 0
|
165
|
+
);
|
166
|
+
this.indicator.css('width', '0%');
|
167
|
+
}
|
168
|
+
|
169
|
+
},
|
170
|
+
|
171
|
+
/**
|
172
|
+
* Constructor Function of Vertical Progress Bar
|
173
|
+
*
|
174
|
+
* @param jQuery element
|
175
|
+
* @param Object config
|
176
|
+
*
|
177
|
+
*/
|
178
|
+
VerticalProgressBar: function(element, config) {
|
179
|
+
|
180
|
+
this.element = element;
|
181
|
+
this.config = config;
|
182
|
+
this.indicator = element.find(config['indicatorSelector']);
|
183
|
+
|
184
|
+
if(!this.indicator.length) return;
|
185
|
+
|
186
|
+
element.data('value', parseInt(this.indicator.css('height'), 10) / this.indicator.parent().outerHeight() * 100);
|
187
|
+
this.indicator.css('height', 0);
|
188
|
+
|
189
|
+
},
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Extends HorizontalProgressBar.
|
193
|
+
*
|
194
|
+
* @return undefined
|
195
|
+
*/
|
196
|
+
extendHorizontalProgressBar: function() {
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Sets new value of the Progress Bar.
|
200
|
+
*
|
201
|
+
* @param Number value
|
202
|
+
*
|
203
|
+
* @return undefined
|
204
|
+
*/
|
205
|
+
this.HorizontalProgressBar.prototype.update = function(value) {
|
206
|
+
|
207
|
+
var self = this;
|
208
|
+
|
209
|
+
if( this.config.useProgressElement ) {
|
210
|
+
|
211
|
+
var fps = (this.config['time'] / this.config['fps']),
|
212
|
+
iterationValue = parseInt(value / fps, 10),
|
213
|
+
counter = 0,
|
214
|
+
self = this;
|
215
|
+
|
216
|
+
if(iterationValue == 0) iterationValue = 1;
|
217
|
+
|
218
|
+
this.config.beforeUpdate.call(this.element);
|
219
|
+
if(this.moveElement.length) this.config.beforeMoveElementUpdate.call(this.moveElement);
|
220
|
+
|
221
|
+
if(self.config.moveElementSelector && self.config['moveElementTo'] == 'end') {
|
222
|
+
|
223
|
+
var mCounter = 0,
|
224
|
+
mIterationValue = parseInt(100 / fps, 10);
|
225
|
+
|
226
|
+
if(mIterationValue == 0) mIterationValue = 1;
|
227
|
+
|
228
|
+
var mCounterId = setInterval(function() {
|
229
|
+
|
230
|
+
self.moveSubElement(mCounter+=mIterationValue);
|
231
|
+
if(self.moveElement.length) self.config.onMoveElementChange.call(self.moveElement, mCounter+=mIterationValue);
|
232
|
+
|
233
|
+
if(mCounter > 100) {
|
234
|
+
clearInterval(mCounterId);
|
235
|
+
self.moveSubElement(100);
|
236
|
+
if(self.moveElement.length) self.config.afterMoveElementUpdate.call(self.moveElement);
|
237
|
+
}
|
238
|
+
|
239
|
+
}, fps);
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
this.element.data('intervalId', setInterval(function(){
|
244
|
+
|
245
|
+
var currentValue = counter += iterationValue;
|
246
|
+
|
247
|
+
self.element.attr('value', currentValue);
|
248
|
+
self.config.onChange.call(self.element, currentValue);
|
249
|
+
|
250
|
+
if(self.config.moveElementSelector && self.config['moveElementTo'] == 'currentPosition') self.moveSubElement(currentValue);
|
251
|
+
|
252
|
+
if(counter > value) {
|
253
|
+
|
254
|
+
self.element.attr('value', value);
|
255
|
+
if(self.config.moveElementSelector && self.config['moveElementTo'] == 'currentPosition') self.moveSubElement(value);
|
256
|
+
clearInterval(self.element.data('intervalId'));
|
257
|
+
self.config.afterUpdate.call(self.element);
|
258
|
+
|
259
|
+
}
|
260
|
+
|
261
|
+
}, fps));
|
262
|
+
}
|
263
|
+
else {
|
264
|
+
if( this.indicator.length ) {
|
265
|
+
this.indicator.stop().animate({
|
266
|
+
'width': value + '%'
|
267
|
+
}, {
|
268
|
+
duration: self.config.time,
|
269
|
+
complete: function() {
|
270
|
+
self.config.afterUpdate.call(self.element);
|
271
|
+
}
|
272
|
+
});
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
};
|
277
|
+
|
278
|
+
/**
|
279
|
+
*
|
280
|
+
*
|
281
|
+
* @param
|
282
|
+
*
|
283
|
+
* @return
|
284
|
+
*/
|
285
|
+
this.HorizontalProgressBar.prototype.moveSubElement = function(value, duration) {
|
286
|
+
|
287
|
+
if(!this.moveElement.length) return;
|
288
|
+
|
289
|
+
var self = this;
|
290
|
+
|
291
|
+
this.moveElement.css(this.config['rtl'] ? 'right' : 'left', value + '%');
|
292
|
+
|
293
|
+
};
|
294
|
+
|
295
|
+
},
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Extends VerticalProgressBars.
|
299
|
+
*
|
300
|
+
*
|
301
|
+
* @return undefined
|
302
|
+
*/
|
303
|
+
extendVerticalProgressBar: function() {
|
304
|
+
|
305
|
+
/**
|
306
|
+
* Sets new value of the Progress Bar.
|
307
|
+
*
|
308
|
+
* @param Number value
|
309
|
+
*
|
310
|
+
* @return undefined
|
311
|
+
*/
|
312
|
+
this.VerticalProgressBar.prototype.update = function(value) {
|
313
|
+
|
314
|
+
this.indicator.stop().animate({
|
315
|
+
height: value + '%'
|
316
|
+
});
|
317
|
+
|
318
|
+
}
|
319
|
+
|
320
|
+
},
|
321
|
+
|
322
|
+
|
323
|
+
/**
|
324
|
+
* Returns full collection of all initialized progress bars.
|
325
|
+
*
|
326
|
+
*
|
327
|
+
* @return jQuery _pageCollection
|
328
|
+
*/
|
329
|
+
get: function() {
|
330
|
+
|
331
|
+
return this._pageCollection;
|
332
|
+
|
333
|
+
},
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Returns API of the progress bar by index in collection.
|
337
|
+
*
|
338
|
+
* @param Number index
|
339
|
+
*
|
340
|
+
* @return HorizontalProgressBar | VerticalProgressBar
|
341
|
+
*/
|
342
|
+
getAPI: function(index) {
|
343
|
+
|
344
|
+
if(this._pageCollection.eq(index).length) return this._pageCollection.eq(index).data('ProgressBar');
|
345
|
+
|
346
|
+
return null;
|
347
|
+
|
348
|
+
}
|
349
|
+
|
350
|
+
|
351
|
+
};
|
352
|
+
|
353
|
+
})(jQuery);
|
@@ -0,0 +1,153 @@
|
|
1
|
+
/**
|
2
|
+
* Rating wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
*
|
7
|
+
*/
|
8
|
+
;(function($){
|
9
|
+
'use strict';
|
10
|
+
|
11
|
+
$.HSCore.components.HSRating = {
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Base rating configuration.
|
15
|
+
*
|
16
|
+
* @var Object _baseConfig
|
17
|
+
*/
|
18
|
+
_baseConfig : {
|
19
|
+
rtl: false,
|
20
|
+
containerClass: 'g-rating',
|
21
|
+
backwardClass: 'g-rating-backward',
|
22
|
+
forwardClass: 'g-rating-forward',
|
23
|
+
spacing: 0
|
24
|
+
},
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Collection of all initialized items.
|
28
|
+
*
|
29
|
+
* @var jQuery _pageCollection
|
30
|
+
*/
|
31
|
+
_pageCollection : $(),
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Initializes rating items.
|
35
|
+
*
|
36
|
+
* @param jQuery collection
|
37
|
+
*
|
38
|
+
* @return jQuery|undefined
|
39
|
+
*/
|
40
|
+
init: function(collection, config) {
|
41
|
+
|
42
|
+
if(!collection || !collection.length) return;
|
43
|
+
|
44
|
+
config = config && $.isPlainObject(config) ? $.extend(true, {}, this._baseConfig, config) : this._baseConfig;
|
45
|
+
|
46
|
+
var self = this;
|
47
|
+
|
48
|
+
return collection.each(function(i, el){
|
49
|
+
|
50
|
+
var $this = $(el);
|
51
|
+
|
52
|
+
config = $.extend(true, {}, config, $this.data());
|
53
|
+
|
54
|
+
|
55
|
+
if(!$this.data('rating-instance')) {
|
56
|
+
|
57
|
+
$this.data('rating-instance',new Rating( $this, $this.data('rating'), config ));
|
58
|
+
|
59
|
+
self._pageCollection = self._pageCollection.add($this);
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
});
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
};
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Rating constructor function.
|
72
|
+
*
|
73
|
+
* @param jQuery element
|
74
|
+
* @param Number value
|
75
|
+
*/
|
76
|
+
function Rating( element, value, config ) {
|
77
|
+
|
78
|
+
this.value = value;
|
79
|
+
this.element = element;
|
80
|
+
this.config = config;
|
81
|
+
|
82
|
+
this.init();
|
83
|
+
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Initializes single rating item.
|
88
|
+
*
|
89
|
+
* @return undefined
|
90
|
+
*/
|
91
|
+
Rating.prototype.init = function() {
|
92
|
+
|
93
|
+
var self = this;
|
94
|
+
|
95
|
+
this.container = $('<div></div>', {
|
96
|
+
class: self.config.containerClass,
|
97
|
+
style: 'display: inline-block; position: relative; z-index: 1; white-space: nowrap;'
|
98
|
+
});
|
99
|
+
|
100
|
+
this.forward = $('<div></div>', {
|
101
|
+
class: self.config.forwardClass,
|
102
|
+
style: 'position: absolute; left: 0; top: 0; height: 100%; overflow: hidden;'
|
103
|
+
});
|
104
|
+
|
105
|
+
this.backward = $('<div></div>', {
|
106
|
+
class: self.config.backwardClass,
|
107
|
+
style: 'position: relative; z-index: 1;'
|
108
|
+
});
|
109
|
+
|
110
|
+
for(var i = 0; i < 5; i++) {
|
111
|
+
|
112
|
+
var starEmpty = $('<i></i>', {
|
113
|
+
class: self.element.data('backward-icons-classes') ? self.element.data('backward-icons-classes') : 'fa fa-star-o'
|
114
|
+
}),
|
115
|
+
starFilled = $('<i></i>', {
|
116
|
+
class: self.element.data('forward-icons-classes') ? self.element.data('forward-icons-classes') : 'fa fa-star'
|
117
|
+
});
|
118
|
+
|
119
|
+
|
120
|
+
this.forward.append(starFilled);
|
121
|
+
this.backward.append(starEmpty);
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
this.container.append(this.forward);
|
126
|
+
this.container.append(this.backward);
|
127
|
+
|
128
|
+
this.element.append(this.container);
|
129
|
+
|
130
|
+
this.forward.css('width', this.value / 5 * 100 + '%');
|
131
|
+
|
132
|
+
this.makeSpacing();
|
133
|
+
|
134
|
+
};
|
135
|
+
|
136
|
+
Rating.prototype.makeSpacing = function() {
|
137
|
+
|
138
|
+
var self = this;
|
139
|
+
|
140
|
+
this.forward.children().add(this.backward.children()).css({
|
141
|
+
'margin-left': self.config.spacing,
|
142
|
+
'margin-right': self.config.spacing
|
143
|
+
});
|
144
|
+
|
145
|
+
this.container.css({
|
146
|
+
'margin-left': self.config.spacing * -1,
|
147
|
+
'margin-right': self.config.spacing * -1
|
148
|
+
});
|
149
|
+
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
})(jQuery);
|