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,141 @@
1
+ var CirclesMaster = function () {
2
+
3
+ return {
4
+
5
+ //Circles Master v1
6
+ initCirclesMaster1: function () {
7
+ //Circles 1
8
+ Circles.create({
9
+ id: 'circle-1',
10
+ percentage: 87,
11
+ radius: 80,
12
+ width: 8,
13
+ number: 87,
14
+ text: '%',
15
+ colors: ['#eee', '#72c02c'],
16
+ duration: 2000
17
+ })
18
+
19
+ //Circles 2
20
+ Circles.create({
21
+ id: 'circle-2',
22
+ percentage: 74,
23
+ radius: 80,
24
+ width: 8,
25
+ number: 74,
26
+ text: '%',
27
+ colors: ['#eee', '#72c02c'],
28
+ duration: 2000
29
+ })
30
+
31
+ //Circles 3
32
+ Circles.create({
33
+ id: 'circle-3',
34
+ percentage: 65,
35
+ radius: 80,
36
+ width: 8,
37
+ number: 65,
38
+ text: '%',
39
+ colors: ['#eee', '#72c02c'],
40
+ duration: 2000
41
+ })
42
+
43
+ //Circles 4
44
+ Circles.create({
45
+ id: 'circle-4',
46
+ percentage: 69,
47
+ radius: 35,
48
+ width: 2,
49
+ number: 69,
50
+ text: '%',
51
+ colors: ['#eee', '#72c02c'],
52
+ duration: 2000
53
+ })
54
+
55
+ //Circles 5
56
+ Circles.create({
57
+ id: 'circle-5',
58
+ percentage: 82,
59
+ radius: 35,
60
+ width: 2,
61
+ number: 82,
62
+ text: '%',
63
+ colors: ['#eee', '#9B6BCC'],
64
+ duration: 2000
65
+ })
66
+
67
+ //Circles 6
68
+ Circles.create({
69
+ id: 'circle-6',
70
+ percentage: 87,
71
+ radius: 80,
72
+ width: 3,
73
+ number: 87,
74
+ text: '%',
75
+ colors: ['#eee', '#72c02c'],
76
+ duration: 2000
77
+ })
78
+
79
+ //Circles 7
80
+ Circles.create({
81
+ id: 'circle-7',
82
+ percentage: 74,
83
+ radius: 80,
84
+ width: 3,
85
+ number: 74,
86
+ text: '%',
87
+ colors: ['#eee', '#72c02c'],
88
+ duration: 2000
89
+ })
90
+
91
+ //Circles 8
92
+ Circles.create({
93
+ id: 'circle-8',
94
+ percentage: 65,
95
+ radius: 80,
96
+ width: 3,
97
+ number: 65,
98
+ text: '%',
99
+ colors: ['#eee', '#72c02c'],
100
+ duration: 2000
101
+ })
102
+
103
+ //Circles 9
104
+ Circles.create({
105
+ id: 'circle-9',
106
+ percentage: 91,
107
+ radius: 80,
108
+ width: 3,
109
+ number: 91,
110
+ text: '%',
111
+ colors: ['#eee', '#72c02c'],
112
+ duration: 2000
113
+ })
114
+ },
115
+
116
+ //Circles Master v2
117
+ initCirclesMaster2: function () {
118
+ var colors = [
119
+ ['#D3B6C6', '#9B6BCC'], ['#C9FF97', '#72c02c'], ['#BEE3F7', '#3498DB'], ['#FFC2BB', '#E74C3C']
120
+ ];
121
+
122
+ for (var i = 1; i <= 4; i++) {
123
+ var child = document.getElementById('circles-' + i),
124
+ percentage = 45 + (i * 9);
125
+
126
+ Circles.create({
127
+ id: child.id,
128
+ percentage: percentage,
129
+ radius: 70,
130
+ width: 2,
131
+ number: percentage / 1,
132
+ text: '%',
133
+ colors: colors[i - 1],
134
+ duration: 2000,
135
+ });
136
+ }
137
+ }
138
+
139
+ };
140
+
141
+ }();
@@ -0,0 +1,63 @@
1
+ var Datepicker = function () {
2
+
3
+ return {
4
+
5
+ //Datepickers
6
+ initDatepicker: function () {
7
+ // Regular datepicker
8
+ $('#date').datepicker({
9
+ dateFormat: 'dd.mm.yy',
10
+ prevText: '<i class="fa fa-angle-left"></i>',
11
+ nextText: '<i class="fa fa-angle-right"></i>'
12
+ });
13
+
14
+ // Date range
15
+ $('#start').datepicker({
16
+ dateFormat: 'dd.mm.yy',
17
+ prevText: '<i class="fa fa-angle-left"></i>',
18
+ nextText: '<i class="fa fa-angle-right"></i>',
19
+ onSelect: function( selectedDate )
20
+ {
21
+ $('#finish').datepicker('option', 'minDate', selectedDate);
22
+ }
23
+ });
24
+ $('#finish').datepicker({
25
+ dateFormat: 'dd.mm.yy',
26
+ prevText: '<i class="fa fa-angle-left"></i>',
27
+ nextText: '<i class="fa fa-angle-right"></i>',
28
+ onSelect: function( selectedDate )
29
+ {
30
+ $('#start').datepicker('option', 'maxDate', selectedDate);
31
+ }
32
+ });
33
+
34
+ // Inline datepicker
35
+ $('#inline').datepicker({
36
+ dateFormat: 'dd.mm.yy',
37
+ prevText: '<i class="fa fa-angle-left"></i>',
38
+ nextText: '<i class="fa fa-angle-right"></i>'
39
+ });
40
+
41
+ // Inline date range
42
+ $('#inline-start').datepicker({
43
+ dateFormat: 'dd.mm.yy',
44
+ prevText: '<i class="fa fa-angle-left"></i>',
45
+ nextText: '<i class="fa fa-angle-right"></i>',
46
+ onSelect: function( selectedDate )
47
+ {
48
+ $('#inline-finish').datepicker('option', 'minDate', selectedDate);
49
+ }
50
+ });
51
+ $('#inline-finish').datepicker({
52
+ dateFormat: 'dd.mm.yy',
53
+ prevText: '<i class="fa fa-angle-left"></i>',
54
+ nextText: '<i class="fa fa-angle-right"></i>',
55
+ onSelect: function( selectedDate )
56
+ {
57
+ $('#inline-start').datepicker('option', 'maxDate', selectedDate);
58
+ }
59
+ });
60
+ }
61
+
62
+ };
63
+ }();
@@ -0,0 +1,78 @@
1
+ var FormSliders = function () {
2
+
3
+ return {
4
+
5
+ //Form Sliders
6
+ initFormSliders: function () {
7
+ // Regular slider
8
+ $('#slider1').slider({
9
+ min: 0,
10
+ max: 500,
11
+ slide: function(event, ui)
12
+ {
13
+ $('#slider1-value').text(ui.value);
14
+ }
15
+ });
16
+
17
+ // Range slider
18
+ $('#slider2').slider({
19
+ min: 0,
20
+ max: 500,
21
+ range: true,
22
+ values: [75, 300],
23
+ slide: function(event, ui)
24
+ {
25
+ $('#slider2-value1').text(ui.values[0]);
26
+ $('#slider2-value2').text(ui.values[1]);
27
+ }
28
+ });
29
+
30
+ // Step slider
31
+ $('#slider3').slider({
32
+ min: 0,
33
+ max: 500,
34
+ step: 100,
35
+ slide: function(event, ui)
36
+ {
37
+ $('#slider3-value').text(ui.value);
38
+ }
39
+ });
40
+
41
+ // Rounded Regular slider
42
+ $('#slider1-rounded').slider({
43
+ min: 0,
44
+ max: 500,
45
+ slide: function(event, ui)
46
+ {
47
+ $('#slider1-value-rounded').text(ui.value);
48
+ }
49
+ });
50
+
51
+ // Rounded Range slider
52
+ $('#slider2-rounded').slider({
53
+ min: 0,
54
+ max: 500,
55
+ range: true,
56
+ values: [75, 300],
57
+ slide: function(event, ui)
58
+ {
59
+ $('#slider2-value1-rounded').text(ui.values[0]);
60
+ $('#slider2-value2-rounded').text(ui.values[1]);
61
+ }
62
+ });
63
+
64
+ // Rounded Step slider
65
+ $('#slider3-rounded').slider({
66
+ min: 0,
67
+ max: 500,
68
+ step: 100,
69
+ slide: function(event, ui)
70
+ {
71
+ $('#slider3-value-rounded').text(ui.value);
72
+ }
73
+ });
74
+ }
75
+
76
+ };
77
+
78
+ }();
@@ -0,0 +1,16 @@
1
+ var Masking = function () {
2
+
3
+ return {
4
+
5
+ //Masking
6
+ initMasking: function () {
7
+ $("#date1").mask('99/99/9999', {placeholder:'X'});
8
+ $("#phone").mask('(999) 999-9999', {placeholder:'X'});
9
+ $("#card").mask('9999-9999-9999-9999', {placeholder:'X'});
10
+ $("#serial").mask('***-***-***-***-***-***', {placeholder:'_'});
11
+ $("#tax").mask('99-9999999', {placeholder:'X'});
12
+ }
13
+
14
+ };
15
+
16
+ }();
@@ -0,0 +1,72 @@
1
+ var OwlCarousel = function () {
2
+
3
+ return {
4
+
5
+ //Owl Carousel
6
+ initOwlCarousel: function () {
7
+ jQuery(document).ready(function() {
8
+ //Owl Slider v1
9
+ var owl = jQuery(".owl-slider");
10
+ owl.owlCarousel({
11
+ itemsDesktop : [1000,5], //5 items between 1000px and 901px
12
+ itemsDesktopSmall : [900,4], //4 items betweem 900px and 601px
13
+ itemsTablet: [600,3], //3 items between 600 and 0;
14
+ itemsMobile : [479,2] //2 itemsMobile disabled - inherit from itemsTablet option
15
+ });
16
+
17
+ // Custom Navigation Events
18
+ jQuery(".next-v1").click(function(){
19
+ owl.trigger('owl.next');
20
+ })
21
+ jQuery(".prev-v1").click(function(){
22
+ owl.trigger('owl.prev');
23
+ })
24
+ });
25
+
26
+ //Owl Slider v2
27
+ jQuery(document).ready(function() {
28
+ var owl = jQuery(".owl-slider-v2");
29
+ owl.owlCarousel({
30
+ itemsDesktop : [1000,5], //5 items between 1000px and 901px
31
+ itemsDesktopSmall : [900,4], //4 items betweem 900px and 601px
32
+ itemsTablet: [600,3], //3 items between 600 and 0;
33
+ itemsMobile : [479,2], //2 itemsMobile disabled - inherit from itemsTablet option
34
+ slideSpeed: 1000
35
+ });
36
+
37
+ // Custom Navigation Events
38
+ jQuery(".next-v2").click(function(){
39
+ owl.trigger('owl.next');
40
+ })
41
+ jQuery(".prev-v2").click(function(){
42
+ owl.trigger('owl.prev');
43
+ })
44
+ });
45
+
46
+ //Owl Slider v3
47
+ jQuery(document).ready(function() {
48
+ var owl = jQuery(".owl-slider-v3");
49
+ owl.owlCarousel({
50
+ items : 9,
51
+ autoPlay : 5000,
52
+ itemsDesktop : [1000,5], //5 items between 1000px and 901px
53
+ itemsDesktopSmall : [900,4], // betweem 900px and 601px
54
+ itemsTablet: [600,3], //2 items between 600 and 0
55
+ itemsMobile : [300,2] //2 itemsMobile disabled - inherit from itemsTablet option
56
+ });
57
+ });
58
+
59
+ //Owl Slider v4
60
+ jQuery(document).ready(function() {
61
+ var owl = jQuery(".owl-slider-v4");
62
+ owl.owlCarousel({
63
+ items:3,
64
+ itemsDesktop : [1000,3], //3 items between 1000px and 901px
65
+ itemsTablet: [600,2], //2 items between 600 and 0;
66
+ itemsMobile : [479,1] //1 itemsMobile disabled - inherit from itemsTablet option
67
+ });
68
+ });
69
+ }
70
+ };
71
+
72
+ }();
@@ -0,0 +1,134 @@
1
+ var Validation = function () {
2
+
3
+ return {
4
+
5
+ //Validation
6
+ initValidation: function () {
7
+ $("#sky-form1").validate({
8
+ // Rules for form validation
9
+ rules:
10
+ {
11
+ required:
12
+ {
13
+ required: true
14
+ },
15
+ email:
16
+ {
17
+ required: true,
18
+ email: true
19
+ },
20
+ url:
21
+ {
22
+ required: true,
23
+ url: true
24
+ },
25
+ date:
26
+ {
27
+ required: true,
28
+ date: true
29
+ },
30
+ min:
31
+ {
32
+ required: true,
33
+ minlength: 5
34
+ },
35
+ max:
36
+ {
37
+ required: true,
38
+ maxlength: 5
39
+ },
40
+ range:
41
+ {
42
+ required: true,
43
+ rangelength: [5, 10]
44
+ },
45
+ digits:
46
+ {
47
+ required: true,
48
+ digits: true
49
+ },
50
+ number:
51
+ {
52
+ required: true,
53
+ number: true
54
+ },
55
+ minVal:
56
+ {
57
+ required: true,
58
+ min: 5
59
+ },
60
+ maxVal:
61
+ {
62
+ required: true,
63
+ max: 100
64
+ },
65
+ rangeVal:
66
+ {
67
+ required: true,
68
+ range: [5, 100]
69
+ }
70
+ },
71
+
72
+ // Messages for form validation
73
+ messages:
74
+ {
75
+ required:
76
+ {
77
+ required: 'Please enter something'
78
+ },
79
+ email:
80
+ {
81
+ required: 'Please enter your email address'
82
+ },
83
+ url:
84
+ {
85
+ required: 'Please enter your URL'
86
+ },
87
+ date:
88
+ {
89
+ required: 'Please enter some date'
90
+ },
91
+ min:
92
+ {
93
+ required: 'Please enter some text'
94
+ },
95
+ max:
96
+ {
97
+ required: 'Please enter some text'
98
+ },
99
+ range:
100
+ {
101
+ required: 'Please enter some text'
102
+ },
103
+ digits:
104
+ {
105
+ required: 'Please enter some digits'
106
+ },
107
+ number:
108
+ {
109
+ required: 'Please enter some number'
110
+ },
111
+ minVal:
112
+ {
113
+ required: 'Please enter some value'
114
+ },
115
+ maxVal:
116
+ {
117
+ required: 'Please enter some value'
118
+ },
119
+ rangeVal:
120
+ {
121
+ required: 'Please enter some value'
122
+ }
123
+ },
124
+
125
+ // Do not change code below
126
+ errorPlacement: function(error, element)
127
+ {
128
+ error.insertAfter(element.parent());
129
+ }
130
+ });
131
+ }
132
+
133
+ };
134
+ }();