nunify 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/test/dummy/README.rdoc +28 -0
  5. data/test/dummy/Rakefile +6 -0
  6. data/test/dummy/app/assets/javascripts/application.js +14 -0
  7. data/test/dummy/app/assets/stylesheets/application.scss +1 -0
  8. data/test/dummy/app/controllers/application_controller.rb +7 -0
  9. data/test/dummy/app/helpers/application_helper.rb +2 -0
  10. data/test/dummy/app/views/application/home.html.erb +0 -0
  11. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  12. data/test/dummy/bin/bundle +3 -0
  13. data/test/dummy/bin/rails +4 -0
  14. data/test/dummy/bin/rake +4 -0
  15. data/test/dummy/config.ru +4 -0
  16. data/test/dummy/config/application.rb +23 -0
  17. data/test/dummy/config/boot.rb +5 -0
  18. data/test/dummy/config/database.yml +25 -0
  19. data/test/dummy/config/environment.rb +5 -0
  20. data/test/dummy/config/environments/development.rb +37 -0
  21. data/test/dummy/config/environments/production.rb +82 -0
  22. data/test/dummy/config/environments/test.rb +39 -0
  23. data/test/dummy/config/initializers/assets.rb +8 -0
  24. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  25. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  26. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  27. data/test/dummy/config/initializers/inflections.rb +16 -0
  28. data/test/dummy/config/initializers/mime_types.rb +4 -0
  29. data/test/dummy/config/initializers/session_store.rb +3 -0
  30. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  31. data/test/dummy/config/locales/en.yml +23 -0
  32. data/test/dummy/config/routes.rb +56 -0
  33. data/test/dummy/config/secrets.yml +22 -0
  34. data/test/dummy/db/development.sqlite3 +0 -0
  35. data/test/dummy/db/test.sqlite3 +0 -0
  36. data/test/dummy/log/development.log +989 -0
  37. data/test/dummy/log/test.log +10 -0
  38. data/test/dummy/public/404.html +67 -0
  39. data/test/dummy/public/422.html +67 -0
  40. data/test/dummy/public/500.html +66 -0
  41. data/test/dummy/public/favicon.ico +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sass/2656cb541e86422069d92469f0f3c6fa5d895361/nunify.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sass/8eb7e5dad240f3f9b1bedd9d232fc256becabfd4/app.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sass/8eb7e5dad240f3f9b1bedd9d232fc256becabfd4/plugins.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sass/8eb7e5dad240f3f9b1bedd9d232fc256becabfd4/style.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sass/a7fe21b4c8f2d552a01d9d732e51c06f68a3842d/application.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/07a331b54c2bf3f1b984265c204e4608 +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/0ea6f4e797d45e2985dbd756f20b7a2d +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/18bedff946329ad00d1ced751f9ef048 +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/1e78f550c6299daa5247f46e3767bbf0 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/33e7b76b00b190307bf5fc663c5a8714 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/352bab412d75fa19d0a07504553b59df +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/3d5e513ecf4f3d9376f0f1a5a16da48d +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/4331a78ce56133c73d08b1de0f6e1b8b +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/494348a50e53e543d222e3fe8324b57e +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/496199789706fe34941e70c788d0b315 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/500a3622d41e692029da837b6f2cc51a +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/5a644e46d0594379f55f1932034dee8e +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/607d54525e40736b64761299d64bb8db +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/65928b53993d5f83f61b672539f08ead +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/66df69b69df86625ea314f4f687453ed +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/6b8ed93f3fc15e8a983be7084a453003 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/6e1bd95023705b5529e7ccc754a02867 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/6e413e3c8ce405eb39caea1190e3421b +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/6ee9db045d25972d3600e598392c5ead +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/85da3e8afbdd0f87a2b9597276e62422 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/85e1dbe4ed8b0e6cf29a3278a81b954e +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/88f31e03aef74c6084cde2553bd303e6 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/8b3e8152f96f26de8aab619bb0d0d2f5 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/8c5fa388ef71991284860bc5eaaa7741 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/92613a75279536c4bcf4f3ba6cfde494 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/93c9d2fc80b30a3ee98214b142c9c60a +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/9504c072db613bc2076e3a3e46f872ce +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/b629aa4d2ff08e3e6109953c2a8b85ef +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/bb0ed262f486a12ad8eaea6eb61d4091 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/bc3eb74cd4f23f706659758c10f84999 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/cc1a02c3c63e4fe298263f4b47384ac3 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/dfd1ae719b9024356d47f8debc48924f +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/f35270e57b0883ca10041f0d54e5652e +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/f63185a94c6171e1ebc0bc9496c3855e +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/fef1ef6b90b2672589bf251a67b5cb89 +0 -0
  85. data/test/dummy/tmp/pids/server.pid +1 -0
  86. data/test/nunify_test.rb +7 -0
  87. data/test/test_helper.rb +15 -0
  88. data/vendor/assets/images/unify/bg-black.png +0 -0
  89. data/vendor/assets/images/unify/bg-black1.png +0 -0
  90. data/vendor/assets/images/unify/bg-green.png +0 -0
  91. data/vendor/assets/images/unify/bg-white.png +0 -0
  92. data/vendor/assets/images/unify/breadcrumbs.png +0 -0
  93. data/vendor/assets/images/unify/overlay-icon.png +0 -0
  94. data/vendor/assets/images/unify/patterns/1.png +0 -0
  95. data/vendor/assets/images/unify/patterns/10.png +0 -0
  96. data/vendor/assets/images/unify/patterns/11.png +0 -0
  97. data/vendor/assets/images/unify/patterns/12.png +0 -0
  98. data/vendor/assets/images/unify/patterns/13.png +0 -0
  99. data/vendor/assets/images/unify/patterns/14.png +0 -0
  100. data/vendor/assets/images/unify/patterns/15.png +0 -0
  101. data/vendor/assets/images/unify/patterns/2.png +0 -0
  102. data/vendor/assets/images/unify/patterns/3.png +0 -0
  103. data/vendor/assets/images/unify/patterns/4.png +0 -0
  104. data/vendor/assets/images/unify/patterns/5.png +0 -0
  105. data/vendor/assets/images/unify/patterns/6.png +0 -0
  106. data/vendor/assets/images/unify/patterns/7.png +0 -0
  107. data/vendor/assets/images/unify/patterns/8.png +0 -0
  108. data/vendor/assets/images/unify/patterns/9.png +0 -0
  109. data/vendor/assets/javascripts/nunify.js +3 -0
  110. data/vendor/assets/javascripts/nunify/app.js +256 -0
  111. data/vendor/assets/javascripts/nunify/plugins/circles-master.js +141 -0
  112. data/vendor/assets/javascripts/nunify/plugins/datepicker.js +63 -0
  113. data/vendor/assets/javascripts/nunify/plugins/form-sliders.js +78 -0
  114. data/vendor/assets/javascripts/nunify/plugins/masking.js +16 -0
  115. data/vendor/assets/javascripts/nunify/plugins/owl-carousel.js +72 -0
  116. data/vendor/assets/javascripts/nunify/plugins/validation.js +134 -0
  117. data/vendor/assets/javascripts/nunify/plugins/vector-map.js +276 -0
  118. data/vendor/assets/stylesheets/nunify.scss +6 -0
  119. data/vendor/assets/stylesheets/nunify/app.scss +2743 -0
  120. data/vendor/assets/stylesheets/nunify/plugins.scss +542 -0
  121. data/vendor/assets/stylesheets/nunify/plugins/animate.css +2728 -0
  122. data/vendor/assets/stylesheets/nunify/plugins/box-shadows.css +60 -0
  123. data/vendor/assets/stylesheets/nunify/style.scss +2312 -0
  124. data/vendor/assets/stylesheets/nunify/themes/aqua.css +862 -0
  125. data/vendor/assets/stylesheets/nunify/themes/blue.css +864 -0
  126. data/vendor/assets/stylesheets/nunify/themes/brown.css +864 -0
  127. data/vendor/assets/stylesheets/nunify/themes/dark-blue.css +864 -0
  128. data/vendor/assets/stylesheets/nunify/themes/default.css +503 -0
  129. data/vendor/assets/stylesheets/nunify/themes/light-green.css +864 -0
  130. data/vendor/assets/stylesheets/nunify/themes/light.css +853 -0
  131. data/vendor/assets/stylesheets/nunify/themes/orange.css +863 -0
  132. data/vendor/assets/stylesheets/nunify/themes/purple.css +864 -0
  133. data/vendor/assets/stylesheets/nunify/themes/red.css +876 -0
  134. metadata +288 -0
@@ -0,0 +1,10 @@
1
+  (0.1ms) begin transaction
2
+ ----------------------
3
+ NunifyTest: test_truth
4
+ ----------------------
5
+  (0.0ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ----------------------
8
+ NunifyTest: test_truth
9
+ ----------------------
10
+  (0.1ms) rollback transaction
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1 @@
1
+ 28151
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class NunifyTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Nunify
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,3 @@
1
+ //= require nunify/app
2
+ //= require_tree ./nunify/plugins
3
+
@@ -0,0 +1,256 @@
1
+ /*
2
+ * Template Name: Unify - Responsive Bootstrap Template
3
+ * Description: Business, Corporate, Portfolio and Blog Theme.
4
+ * Version: 1.4
5
+ * Author: @htmlstream
6
+ * Website: http://htmlstream.com
7
+ */
8
+
9
+ var App = function () {
10
+
11
+ function handleIEFixes() {
12
+ //fix html5 placeholder attribute for ie7 & ie8
13
+ if (jQuery.browser.msie && jQuery.browser.version.substr(0, 1) < 9) { // ie7&ie8
14
+ jQuery('input[placeholder], textarea[placeholder]').each(function () {
15
+ var input = jQuery(this);
16
+
17
+ jQuery(input).val(input.attr('placeholder'));
18
+
19
+ jQuery(input).focus(function () {
20
+ if (input.val() == input.attr('placeholder')) {
21
+ input.val('');
22
+ }
23
+ });
24
+
25
+ jQuery(input).blur(function () {
26
+ if (input.val() == '' || input.val() == input.attr('placeholder')) {
27
+ input.val(input.attr('placeholder'));
28
+ }
29
+ });
30
+ });
31
+ }
32
+ }
33
+
34
+ function handleBootstrap() {
35
+ /*Bootstrap Carousel*/
36
+ jQuery('.carousel').carousel({
37
+ interval: 15000,
38
+ pause: 'hover'
39
+ });
40
+
41
+ /*Tooltips*/
42
+ jQuery('.tooltips').tooltip();
43
+ jQuery('.tooltips-show').tooltip('show');
44
+ jQuery('.tooltips-hide').tooltip('hide');
45
+ jQuery('.tooltips-toggle').tooltip('toggle');
46
+ jQuery('.tooltips-destroy').tooltip('destroy');
47
+
48
+ /*Popovers*/
49
+ jQuery('.popovers').popover();
50
+ jQuery('.popovers-show').popover('show');
51
+ jQuery('.popovers-hide').popover('hide');
52
+ jQuery('.popovers-toggle').popover('toggle');
53
+ jQuery('.popovers-destroy').popover('destroy');
54
+ }
55
+
56
+ function handleSearch() {
57
+ jQuery('.search').click(function () {
58
+ if(jQuery('.search-btn').hasClass('fa-search')){
59
+ jQuery('.search-open').fadeIn(500);
60
+ jQuery('.search-btn').removeClass('fa-search');
61
+ jQuery('.search-btn').addClass('fa-times');
62
+ } else {
63
+ jQuery('.search-open').fadeOut(500);
64
+ jQuery('.search-btn').addClass('fa-search');
65
+ jQuery('.search-btn').removeClass('fa-times');
66
+ }
67
+ });
68
+ }
69
+
70
+ function handleToggle() {
71
+ jQuery('.list-toggle').on('click', function() {
72
+ jQuery(this).toggleClass('active');
73
+ });
74
+
75
+ /*
76
+ jQuery('#serviceList').on('shown.bs.collapse'), function() {
77
+ jQuery(".servicedrop").addClass('glyphicon-chevron-up').removeClass('glyphicon-chevron-down');
78
+ }
79
+
80
+ jQuery('#serviceList').on('hidden.bs.collapse'), function() {
81
+ jQuery(".servicedrop").addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-up');
82
+ }
83
+ */
84
+ }
85
+
86
+ function handleSwitcher() {
87
+ var panel = jQuery('.style-switcher');
88
+
89
+ jQuery('.style-switcher-btn').click(function () {
90
+ jQuery('.style-switcher').show();
91
+ });
92
+
93
+ jQuery('.theme-close').click(function () {
94
+ jQuery('.style-switcher').hide();
95
+ });
96
+
97
+ jQuery('li', panel).click(function () {
98
+ var color = jQuery(this).attr("data-style");
99
+ var data_header = jQuery(this).attr("data-header");
100
+ setColor(color, data_header);
101
+ jQuery('.list-unstyled li', panel).removeClass("theme-active");
102
+ jQuery(this).addClass("theme-active");
103
+ });
104
+
105
+ var setColor = function (color, data_header) {
106
+ jQuery('#style_color').attr("href", "assets/css/themes/" + color + ".css");
107
+ if(data_header == 'light'){
108
+ jQuery('#style_color-header-1').attr("href", "assets/css/themes/headers/header1-" + color + ".css");
109
+ jQuery('#logo-header').attr("src", "assets/img/logo1-" + color + ".png");
110
+ jQuery('#logo-footer').attr("src", "assets/img/logo2-" + color + ".png");
111
+ } else if(data_header == 'dark'){
112
+ jQuery('#style_color-header-2').attr("href", "assets/css/themes/headers/header2-" + color + ".css");
113
+ jQuery('#logo-header').attr("src", "assets/img/logo1-" + color + ".png");
114
+ jQuery('#logo-footer').attr("src", "assets/img/logo2-" + color + ".png");
115
+ }
116
+ }
117
+ }
118
+
119
+ function handleBoxed() {
120
+ jQuery('.boxed-layout-btn').click(function(){
121
+ jQuery(this).addClass("active-switcher-btn");
122
+ jQuery(".wide-layout-btn").removeClass("active-switcher-btn");
123
+ jQuery("body").addClass("boxed-layout container");
124
+ });
125
+ jQuery('.wide-layout-btn').click(function(){
126
+ jQuery(this).addClass("active-switcher-btn");
127
+ jQuery(".boxed-layout-btn").removeClass("active-switcher-btn");
128
+ jQuery("body").removeClass("boxed-layout container");
129
+ });
130
+ }
131
+
132
+ function handleHeader() {
133
+ jQuery(window).scroll(function() {
134
+ if (jQuery(window).scrollTop()>100){
135
+ jQuery(".header-fixed .header").addClass("header-fixed-shrink");
136
+ }
137
+ else {
138
+ jQuery(".header-fixed .header").removeClass("header-fixed-shrink");
139
+ }
140
+ });
141
+ }
142
+
143
+ return {
144
+ init: function () {
145
+ handleBootstrap();
146
+ handleIEFixes();
147
+ handleSearch();
148
+ handleToggle();
149
+ handleSwitcher();
150
+ handleBoxed();
151
+ handleHeader();
152
+ },
153
+
154
+ initSliders: function () {
155
+ jQuery('#clients-flexslider').flexslider({
156
+ animation: "slide",
157
+ easing: "swing",
158
+ animationLoop: true,
159
+ itemWidth: 1,
160
+ itemMargin: 1,
161
+ minItems: 2,
162
+ maxItems: 9,
163
+ controlNav: false,
164
+ directionNav: false,
165
+ move: 2
166
+ });
167
+
168
+ jQuery('#clients-flexslider1').flexslider({
169
+ animation: "slide",
170
+ easing: "swing",
171
+ animationLoop: true,
172
+ itemWidth: 1,
173
+ itemMargin: 1,
174
+ minItems: 2,
175
+ maxItems: 5,
176
+ controlNav: false,
177
+ directionNav: false,
178
+ move: 2
179
+ });
180
+
181
+ jQuery('#photo-flexslider').flexslider({
182
+ animation: "slide",
183
+ controlNav: false,
184
+ animationLoop: false,
185
+ itemWidth: 80,
186
+ itemMargin: 0
187
+ });
188
+
189
+ jQuery('#testimonal_carousel').collapse({
190
+ toggle: false
191
+ });
192
+ },
193
+
194
+ initFancybox: function () {
195
+ jQuery(".fancybox-button").fancybox({
196
+ groupAttr: 'data-rel',
197
+ prevEffect: 'none',
198
+ nextEffect: 'none',
199
+ closeBtn: true,
200
+ helpers: {
201
+ title: {
202
+ type: 'inside'
203
+ }
204
+ }
205
+ });
206
+
207
+ jQuery(".iframe").fancybox({
208
+ maxWidth : 800,
209
+ maxHeight : 600,
210
+ fitToView : false,
211
+ width : '70%',
212
+ height : '70%',
213
+ autoSize : false,
214
+ closeClick : false,
215
+ openEffect : 'none',
216
+ closeEffect : 'none'
217
+ });
218
+ },
219
+
220
+ initBxSlider: function () {
221
+ jQuery('.bxslider').bxSlider({
222
+ maxSlides: 4,
223
+ minSlides: 4,
224
+ slideWidth: 360,
225
+ slideMargin: 10,
226
+ });
227
+
228
+ jQuery('.bxslider1').bxSlider({
229
+ minSlides: 3,
230
+ maxSlides: 3,
231
+ slideWidth: 360,
232
+ slideMargin: 10
233
+ });
234
+
235
+ jQuery('.bxslider2').bxSlider({
236
+ minSlides: 2,
237
+ maxSlides: 2,
238
+ slideWidth: 360,
239
+ slideMargin: 10
240
+ });
241
+ },
242
+
243
+ initCounter: function () {
244
+ jQuery('.counter').counterUp({
245
+ delay: 10,
246
+ time: 1000
247
+ });
248
+ },
249
+
250
+ initParallaxBg: function () {
251
+ jQuery('.parallaxBg').parallax("50%", 0.2);
252
+ },
253
+
254
+ };
255
+
256
+ }();