skyframe 0.0.1.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/lib/skyframe.rb +8 -0
  2. data/lib/skyframe/version.rb +3 -0
  3. data/stylesheets/_main.scss +1 -0
  4. data/templates/project/files/404.html +157 -0
  5. data/templates/project/files/CHANGELOG.md +19 -0
  6. data/templates/project/files/about.html +96 -0
  7. data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
  8. data/templates/project/files/apple-touch-icon-144x144-precomposed.png +0 -0
  9. data/templates/project/files/apple-touch-icon-57x57-precomposed.png +0 -0
  10. data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
  11. data/templates/project/files/apple-touch-icon-precomposed.png +0 -0
  12. data/templates/project/files/apple-touch-icon.png +0 -0
  13. data/templates/project/files/bg_direction_nav.png +0 -0
  14. data/templates/project/files/blog-details.html +255 -0
  15. data/templates/project/files/blog.html +157 -0
  16. data/templates/project/files/config.rb +28 -0
  17. data/templates/project/files/contact.html +158 -0
  18. data/templates/project/files/crossdomain.xml +15 -0
  19. data/templates/project/files/dummy-full.png +0 -0
  20. data/templates/project/files/dummy-square.png +0 -0
  21. data/templates/project/files/favicon.ico +0 -0
  22. data/templates/project/files/flash/video-js.swf +0 -0
  23. data/templates/project/files/forgot-password.html +101 -0
  24. data/templates/project/files/htaccess.txt +536 -0
  25. data/templates/project/files/humans.txt +18 -0
  26. data/templates/project/files/icon-gmap.png +0 -0
  27. data/templates/project/files/icon-search.png +0 -0
  28. data/templates/project/files/inc/breadcrumb.html +5 -0
  29. data/templates/project/files/inc/footer.html +37 -0
  30. data/templates/project/files/inc/header.html +20 -0
  31. data/templates/project/files/inc/js-bottom.html +21 -0
  32. data/templates/project/files/inc/js-top.html +10 -0
  33. data/templates/project/files/inc/main-nav.html +7 -0
  34. data/templates/project/files/logo.png +0 -0
  35. data/templates/project/files/logo@2x.png +0 -0
  36. data/templates/project/files/media/audio/dummy-audio.mp3 +0 -0
  37. data/templates/project/files/media/video/dummy-video.mp4 +0 -0
  38. data/templates/project/files/products.html +100 -0
  39. data/templates/project/files/readme.md +55 -0
  40. data/templates/project/files/robots.txt +3 -0
  41. data/templates/project/files/services.html +75 -0
  42. data/templates/project/files/sign-in.html +104 -0
  43. data/templates/project/files/sitemap.html +102 -0
  44. data/templates/project/files/video-js.png +0 -0
  45. data/templates/project/javascripts/libs/jquery-1.8.0.min.js +2 -0
  46. data/templates/project/javascripts/libs/jquery.validationEngine.js +1819 -0
  47. data/templates/project/javascripts/libs/languages/jquery.validationEngine-cz.js +156 -0
  48. data/templates/project/javascripts/libs/languages/jquery.validationEngine-da.js +135 -0
  49. data/templates/project/javascripts/libs/languages/jquery.validationEngine-de.js +139 -0
  50. data/templates/project/javascripts/libs/languages/jquery.validationEngine-en.js +192 -0
  51. data/templates/project/javascripts/libs/languages/jquery.validationEngine-es.js +137 -0
  52. data/templates/project/javascripts/libs/languages/jquery.validationEngine-et.js +139 -0
  53. data/templates/project/javascripts/libs/languages/jquery.validationEngine-fa.js +181 -0
  54. data/templates/project/javascripts/libs/languages/jquery.validationEngine-fi.js +111 -0
  55. data/templates/project/javascripts/libs/languages/jquery.validationEngine-fr.js +129 -0
  56. data/templates/project/javascripts/libs/languages/jquery.validationEngine-hr.js +177 -0
  57. data/templates/project/javascripts/libs/languages/jquery.validationEngine-hu.js +179 -0
  58. data/templates/project/javascripts/libs/languages/jquery.validationEngine-it.js +111 -0
  59. data/templates/project/javascripts/libs/languages/jquery.validationEngine-ja.js +149 -0
  60. data/templates/project/javascripts/libs/languages/jquery.validationEngine-nl.js +136 -0
  61. data/templates/project/javascripts/libs/languages/jquery.validationEngine-pl.js +140 -0
  62. data/templates/project/javascripts/libs/languages/jquery.validationEngine-pt.js +135 -0
  63. data/templates/project/javascripts/libs/languages/jquery.validationEngine-pt_BR.js +127 -0
  64. data/templates/project/javascripts/libs/languages/jquery.validationEngine-ro.js +177 -0
  65. data/templates/project/javascripts/libs/languages/jquery.validationEngine-ru.js +136 -0
  66. data/templates/project/javascripts/libs/languages/jquery.validationEngine-se.js +153 -0
  67. data/templates/project/javascripts/libs/languages/jquery.validationEngine-tr.js +156 -0
  68. data/templates/project/javascripts/libs/languages/jquery.validationEngine-vi.js +179 -0
  69. data/templates/project/javascripts/libs/languages/jquery.validationEngine-zh_CN.js +177 -0
  70. data/templates/project/javascripts/libs/languages/jquery.validationEngine-zh_TW.js +177 -0
  71. data/templates/project/javascripts/libs/modernizr-2.5.3.min.js +4 -0
  72. data/templates/project/javascripts/libs/respond.min.js +6 -0
  73. data/templates/project/javascripts/libs/selectivizr.js +560 -0
  74. data/templates/project/javascripts/plugins.js +83 -0
  75. data/templates/project/javascripts/script.js +282 -0
  76. data/templates/project/manifest.rb +136 -0
  77. data/templates/project/partials/_debug.scss +114 -0
  78. data/templates/project/partials/_functions.scss +10 -0
  79. data/templates/project/partials/_helpers.scss +86 -0
  80. data/templates/project/partials/_layout.scss +188 -0
  81. data/templates/project/partials/_media.scss +191 -0
  82. data/templates/project/partials/_misc.scss +103 -0
  83. data/templates/project/partials/_mixins.scss +140 -0
  84. data/templates/project/partials/_mods.scss +59 -0
  85. data/templates/project/partials/_normalize.scss +36 -0
  86. data/templates/project/partials/_print.scss +80 -0
  87. data/templates/project/partials/_type.scss +331 -0
  88. data/templates/project/partials/_vars.scss +114 -0
  89. data/templates/project/partials/mods/_mod-block.scss +96 -0
  90. data/templates/project/partials/mods/_mod-breadcrumb.scss +103 -0
  91. data/templates/project/partials/mods/_mod-carousel.scss +108 -0
  92. data/templates/project/partials/mods/_mod-footer.scss +199 -0
  93. data/templates/project/partials/mods/_mod-form.scss +319 -0
  94. data/templates/project/partials/mods/_mod-header.scss +291 -0
  95. data/templates/project/partials/mods/_mod-intro.scss +98 -0
  96. data/templates/project/partials/mods/_mod-layouts.scss +135 -0
  97. data/templates/project/partials/mods/_mod-main-nav.scss +143 -0
  98. data/templates/project/partials/mods/_mod-map.scss +107 -0
  99. data/templates/project/partials/mods/_mod-msg.scss +119 -0
  100. data/templates/project/partials/mods/_mod-paging.scss +101 -0
  101. data/templates/project/partials/mods/_mod-sitemap.scss +132 -0
  102. data/templates/project/partials/mods/_mod-split-form.scss +98 -0
  103. data/templates/project/partials/mods/_mod-strip.scss +118 -0
  104. data/templates/project/partials/mods/_mod-table.scss +118 -0
  105. data/templates/project/partials/mods/_mod-widget.scss +103 -0
  106. data/templates/project/partials/plugins/_flexslider.scss +82 -0
  107. data/templates/project/partials/plugins/_validation-engine.scss +137 -0
  108. data/templates/project/partials/plugins/_video-js.scss +616 -0
  109. data/templates/project/partials/sass-template.scss +103 -0
  110. data/templates/project/screen.scss +2 -0
  111. metadata +220 -0
@@ -0,0 +1,156 @@
1
+ (function($){
2
+ $.fn.validationEngineLanguage = function(){
3
+ };
4
+ $.validationEngineLanguage = {
5
+ newLang: function(){
6
+ $.validationEngineLanguage.allRules = {
7
+ "required": { // Add your regex rules here, you can take telephone as an example
8
+ "regex": "none",
9
+ "alertText": "* Tato položka je povinná",
10
+ "alertTextCheckboxMultiple": "* Prosím vyberte jednu možnost",
11
+ "alertTextCheckboxe": "* Tato položka je povinná"
12
+ },
13
+ "requiredInFunction": {
14
+ "func": function(field, rules, i, options){
15
+ return (field.val() == "test") ? true : false;
16
+ },
17
+ "alertText": "* Pole se musí rovnat test"
18
+ },
19
+ "minSize": {
20
+ "regex": "none",
21
+ "alertText": "* Minimálně ",
22
+ "alertText2": " znaky"
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Maximálně ",
27
+ "alertText2": " znaky"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* Musíte zadat jedno z nasledujících polí"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* Minimální hodnota je "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* Maximální hodnota je "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Datum před "
44
+ },
45
+ "future": {
46
+ "regex": "none",
47
+ "alertText": "* Datum po "
48
+ },
49
+ "maxCheckbox": {
50
+ "regex": "none",
51
+ "alertText": "* Počet vybraných položek přesáhl limit"
52
+ },
53
+ "minCheckbox": {
54
+ "regex": "none",
55
+ "alertText": "* Prosím vyberte ",
56
+ "alertText2": " volbu"
57
+ },
58
+ "equals": {
59
+ "regex": "none",
60
+ "alertText": "* Pole se neshodují"
61
+ },
62
+ "creditCard": {
63
+ "regex": "none",
64
+ "alertText": "* Neplatné číslo kreditní karty"
65
+ },
66
+ "CZphone": {
67
+ // telefoní číslo
68
+ "regex": /^([\+][0-9]{1,3}[ \.\-])([0-9]{3}[\-][0-9]{3}[\-][0-9]{3})$/,
69
+ "alertText": "* Neplatné telefoní číslo, zadejte ve formátu +420 598-598-895"
70
+ },
71
+ "phone": {
72
+ // credit: jquery.h5validate.js / orefalo
73
+ "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
74
+ "alertText": "* Neplatné telefoní číslo"
75
+ },
76
+ "email": {
77
+ // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
78
+ "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
79
+ "alertText": "* Neplatná emailová adresa"
80
+ },
81
+ "integer": {
82
+ "regex": /^[\-\+]?\d+$/,
83
+ "alertText": "* Zadejte pouze čísla"
84
+ },
85
+ "number": {
86
+ // Number, including positive, negative, and floating decimal. credit: orefalo
87
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
88
+ "alertText": "* Neplatné číslo"
89
+ },
90
+ "CZdate": {
91
+ // datum ve formátu jak se používá v čr
92
+ "regex": /^(0[1-9]|[12][0-9]|3[01])[. /.](0[1-9]|1[012])[. /.](19|20)\d{2}$/,
93
+ "alertText": "* Neplatné datum, datum musí být ve formátu den.měsíc.rok (dd.mm.rrrr)"
94
+ },
95
+ "date": {
96
+ // Date in ISO format. Credit: bassistance
97
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
98
+ "alertText": "* Neplatné datum, datum musí být ve formátu YYYY-MM-DD"
99
+ },
100
+ "ipv4": {
101
+ "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
102
+ "alertText": "* Neplatná IP adresa"
103
+ },
104
+ //česká syntaxe pro rodné číslo
105
+ "rc": {
106
+ "regex": /^\d{2}((0[1-9]|1[012])|(5[1-9]|6[012]))(0[1-9]|[12][0-9]|3[01])\/([0-9]{2,4})$/,
107
+ "alertText": "* Neplatné rodné číslo, tvar musí být 895431/4567"
108
+ },
109
+ //poštovní směrovací číslo
110
+ "psc": {
111
+ "regex": /^\d{3}[ \.\-]\d{2}$/,
112
+ "alertText": "* Neplatné poštovní směrovací číslo, tvar musí být 456 45"
113
+ },
114
+ "url": {
115
+ "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
116
+ "alertText": "* Neplatný odkaz"
117
+ },
118
+ "onlyNumberSp": {
119
+ "regex": /^[0-9\ ]+$/,
120
+ "alertText": "* Pouze čísla"
121
+ },
122
+ "onlyLetterSp": {
123
+ "regex": /^[a-zA-Z\ \']+$/,
124
+ "alertText": "* Pouze písmena"
125
+ },
126
+ "onlyLetterNumber": {
127
+ "regex": /^[0-9a-zA-Z]+$/,
128
+ "alertText": "* Pouze písmena a číslice"
129
+ },
130
+ // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
131
+ "ajaxUserCall": {
132
+ "url": "ajaxValidateFieldUser",
133
+ // you may want to pass extra data on the ajax call
134
+ "extraData": "name=eric",
135
+ "alertText": "* Uživatelské jméno je již použito",
136
+ "alertTextLoad": "* Ověřování, prosím čekejte"
137
+ },
138
+ "ajaxNameCall": {
139
+ // remote json service location
140
+ "url": "ajaxValidateFieldName",
141
+ // error
142
+ "alertText": "* Uživatelské jméno je již použito",
143
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
144
+ "alertTextOk": "* Toto jméno je k dispozici",
145
+ // speaks by itself
146
+ "alertTextLoad": "* Ověřování, prosím čekejte"
147
+ },
148
+ "validate2fields": {
149
+ "alertText": "* Prosím napište HELLO"
150
+ }
151
+ };
152
+
153
+ }
154
+ };
155
+ $.validationEngineLanguage.newLang();
156
+ })(jQuery);
@@ -0,0 +1,135 @@
1
+ (function($){
2
+ $.fn.validationEngineLanguage = function(){
3
+ };
4
+ $.validationEngineLanguage = {
5
+ newLang: function(){
6
+ $.validationEngineLanguage.allRules = {
7
+ "required": { // Add your regex rules here, you can take telephone as an example
8
+ "regex": "none",
9
+ "alertText": "* Dette felt kræves udfyldt",
10
+ "alertTextCheckboxMultiple": "* Vælg venligst en af mulighederne",
11
+ "alertTextCheckboxe": "* Dette felt er krævet"
12
+ },
13
+ "requiredInFunction": {
14
+ "func": function(field, rules, i, options){
15
+ return (field.val() == "test") ? true : false;
16
+ },
17
+ "alertText": "* Field must equal test"
18
+ },
19
+ "minSize": {
20
+ "regex": "none",
21
+ "alertText": "* Minimum ",
22
+ "alertText2": " tegn tilladt"
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Maksimum ",
27
+ "alertText2": " tegn tilladt"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* You must fill one of the following fields"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* Den mindste værdi er "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* Den maksimale værdi er "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Datoen skal være før "
44
+ },
45
+ "future": {
46
+ "regex": "none",
47
+ "alertText": "* Datoen skal være efter "
48
+ },
49
+ "maxCheckbox": {
50
+ "regex": "none",
51
+ "alertText": "* Antallet af valg overskredet"
52
+ },
53
+ "minCheckbox": {
54
+ "regex": "none",
55
+ "alertText": "* Vælg venligst ",
56
+ "alertText2": " muligheder"
57
+ },
58
+ "equals": {
59
+ "regex": "none",
60
+ "alertText": "* Felterne er ikke ens"
61
+ },
62
+ "creditCard": {
63
+ "regex": "none",
64
+ "alertText": "* Ugyldigt kreditkortnummer"
65
+ },
66
+ "phone": {
67
+ // credit: jquery.h5validate.js / orefalo
68
+ "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
69
+ "alertText": "* Ikke gyldig telefonnummer"
70
+ },
71
+ "email": {
72
+ // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73
+ "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74
+ "alertText": "* Ikke gyldig e-mail"
75
+ },
76
+ "integer": {
77
+ "regex": /^[\-\+]?\d+$/,
78
+ "alertText": "* Ikke et korrekt tal"
79
+ },
80
+ "number": {
81
+ // Number, including positive, negative, and floating decimal. credit: orefalo
82
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83
+ "alertText": "* Ugyldig decimaltal"
84
+ },
85
+ "date": {
86
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
87
+ "alertText": "* Ugyldig dato, skal være i formatet ÅÅÅÅ-MM-DD"
88
+ },
89
+ "ipv4": {
90
+ "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
91
+ "alertText": "* Ugyldig IP adresse"
92
+ },
93
+ "url": {
94
+ "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
95
+ "alertText": "* Ugyldig URL"
96
+ },
97
+ "onlyNumberSp": {
98
+ "regex": /^[0-9\ ]+$/,
99
+ "alertText": "* Kun tal"
100
+ },
101
+ "onlyLetterSp": {
102
+ "regex": /^[a-zA-Z\ \']+$/,
103
+ "alertText": "* Kun bogstaver"
104
+ },
105
+ "onlyLetterNumber": {
106
+ "regex": /^[0-9a-zA-Z]+$/,
107
+ "alertText": "* Ingen specialtegn tilladt"
108
+ },
109
+ // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
110
+ "ajaxUserCall": {
111
+ "url": "ajaxValidateFieldUser",
112
+ // you may want to pass extra data on the ajax call
113
+ "extraData": "name=eric",
114
+ "alertText": "* Denne bruger er allerede taget",
115
+ "alertTextLoad": "* Kontrollere, vent venligst"
116
+ },
117
+ "ajaxNameCall": {
118
+ // remote json service location
119
+ "url": "ajaxValidateFieldName",
120
+ // error
121
+ "alertText": "* Dette navn er allerede taget",
122
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
123
+ "alertTextOk": "* Dette navn er ledig",
124
+ // speaks by itself
125
+ "alertTextLoad": "* Kontrollere, vent venligst"
126
+ },
127
+ "validate2fields": {
128
+ "alertText": "* Indsæt venligst HELLO"
129
+ }
130
+ };
131
+
132
+ }
133
+ };
134
+ $.validationEngineLanguage.newLang();
135
+ })(jQuery);
@@ -0,0 +1,139 @@
1
+ (function($){
2
+ $.fn.validationEngineLanguage = function(){
3
+ };
4
+ $.validationEngineLanguage = {
5
+ newLang: function(){
6
+ $.validationEngineLanguage.allRules = {
7
+ "required": { // Add your regex rules here, you can take telephone as an example
8
+ "regex": "none",
9
+ "alertText": "* Dieses Feld ist ein Pflichtfeld",
10
+ "alertTextCheckboxMultiple": "* Bitte wählen Sie eine Option",
11
+ "alertTextCheckboxe": "* Dieses Feld ist ein Pflichtfeld"
12
+ },
13
+ "requiredInFunction": {
14
+ "func": function(field, rules, i, options){
15
+ return (field.val() == "test") ? true : false;
16
+ },
17
+ "alertText": "* Field must equal test"
18
+ },
19
+ "minSize": {
20
+ "regex": "none",
21
+ "alertText": "* Mindestens ",
22
+ "alertText2": " Zeichen benötigt"
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Maximal ",
27
+ "alertText2": " Zeichen erlaubt"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* Sie müssen mindestens eines dieser Felder ausfüllen"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* Mindeswert ist "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* Maximalwert ist "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Datum vor "
44
+ },
45
+ "future": {
46
+ "regex": "none",
47
+ "alertText": "* Datum nach "
48
+ },
49
+ "maxCheckbox": {
50
+ "regex": "none",
51
+ "alertText": "* Maximale Anzahl Markierungen überschritten"
52
+ },
53
+ "minCheckbox": {
54
+ "regex": "none",
55
+ "alertText": "* Bitte wählen Sie ",
56
+ "alertText2": " Optionen"
57
+ },
58
+ "equals": {
59
+ "regex": "none",
60
+ "alertText": "* Felder stimmen nicht überein"
61
+ },
62
+ "creditCard": {
63
+ "regex": "none",
64
+ "alertText": "* Ungültige Kreditkartennummer"
65
+ },
66
+ "phone": {
67
+ // credit: jquery.h5validate.js / orefalo
68
+ "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
69
+ "alertText": "* Ungültige Telefonnummer"
70
+ },
71
+ "email": {
72
+ // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
73
+ "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,
74
+ "alertText": "* Ungültige E-Mail Adresse"
75
+ },
76
+ "integer": {
77
+ "regex": /^[\-\+]?\d+$/,
78
+ "alertText": "* Keine gültige Ganzzahl"
79
+ },
80
+ "number": {
81
+ // Number, including positive, negative, and floating decimal. credit: orefalo
82
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
83
+ "alertText": "* Keine gültige Fließkommazahl"
84
+ },
85
+ "date": {
86
+ // Date in ISO format. Credit: bassistance
87
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
88
+ "alertText": "* Ungültiges Datumsformat, erwartet wird das Format JJJJ-MM-TT"
89
+ },
90
+ "ipv4": {
91
+ "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
92
+ "alertText": "* Ungültige IP Adresse"
93
+ },
94
+ "url": {
95
+ "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
96
+ "alertText": "* Ungültige URL"
97
+ },
98
+ "onlyLetterSp": {
99
+ "regex": /^[a-zA-ZäüöÄÜÖßs\ \\\']+$/,
100
+ "alertText": "* Nur Buchstaben erlaubt"
101
+ },
102
+ "onlyLetterNumber": {
103
+ "regex": /^[0-9a-zA-ZäüöÄÜÖßs-]+$/,
104
+ "alertText": "* Keine Sonderzeichen erlaubt"
105
+ },
106
+ "onlyLetterNumber": {
107
+ "regex": /^[0-9a-zA-Z]+$/,
108
+ "alertText": "* Keine Sonderzeichen erlaubt"
109
+ },
110
+ // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
111
+ "ajaxUserCall": {
112
+ "url": "ajaxValidateFieldUser",
113
+ // you may want to pass extra data on the ajax call
114
+ "extraData": "name=eric",
115
+ "alertText": "* Dieser Benutzer ist bereits vergeben",
116
+ "alertTextLoad": "* Überprüfe Angaben, bitte warten"
117
+ },
118
+ "ajaxNameCall": {
119
+ // remote json service location
120
+ "url": "ajaxValidateFieldName",
121
+ // error
122
+ "alertText": "* Dieser Name ist bereits vergeben",
123
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
124
+ "alertTextOk": "* Dieser Name ist verfügbar",
125
+ // speaks by itself
126
+ "alertTextLoad": "* Überprüfe Angaben, bitte warten"
127
+ },
128
+ "validate2fields": {
129
+ "alertText": "* Bitte HELLO eingeben"
130
+ }
131
+ };
132
+
133
+ }
134
+ };
135
+ $.validationEngineLanguage.newLang();
136
+ })(jQuery);
137
+
138
+
139
+
@@ -0,0 +1,192 @@
1
+ (function($){
2
+ $.fn.validationEngineLanguage = function(){
3
+ };
4
+ $.validationEngineLanguage = {
5
+ newLang: function(){
6
+ $.validationEngineLanguage.allRules = {
7
+ "required": { // Add your regex rules here, you can take telephone as an example
8
+ "regex": "none",
9
+ "alertText": "* This field is required",
10
+ "alertTextCheckboxMultiple": "* Please select an option",
11
+ "alertTextCheckboxe": "* This checkbox is required",
12
+ "alertTextDateRange": "* Both date range fields are required"
13
+ },
14
+ "requiredInFunction": {
15
+ "func": function(field, rules, i, options){
16
+ return (field.val() == "test") ? true : false;
17
+ },
18
+ "alertText": "* Field must equal test"
19
+ },
20
+ "dateRange": {
21
+ "regex": "none",
22
+ "alertText": "* Invalid ",
23
+ "alertText2": "Date Range"
24
+ },
25
+ "dateTimeRange": {
26
+ "regex": "none",
27
+ "alertText": "* Invalid ",
28
+ "alertText2": "Date Time Range"
29
+ },
30
+ "minSize": {
31
+ "regex": "none",
32
+ "alertText": "* Minimum ",
33
+ "alertText2": " characters allowed"
34
+ },
35
+ "maxSize": {
36
+ "regex": "none",
37
+ "alertText": "* Maximum ",
38
+ "alertText2": " characters allowed"
39
+ },
40
+ "groupRequired": {
41
+ "regex": "none",
42
+ "alertText": "* You must fill one of the following fields"
43
+ },
44
+ "min": {
45
+ "regex": "none",
46
+ "alertText": "* Minimum value is "
47
+ },
48
+ "max": {
49
+ "regex": "none",
50
+ "alertText": "* Maximum value is "
51
+ },
52
+ "past": {
53
+ "regex": "none",
54
+ "alertText": "* Date prior to "
55
+ },
56
+ "future": {
57
+ "regex": "none",
58
+ "alertText": "* Date past "
59
+ },
60
+ "maxCheckbox": {
61
+ "regex": "none",
62
+ "alertText": "* Maximum ",
63
+ "alertText2": " options allowed"
64
+ },
65
+ "minCheckbox": {
66
+ "regex": "none",
67
+ "alertText": "* Please select ",
68
+ "alertText2": " options"
69
+ },
70
+ "equals": {
71
+ "regex": "none",
72
+ "alertText": "* Fields do not match"
73
+ },
74
+ "creditCard": {
75
+ "regex": "none",
76
+ "alertText": "* Invalid credit card number"
77
+ },
78
+ "phone": {
79
+ // credit: jquery.h5validate.js / orefalo
80
+ "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/,
81
+ "alertText": "* Invalid phone number"
82
+ },
83
+ "email": {
84
+ // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 )
85
+ "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
86
+ "alertText": "* Invalid email address"
87
+ },
88
+ "integer": {
89
+ "regex": /^[\-\+]?\d+$/,
90
+ "alertText": "* Not a valid integer"
91
+ },
92
+ "number": {
93
+ // Number, including positive, negative, and floating decimal. credit: orefalo
94
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
95
+ "alertText": "* Invalid floating decimal number"
96
+ },
97
+ "date": {
98
+ // Check if date is valid by leap year
99
+ "func": function (field) {
100
+ var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
101
+ var match = pattern.exec(field.val());
102
+ if (match == null)
103
+ return false;
104
+
105
+ var year = match[1];
106
+ var month = match[2]*1;
107
+ var day = match[3]*1;
108
+ var date = new Date(year, month - 1, day); // because months starts from 0.
109
+
110
+ return (date.getFullYear() == year && date.getMonth() == (month - 1) && date.getDate() == day);
111
+ },
112
+ "alertText": "* Invalid date, must be in YYYY-MM-DD format"
113
+ },
114
+ "ipv4": {
115
+ "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
116
+ "alertText": "* Invalid IP address"
117
+ },
118
+ "url": {
119
+ "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
120
+ "alertText": "* Invalid URL"
121
+ },
122
+ "onlyNumberSp": {
123
+ "regex": /^[0-9\ ]+$/,
124
+ "alertText": "* Numbers only"
125
+ },
126
+ "onlyLetterSp": {
127
+ "regex": /^[a-zA-Z\ \']+$/,
128
+ "alertText": "* Letters only"
129
+ },
130
+ "onlyLetterNumber": {
131
+ "regex": /^[0-9a-zA-Z]+$/,
132
+ "alertText": "* No special characters allowed"
133
+ },
134
+ // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
135
+ "ajaxUserCall": {
136
+ "url": "ajaxValidateFieldUser",
137
+ // you may want to pass extra data on the ajax call
138
+ "extraData": "name=eric",
139
+ "alertText": "* This user is already taken",
140
+ "alertTextLoad": "* Validating, please wait"
141
+ },
142
+ "ajaxUserCallPhp": {
143
+ "url": "phpajax/ajaxValidateFieldUser.php",
144
+ // you may want to pass extra data on the ajax call
145
+ "extraData": "name=eric",
146
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
147
+ "alertTextOk": "* This username is available",
148
+ "alertText": "* This user is already taken",
149
+ "alertTextLoad": "* Validating, please wait"
150
+ },
151
+ "ajaxNameCall": {
152
+ // remote json service location
153
+ "url": "ajaxValidateFieldName",
154
+ // error
155
+ "alertText": "* This name is already taken",
156
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
157
+ "alertTextOk": "* This name is available",
158
+ // speaks by itself
159
+ "alertTextLoad": "* Validating, please wait"
160
+ },
161
+ "ajaxNameCallPhp": {
162
+ // remote json service location
163
+ "url": "phpajax/ajaxValidateFieldName.php",
164
+ // error
165
+ "alertText": "* This name is already taken",
166
+ // speaks by itself
167
+ "alertTextLoad": "* Validating, please wait"
168
+ },
169
+ "validate2fields": {
170
+ "alertText": "* Please input HELLO"
171
+ },
172
+ //tls warning:homegrown not fielded
173
+ "dateFormat":{
174
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
175
+ "alertText": "* Invalid Date"
176
+ },
177
+ //tls warning:homegrown not fielded
178
+ "dateTimeFormat": {
179
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
180
+ "alertText": "* Invalid Date or Date Format",
181
+ "alertText2": "Expected Format: ",
182
+ "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ",
183
+ "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
184
+ }
185
+ };
186
+
187
+ }
188
+ };
189
+
190
+ $.validationEngineLanguage.newLang();
191
+
192
+ })(jQuery);