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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -3
  3. data/_sass/font-awesome/scss/_icons.scss +91 -0
  4. data/_sass/font-awesome/scss/_rotated-flipped.scss +3 -2
  5. data/_sass/font-awesome/scss/_variables.scss +93 -1
  6. data/_sass/font-awesome/scss/brands.scss +1 -4
  7. data/_sass/font-awesome/scss/fontawesome.scss +0 -4
  8. data/_sass/font-awesome/scss/regular.scss +1 -4
  9. data/_sass/font-awesome/scss/solid.scss +1 -4
  10. data/_sass/font-awesome/scss/v4-shims.scss +0 -4
  11. data/assets/favicons/de.svg +5 -0
  12. data/assets/favicons/gk-logo-white.png +0 -0
  13. data/assets/favicons/us.svg +10 -0
  14. data/assets/img/cbp-sprite.png +0 -0
  15. data/assets/js/components/_hs.dropdown.js +612 -0
  16. data/assets/js/components/gmap/hs.map.js +347 -0
  17. data/assets/js/components/hs.ajax-autocomplete.js +103 -0
  18. data/assets/js/components/hs.autocomplete-local-search.js +113 -0
  19. data/assets/js/components/hs.autocomplete.js +125 -0
  20. data/assets/js/components/hs.bg-video.js +70 -0
  21. data/assets/js/components/hs.carousel-materialize.js +75 -0
  22. data/assets/js/components/hs.carousel-owl.js +89 -0
  23. data/assets/js/components/hs.carousel-swiper.js +123 -0
  24. data/assets/js/components/hs.carousel.js +283 -0
  25. data/assets/js/components/hs.chart-pie.js +220 -0
  26. data/assets/js/components/hs.chart.js +155 -0
  27. data/assets/js/components/hs.count-qty.js +92 -0
  28. data/assets/js/components/hs.countdown.js +359 -0
  29. data/assets/js/components/hs.counter.js +220 -0
  30. data/assets/js/components/hs.cubeportfolio.js +163 -0
  31. data/assets/js/components/hs.datepicker.js +149 -0
  32. data/assets/js/components/hs.dropdown.js +522 -0
  33. data/assets/js/components/hs.file-attachement.js +135 -0
  34. data/assets/js/components/hs.flickr.js +180 -0
  35. data/assets/js/components/hs.go-to.js +121 -0
  36. data/assets/js/components/hs.header-fullscreen.js +397 -0
  37. data/assets/js/components/hs.header-side.js +1096 -0
  38. data/assets/js/components/hs.header.js +2128 -0
  39. data/assets/js/components/hs.instagram.js +94 -0
  40. data/assets/js/components/hs.map.pin.js +82 -0
  41. data/assets/js/components/hs.map.svg.js +80 -0
  42. data/assets/js/components/hs.markup-copy.js +102 -0
  43. data/assets/js/components/hs.masked-input.js +74 -0
  44. data/assets/js/components/hs.modal-event.js +134 -0
  45. data/assets/js/components/hs.modal-window.js +422 -0
  46. data/assets/js/components/hs.navigation.js +690 -0
  47. data/assets/js/components/hs.nl-form.js +70 -0
  48. data/assets/js/components/hs.onscroll-animation.js +190 -0
  49. data/assets/js/components/hs.popup.js +310 -0
  50. data/assets/js/components/hs.progress-bar.js +353 -0
  51. data/assets/js/components/hs.rating.js +153 -0
  52. data/assets/js/components/hs.scroll-nav.js +373 -0
  53. data/assets/js/components/hs.scrollbar.js +102 -0
  54. data/assets/js/components/hs.select.js +91 -0
  55. data/assets/js/components/hs.slider.js +99 -0
  56. data/assets/js/components/hs.smart-menu.js +233 -0
  57. data/assets/js/components/hs.step-form-old.js +94 -0
  58. data/assets/js/components/hs.step-form.js +93 -0
  59. data/assets/js/components/hs.sticky-block.js +418 -0
  60. data/assets/js/components/hs.tabs.js +186 -0
  61. data/assets/js/components/hs.twitter.js +111 -0
  62. data/assets/js/components/hs.validation.js +111 -0
  63. data/assets/js/components/hs.video-audio.js +70 -0
  64. data/assets/js/components/text-animation/hs.text-slideshow.js +348 -0
  65. data/assets/js/helpers/hs.bg-video.js +23 -0
  66. data/assets/js/helpers/hs.chart.js +66 -0
  67. data/assets/js/helpers/hs.compressed-form.js +55 -0
  68. data/assets/js/helpers/hs.file-attachments.js +39 -0
  69. data/assets/js/helpers/hs.focus-state.js +37 -0
  70. data/assets/js/helpers/hs.hamburgers.js +69 -0
  71. data/assets/js/helpers/hs.height-calc.js +31 -0
  72. data/assets/js/helpers/hs.hover-blocks.js +43 -0
  73. data/assets/js/helpers/hs.modal-markup.js +89 -0
  74. data/assets/js/helpers/hs.navigation-splitted.js +169 -0
  75. data/assets/js/helpers/hs.not-empty-state.js +34 -0
  76. data/assets/js/helpers/hs.rating.js +45 -0
  77. data/assets/js/helpers/hs.selecter.js +14 -0
  78. data/assets/js/helpers/hs.shortcode-filter.js +39 -0
  79. data/assets/js/hs.core.js +250 -0
  80. data/assets/js/hs.popup.js +155 -0
  81. data/assets/js/vendor/jquery.cubeportfolio.js +6054 -0
  82. data/assets/js/vendor/jquery.fancybox.js +4936 -0
  83. data/assets/nav/pixel-trans.png +0 -0
  84. data/assets/nav/pixel-trans@2x.png +0 -0
  85. metadata +75 -1
@@ -0,0 +1,180 @@
1
+ /**
2
+ * Flickr wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ * @requires
7
+ *
8
+ */
9
+ ;(function ($) {
10
+ 'use strict';
11
+
12
+ $.HSCore.components.HSFlickr = {
13
+ /**
14
+ *
15
+ *
16
+ * @var Object _baseConfig
17
+ */
18
+ _baseConfig: {
19
+ autoplay: true,
20
+ infinite: true
21
+ },
22
+
23
+ /**
24
+ *
25
+ *
26
+ * @var jQuery pageCollection
27
+ */
28
+ pageCollection: $(),
29
+
30
+ /**
31
+ * Initialization of Flickr 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.flickrInit();
50
+
51
+ return this.pageCollection;
52
+
53
+ },
54
+
55
+ flickrInit: function () {
56
+ //Variables
57
+ var $self, config, collection;
58
+ //Variables values
59
+ $self = this;
60
+ config = $self.config;
61
+ collection = $self.pageCollection;
62
+
63
+ //Actions
64
+ this.collection.each(function (i, el) {
65
+ //Variables
66
+ var $this;
67
+ //Variables values
68
+ $this = $(el);
69
+
70
+ //Type of content
71
+ if ($this.data('photoset-id')) {
72
+ $self.photosetInit($this);
73
+ } else if ($this.data('gallery-id')) {
74
+ $self.galleryInit($this);
75
+ } else {
76
+ return;
77
+ }
78
+
79
+ //Actions
80
+ collection = collection.add($this);
81
+ });
82
+ },
83
+
84
+ photosetInit: function (el) {
85
+ //Variables
86
+ var $self, apiKey, userID, photosetID;
87
+ //Variables values
88
+ $self = this;
89
+ apiKey = el.data('key');
90
+ userID = el.data('user-id');
91
+ photosetID = el.data('photoset-id');
92
+
93
+ $.getJSON('https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=' +
94
+ apiKey +
95
+ '&photoset_id=' +
96
+ photosetID +
97
+ '&user_id=' +
98
+ userID +
99
+ '&format=json&nojsoncallback=1', function (data) {
100
+ //Variables
101
+ var elLength, i;
102
+ //Variables values
103
+ elLength = data.photoset.photo.length;
104
+
105
+ for (i = 0; i < elLength; i++) {
106
+ var item, photoURL, itemMarkup;
107
+ item = data.photoset.photo[i];
108
+ photoURL = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg';
109
+ itemMarkup = '<div class="col-md-2"><div class="js-block-square g-bg-size-cover g-brd-around g-brd-gray-light-v1 g-mb-20" style="background-image: url(' +
110
+ photoURL +
111
+ ');"></div><h4 class="text-uppercase g-font-size-14">' +
112
+ item.title +
113
+ '</h4></div>';
114
+ el.append(itemMarkup);
115
+ }
116
+ }).done(function () {
117
+ $self.squareBlocks('.js-block-square');
118
+
119
+ $(window).on('resize', function () {
120
+ $self.squareBlocks('.js-block-square');
121
+ });
122
+ });
123
+ },
124
+
125
+ galleryInit: function (el) {
126
+ //Variables
127
+ var $self, apiKey, galleryID;
128
+ //Variables values
129
+ $self = this;
130
+ apiKey = el.data('key');
131
+ galleryID = el.data('gallery-id');
132
+
133
+ $.getJSON('https://api.flickr.com/services/rest/?method=flickr.galleries.getPhotos&api_key=' +
134
+ apiKey +
135
+ '&gallery_id=' +
136
+ galleryID +
137
+ '&format=json&nojsoncallback=1', function (data) {
138
+ //Variables
139
+ var elLength, i;
140
+ //Variables values
141
+ elLength = data.photos.total;
142
+
143
+ for (i = 0; i < elLength; i++) {
144
+ var item, photoURL, itemMarkup, photoURLFull;
145
+ item = data.photos.photo[i];
146
+ photoURL = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg';
147
+ photoURLFull = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg';
148
+ itemMarkup = '<div class="col-md-2"><a class="js-fancy-link js-block-square d-block g-bg-pos-center g-bg-size-cover g-brd-around g-brd-gray g-mb-20" href="' +
149
+ photoURLFull +
150
+ '" style="background-image: url(' +
151
+ photoURL +
152
+ ');" rel="flickr-popup" title="' +
153
+ item.title +
154
+ '"></a><h4 class="text-uppercase g-font-size-14">' +
155
+ item.title +
156
+ '</h4></div>';
157
+ el.append(itemMarkup);
158
+ }
159
+ }).done(function () {
160
+ $self.squareBlocks('.js-block-square');
161
+
162
+ $(window).on('resize', function () {
163
+ $self.squareBlocks('.js-block-square');
164
+ });
165
+ });
166
+ },
167
+
168
+ squareBlocks: function (selector) {
169
+ $(selector).each(function () {
170
+ var $item, itemWidth;
171
+ $item = $(this);
172
+ itemWidth = $item.width();
173
+
174
+ $item.css('height', itemWidth);
175
+ });
176
+ }
177
+
178
+ }
179
+
180
+ })(jQuery);
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Go To wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+ $.HSCore.components.HSGoTo = {
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 Go To 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.initGoTo();
44
+
45
+ return this.pageCollection;
46
+ },
47
+
48
+ initGoTo: 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
+ $target = $this.data('target'),
58
+ type = $this.data('type'),
59
+ showEffect = $this.data('show-effect'),
60
+ position = JSON.parse(el.getAttribute('data-position')),
61
+ compensation = $($this.data('compensation')).outerHeight(),
62
+ offsetTop = $this.data('offset-top');
63
+
64
+ $this.addClass('animated').css({
65
+ 'display': 'inline-block',
66
+ 'position': type,
67
+ 'opacity': 0
68
+ });
69
+
70
+ if (type == 'fixed' || type == 'absolute') {
71
+ $this.css(position);
72
+ }
73
+
74
+ $this.on('click', function (e) {
75
+ e.preventDefault();
76
+
77
+ $('html, body').stop().animate({
78
+ 'scrollTop': $target ? $($target).offset().top - compensation : 0
79
+ }, 800);
80
+ });
81
+
82
+ if (!$this.data('offset-top') && !$this.hasClass('u-animation-was-fired')) {
83
+ if ($this.offset().top <= $(window).height()) {
84
+ $this.addClass('u-animation-was-fired ' + showEffect).css({
85
+ 'opacity': ''
86
+ });
87
+ }
88
+ }
89
+
90
+ $(window).on('scroll', function () {
91
+ if ($this.data('offset-top')) {
92
+ if ($(window).scrollTop() >= offsetTop && !$this.hasClass('u-animation-was-fired')) {
93
+ $this.addClass('u-animation-was-fired ' + showEffect).css({
94
+ 'opacity': ''
95
+ });
96
+ } else if ($(window).scrollTop() <= offsetTop && $this.hasClass('u-animation-was-fired')) {
97
+ $this.removeClass('u-animation-was-fired ' + showEffect).css({
98
+ 'opacity': 0
99
+ });
100
+ }
101
+ } else {
102
+ var thisOffsetTop = $this.offset().top;
103
+
104
+ if (!$this.hasClass('u-animation-was-fired')) {
105
+ if ($(window).scrollTop() >= thisOffsetTop - $(window).height()) {
106
+ $this.addClass('u-animation-was-fired ' + showEffect).css({
107
+ 'opacity': ''
108
+ });
109
+ }
110
+ }
111
+ }
112
+ });
113
+
114
+ $(window).trigger('scroll');
115
+
116
+ //Actions
117
+ collection = collection.add($this);
118
+ });
119
+ }
120
+ };
121
+ })(jQuery);
@@ -0,0 +1,397 @@
1
+ /**
2
+ * HSHeaderFullscreen Component.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ * @requires HSScrollBar component (hs.scrollbar.js v1.0.0)
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+
11
+ $.HSCore.components.HSHeaderFullscreen = {
12
+
13
+ /**
14
+ * Base configuration.
15
+ *
16
+ * @private
17
+ */
18
+ _baseConfig: {
19
+ afterOpen: function(){},
20
+ afterClose: function(){},
21
+ overlayClass: 'u-header__overlay',
22
+ sectionsContainerSelector: '.u-header__sections-container'
23
+ },
24
+
25
+
26
+ /**
27
+ * Contains all initialized items on the page.
28
+ *
29
+ * @private
30
+ */
31
+ _pageCollection: $(),
32
+
33
+ /**
34
+ * Initializes collection.
35
+ *
36
+ * @param {jQuery|HTMLElement} collection
37
+ * @param {Object} config
38
+ * @return {jQuery}
39
+ */
40
+ init: function( collection, config ) {
41
+
42
+ var _self = this;
43
+
44
+ if(!collection) return $();
45
+ collection = $(collection)
46
+
47
+ if(!collection.length) return $();
48
+
49
+ config = config && $.isPlainObject(config) ? config : {};
50
+
51
+ this._bindGlobalEvents();
52
+
53
+
54
+ return collection.each(function(i,el){
55
+
56
+ var $this = $(this),
57
+ itemConfig = $.extend(true, {}, _self._baseConfig, config, $this.data());
58
+
59
+ if( $this.data('HSHeaderFullscreen') ) return;
60
+
61
+ $this.data('HSHeaderFullscreen', new HSHeaderFullscreen(
62
+ $this,
63
+ itemConfig,
64
+ new HSHeaderFullscreenOverlayEffect()
65
+ ));
66
+
67
+ _self._pageCollection = _self._pageCollection.add($this);
68
+
69
+ });
70
+
71
+ },
72
+
73
+ /**
74
+ * Binds necessary global events.
75
+ *
76
+ * @private
77
+ */
78
+ _bindGlobalEvents: function() {
79
+
80
+ var _self = this;
81
+
82
+
83
+ $(window).on('resize.HSHeaderFullscreen', function() {
84
+
85
+ if(_self.resizeTimeOutId) clearTimeout(_self.resizeTimeOutId);
86
+
87
+ _self.resizeTimeOutId = setTimeout(function(){
88
+
89
+ _self._pageCollection.each(function(i,el){
90
+
91
+ var $this = $(el),
92
+ HSHeaderFullscreen = $this.data('HSHeaderFullscreen');
93
+
94
+ if(!HSHeaderFullscreen) return;
95
+
96
+ HSHeaderFullscreen.update();
97
+
98
+ });
99
+
100
+ }, 50);
101
+
102
+ });
103
+
104
+ $(document).on('keyup.HSHeaderFullscreen', function(e){
105
+
106
+ if(e.keyCode && e.keyCode == 27) {
107
+
108
+ _self._pageCollection.each(function(i,el){
109
+
110
+ var $this = $(el),
111
+ HSHeaderFullscreen = $this.data('HSHeaderFullscreen');
112
+
113
+ if(!HSHeaderFullscreen) return;
114
+
115
+ HSHeaderFullscreen.hide();
116
+
117
+ });
118
+
119
+ }
120
+
121
+ });
122
+
123
+ }
124
+ };
125
+
126
+ /**
127
+ * HSHeaderFullscreen.
128
+ *
129
+ * @param {jQuery} element
130
+ * @param {Object} config
131
+ * @param {Object} effect
132
+ * @constructor
133
+ */
134
+ function HSHeaderFullscreen( element, config, effect ) {
135
+
136
+ /**
137
+ * Contains link to the current object.
138
+ * @private
139
+ */
140
+ var _self = this;
141
+
142
+ /**
143
+ * Contains link to the current jQuery element.
144
+ * @public
145
+ */
146
+ this.element = element;
147
+
148
+ /**
149
+ * Configuration object.
150
+ * @public
151
+ */
152
+ this.config = config;
153
+
154
+ /**
155
+ * Object that describes animation of the element.
156
+ * @public
157
+ */
158
+ this.effect = effect;
159
+
160
+ /**
161
+ * Contains link to the overlay element.
162
+ * @public
163
+ */
164
+ this.overlay = $('<div></div>', {
165
+ class: _self.config.overlayClass
166
+ });
167
+
168
+ Object.defineProperty(this, 'isShown', {
169
+ get: function() {
170
+ return _self.effect.isShown();
171
+ }
172
+ });
173
+
174
+ Object.defineProperty(this, 'sections', {
175
+ get: function() {
176
+ return _self.element.find(_self.config.sectionsContainerSelector);
177
+ }
178
+ });
179
+
180
+ this.element.append( this.overlay );
181
+ this.effect.init( this.element, this.overlay, this.config.afterOpen, this.config.afterClose );
182
+ this._bindEvents();
183
+
184
+ if($.HSCore.components.HSScrollBar && this.sections.length) {
185
+
186
+ $.HSCore.components.HSScrollBar.init( this.sections );
187
+
188
+ }
189
+ };
190
+
191
+ /**
192
+ * Binds necessary events.
193
+ *
194
+ * @public
195
+ * @return {HSHeaderFullscreen}
196
+ */
197
+ HSHeaderFullscreen.prototype._bindEvents = function() {
198
+
199
+ var _self = this;
200
+
201
+ this.invoker = $('[data-target="#'+ this.element.attr('id') +'"]');
202
+
203
+ if(this.invoker.length) {
204
+
205
+ this.invoker.off('click.HSHeaderFullscreen').on('click.HSHeaderFullscreen', function(e){
206
+
207
+ _self[ _self.isShown ? 'hide' : 'show' ]();
208
+
209
+ e.preventDefault();
210
+
211
+ });
212
+
213
+ }
214
+
215
+ return this;
216
+
217
+ };
218
+
219
+ /**
220
+ * Updates the header.
221
+ *
222
+ * @public
223
+ * @return {HSHeaderFullscreen}
224
+ */
225
+ HSHeaderFullscreen.prototype.update = function() {
226
+
227
+ if(!this.effect) return false;
228
+
229
+ this.effect.update();
230
+
231
+ return this;
232
+ };
233
+
234
+ /**
235
+ * Shows the header.
236
+ *
237
+ * @public
238
+ * @return {HSHeaderFullscreen}
239
+ */
240
+ HSHeaderFullscreen.prototype.show = function() {
241
+
242
+ if(!this.effect) return false;
243
+
244
+ this.effect.show();
245
+
246
+ return this;
247
+
248
+ };
249
+
250
+ /**
251
+ * Hides the header.
252
+ *
253
+ * @public
254
+ * @return {HSHeaderFullscreen}
255
+ */
256
+ HSHeaderFullscreen.prototype.hide = function() {
257
+
258
+ // if(this.invoker && this.invoker.length) {
259
+ // var hamburgers = this.invoker.find('.is-active');
260
+ // if(hamburgers.length) hamburgers.removeClass('is-active');
261
+ // }
262
+
263
+ if(!this.effect) return false;
264
+
265
+ this.effect.hide();
266
+
267
+ return this;
268
+
269
+ };
270
+
271
+ /**
272
+ * HSHeaderFullscreenOverlayEffect.
273
+ *
274
+ * @constructor
275
+ */
276
+ function HSHeaderFullscreenOverlayEffect() {
277
+ this._isShown = false;
278
+ };
279
+
280
+ /**
281
+ * Initialization of HSHeaderFullscreenOverlayEffect.
282
+ *
283
+ * @param {jQuery} element
284
+ * @param {jQuery} overlay
285
+ * @param {Function} afterOpen
286
+ * @param {Function} afterClose
287
+ * @public
288
+ * @return {HSHeaderFullscreenOverlayEffect}
289
+ */
290
+ HSHeaderFullscreenOverlayEffect.prototype.init = function(element, overlay, afterOpen, afterClose) {
291
+
292
+ var _self = this;
293
+
294
+ this.element = element;
295
+ this.overlay = overlay;
296
+ this.afterOpen = afterOpen;
297
+ this.afterClose = afterClose;
298
+
299
+ this.overlay.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", function(e){
300
+
301
+ if(_self.isShown() && e.originalEvent.propertyName == 'transform') {
302
+ _self.afterOpen.call(_self.element, _self.overlay);
303
+ }
304
+ else if(!_self.isShown() && e.originalEvent.propertyName == 'transform') {
305
+ _self.afterClose.call(_self.element, _self.overlay);
306
+ }
307
+
308
+ e.stopPropagation();
309
+ e.preventDefault();
310
+
311
+ });
312
+
313
+ this.update();
314
+
315
+ this.overlay.addClass( this.element.data('overlay-classes') );
316
+
317
+ return this;
318
+ };
319
+
320
+ /**
321
+ * Detroys the overlay effect.
322
+ *
323
+ * @public
324
+ * @return {HSHeaderFullscreenOverlayEffect}
325
+ */
326
+ HSHeaderFullscreenOverlayEffect.prototype.destroy = function() {
327
+
328
+ this.overlay.css({
329
+ 'width': 'auto',
330
+ 'height': 'auto',
331
+ });
332
+
333
+ this.element.removeClass('u-header--fullscreen-showed');
334
+
335
+ return this;
336
+ };
337
+
338
+ /**
339
+ * Necessary updates which will be applied when window has been resized.
340
+ *
341
+ * @public
342
+ * @return {HSHeaderFullscreenOverlayEffect}
343
+ */
344
+ HSHeaderFullscreenOverlayEffect.prototype.update = function() {
345
+
346
+ var $w = $(window),
347
+ $wW = $w.width(),
348
+ $wH = $w.height();
349
+
350
+ this.overlay.css({
351
+ width: $wW > $wH ? $wW * 1.5 : $wH * 1.5,
352
+ height: $wW > $wH ? $wW * 1.5 : $wH * 1.5
353
+ });
354
+
355
+ return this;
356
+ };
357
+
358
+ /**
359
+ * Describes appear of the overlay.
360
+ *
361
+ * @public
362
+ * @return {HSHeaderFullscreenOverlayEffect}
363
+ */
364
+ HSHeaderFullscreenOverlayEffect.prototype.show = function() {
365
+
366
+ this.element.addClass('u-header--fullscreen-showed');
367
+ this._isShown = true;
368
+
369
+ return this;
370
+ };
371
+
372
+ /**
373
+ * Describes disappearance of the overlay.
374
+ *
375
+ * @public
376
+ * @return {HSHeaderFullscreenOverlayEffect}
377
+ */
378
+ HSHeaderFullscreenOverlayEffect.prototype.hide = function() {
379
+
380
+ this.element.removeClass('u-header--fullscreen-showed');
381
+ this._isShown = false;
382
+
383
+ return this;
384
+ };
385
+
386
+ /**
387
+ * Returns true if header has been opened, otherwise returns false.
388
+ *
389
+ * @public
390
+ * @return {Boolean}
391
+ */
392
+ HSHeaderFullscreenOverlayEffect.prototype.isShown = function() {
393
+
394
+ return this._isShown;
395
+ };
396
+
397
+ })(jQuery);