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,422 @@
|
|
1
|
+
/**
|
2
|
+
* ModalWindow wrapper.
|
3
|
+
*
|
4
|
+
* @author Htmlstream
|
5
|
+
* @version 1.0
|
6
|
+
* @requires appear.js (v1.0.3), custombox.js (v4.0.1)
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
;(function($){
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
$.HSCore.components.HSModalWindow = {
|
13
|
+
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
*
|
17
|
+
* @var Object _baseConfig
|
18
|
+
*/
|
19
|
+
_baseConfig : {
|
20
|
+
bounds: 100,
|
21
|
+
debounce: 50,
|
22
|
+
overlayOpacity: .48,
|
23
|
+
overlayColor: '#000000',
|
24
|
+
speed: 400,
|
25
|
+
type: 'onscroll', // onscroll, beforeunload, hashlink, ontarget, aftersometime
|
26
|
+
effect: 'fadein',
|
27
|
+
onOpen: function() {},
|
28
|
+
onClose: function() {},
|
29
|
+
onComplete: function() {},
|
30
|
+
},
|
31
|
+
|
32
|
+
/**
|
33
|
+
*
|
34
|
+
*
|
35
|
+
* @var jQuery _pageCollection
|
36
|
+
*/
|
37
|
+
_pageCollection : $(),
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Initialization of ModalWindow wrapper.
|
41
|
+
*
|
42
|
+
* @param String selector (optional)
|
43
|
+
* @param Object config (optional)
|
44
|
+
*
|
45
|
+
* @return jQuery - collection of initialized items.
|
46
|
+
*/
|
47
|
+
init: function(selector, config) {
|
48
|
+
|
49
|
+
var collection = $(selector);
|
50
|
+
if(!collection.length) return;
|
51
|
+
|
52
|
+
config = config && $.isPlainObject(config) ? $.extend({}, this._baseConfig, config) : this._baseConfig;
|
53
|
+
config.selector = selector;
|
54
|
+
|
55
|
+
this._pageCollection = this._pageCollection.add( collection.not(this._pageCollection) );
|
56
|
+
|
57
|
+
if(config.autonomous) {
|
58
|
+
|
59
|
+
return this.initAutonomousModalWindows(collection, config);
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
return this.initBaseModalWindows(collection, config);
|
64
|
+
|
65
|
+
},
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Initialization of each Autonomous Modal Window of the page.
|
69
|
+
*
|
70
|
+
* @param jQuery collection
|
71
|
+
* @param Object config
|
72
|
+
*
|
73
|
+
* @return jQuery collection
|
74
|
+
*/
|
75
|
+
initBaseModalWindows: function(collection, config){
|
76
|
+
|
77
|
+
return collection.on('click', function(e){
|
78
|
+
|
79
|
+
if(!('Custombox' in window)) return;
|
80
|
+
|
81
|
+
var $this = $(this),
|
82
|
+
target = $this.data('modal-target'),
|
83
|
+
effect = $this.data('modal-effect') || config['effect'];
|
84
|
+
|
85
|
+
if(!target || !$(target).length) return;
|
86
|
+
|
87
|
+
new Custombox.modal(
|
88
|
+
{
|
89
|
+
content: {
|
90
|
+
target: target,
|
91
|
+
effect: effect,
|
92
|
+
onOpen: function() {
|
93
|
+
config['onOpen'].call($(target));
|
94
|
+
},
|
95
|
+
onClose: function() {
|
96
|
+
config['onClose'].call($(target));
|
97
|
+
},
|
98
|
+
onComplete: function() {
|
99
|
+
config['onComplete'].call($(target));
|
100
|
+
}
|
101
|
+
},
|
102
|
+
overlay: {
|
103
|
+
color: $this.data('overlay-color') || config['overlayColor'],
|
104
|
+
opacity: $this.data('overlay-opacity') || config['overlayOpacity'],
|
105
|
+
speedIn: $this.data('speed') || config['speed'],
|
106
|
+
speedOut: $this.data('speed') || config['speed']
|
107
|
+
}
|
108
|
+
}
|
109
|
+
).open();
|
110
|
+
|
111
|
+
e.preventDefault();
|
112
|
+
|
113
|
+
});
|
114
|
+
|
115
|
+
},
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Initialization of each Autonomous Modal Window of the page.
|
119
|
+
*
|
120
|
+
* @param jQuery collection
|
121
|
+
* @param Object config
|
122
|
+
*
|
123
|
+
* @return jQuery collection
|
124
|
+
*/
|
125
|
+
initAutonomousModalWindows: function(collection, config) {
|
126
|
+
|
127
|
+
var self = this;
|
128
|
+
|
129
|
+
return collection.each(function(i, el) {
|
130
|
+
|
131
|
+
var $this = $(el),
|
132
|
+
type = $this.data('modal-type');
|
133
|
+
|
134
|
+
switch(type) {
|
135
|
+
|
136
|
+
case 'hashlink' :
|
137
|
+
|
138
|
+
self.initHashLinkPopup($this, config);
|
139
|
+
|
140
|
+
break;
|
141
|
+
|
142
|
+
case 'onscroll' :
|
143
|
+
|
144
|
+
self.initOnScrollPopup($this, config);
|
145
|
+
|
146
|
+
break;
|
147
|
+
|
148
|
+
case 'beforeunload' :
|
149
|
+
|
150
|
+
self.initBeforeUnloadPopup($this, config);
|
151
|
+
|
152
|
+
break;
|
153
|
+
|
154
|
+
case 'ontarget' :
|
155
|
+
|
156
|
+
self.initOnTargetPopup($this, config);
|
157
|
+
|
158
|
+
break;
|
159
|
+
|
160
|
+
case 'aftersometime' :
|
161
|
+
|
162
|
+
self.initAfterSomeTimePopup($this, config);
|
163
|
+
|
164
|
+
break;
|
165
|
+
|
166
|
+
}
|
167
|
+
|
168
|
+
});
|
169
|
+
|
170
|
+
},
|
171
|
+
|
172
|
+
/**
|
173
|
+
*
|
174
|
+
*
|
175
|
+
* @param jQuery popup
|
176
|
+
*
|
177
|
+
* @return undefined
|
178
|
+
*/
|
179
|
+
initHashLinkPopup: function(popup, config) {
|
180
|
+
|
181
|
+
var self = this,
|
182
|
+
hashItem = $(window.location.hash),
|
183
|
+
target = $('#' + popup.attr('id'));
|
184
|
+
|
185
|
+
if(hashItem.length && hashItem.attr('id') == popup.attr('id')){
|
186
|
+
|
187
|
+
new Custombox.modal(
|
188
|
+
{
|
189
|
+
content: {
|
190
|
+
target: '#' + popup.attr('id'),
|
191
|
+
effect: popup.data('effect') || config['effect'],
|
192
|
+
onOpen: function() {
|
193
|
+
config['onOpen'].call($(target));
|
194
|
+
},
|
195
|
+
onClose: function() {
|
196
|
+
config['onClose'].call($(target));
|
197
|
+
},
|
198
|
+
onComplete: function() {
|
199
|
+
config['onComplete'].call($(target));
|
200
|
+
}
|
201
|
+
},
|
202
|
+
overlay: {
|
203
|
+
color: popup.data('overlay-color') || config['overlayColor'],
|
204
|
+
opacity: popup.data('overlay-opacity') || config['overlayOpacity'],
|
205
|
+
speedIn: popup.data('speed') || config['speed'],
|
206
|
+
speedOut: popup.data('speed') || config['speed']
|
207
|
+
}
|
208
|
+
}
|
209
|
+
).open();
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
},
|
214
|
+
|
215
|
+
/**
|
216
|
+
*
|
217
|
+
*
|
218
|
+
* @param jQuery popup
|
219
|
+
*
|
220
|
+
* @return undefined
|
221
|
+
*/
|
222
|
+
initOnScrollPopup: function(popup, config) {
|
223
|
+
|
224
|
+
var self = this,
|
225
|
+
$window = $(window),
|
226
|
+
breakpoint = popup.data('breakpoint') ? popup.data('breakpoint') : 0,
|
227
|
+
target = $('#' + popup.attr('id'));
|
228
|
+
|
229
|
+
|
230
|
+
$window.on('scroll.popup', function() {
|
231
|
+
|
232
|
+
var scrolled = $window.scrollTop() + $window.height();
|
233
|
+
|
234
|
+
if(scrolled >= breakpoint) {
|
235
|
+
|
236
|
+
new Custombox.modal(
|
237
|
+
{
|
238
|
+
content: {
|
239
|
+
target: '#' + popup.attr('id'),
|
240
|
+
effect: popup.data('effect') || config['effect'],
|
241
|
+
onOpen: function() {
|
242
|
+
config['onOpen'].call($(target));
|
243
|
+
},
|
244
|
+
onClose: function() {
|
245
|
+
config['onClose'].call($(target));
|
246
|
+
},
|
247
|
+
onComplete: function() {
|
248
|
+
config['onComplete'].call($(target));
|
249
|
+
}
|
250
|
+
},
|
251
|
+
overlay: {
|
252
|
+
color: popup.data('overlay-color') || config['overlayColor'],
|
253
|
+
opacity: popup.data('overlay-opacity') || config['overlayOpacity'],
|
254
|
+
speedIn: popup.data('speed') || config['speed'],
|
255
|
+
speedOut: popup.data('speed') || config['speed']
|
256
|
+
}
|
257
|
+
}
|
258
|
+
).open();
|
259
|
+
|
260
|
+
$window.off('scroll.popup');
|
261
|
+
|
262
|
+
}
|
263
|
+
|
264
|
+
});
|
265
|
+
|
266
|
+
$window.trigger('scroll.popup');
|
267
|
+
|
268
|
+
},
|
269
|
+
|
270
|
+
/**
|
271
|
+
*
|
272
|
+
*
|
273
|
+
* @param jQuery popup
|
274
|
+
*
|
275
|
+
* @return undefined
|
276
|
+
*/
|
277
|
+
initBeforeUnloadPopup: function(popup, config) {
|
278
|
+
|
279
|
+
var self = this,
|
280
|
+
count = 0,
|
281
|
+
target = $('#' + popup.attr('id')),
|
282
|
+
timeoutId;
|
283
|
+
|
284
|
+
window.addEventListener('mousemove', function(e) {
|
285
|
+
|
286
|
+
if(timeoutId) clearTimeout(timeoutId);
|
287
|
+
|
288
|
+
timeoutId = setTimeout(function() {
|
289
|
+
|
290
|
+
if (e.clientY < 10 && !count) {
|
291
|
+
|
292
|
+
count++;
|
293
|
+
|
294
|
+
new Custombox.modal(
|
295
|
+
{
|
296
|
+
content: {
|
297
|
+
target: '#' + popup.attr('id'),
|
298
|
+
effect: popup.data('effect') || config['effect'],
|
299
|
+
onOpen: function() {
|
300
|
+
config['onOpen'].call($(target));
|
301
|
+
},
|
302
|
+
onClose: function() {
|
303
|
+
config['onClose'].call($(target));
|
304
|
+
},
|
305
|
+
onComplete: function() {
|
306
|
+
config['onComplete'].call($(target));
|
307
|
+
}
|
308
|
+
},
|
309
|
+
overlay: {
|
310
|
+
color: popup.data('overlay-color') || config['overlayColor'],
|
311
|
+
opacity: popup.data('overlay-opacity') || config['overlayOpacity'],
|
312
|
+
speedIn: popup.data('speed') || config['speed'],
|
313
|
+
speedOut: popup.data('speed') || config['speed']
|
314
|
+
}
|
315
|
+
}
|
316
|
+
).open();
|
317
|
+
|
318
|
+
}
|
319
|
+
|
320
|
+
}, 10);
|
321
|
+
|
322
|
+
});
|
323
|
+
|
324
|
+
|
325
|
+
},
|
326
|
+
|
327
|
+
/**
|
328
|
+
*
|
329
|
+
*
|
330
|
+
* @param jQuery popup
|
331
|
+
*
|
332
|
+
* @return undefined
|
333
|
+
*/
|
334
|
+
initOnTargetPopup: function(popup, config) {
|
335
|
+
|
336
|
+
var self = this,
|
337
|
+
target = popup.data('target');
|
338
|
+
|
339
|
+
if(!target || !$(target).length) return;
|
340
|
+
|
341
|
+
appear({
|
342
|
+
bounds: config['bounds'],
|
343
|
+
debounce: config['debounce'],
|
344
|
+
elements: function() {
|
345
|
+
return document.querySelectorAll(target);
|
346
|
+
},
|
347
|
+
appear: function(element) {
|
348
|
+
|
349
|
+
new Custombox.modal(
|
350
|
+
{
|
351
|
+
content: {
|
352
|
+
target: '#' + popup.attr('id'),
|
353
|
+
effect: popup.data('effect') || config['effect'],
|
354
|
+
onOpen: function() {
|
355
|
+
config['onOpen'].call($(target));
|
356
|
+
},
|
357
|
+
onClose: function() {
|
358
|
+
config['onClose'].call($(target));
|
359
|
+
},
|
360
|
+
onComplete: function() {
|
361
|
+
config['onComplete'].call($(target));
|
362
|
+
}
|
363
|
+
},
|
364
|
+
overlay: {
|
365
|
+
color: popup.data('overlay-color') || config['overlayColor'],
|
366
|
+
opacity: popup.data('overlay-opacity') || config['overlayOpacity'],
|
367
|
+
speedIn: popup.data('speed') || config['speed'],
|
368
|
+
speedOut: popup.data('speed') || config['speed']
|
369
|
+
}
|
370
|
+
}
|
371
|
+
).open();
|
372
|
+
|
373
|
+
}
|
374
|
+
});
|
375
|
+
|
376
|
+
},
|
377
|
+
|
378
|
+
/**
|
379
|
+
*
|
380
|
+
*
|
381
|
+
* @param jQuery popup
|
382
|
+
*
|
383
|
+
* @return undefined
|
384
|
+
*/
|
385
|
+
initAfterSomeTimePopup: function(popup, config) {
|
386
|
+
|
387
|
+
var self = this,
|
388
|
+
target = $('#' + popup.attr('id'));
|
389
|
+
|
390
|
+
setTimeout(function() {
|
391
|
+
|
392
|
+
new Custombox.modal(
|
393
|
+
{
|
394
|
+
content: {
|
395
|
+
target: '#' + popup.attr('id'),
|
396
|
+
effect: popup.data('effect') || config['effect'],
|
397
|
+
onOpen: function() {
|
398
|
+
config['onOpen'].call($(target));
|
399
|
+
},
|
400
|
+
onClose: function() {
|
401
|
+
config['onClose'].call($(target));
|
402
|
+
},
|
403
|
+
onComplete: function() {
|
404
|
+
config['onComplete'].call($(target));
|
405
|
+
}
|
406
|
+
},
|
407
|
+
overlay: {
|
408
|
+
color: popup.data('overlay-color') || config['overlayColor'],
|
409
|
+
opacity: popup.data('overlay-opacity') || config['overlayOpacity'],
|
410
|
+
speedIn: popup.data('speed') || config['speed'],
|
411
|
+
speedOut: popup.data('speed') || config['speed']
|
412
|
+
}
|
413
|
+
}
|
414
|
+
).open();
|
415
|
+
|
416
|
+
}, popup.data('delay') ? popup.data('delay') : 10)
|
417
|
+
|
418
|
+
}
|
419
|
+
|
420
|
+
};
|
421
|
+
|
422
|
+
})(jQuery);
|