propeller_rails 0.1.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/Gemfile +6 -0
  4. data/README.md +33 -0
  5. data/Rakefile +2 -0
  6. data/app/assets/javascripts/propeller.js +3 -0
  7. data/app/assets/stylesheets/propeller.scss +3 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/lib/propeller_rails/version.rb +3 -0
  11. data/lib/propeller_rails.rb +8 -0
  12. data/propeller_rails.gemspec +37 -0
  13. data/vendor/assets/custom/css/propeller.css +3697 -0
  14. data/vendor/assets/custom/css/propeller.min.css +8 -0
  15. data/vendor/assets/custom/css/propeller.min.css.map +1 -0
  16. data/vendor/assets/custom/fonts/roboto/Roboto-Black-webfont.eot +0 -0
  17. data/vendor/assets/custom/fonts/roboto/Roboto-Black-webfont.svg +642 -0
  18. data/vendor/assets/custom/fonts/roboto/Roboto-Black-webfont.ttf +0 -0
  19. data/vendor/assets/custom/fonts/roboto/Roboto-Black-webfont.woff +0 -0
  20. data/vendor/assets/custom/fonts/roboto/Roboto-BlackItalic-webfont.eot +0 -0
  21. data/vendor/assets/custom/fonts/roboto/Roboto-BlackItalic-webfont.svg +642 -0
  22. data/vendor/assets/custom/fonts/roboto/Roboto-BlackItalic-webfont.ttf +0 -0
  23. data/vendor/assets/custom/fonts/roboto/Roboto-BlackItalic-webfont.woff +0 -0
  24. data/vendor/assets/custom/fonts/roboto/Roboto-Bold-webfont.eot +0 -0
  25. data/vendor/assets/custom/fonts/roboto/Roboto-Bold-webfont.svg +593 -0
  26. data/vendor/assets/custom/fonts/roboto/Roboto-Bold-webfont.ttf +0 -0
  27. data/vendor/assets/custom/fonts/roboto/Roboto-Bold-webfont.woff +0 -0
  28. data/vendor/assets/custom/fonts/roboto/Roboto-BoldItalic-webfont.eot +0 -0
  29. data/vendor/assets/custom/fonts/roboto/Roboto-BoldItalic-webfont.svg +642 -0
  30. data/vendor/assets/custom/fonts/roboto/Roboto-BoldItalic-webfont.ttf +0 -0
  31. data/vendor/assets/custom/fonts/roboto/Roboto-BoldItalic-webfont.woff +0 -0
  32. data/vendor/assets/custom/fonts/roboto/Roboto-Italic-webfont.eot +0 -0
  33. data/vendor/assets/custom/fonts/roboto/Roboto-Italic-webfont.svg +642 -0
  34. data/vendor/assets/custom/fonts/roboto/Roboto-Italic-webfont.ttf +0 -0
  35. data/vendor/assets/custom/fonts/roboto/Roboto-Italic-webfont.woff +0 -0
  36. data/vendor/assets/custom/fonts/roboto/Roboto-Light-webfont.eot +0 -0
  37. data/vendor/assets/custom/fonts/roboto/Roboto-Light-webfont.svg +641 -0
  38. data/vendor/assets/custom/fonts/roboto/Roboto-Light-webfont.ttf +0 -0
  39. data/vendor/assets/custom/fonts/roboto/Roboto-Light-webfont.woff +0 -0
  40. data/vendor/assets/custom/fonts/roboto/Roboto-LightItalic-webfont.eot +0 -0
  41. data/vendor/assets/custom/fonts/roboto/Roboto-LightItalic-webfont.svg +641 -0
  42. data/vendor/assets/custom/fonts/roboto/Roboto-LightItalic-webfont.ttf +0 -0
  43. data/vendor/assets/custom/fonts/roboto/Roboto-LightItalic-webfont.woff +0 -0
  44. data/vendor/assets/custom/fonts/roboto/Roboto-Medium-webfont.eot +0 -0
  45. data/vendor/assets/custom/fonts/roboto/Roboto-Medium-webfont.svg +593 -0
  46. data/vendor/assets/custom/fonts/roboto/Roboto-Medium-webfont.ttf +0 -0
  47. data/vendor/assets/custom/fonts/roboto/Roboto-Medium-webfont.woff +0 -0
  48. data/vendor/assets/custom/fonts/roboto/Roboto-MediumItalic-webfont.eot +0 -0
  49. data/vendor/assets/custom/fonts/roboto/Roboto-MediumItalic-webfont.svg +642 -0
  50. data/vendor/assets/custom/fonts/roboto/Roboto-MediumItalic-webfont.ttf +0 -0
  51. data/vendor/assets/custom/fonts/roboto/Roboto-MediumItalic-webfont.woff +0 -0
  52. data/vendor/assets/custom/fonts/roboto/Roboto-Regular-webfont.eot +0 -0
  53. data/vendor/assets/custom/fonts/roboto/Roboto-Regular-webfont.svg +621 -0
  54. data/vendor/assets/custom/fonts/roboto/Roboto-Regular-webfont.ttf +0 -0
  55. data/vendor/assets/custom/fonts/roboto/Roboto-Regular-webfont.woff +0 -0
  56. data/vendor/assets/custom/fonts/roboto/Roboto-Thin-webfont.eot +0 -0
  57. data/vendor/assets/custom/fonts/roboto/Roboto-Thin-webfont.svg +631 -0
  58. data/vendor/assets/custom/fonts/roboto/Roboto-Thin-webfont.ttf +0 -0
  59. data/vendor/assets/custom/fonts/roboto/Roboto-Thin-webfont.woff +0 -0
  60. data/vendor/assets/custom/fonts/roboto/Roboto-ThinItalic-webfont.eot +0 -0
  61. data/vendor/assets/custom/fonts/roboto/Roboto-ThinItalic-webfont.svg +631 -0
  62. data/vendor/assets/custom/fonts/roboto/Roboto-ThinItalic-webfont.ttf +0 -0
  63. data/vendor/assets/custom/fonts/roboto/Roboto-ThinItalic-webfont.woff +0 -0
  64. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Bold-webfont.eot +0 -0
  65. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Bold-webfont.svg +643 -0
  66. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Bold-webfont.ttf +0 -0
  67. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Bold-webfont.woff +0 -0
  68. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-BoldItalic-webfont.eot +0 -0
  69. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-BoldItalic-webfont.svg +643 -0
  70. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-BoldItalic-webfont.ttf +0 -0
  71. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-BoldItalic-webfont.woff +0 -0
  72. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Italic-webfont.eot +0 -0
  73. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Italic-webfont.svg +644 -0
  74. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Italic-webfont.ttf +0 -0
  75. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Italic-webfont.woff +0 -0
  76. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Light-webfont.eot +0 -0
  77. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Light-webfont.svg +643 -0
  78. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Light-webfont.ttf +0 -0
  79. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Light-webfont.woff +0 -0
  80. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-LightItalic-webfont.eot +0 -0
  81. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-LightItalic-webfont.svg +643 -0
  82. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-LightItalic-webfont.ttf +0 -0
  83. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-LightItalic-webfont.woff +0 -0
  84. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Regular-webfont.eot +0 -0
  85. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Regular-webfont.svg +644 -0
  86. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Regular-webfont.ttf +0 -0
  87. data/vendor/assets/custom/fonts/roboto/RobotoCondensed-Regular-webfont.woff +0 -0
  88. data/vendor/assets/custom/js/propeller.js +937 -0
  89. data/vendor/assets/custom/js/propeller.js.map +1 -0
  90. data/vendor/assets/custom/js/propeller.min.js +7 -0
  91. metadata +189 -0
@@ -0,0 +1,937 @@
1
+ "use strict";
2
+
3
+ /*!
4
+ * Propeller v1.1.0 (http://propeller.in)
5
+ * Copyright 2016-2017 Digicorp, Inc.
6
+ * Licensed under MIT (http://propeller.in/LICENSE)
7
+ */
8
+
9
+ // Propeller form ------------------------------------------------------//
10
+ $(document).ready(function () {
11
+ // paper input
12
+ $(".pmd-textfield-focused").remove();
13
+ $(".pmd-textfield .form-control").after('<span class="pmd-textfield-focused"></span>');
14
+ // floating label
15
+ $('.pmd-textfield input.form-control').each(function () {
16
+ if ($(this).val() !== "") {
17
+ $(this).closest('.pmd-textfield').addClass("pmd-textfield-floating-label-completed");
18
+ }
19
+ });
20
+ // floating change label
21
+ $(".pmd-textfield input.form-control").on('change', function () {
22
+ if ($(this).val() !== "") {
23
+ $(this).closest('.pmd-textfield').addClass("pmd-textfield-floating-label-completed");
24
+ }
25
+ });
26
+ // floating label animation
27
+ $("body").on("focus", ".pmd-textfield .form-control", function () {
28
+ $(this).closest('.pmd-textfield').addClass("pmd-textfield-floating-label-active pmd-textfield-floating-label-completed");
29
+ });
30
+ // remove floating label animation
31
+ $("body").on("focusout", ".pmd-textfield .form-control", function () {
32
+ if ($(this).val() === "") {
33
+ $(this).closest('.pmd-textfield').removeClass("pmd-textfield-floating-label-completed");
34
+ }
35
+ $(this).closest('.pmd-textfield').removeClass("pmd-textfield-floating-label-active");
36
+ });
37
+ });
38
+
39
+ /*!
40
+ * Propeller v1.1.0 (http://propeller.in): checkbox.js
41
+ * Copyright 2016-2017 Digicorp, Inc.
42
+ * Licensed under MIT (http://propeller.in/LICENSE)
43
+ */
44
+
45
+ $(document).ready(function () {
46
+ $('.pmd-checkbox input').after('<span class="pmd-checkbox-label">&nbsp;</span>');
47
+ // Ripple Effect //
48
+ $(".pmd-checkbox-ripple-effect").on('mousedown', function (e) {
49
+ var rippler = $(this);
50
+ $('.ink').remove();
51
+ // create .ink element if it doesn't exist
52
+ if (rippler.find(".ink").length === 0) {
53
+ rippler.append('<span class="ink"></span>');
54
+ }
55
+ var ink = rippler.find(".ink");
56
+ // prevent quick double clicks
57
+ ink.removeClass("animate");
58
+ // set .ink diametr
59
+ if (!ink.height() && !ink.width()) {
60
+ // var d = Math.max(rippler.outerWidth(), rippler.outerHeight());
61
+ ink.css({ height: 20, width: 20 });
62
+ }
63
+ // get click coordinates
64
+ var x = e.pageX - rippler.offset().left - ink.width() / 2;
65
+ var y = e.pageY - rippler.offset().top - ink.height() / 2;
66
+ // set .ink position and add class .animate
67
+ ink.css({
68
+ top: y + 'px',
69
+ left: x + 'px'
70
+ }).addClass("animate");
71
+ setTimeout(function () {
72
+ ink.remove();
73
+ }, 1500);
74
+ });
75
+ });
76
+
77
+ /*!
78
+ * Propeller v1.1.0 (http://propeller.in): radio.js
79
+ * Copyright 2016-2017 Digicorp, Inc.
80
+ * Licensed under MIT (http://propeller.in/LICENSE)
81
+ */
82
+
83
+ $(document).ready(function () {
84
+ $('.pmd-radio input').after('<span class="pmd-radio-label">&nbsp;</span>');
85
+ //-- Radio Ripple Effect --//
86
+ $(".pmd-radio-ripple-effect").on('mousedown', function (e) {
87
+ var rippler = $(this);
88
+ $('.ink').remove();
89
+ // create .ink element if it doesn't exist
90
+ if (rippler.find(".ink").length === 0) {
91
+ rippler.append('<span class="ink"></span>');
92
+ }
93
+ var ink = rippler.find(".ink");
94
+ // prevent quick double clicks
95
+ ink.removeClass("animate");
96
+ // set .ink diametr
97
+ if (!ink.height() && !ink.width()) {
98
+ // var d = Math.max(rippler.outerWidth(), rippler.outerHeight());
99
+ ink.css({ height: 15, width: 15 });
100
+ }
101
+ // get click coordinates
102
+ var x = e.pageX - rippler.offset().left - ink.width() / 2;
103
+ var y = e.pageY - rippler.offset().top - ink.height() / 2;
104
+ // set .ink position and add class .animate
105
+ ink.css({
106
+ top: y + 'px',
107
+ left: x + 'px'
108
+ }).addClass("animate");
109
+ setTimeout(function () {
110
+ ink.remove();
111
+ }, 1500);
112
+ });
113
+ });
114
+
115
+ /*!
116
+ * Propeller v1.1.0 (http://propeller.in): button.js
117
+ * Copyright 2016-2017 Digicorp, Inc.
118
+ * Licensed under MIT (http://propeller.in/LICENSE)
119
+ */
120
+
121
+ $(document).ready(function () {
122
+ $(".pmd-ripple-effect").on('mousedown touchstart', function (e) {
123
+ var rippler = $(this);
124
+ $('.ink').remove();
125
+ // create .ink element if it doesn't exist
126
+ if (rippler.find(".ink").length === 0) {
127
+ rippler.append("<span class='ink'></span>");
128
+ }
129
+ var ink = rippler.find(".ink");
130
+ // prevent quick double clicks
131
+ ink.removeClass("animate");
132
+ // set .ink diametr
133
+ if (!ink.height() && !ink.width()) {
134
+ var d = Math.max(rippler.outerWidth(), rippler.outerHeight());
135
+ ink.css({ height: d, width: d });
136
+ }
137
+ // get click coordinates
138
+ var x = e.pageX - rippler.offset().left - ink.width() / 2;
139
+ var y = e.pageY - rippler.offset().top - ink.height() / 2;
140
+ // set .ink position and add class .animate
141
+ ink.css({
142
+ top: y + 'px',
143
+ left: x + 'px'
144
+ }).addClass("animate");
145
+
146
+ setTimeout(function () {
147
+ ink.remove();
148
+ }, 1500);
149
+ });
150
+ });
151
+
152
+ /*!
153
+ * Propeller v1.1.0 (http://propeller.in): dropdown.js
154
+ * Copyright 2016-2017 Digicorp, Inc.
155
+ * Licensed under MIT (http://propeller.in/LICENSE)
156
+ */
157
+ $(document).ready(function () {
158
+ $('.pmd-dropdown .dropdown-menu').wrap("<div class='pmd-dropdown-menu-container'></div>");
159
+ $('.pmd-dropdown .dropdown-menu').before('<div class="pmd-dropdown-menu-bg"></div>');
160
+
161
+ var dropdown = $('.pmd-dropdown');
162
+ var pmdsidebardropdown = function pmdsidebardropdown() {
163
+ if ($(window).width() < 767) {
164
+ var w = dropdown.find('.dropdown-menu').outerWidth();
165
+ var h = dropdown.find('.dropdown-menu').outerHeight();
166
+ dropdown.find('.dropdown-menu-right').css("clip", "rect(0 " + w + "px 0 " + w + "px)");
167
+ dropdown.find('.pmd-dropdown-menu-top-left').css("clip", "rect(" + h + "px 0 " + h + "px 0)");
168
+ dropdown.find('.pmd-dropdown-menu-top-right').css("clip", "rect(" + h + "px " + w + "px " + h + "px " + w + "px)");
169
+ // Add slidedown animation to dropdown
170
+ dropdown.off('show.bs.dropdown');
171
+ dropdown.on('show.bs.dropdown', function () {
172
+ var that = $(this).find('.dropdown-menu');
173
+ var w = that.outerWidth();
174
+ var h = that.outerHeight();
175
+ var dcdmc = that.closest('.pmd-dropdown-menu-container');
176
+ var dcdmbg = dcdmc.find('.pmd-dropdown-menu-bg');
177
+ var $dataSidebar = $(this).find('.dropdown-toggle').attr("data-sidebar");
178
+ var dropdowncenter = that.hasClass('pmd-dropdown-menu-center');
179
+ if ($dataSidebar == 'true') {
180
+ that.first().stop(true, true).slideDown(300);
181
+ $(this).addClass('pmd-sidebar-dropdown');
182
+ } else if (dropdowncenter) {
183
+ $('.dropdown-menu').removeAttr('style');
184
+ that.first().stop(true, true).slideDown(300);
185
+ } else {
186
+ dcdmc.css({ 'width': w + 'px', 'height': h + 'px' });
187
+ dcdmbg.css({ 'width': w + 'px', 'height': h + 'px' });
188
+ if (that.hasClass('dropdown-menu-right')) {
189
+ setTimeout(function () {
190
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
191
+ }, 10);
192
+ dcdmbg.addClass('pmd-dropdown-menu-bg-right');
193
+ dcdmc.css({ "right": "0", "left": "auto" });
194
+ } else if (that.hasClass('pmd-dropdown-menu-top-left')) {
195
+ setTimeout(function () {
196
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
197
+ }, 10);
198
+ dcdmbg.addClass('pmd-dropdown-menu-bg-bottom-left');
199
+ } else if (that.hasClass('pmd-dropdown-menu-top-right')) {
200
+ setTimeout(function () {
201
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
202
+ }, 10);
203
+ dcdmbg.addClass('pmd-dropdown-menu-bg-bottom-right');
204
+ dcdmc.css({ "right": "0", "left": "auto" });
205
+ } else {
206
+ setTimeout(function () {
207
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
208
+ }, 10);
209
+ }
210
+ }
211
+ });
212
+ // Add slideup animation to dropdown
213
+ dropdown.off('hide.bs.dropdown');
214
+ dropdown.on('hide.bs.dropdown', function () {
215
+ var $dataSidebar = $(this).find('.dropdown-toggle').attr("data-sidebar");
216
+ var dropdowncenter = $(this).find('.dropdown-menu').hasClass('pmd-dropdown-menu-center');
217
+ var that = $(this).find('.dropdown-menu');
218
+ var w = that.outerWidth();
219
+ var h = that.outerHeight();
220
+ var dcdmc = that.closest('.pmd-dropdown-menu-container');
221
+ var dcdmbg = dcdmc.find('.pmd-dropdown-menu-bg');
222
+ if ($dataSidebar == 'true') {
223
+ that.first().stop(true, true).slideUp(300);
224
+ } else if (dropdowncenter) {
225
+ $('.dropdown-menu').removeAttr('style');
226
+ that.first().stop(true, true).slideUp(300);
227
+ } else {
228
+ that.css("clip", "rect(0 0 0 0)");
229
+ dcdmc.removeAttr('style');
230
+ dcdmbg.removeAttr('style');
231
+ if (that.hasClass('dropdown-menu-right')) {
232
+ that.css("clip", "rect(0 " + w + "px 0 " + w + "px)");
233
+ } else if (that.hasClass('pmd-dropdown-menu-top-left')) {
234
+ that.css("clip", "rect(" + h + "px 0 " + h + "px 0)");
235
+ } else if (that.hasClass('pmd-dropdown-menu-top-right')) {
236
+ that.css("clip", "rect(" + h + "px " + w + "px " + h + "px " + w + "px)");
237
+ }
238
+ }
239
+ });
240
+ } else {
241
+ // Add slidedown animation to dropdown
242
+ $('.dropdown-menu').removeAttr('style');
243
+ var we = dropdown.find('.dropdown-menu').outerWidth();
244
+ var he = dropdown.find('.dropdown-menu').outerHeight();
245
+ dropdown.find('.dropdown-menu-right').css("clip", "rect(0 " + we + "px 0 " + we + "px)");
246
+ dropdown.find('.pmd-dropdown-menu-top-left').css("clip", "rect(" + he + "px 0 " + he + "px 0)");
247
+ dropdown.find('.pmd-dropdown-menu-top-right').css("clip", "rect(" + he + "px " + we + "px " + he + "px " + we + "px)");
248
+
249
+ dropdown.off('show.bs.dropdown');
250
+ dropdown.on('show.bs.dropdown', function () {
251
+ var hassidebar = $(this).closest('.pmd-sidebar').hasClass('pmd-sidebar');
252
+ var dropdowncenter = $(this).find('.dropdown-menu').hasClass('pmd-dropdown-menu-center');
253
+ var that = $(this).find('.dropdown-menu');
254
+ var w = that.outerWidth();
255
+ var h = that.outerHeight();
256
+ var dcdmc = that.closest('.pmd-dropdown-menu-container');
257
+ var dcdmbg = dcdmc.find('.pmd-dropdown-menu-bg');
258
+ if (hassidebar) {
259
+ that.first().stop(true, true).slideDown();
260
+ } else if (dropdowncenter) {
261
+ if (!$(this).parents().hasClass("pmd-sidebar")) {
262
+ $('.dropdown-menu').removeAttr('style');
263
+ }
264
+ that.first().stop(true, true).slideDown();
265
+ } else {
266
+ dcdmc.css({ 'width': w + 'px', 'height': h + 'px' });
267
+ dcdmbg.css({ 'width': w + 'px', 'height': h + 'px' });
268
+ if (that.hasClass('dropdown-menu-right')) {
269
+ setTimeout(function () {
270
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
271
+ }, 10);
272
+ dcdmbg.addClass('pmd-dropdown-menu-bg-right');
273
+ dcdmc.css({ "right": "0", "left": "auto" });
274
+ } else if (that.hasClass('pmd-dropdown-menu-top-left')) {
275
+ setTimeout(function () {
276
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
277
+ }, 10);
278
+ dcdmbg.addClass('pmd-dropdown-menu-bg-bottom-left');
279
+ } else if (that.hasClass('pmd-dropdown-menu-top-right')) {
280
+ setTimeout(function () {
281
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
282
+ }, 10);
283
+ dcdmbg.addClass('pmd-dropdown-menu-bg-bottom-right');
284
+ dcdmc.css({ "right": "0", "left": "auto" });
285
+ } else {
286
+ setTimeout(function () {
287
+ that.css("clip", "rect(0 " + w + "px " + h + "px 0)");
288
+ }, 10);
289
+ }
290
+ }
291
+ this.closable = false;
292
+ });
293
+ dropdown.on('click', function () {
294
+ var hassidebar = $(this).closest('.pmd-sidebar').hasClass('pmd-sidebar');
295
+ if (hassidebar && !$(this).hasClass("open")) {
296
+ dropdown.removeClass("open");
297
+ $('.dropdown-menu').slideUp(300);
298
+ } else if ($(this).parents("aside").hasClass("pmd-sidebar")) {
299
+ $('.dropdown-menu').slideUp(300);
300
+ }
301
+
302
+ this.closable = true;
303
+ });
304
+ // Add slideup animation to dropdown
305
+ dropdown.off('hide.bs.dropdown');
306
+ dropdown.on('hide.bs.dropdown', function () {
307
+ if ($(this).parents("aside").hasClass("pmd-sidebar")) {
308
+ return this.closable;
309
+ } else {
310
+ var hassidebar = $(this).closest('.pmd-sidebar').hasClass('pmd-sidebar');
311
+ var dropdowncenter = $(this).find('.dropdown-menu').hasClass('pmd-dropdown-menu-center');
312
+ var that = $(this).find('.dropdown-menu');
313
+ var w = that.outerWidth();
314
+ var h = that.outerHeight();
315
+ var dcdmc = that.closest('.pmd-dropdown-menu-container');
316
+ var dcdmbg = dcdmc.find('.pmd-dropdown-menu-bg');
317
+ if (hassidebar) {
318
+ that.first().stop(true, true).slideUp(300);
319
+ } else if (dropdowncenter) {
320
+ if (!$(this).parents().hasClass("pmd-sidebar")) {
321
+ $('.dropdown-menu').removeAttr('style');
322
+ }
323
+ that.first().stop(true, true).slideUp(300);
324
+ } else {
325
+ that.css("clip", "rect(0 0 0 0)");
326
+ dcdmc.removeAttr('style');
327
+ dcdmbg.removeAttr('style');
328
+ if (that.hasClass('dropdown-menu-right')) {
329
+ that.css("clip", "rect(0 " + w + "px 0 " + w + "px)");
330
+ } else if (that.hasClass('pmd-dropdown-menu-top-left')) {
331
+ that.css("clip", "rect(" + h + "px 0 " + h + "px 0)");
332
+ } else if (that.hasClass('pmd-dropdown-menu-top-right')) {
333
+ that.css("clip", "rect(" + h + "px " + w + "px " + h + "px " + w + "px)");
334
+ }
335
+ }
336
+ }
337
+ });
338
+ }
339
+ };
340
+ pmdsidebardropdown();
341
+ $(window).resize(function () {
342
+ pmdsidebardropdown();
343
+ });
344
+ });
345
+
346
+ /*!
347
+ * Propeller v1.1.0 (http://propeller.in): accordion.js
348
+ * Copyright 2016-2017 Digicorp, Inc.
349
+ * Licensed under MIT (http://propeller.in/LICENSE)
350
+ */
351
+
352
+ $(document).ready(function () {
353
+ $(function () {
354
+ $(".collapse.in").parents(".panel").addClass("active");
355
+ $('a[data-toggle="collapse"]').on('click', function () {
356
+ var objectID = $(this).attr('href');
357
+ var expandale = $(this).attr('data-expandable');
358
+ if (expandale == 'true') {
359
+ if ($(objectID).hasClass('in')) {
360
+ $(objectID).collapse('hide');
361
+ } else {
362
+ $(objectID).collapse('show');
363
+ }
364
+ }
365
+ var $expandable = $(this).attr("data-expandable"),
366
+ $expanded = $(this).attr("aria-expanded"),
367
+ $current = $(this).parent().parent().parent().parent().attr("id");
368
+ if ($expandable == "false") {
369
+ if ($expanded == "true") {
370
+ //alert("not exp closed")
371
+ $("#" + $current + " .active").removeClass("active");
372
+ } else {
373
+ //alert("not exp open")
374
+ $("#" + $current + " .active").removeClass("active");
375
+ $(this).parents('.panel').addClass("active");
376
+ }
377
+ }
378
+ if ($expandable == "true") {
379
+ if ($expanded == "true") {
380
+ $(this).parents('.panel').addClass("active");
381
+ } else {
382
+ $(this).parents('.panel').removeClass("active");
383
+ }
384
+ }
385
+ });
386
+
387
+ // custom function for expand all and collapse all button
388
+ $('#expandAll').on('click', function () {
389
+ var GetID = $(this).attr("data-target");
390
+ $('#' + GetID + ' ' + 'a[data-toggle="collapse"]').each(function () {
391
+ var objectID = $(this).attr('href');
392
+ if ($(objectID).hasClass('in') === false) {
393
+ $(objectID).collapse('show');
394
+ $(objectID).parent().addClass("active");
395
+ }
396
+ });
397
+ });
398
+
399
+ //
400
+ $('#collapseAll').on('click', function () {
401
+ var GetID = $(this).attr("data-target");
402
+ $('#' + GetID + ' ' + 'a[data-toggle="collapse"]').each(function () {
403
+ var objectID = $(this).attr('href');
404
+ $(objectID).collapse('hide');
405
+ $(objectID).parent().removeClass("active");
406
+ });
407
+ });
408
+ });
409
+ });
410
+
411
+ /*!
412
+ * Propeller v1.1.0 (http://propeller.in): alert.js
413
+ * Copyright 2016-2017 Digicorp, Inc.
414
+ * Licensed under MIT (http://propeller.in/LICENSE)
415
+ */
416
+
417
+ $(document).ready(function () {
418
+ $(".pmd-alert-toggle").click(function () {
419
+ var $positionX = $(this).attr("data-positionX"),
420
+ $positionY = $(this).attr("data-positionY"),
421
+ $dataEffect = $(this).attr("data-effect"),
422
+ $dataMessage = $(this).attr("data-message"),
423
+ $dataType = $(this).attr("data-type"),
424
+ $actionText = $(this).attr("data-action-text"),
425
+ $action = $(this).attr("data-action"),
426
+ $duration;
427
+
428
+ if ($(window).width() < 768) {
429
+ $positionX = "center";
430
+ } else {
431
+ $positionX = $positionX;
432
+ }
433
+
434
+ if (!$(".pmd-alert-container." + $positionX + "." + $positionY).length) {
435
+ $('body').append("<div class='pmd-alert-container " + $positionX + " " + $positionY + "'></div>");
436
+ }
437
+
438
+ var $currentPath = $(".pmd-alert-container." + $positionX + "." + $positionY);
439
+ function notificationValue() {
440
+ if ($action == "true") {
441
+ if ($actionText == null) {
442
+ $notification = "<div class='pmd-alert' data-action='true'>" + $dataMessage + "<a href='javascript:void(0)' class='pmd-alert-close'>×</a></div>";
443
+ } else {
444
+ $notification = "<div class='pmd-alert' data-action='true'>" + $dataMessage + "<a href='javascript:void(0)' class='pmd-alert-close'>" + $actionText + "</a></div>";
445
+ }
446
+ return $notification;
447
+ } else {
448
+ if ($actionText == null) {
449
+ $notification = "<div class='pmd-alert' data-action='false'>" + $dataMessage + "</div>";
450
+ } else {
451
+ $notification = "<div class='pmd-alert' data-action='false'>" + $dataMessage + "<a href='javascript:void(0)' class='pmd-alert-close'>" + $actionText + "</a></div>";
452
+ }
453
+ return $notification;
454
+ }
455
+ }
456
+ var $notification = notificationValue();
457
+ var boxLength = $(".pmd-alert-container." + $positionX + "." + $positionY + " .pmd-alert").length;
458
+
459
+ if ($(this).attr("data-duration") !== undefined) {
460
+ $duration = $(this).attr("data-duration");
461
+ } else {
462
+ $duration = 3000;
463
+ }
464
+
465
+ if (boxLength > 0) {
466
+ if ($positionY == 'top') {
467
+ $currentPath.append($notification);
468
+ } else {
469
+ $currentPath.prepend($notification);
470
+ }
471
+ $currentPath.width($(".pmd-alert").outerWidth());
472
+ if ($action == "true") {
473
+ $currentPath.children("[data-action='true']").addClass("visible" + " " + $dataEffect);
474
+ } else {
475
+ $currentPath.children("[data-action='false']").addClass("visible" + " " + $dataEffect).delay($duration).slideUp(function () {
476
+ $(this).removeClass("visible" + " " + $dataEffect).remove();
477
+ });
478
+ }
479
+ $currentPath.children(".pmd-alert").eq(boxLength).addClass($dataType);
480
+ } else {
481
+ $currentPath.append($notification);
482
+ $currentPath.width($(".pmd-alert").outerWidth());
483
+ if ($action == "true") {
484
+ $currentPath.children("[data-action='true']").addClass("visible" + " " + $dataEffect);
485
+ } else {
486
+ $currentPath.children("[data-action='false']").addClass("visible" + " " + $dataEffect).delay($duration).slideUp(function () {
487
+ $(this).removeClass("visible" + " " + $dataEffect).remove();
488
+ });
489
+ }
490
+ $currentPath.children(".pmd-alert").eq(boxLength).addClass($dataType);
491
+ }
492
+ var $middle = $(".pmd-alert").outerWidth() / 2;
493
+ $(".pmd-alert-container.center").css("marginLeft", "-" + $middle + "px");
494
+ });
495
+
496
+ $(document).on("click", ".pmd-alert-close", function () {
497
+ var $dataEffect = $(this).attr("data-effect");
498
+ $(this).parents(".pmd-alert").slideUp(function () {
499
+ $(this).removeClass("visible" + " " + $dataEffect).remove();
500
+ });
501
+ });
502
+ });
503
+
504
+ /*!
505
+ * Propeller v1.1.0 (http://propeller.in): popover.js
506
+ * Copyright 2016-2017 Digicorp, Inc.
507
+ * Licensed under MIT (http://propeller.in/LICENSE)
508
+ */
509
+
510
+ $(document).ready(function () {
511
+
512
+ $('.popover-html[data-toggle="popover"]').popover({
513
+ html: true,
514
+ content: function content() {
515
+ var currentID = $(this).attr("data-id");
516
+ var currentHTML = $(currentID).html();
517
+ return currentHTML;
518
+ },
519
+ placement: function placement(pop, dom_el) {
520
+ var range = 200;
521
+ var curPlacement = $(dom_el).attr("data-placement");
522
+ var scrolled = $(window).scrollTop();
523
+ var winWidth = $(window).width();
524
+ var winHeight = $(window).height();
525
+ var elWidth = $(dom_el).outerWidth();
526
+ var elHeight = $(dom_el).outerHeight();
527
+ var elTop = $(dom_el).offset().top;
528
+ var elLeft = $(dom_el).offset().left;
529
+ var curPosTop = elTop - scrolled;
530
+ var curPosLeft = elLeft;
531
+ var curPosRight = winWidth - curPosLeft - elWidth;
532
+ var curPosBottom = winHeight - curPosTop - elHeight;
533
+ if (curPlacement == "left" && curPosLeft <= range) {
534
+ return 'right';
535
+ } else if (curPlacement == "right" && curPosRight <= range) {
536
+ return 'left';
537
+ } else if (curPlacement == "top" && curPosTop <= range) {
538
+ return 'bottom';
539
+ }
540
+ if (curPlacement == "bottom" && curPosBottom <= range) {
541
+ return 'top';
542
+ } else {
543
+ return curPlacement;
544
+ }
545
+ }
546
+ });
547
+
548
+ var options = {
549
+ placement: function placement(pop, dom_el) {
550
+ var range = 200;
551
+ var curPlacement = $(dom_el).attr("data-placement");
552
+ var scrolled = $(window).scrollTop();
553
+ var winWidth = $(window).width();
554
+ var winHeight = $(window).height();
555
+ var elWidth = $(dom_el).outerWidth();
556
+ var elHeight = $(dom_el).outerHeight();
557
+ var elTop = $(dom_el).offset().top;
558
+ var elLeft = $(dom_el).offset().left;
559
+ var curPosTop = elTop - scrolled;
560
+ var curPosLeft = elLeft;
561
+ var curPosRight = winWidth - curPosLeft - elWidth;
562
+ var curPosBottom = winHeight - curPosTop - elHeight;
563
+ if (curPlacement == "left" && curPosLeft <= range) {
564
+ return 'right';
565
+ } else if (curPlacement == "right" && curPosRight <= range) {
566
+ return 'left';
567
+ } else if (curPlacement == "top" && curPosTop <= range) {
568
+ return 'bottom';
569
+ }
570
+ if (curPlacement == "bottom" && curPosBottom <= range) {
571
+ return 'top';
572
+ } else {
573
+ return curPlacement;
574
+ }
575
+ }
576
+ };
577
+
578
+ $('[data-toggle="popover"]').popover(options);
579
+
580
+ $('[data-toggle="popover"]').on('shown.bs.popover', function () {
581
+ var colorClass = $(this).attr("data-color");
582
+ $(".popover").addClass(colorClass);
583
+ }).on('hidden.bs.popover', function () {
584
+ var colorClass = $(this).attr("data-color");
585
+ $(".popover").removeClass(colorClass);
586
+ });
587
+ });
588
+
589
+ /*!
590
+ * Propeller v1.1.0 (http://propeller.in): tab.js
591
+ * Copyright 2016-2017 Digicorp, Inc.
592
+ * Licensed under MIT (http://propeller.in/LICENSE)
593
+ */
594
+
595
+ (function ($) {
596
+ $.fn.pmdTab = function () {
597
+ return this.each(function () {
598
+
599
+ var $this = $(this),
600
+
601
+ // $tabSet,
602
+ $wrapper = $('.pmd-tabs-scroll-container');
603
+
604
+ var widthOfList = function widthOfList() {
605
+ var itemsWidth = 0;
606
+ $this.find('li').each(function () {
607
+ var itemWidth = $(this)[0].getBoundingClientRect().width;
608
+ itemsWidth += itemWidth;
609
+ });
610
+ return itemsWidth;
611
+ };
612
+ var appendulwidth = function appendulwidth() {
613
+
614
+ var hasclass = $this.attr("class");
615
+ $("." + hasclass + ":hidden").not("script").addClass("notVisible");
616
+ $this.parents(":hidden").not("script").find("ul.nav-tabs").addClass("notVisible");
617
+
618
+ if ($this.find('ul.nav-tabs').hasClass("nav-justified")) {
619
+ $this.find('ul.nav-tabs').width("100%");
620
+ } else if ($this.hasClass("notVisible")) {} else {
621
+ $this.find('ul.nav-tabs').width(widthOfList());
622
+ }
623
+ };
624
+
625
+ var getLeftPosi = function getLeftPosi() {
626
+ return $this.find('ul.nav-tabs').position().left;
627
+ };
628
+
629
+ var reAdjust = function reAdjust() {
630
+ // var $buttonWidth = $this.find('.pmd-tabs-scroll-right').outerWidth();
631
+ if ($this.outerWidth() < widthOfList()) {
632
+
633
+ var navScrolledRight = $this.find('.pmd-tabs-scroll-container').scrollLeft(),
634
+ navWrapWidth = $this.width(),
635
+ navWidth = $this.find(".nav-tabs").width(),
636
+ ammountRight = navWidth - navScrolledRight - navWrapWidth;
637
+
638
+ if (ammountRight > 0) {
639
+ $this.find('.pmd-tabs-scroll-right').show();
640
+ // $this.find('.pmd-tabs-scroll-container').css('padding-right', $buttonWidth + 'px');
641
+ }
642
+ } else {
643
+ $this.find('.pmd-tabs-scroll-right').hide();
644
+ // $this.find('.pmd-tabs-scroll-container').css('padding-right', '0px');
645
+ }
646
+ if (getLeftPosi() < 0) {
647
+ var navScrolledLeft = $this.find('.pmd-tabs-scroll-container').scrollLeft(),
648
+ ammountLeft = navScrolledLeft;
649
+ if (ammountLeft > 0) {
650
+ // $this.find('.pmd-tabs-scroll-container').css('padding-left', $buttonWidth + 'px');
651
+ $this.find('.pmd-tabs-scroll-left').show();
652
+ }
653
+ } else {
654
+ // $('.item').animate({left:"-="+getLeftPosi()+"px"},'slow');
655
+ $this.find('.pmd-tabs-scroll-left').hide();
656
+ // $this.find('.pmd-tabs-scroll-container').css('padding-left', '0px');
657
+ }
658
+ };
659
+ var activeTabCenter = function activeTabCenter() {
660
+ var $tabWidth = $this.outerWidth(),
661
+ $middlePosition = $tabWidth / 2,
662
+ $tabWrapperLeft = $this.offset().left,
663
+ $sliderActive = $this.find('ul li.active'),
664
+ $activeWidth = $sliderActive.outerWidth(),
665
+ $tabHalfWidth = $activeWidth / 2,
666
+ $tableftScroll = $this.find('.pmd-tabs-scroll-container').scrollLeft(),
667
+ $tableftPosi = $this.find('ul li.active').offset().left,
668
+ $tabCenterPosi = $tableftPosi - $middlePosition - $tabWrapperLeft + $tableftScroll + $tabHalfWidth;
669
+ $this.find('.pmd-tabs-scroll-container').animate({ scrollLeft: $tabCenterPosi }, 1);
670
+ };
671
+ appendulwidth();
672
+ reAdjust();
673
+ activeTabCenter();
674
+
675
+ $(window).on('resize', function () {
676
+ setTimeout(function () {
677
+ appendulwidth();
678
+ reAdjust();
679
+ activeTabCenter();
680
+ }, 150);
681
+ });
682
+
683
+ /*******************/
684
+ var sliderLoad = function sliderLoad() {
685
+ var $slider = $this.find('.pmd-tab-active-bar'),
686
+ $sliderActive = $this.find('ul li.active'),
687
+ $isX = $sliderActive.offset().left,
688
+ $navX = $this.find(".nav").offset().left,
689
+ $wrapperLeft = $this.offset().left,
690
+ $sliderLeft = $isX - $wrapperLeft,
691
+ $finalPossion = $wrapperLeft - $navX + $isX - $wrapperLeft;
692
+
693
+ if ($navX < $wrapperLeft) {
694
+ $slider.width($sliderActive.width() + "px").css("left", $finalPossion + "px");
695
+ } else {
696
+ $slider.width($sliderActive.width() + "px").css("left", $sliderLeft + "px");
697
+ }
698
+ $this.find("ul li").click(function () {
699
+ var $thisWidth = $(this).width() + "px",
700
+ $newLeft = $(this).offset().left - $wrapperLeft,
701
+ $navX = $(this).closest(".nav").offset().left;
702
+ $finalPossion = $wrapperLeft - $navX + $newLeft;
703
+
704
+ $slider.width($thisWidth).css("left", $finalPossion + "px");
705
+ });
706
+ };
707
+
708
+ sliderLoad();
709
+
710
+ $(window).on("resize", function () {
711
+ sliderLoad();
712
+ });
713
+
714
+ /*******************/
715
+ $this.find('.pmd-tabs-scroll-right').on("click", function () {
716
+ var $tabSet = '',
717
+ $wrapper = $(this).prev(".pmd-tabs-scroll-container"),
718
+ $tab = $wrapper.find(".nav-tabs li"),
719
+ $thisWidht = $(this).outerWidth(),
720
+ $navCotainer = $this.outerWidth(),
721
+ $wrapperRight = $this.offset().left + $navCotainer;
722
+
723
+ $tab.each(function () {
724
+ var SuspectTabLeft = $(this).offset().left;
725
+ var SuspectTabRight = $(this).offset().left + $(this).outerWidth();
726
+ $(this).removeClass('prev-tab');
727
+ if (SuspectTabLeft < $wrapperRight && SuspectTabRight > $wrapperRight) {
728
+ $tabSet = SuspectTabRight - $wrapperRight + $thisWidht;
729
+ $(this).addClass('last-tab');
730
+ $(this).prev().removeClass('last-tab');
731
+ }
732
+ });
733
+ var finalTab = $wrapper.find('.last-tab').next().length;
734
+ if (finalTab === 0) {
735
+ var lastTabRight = $wrapper.find('.last-tab').offset().left + $wrapper.find('.last-tab').outerWidth();
736
+ var NewScrollAmount = lastTabRight - $wrapperRight;
737
+ $wrapper.animate({ scrollLeft: '+=' + NewScrollAmount });
738
+ $(this).fadeOut('slow');
739
+ } else {
740
+ $wrapper.animate({ scrollLeft: '+=' + $tabSet });
741
+ }
742
+ $(this).parents('.pmd-tabs').find('.pmd-tabs-scroll-left').fadeIn('slow');
743
+ });
744
+ /*******************/
745
+
746
+ /*******************/
747
+ $this.find('.pmd-tabs-scroll-left').on("click", function () {
748
+ var $wrapper = $(this).next(".pmd-tabs-scroll-container"),
749
+ $tab = $wrapper.find(".nav-tabs li"),
750
+ $thisWidht = $(this).outerWidth(),
751
+ $wrapperLeft = $this.offset().left,
752
+ $tabSetLeft = '';
753
+
754
+ $tab.each(function () {
755
+ var SuspectTabLeft = $(this).offset().left;
756
+ var SuspectTabRight = $(this).offset().left + $(this).outerWidth();
757
+ $(this).removeClass('last-tab');
758
+ if (SuspectTabLeft < $wrapperLeft && SuspectTabRight > $wrapperLeft) {
759
+ $tabSetLeft = $wrapperLeft - SuspectTabLeft + $thisWidht;
760
+ $(this).addClass('prev-tab');
761
+ $(this).next().removeClass('prev-tab');
762
+ }
763
+ });
764
+ var finalTab = $wrapper.find('.prev-tab').prev().length;
765
+
766
+ if (finalTab === 0) {
767
+ var lastTableft = $wrapper.find('.prev-tab').offset().left;
768
+ var NewScrollAmount = $wrapperLeft - lastTableft;
769
+ $wrapper.animate({ scrollLeft: '-=' + NewScrollAmount });
770
+ $(this).fadeOut('slow');
771
+ // $this.find('.pmd-tabs-scroll-container').css('padding-left', '0px');
772
+ } else {
773
+ $wrapper.animate({ scrollLeft: '-=' + $tabSetLeft });
774
+ }
775
+ $(this).parents('.pmd-tabs').find('.pmd-tabs-scroll-right').fadeIn('slow');
776
+ // $this.find('.pmd-tabs-scroll-container').css('padding-left', $thisWidht);
777
+ });
778
+
779
+ $this.find('ul li').on('click', function () {
780
+ $wrapper = $(this).closest(".pmd-tabs-scroll-container");
781
+ //setTabActive()
782
+
783
+ var activeLeft = $(this).offset().left;
784
+ var activeRight = $(this).offset().left + $(this).outerWidth();
785
+ var $navCotainer = $this.outerWidth();
786
+ var $wrapperRight = $this.offset().left + $navCotainer;
787
+ var $buttonWidth = $('.pmd-tabs-scroll-right').outerWidth();
788
+ var $wrapperLeft = $this.offset().left;
789
+ var cuttRight = $wrapperRight - $buttonWidth;
790
+ var cuttleft = $wrapperLeft + $buttonWidth;
791
+ if (activeLeft < cuttleft && activeRight > cuttleft) {
792
+
793
+ var setLeft = $wrapperLeft - activeLeft + $buttonWidth;
794
+ $wrapper.animate({ scrollLeft: '-=' + setLeft });
795
+ $(this).parents('.pmd-tabs').find('.pmd-tabs-scroll-right').fadeIn('slow');
796
+ }
797
+ if (activeLeft < cuttRight && activeRight > cuttRight) {
798
+ var setRight = activeRight - $wrapperRight + $buttonWidth;
799
+ $wrapper.animate({ scrollLeft: '+=' + setRight });
800
+ $(this).parents('.pmd-tabs').find('.pmd-tabs-scroll-left').fadeIn('slow');
801
+ }
802
+ });
803
+ });
804
+ };
805
+ })(jQuery);
806
+
807
+ /*!
808
+ * Propeller v1.1.0 (http://propeller.in): sidebar.js
809
+ * Copyright 2016-2017 Digicorp, Inc.
810
+ * Licensed under MIT (http://propeller.in/LICENSE)
811
+ */
812
+
813
+ var overlay = $('.pmd-sidebar-overlay');
814
+ var sidebar = $('.pmd-sidebar');
815
+ var lsidebar = $('.pmd-sidebar-left');
816
+ var rsidebar = $('.pmd-sidebar-right-fixed');
817
+ var sidebar = $('.pmd-sidebar');
818
+ var toggleButtons = $('.pmd-sidebar-toggle');
819
+
820
+ $(document).ready(function () {
821
+
822
+ var overlay = $('.pmd-sidebar-overlay');
823
+ var sidebar = $('.pmd-sidebar');
824
+ var lsidebar = $('.pmd-sidebar-left');
825
+ var rsidebar = $('.pmd-sidebar-right-fixed');
826
+ var pmdnavbarsidebar = $('.pmd-navbar-sidebar');
827
+ var toggleButtons = $('.pmd-sidebar-toggle');
828
+ var pmdtopbartoggle = $('.topbar-fixed');
829
+
830
+ // Left Sidebar
831
+ $('.pmd-sidebar-toggle').on('click', function () {
832
+ lsidebar.toggleClass('pmd-sidebar-open');
833
+ if ((lsidebar.hasClass('pmd-sidebar-left-fixed') || lsidebar.hasClass('pmd-sidebar-right-fixed')) && lsidebar.hasClass('pmd-sidebar-open')) {
834
+ overlay.addClass('pmd-sidebar-overlay-active');
835
+ $('body').addClass("pmd-body-open");
836
+ } else {
837
+ overlay.removeClass('pmd-sidebar-overlay-active');
838
+ $('body').removeClass("pmd-body-open");
839
+ }
840
+ });
841
+
842
+ $(".pmd-sidebar .dropdown-menu, .pmd-sidebar-dropdown .dropdown-menu").click(function (event) {
843
+ event.stopPropagation();
844
+ });
845
+
846
+ // Right Sidebar
847
+ $('.pmd-sidebar-toggle-right').on('click', function () {
848
+ rsidebar.toggleClass('pmd-sidebar-open');
849
+ if (rsidebar.hasClass('pmd-sidebar-right') && rsidebar.hasClass('pmd-sidebar-open')) {
850
+ overlay.addClass('pmd-sidebar-overlay-active');
851
+ $('body').addClass("pmd-body-open");
852
+ } else {
853
+ overlay.removeClass('pmd-sidebar-overlay-active');
854
+ $('body').removeClass("pmd-body-open");
855
+ }
856
+ });
857
+
858
+ // Right Sidebar
859
+ $('.pmd-topbar-toggle').on('click', function () {
860
+ pmdtopbartoggle.toggleClass('pmd-sidebar-open');
861
+ });
862
+
863
+ $('.topbar-close').on('click', function () {
864
+ pmdtopbartoggle.removeClass('pmd-sidebar-open');
865
+ });
866
+
867
+ // Nave bar in Sidebar
868
+ $('.pmd-navbar-toggle').on('click', function () {
869
+ pmdnavbarsidebar.toggleClass('pmd-sidebar-open');
870
+ if (pmdnavbarsidebar.hasClass('pmd-navbar-sidebar') && pmdnavbarsidebar.hasClass('pmd-sidebar-open')) {
871
+ overlay.addClass('pmd-sidebar-overlay-active');
872
+ $('body').addClass("pmd-body-open");
873
+ } else {
874
+ overlay.removeClass('pmd-sidebar-overlay-active');
875
+ $('body').removeClass("pmd-body-open");
876
+ }
877
+ });
878
+
879
+ // Overlay
880
+ overlay.on('click', function () {
881
+ $(this).removeClass('pmd-sidebar-overlay-active');
882
+ $('.pmd-sidebar').removeClass('pmd-sidebar-open');
883
+ $('.pmd-navbar-sidebar').removeClass('pmd-sidebar-open');
884
+ $('body').removeClass("pmd-body-open");
885
+ event.stopPropagation();
886
+ });
887
+
888
+ // Window load browser resize position
889
+ if ($(window).width() < 1200) {
890
+ sidebar.removeClass('pmd-sidebar-open pmd-sidebar-slide-push');
891
+ lsidebar.addClass('pmd-sidebar-left-fixed');
892
+ rsidebar.addClass('pmd-sidebar-right');
893
+ toggleButtons.css('display', 'inherit');
894
+ $('body').removeClass("pmd-body-open");
895
+ }
896
+ });
897
+
898
+ // window resize position
899
+ $(window).resize(function () {
900
+ if ($(window).width() < 1200) {
901
+ sidebar.removeClass('pmd-sidebar-open pmd-sidebar-slide-push');
902
+ lsidebar.addClass('pmd-sidebar-left-fixed');
903
+ rsidebar.addClass('pmd-sidebar-right');
904
+ toggleButtons.css('display', 'inherit');
905
+ overlay.removeClass('pmd-sidebar-overlay-active');
906
+ $('body').removeClass("pmd-body-open");
907
+ } else {
908
+ lsidebar.removeClass('pmd-sidebar-left-fixed').addClass('pmd-sidebar-open pmd-sidebar-slide-push');
909
+ rsidebar.removeClass('pmd-sidebar-right');
910
+ overlay.removeClass('pmd-sidebar-overlay-active');
911
+ $('body').removeClass("pmd-body-open");
912
+ }
913
+ });
914
+
915
+ (function (removeClass) {
916
+ jQuery.fn.removeClass = function (value) {
917
+ if (value && typeof value.test === "function") {
918
+ for (var i = 0, l = this.length; i < l; i++) {
919
+ var elem = this[i];
920
+ if (elem.nodeType === 1 && elem.className) {
921
+ var classNames = elem.className.split(/\s+/);
922
+
923
+ for (var n = classNames.length; n--;) {
924
+ if (value.test(classNames[n])) {
925
+ classNames.splice(n, 1);
926
+ }
927
+ }
928
+ elem.className = jQuery.trim(classNames.join(" "));
929
+ }
930
+ }
931
+ } else {
932
+ removeClass.call(this, value);
933
+ }
934
+ return this;
935
+ };
936
+ })(jQuery.fn.removeClass);
937
+ //# sourceMappingURL=propeller.js.map