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,55 @@
1
+ /**
2
+ * Compressed form helper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ */
7
+ ;(function($){
8
+ 'use strict';
9
+
10
+ $.HSCore.helpers.HSCompressedForm = {
11
+
12
+
13
+ init: function(collection){
14
+
15
+ if(!collection || !collection.length) return;
16
+ this.collection = collection;
17
+ this.collection.addClass('u-compressed-form--hidden');
18
+
19
+ this.bindEvents();
20
+
21
+ },
22
+
23
+ bindEvents: function(){
24
+
25
+ var self = this;
26
+
27
+ this.collection.on('click', function(e){
28
+
29
+ var $this = $(this);
30
+
31
+ if(!$this.hasClass('u-prevented')){
32
+
33
+
34
+ e.preventDefault();
35
+ $this.removeClass('u-compressed-form--hidden').addClass('u-prevented');
36
+
37
+ $this.find('input').focus();
38
+
39
+ }
40
+
41
+ });
42
+
43
+ $(document).on('click.uSearchform', function(e){
44
+
45
+ if( $(e.target).closest('.u-compressed-form').length ) return;
46
+
47
+ self.collection.addClass('u-compressed-form--hidden').removeClass('u-prevented');
48
+
49
+ });
50
+
51
+ }
52
+
53
+ };
54
+
55
+ })(jQuery);
@@ -0,0 +1,39 @@
1
+ /**
2
+ * File attachments helper-wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+
11
+ $.HSCore.helpers.HSFileAttachments = {
12
+ /**
13
+ * File attachment.
14
+ *
15
+ * @return undefined
16
+ */
17
+ init: function () {
18
+ var collection = $('.u-file-attach--v1 input[type="file"]:enabled, .u-file-attach--v2 input[type="file"]:enabled');
19
+
20
+ if (!collection.length) return;
21
+
22
+ collection.each(function () {
23
+ var $this = $(this),
24
+ $thisParent = $this.closest('.u-file-attach--v1, .u-file-attach--v2'),
25
+ textInputLength = $thisParent.find('input[type="text"]:enabled');
26
+
27
+ $this.on('change', function () {
28
+ var thisVal = $this.val();
29
+
30
+ if (!textInputLength.length) {
31
+ $thisParent.find('.js-value').text(thisVal.replace(/.+[\\\/]/, ''));
32
+ } else {
33
+ $thisParent.find('input[type="text"]:enabled').val(thisVal);
34
+ }
35
+ });
36
+ });
37
+ }
38
+ };
39
+ })(jQuery);
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Focus state helper-wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+
11
+ $.HSCore.helpers.HSFocusState = {
12
+ /**
13
+ * Focus state.
14
+ *
15
+ * @return undefined
16
+ */
17
+ init: function () {
18
+ var collection = $('.input-group input:not([type="checkbox"], [type="radio"]), .input-group textarea, .input-group select');
19
+
20
+ if (!collection.length) return;
21
+
22
+ collection.on('focusin', function () {
23
+ var $this = $(this),
24
+ $thisParent = $this.closest('.input-group');
25
+
26
+ $thisParent.addClass('g-state-focus');
27
+ });
28
+
29
+ collection.on('focusout', function () {
30
+ var $this = $(this),
31
+ $thisParent = $this.closest('.input-group');
32
+
33
+ $thisParent.removeClass('g-state-focus');
34
+ });
35
+ }
36
+ };
37
+ })(jQuery);
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Hamburgers plugin helper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ * @requires hamburgers.min.css
7
+ *
8
+ */
9
+ ;(function($){
10
+ 'use strict';
11
+
12
+ $.HSCore.helpers.HSHamburgers = {
13
+
14
+ /**
15
+ * Initialize 'hamburgers' plugin.
16
+ *
17
+ * @param String selector
18
+ *
19
+ * @return undefined;
20
+ */
21
+ init: function(selector) {
22
+
23
+ if( !selector || !$(selector).length ) return;
24
+
25
+ var hamburgers = $(selector),
26
+ timeoutid;
27
+
28
+ hamburgers.each(function(i, el){
29
+
30
+ var $this = $(this);
31
+
32
+ if($this.closest('button').length) {
33
+ $this.closest('button').get(0).addEventListener('click', function(e){
34
+
35
+ var $self = $(this),
36
+ $hamburger = $self.find(selector);
37
+
38
+ if(timeoutid) clearTimeout(timeoutid);
39
+ timeoutid = setTimeout(function(){
40
+
41
+ $hamburger.toggleClass('is-active');
42
+
43
+ }, 10);
44
+ e.preventDefault();
45
+ }, false);
46
+ }
47
+ else {
48
+ $this.get(0).addEventListener('click', function(e){
49
+
50
+ var $self = $(this);
51
+
52
+ if(timeoutid) clearTimeout(timeoutid);
53
+ timeoutid = setTimeout(function(){
54
+
55
+ $self.toggleClass('is-active');
56
+
57
+ }, 10);
58
+ e.preventDefault();
59
+ }, false);
60
+ }
61
+
62
+ });
63
+
64
+ }
65
+
66
+
67
+ };
68
+
69
+ })(jQuery);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Height calculating helper-wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+
11
+ $.HSCore.helpers.HSHeightCalc = {
12
+ /**
13
+ * Rating.
14
+ *
15
+ * @return undefined
16
+ */
17
+ init: function () {
18
+ var collection = $('[data-calc-target]');
19
+
20
+ if (!collection.length) return;
21
+
22
+ collection.each(function () {
23
+ var $this = $(this),
24
+ $target = $this.data('calc-target');
25
+ $this.css({
26
+ 'height': 'calc(100vh - ' + $($target).outerHeight() + 'px)',
27
+ });
28
+ });
29
+ }
30
+ };
31
+ })(jQuery);
@@ -0,0 +1,43 @@
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.HSHoverBlocks = {
13
+
14
+ /**
15
+ * Helper function for correct work the 'pappercut' hover.
16
+ *
17
+ * @return undefined
18
+ */
19
+ papercut: function(){
20
+
21
+ var collection = $('.g-block-hover__additional--pappercut-front, .g-block-hover__additional--pappercut-back');
22
+
23
+ if(!collection.length) return;
24
+
25
+ collection.each(function(){
26
+ var $this = $(this),
27
+ clipArea = $this.closest('.g-block-hover').outerHeight() / 2 + 60;
28
+
29
+ $this.css('background-image', 'url(' + $this.children('img').hide().attr('src') + ')');
30
+
31
+ if($this.hasClass('g-block-hover__additional--pappercut-front')){
32
+ $this.css('clip', 'rect(0px, auto, ' +clipArea+ 'px, 0px)');
33
+ }
34
+ else{
35
+ $this.css('clip', 'rect('+clipArea+'px, auto, auto, 0px)');
36
+ }
37
+ });
38
+
39
+ }
40
+
41
+ };
42
+
43
+ })(jQuery);
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Modal markup 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
+ $.HSCore.helpers.HSModalMarkup = {
12
+ /**
13
+ * Modal markup.
14
+ *
15
+ * @return undefined
16
+ */
17
+ init: function (el) {
18
+ var collection = $(el);
19
+
20
+ if (!collection.length) return;
21
+
22
+ var HTMLArr = {},
23
+ stylesArr = {},
24
+ scriptsArr = {};
25
+
26
+ collection.each(function () {
27
+ var $this = $(this),
28
+ contentTarget = $this.data('content-target');
29
+
30
+ HTMLArr[contentTarget] = $(contentTarget + ' .shortcode-html').length ? $(contentTarget + ' .shortcode-html').html().replace(/"/g, "'") : $(contentTarget).html().replace(/"/g, "'").replace(/type=\"text\/plain\"/g, '');
31
+ stylesArr[contentTarget] = $(contentTarget + ' .shortcode-styles').length ? $(contentTarget + ' .shortcode-styles').html().replace(/"/g, "'").replace(/type=\"text\/plain\"/g, '') : '';
32
+ scriptsArr[contentTarget] = $(contentTarget + ' .shortcode-scripts').length ? $(contentTarget + ' .shortcode-scripts').html().replace(/"/g, "'").replace(/type=\"text\/plain\"/g, '') : '';
33
+ });
34
+
35
+ $.HSCore.components.HSModalWindow.init(el, {
36
+ onOpen: function () {
37
+ var target = $(this.context.activeElement).data('content-target');
38
+
39
+ if(stylesArr[target] != '' || scriptsArr[target] != '') {
40
+ $('.custombox-content .modal-demo')
41
+ .append('<ul class="nav text-center justify-content-center u-nav-v5-2 u-nav-primary g-mb-10" role="tablist"></ul><div id="modalMarkupInner" class="tab-content" style="height: calc(100% - 47px);"></div>');
42
+
43
+ $('.custombox-content .nav')
44
+ .append('<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#markupHTML" role="tab">HTML</a></li>');
45
+
46
+ $('.custombox-content .tab-content')
47
+ .append('<div id="markupHTML" class="markup-inner tab-pane g-brd-around g-brd-gray-light-v1 fade show active" role="tabpanel" style="max-height: 100%;"><pre><code class="language-markup"><div></div></code></pre></div>')
48
+ .find('#markupHTML code > div')
49
+ .text(HTMLArr[target]);
50
+
51
+ if(stylesArr[target] != '') {
52
+ $('.custombox-content .nav')
53
+ .append('<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#markupStyles" role="tab">Styles</a></li>');
54
+
55
+ $('.custombox-content .tab-content')
56
+ .append('<div id="markupStyles" class="markup-inner tab-pane g-brd-around g-brd-gray-light-v1 fade" role="tabpanel" style="max-height: 100%;"><pre><code class="language-markup"><div></div></code></pre></div>')
57
+ .find('#markupStyles code > div')
58
+ .text(stylesArr[target]);
59
+ }
60
+
61
+ if(scriptsArr[target] != '') {
62
+ $('.custombox-content .nav')
63
+ .append('<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#markupScripts" role="tab">Scripts</a></li>');
64
+
65
+ $('.custombox-content .tab-content')
66
+ .append('<div id="markupScripts" class="markup-inner tab-pane g-brd-around g-brd-gray-light-v1 fade" role="tabpanel" style="max-height: 100%;"><pre><code class="language-markup"><div></div></code></pre></div>')
67
+ .find('#markupScripts code > div')
68
+ .text(scriptsArr[target]);
69
+ }
70
+
71
+ $.HSCore.components.HSTabs.init('[role="tablist"]');
72
+ } else {
73
+ $('.custombox-content .modal-demo')
74
+ .append('<div id="modalMarkupInner" class="markup-inner g-brd-around g-brd-gray-light-v1" style="max-height: 100%;"><pre><code class="language-markup"><div></div></code></pre></div>')
75
+ .find('#modalMarkupInner code > div')
76
+ .text(HTMLArr[target]);
77
+ }
78
+
79
+ $.HSCore.components.HSScrollBar.init($('.custombox-content .markup-inner'));
80
+
81
+ Prism.highlightAll();
82
+ },
83
+ onClose: function () {
84
+ $('#modalMarkupInner').remove();
85
+ }
86
+ });
87
+ }
88
+ };
89
+ })(jQuery);
@@ -0,0 +1,169 @@
1
+ /**
2
+ * Helper for splitted-navigation element.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function($){
9
+ 'use strict';
10
+
11
+ $.HSCore.helpers.HSNavigationSplitted = {
12
+
13
+ /**
14
+ * Base configuration of the helper.
15
+ *
16
+ * @private
17
+ */
18
+ _baseConfig: {
19
+ breakpoint: 992,
20
+ mobileTarget: null,
21
+ logoSelector: '.navbar-brand',
22
+ logoItemSelector: '.nav-logo-item'
23
+ },
24
+
25
+ /**
26
+ * Contains all initialized items on the page.
27
+ *
28
+ * @private
29
+ */
30
+ _pageCollection: $(),
31
+
32
+ /**
33
+ * Initialization.
34
+ *
35
+ * @param {jQuery} collection
36
+ * @param {Object} config
37
+ *
38
+ * @return {jQuery}
39
+ */
40
+ init: function(collection, config) {
41
+
42
+ var self;
43
+
44
+ if(!collection || !collection.length) return $();
45
+
46
+ self = this;
47
+
48
+ $(window).on('resize.HSSplitteNavigation', function(){
49
+
50
+ if( self.resizeTimeOutId ) clearTimeout( self.resizeTimeOutId );
51
+
52
+ self.resizeTimeOutId = setTimeout(function(){
53
+ self._pageCollection.each(function(i, el){
54
+ $(el).data('HSSplittedNavigation').check();
55
+ });
56
+ },10);
57
+
58
+ });
59
+
60
+ collection.each(function(i, el){
61
+
62
+ var $item = $(el);
63
+
64
+ config = config && $.isPlainObject(config) ?
65
+ $.extend(true, {}, self._baseConfig, config, $item.data()) :
66
+ $.extend(true, {}, self._baseConfig, $item.data());
67
+
68
+ if( $item.data('HSSplittedNavigation') ) return;
69
+
70
+ $item.data('HSSplittedNavigation', new HSSplittedNavigation( $item, config ));
71
+ self._pageCollection = self._pageCollection.add($item);
72
+
73
+ });
74
+
75
+ self._pageCollection.each(function(i, el){
76
+ $(el).data('HSSplittedNavigation').run();
77
+ });
78
+
79
+ return collection;
80
+
81
+ }
82
+
83
+
84
+ };
85
+
86
+ /**
87
+ * Creates a splitted-navigation object.
88
+ *
89
+ * @param {jQuery} element
90
+ * @param {Object} config
91
+ *
92
+ * @constructor
93
+ */
94
+ function HSSplittedNavigation(element, config) {
95
+ this.element = element;
96
+ this.config = config;
97
+
98
+ this.logo = this.element.find( this.config.logoSelector );
99
+ this.logoItem = this.element.find( this.config.logoItemSelector );
100
+ this.target = this.element.find( this.config.mobileTarget ).length ? this.element.find( this.config.mobileTarget ) : this.element;
101
+ }
102
+
103
+ /**
104
+ *
105
+ *
106
+ * @public
107
+ * @return {HSSplittedNavigation}
108
+ */
109
+ HSSplittedNavigation.prototype.run = function() {
110
+
111
+ this[$(window).width() < this.config.breakpoint ? 'toMobileState' : 'toDefaultState']();
112
+
113
+ return this;
114
+
115
+ }
116
+
117
+ /**
118
+ *
119
+ *
120
+ * @public
121
+ * @return {HSSplittedNavigation}
122
+ */
123
+ HSSplittedNavigation.prototype.check = function() {
124
+
125
+ var $w = $(window);
126
+
127
+ if( $w.width() < this.config.breakpoint && this.defaultState) {
128
+ this.toMobileState();
129
+ }
130
+ else if( $w.width() >= this.config.breakpoint && !this.defaultState ) {
131
+ this.toDefaultState();
132
+ }
133
+
134
+ return this;
135
+
136
+ }
137
+
138
+ /**
139
+ *
140
+ *
141
+ * @public
142
+ * @return {HSSplittedNavigation}
143
+ */
144
+ HSSplittedNavigation.prototype.toDefaultState = function() {
145
+ if( !this.logoItem.length || !this.logo.length ) return this;
146
+
147
+ this.logoItem.show().append( this.logo );
148
+
149
+ this.defaultState = true;
150
+ return this;
151
+ }
152
+
153
+ /**
154
+ *
155
+ *
156
+ * @public
157
+ * @return {HSSplittedNavigation}
158
+ */
159
+ HSSplittedNavigation.prototype.toMobileState = function() {
160
+ if( !this.logoItem.length || !this.logo.length ) return this;
161
+
162
+ this.target.before( this.logo );
163
+ this.logoItem.hide();
164
+
165
+ this.defaultState = false;
166
+ return this;
167
+ }
168
+
169
+ })(jQuery);
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Not empty state helper-wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+
11
+ $.HSCore.helpers.HSNotEmptyState = {
12
+ /**
13
+ * Not empty state.
14
+ *
15
+ * @return undefined
16
+ */
17
+ init: function () {
18
+ var collection = $('input:not([type="checkbox"], [type="radio"]), textarea');
19
+
20
+ if (!collection.length) return;
21
+
22
+ collection.on('keyup', function () {
23
+ var $this = $(this),
24
+ thisVal = $this.val();
25
+
26
+ if (thisVal != 0) {
27
+ $this.addClass('g-state-not-empty');
28
+ } else {
29
+ $this.removeClass('g-state-not-empty');
30
+ }
31
+ });
32
+ }
33
+ };
34
+ })(jQuery);
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Rating helper-wrapper.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+
11
+ $.HSCore.helpers.HSRating = {
12
+ /**
13
+ * Rating.
14
+ *
15
+ * @return undefined
16
+ */
17
+ init: function () {
18
+ var collection = $('.js-rating');
19
+
20
+ if (!collection.length) return;
21
+
22
+ collection.each(function () {
23
+ var $this = $(this),
24
+ $target = $this.find('> *'),
25
+ hoverClasses = $this.data('hover-classes');
26
+
27
+ $target.on('mouseenter', function () {
28
+ $(this).addClass(hoverClasses);
29
+ $(this).prevAll().addClass(hoverClasses);
30
+ $(this).nextAll().not('.click').removeClass(hoverClasses);
31
+ });
32
+
33
+ $target.on('mouseleave', function () {
34
+ $target.not('.click').removeClass(hoverClasses);
35
+ });
36
+
37
+ $target.on('click', function () {
38
+ $(this).addClass('click ' + hoverClasses);
39
+ $(this).prevAll().addClass('click ' + hoverClasses);
40
+ $(this).nextAll().removeClass('click ' + hoverClasses);
41
+ });
42
+ });
43
+ }
44
+ };
45
+ })(jQuery);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Selecter.
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ * @requires chart.js (v1.0.3)
7
+ *
8
+ */
9
+ ;(function($){
10
+ 'use strict';
11
+
12
+ $(document).on('click','.js-selecter',function(){ this.select(); });
13
+
14
+ })(jQuery);
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Filter
3
+ *
4
+ * @author Htmlstream
5
+ * @version 1.0
6
+ *
7
+ */
8
+ ;(function ($) {
9
+ 'use strict';
10
+ $(document).ready(function() {
11
+ function sortUnorderedList() {
12
+ var mylist = $('.js-shortcode-filter-result');
13
+ var listitems = mylist.children('li').get();
14
+ listitems.sort(function(a, b) {
15
+ return $(a).text().toUpperCase().localeCompare($(b).text().toUpperCase());
16
+ })
17
+ $.each(listitems, function(idx, itm) { mylist.append(itm); });
18
+ }
19
+ sortUnorderedList();
20
+
21
+ $('.js-shortcode-filter a').on('click', function (e) {
22
+ e.preventDefault();
23
+
24
+ var filterKey = $(this).data("shortcode-filter");
25
+
26
+ $('.js-shortcode-filter li').removeClass('active');
27
+ $(this).parent().addClass('active');
28
+
29
+ if(filterKey == 'all') {
30
+ $('.js-shortcode-filter-result').children('.js-shortcode-filter__item').show();
31
+ }
32
+ else {
33
+ $('.js-shortcode-filter-result').children(':not(.' + filterKey + ')').hide();
34
+ $('.js-shortcode-filter-result').children('.' + filterKey).show();
35
+ }
36
+ return false;
37
+ });
38
+ });
39
+ })(jQuery);