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,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": "* Campo obrigatório",
10
+ "alertTextCheckboxMultiple": "* Selecione uma opção",
11
+ "alertTextCheckboxe": "* Campo obrigatório"
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": "* Mínimo ",
22
+ "alertText2": " carateres permitidos"
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Máximo ",
27
+ "alertText2": " carateres permitidos"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* You must fill one of the following fields"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* O valor mínimo é "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* O valor máximo é "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Data anterior a "
44
+ },
45
+ "future": {
46
+ "regex": "none",
47
+ "alertText": "* Data posterior a "
48
+ },
49
+ "maxCheckbox": {
50
+ "regex": "none",
51
+ "alertText": "* Foi ultrapassado o número máximo de escolhas"
52
+ },
53
+ "minCheckbox": {
54
+ "regex": "none",
55
+ "alertText": "* Selecione ",
56
+ "alertText2": " opções"
57
+ },
58
+ "equals": {
59
+ "regex": "none",
60
+ "alertText": "* Os campos não correspondem"
61
+ },
62
+ "creditCard": {
63
+ "regex": "none",
64
+ "alertText": "* Inválido número de cartão de crédito"
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": "* Número de telefone inválido"
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": "* Endereço de email inválido"
75
+ },
76
+ "integer": {
77
+ "regex": /^[\-\+]?\d+$/,
78
+ "alertText": "* Não é um número inteiro"
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": "* Não é um número decimal"
84
+ },
85
+ "date": {
86
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
87
+ "alertText": "* Data inválida, o formato deve de ser AAAA-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": "* Número IP inválido"
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": "* URL inválido"
96
+ },
97
+ "onlyNumberSp": {
98
+ "regex": /^[0-9\ ]+$/,
99
+ "alertText": "* Só é permitido números"
100
+ },
101
+ "onlyLetterSp": {
102
+ "regex": /^[a-zA-Z\ \']+$/,
103
+ "alertText": "* Só é permitido letras"
104
+ },
105
+ "onlyLetterNumber": {
106
+ "regex": /^[0-9a-zA-Z]+$/,
107
+ "alertText": "* Só é permitido letras e números"
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": "* Nome de utilizador não disponível",
115
+ "alertTextLoad": "* A validar, por favor aguarde"
116
+ },
117
+ "ajaxNameCall": {
118
+ // remote json service location
119
+ "url": "ajaxValidateFieldName",
120
+ // error
121
+ "alertText": "* Nome não disponível",
122
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
123
+ "alertTextOk": "* Nome disponível",
124
+ // speaks by itself
125
+ "alertTextLoad": "* A validar, por favor aguarde"
126
+ },
127
+ "validate2fields": {
128
+ "alertText": "* Escreva HELLO"
129
+ }
130
+ };
131
+
132
+ }
133
+ };
134
+ $.validationEngineLanguage.newLang();
135
+ })(jQuery);
@@ -0,0 +1,127 @@
1
+ (function($){
2
+ $.fn.validationEngineLanguage = function(){};
3
+ $.validationEngineLanguage = {
4
+ newLang: function(){
5
+ $.validationEngineLanguage.allRules = {
6
+ "required": {
7
+ "regex": "none",
8
+ "alertText": "* Este campo é obrigatório",
9
+ "alertTextCheckboxMultiple": "* Favor selecionar uma opção",
10
+ "alertTextCheckboxe": "* Este checkbox é obrigatório",
11
+ "alertTextDateRange": "* Ambas as datas do intervalo são obrigatórias"
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
+ "dateRange": {
20
+ "regex": "none",
21
+ "alertText": "* Intervalo de datas inválido"
22
+ },
23
+ "dateTimeRange": {
24
+ "regex": "none",
25
+ "alertText": "* Intervalo de data e hora inválido"
26
+ },
27
+ "minSize": {
28
+ "regex": "none",
29
+ "alertText": "* Permitido o mínimo de ",
30
+ "alertText2": " caractere(s)"
31
+ },
32
+ "maxSize": {
33
+ "regex": "none",
34
+ "alertText": "* Permitido o máximo de ",
35
+ "alertText2": " caractere(s)"
36
+ },
37
+ "groupRequired": {
38
+ "regex": "none",
39
+ "alertText": "* Você deve preencher um dos seguintes campos"
40
+ },
41
+ "min": {
42
+ "regex": "none",
43
+ "alertText": "* Valor mínimo é "
44
+ },
45
+ "max": {
46
+ "regex": "none",
47
+ "alertText": "* Valor máximo é "
48
+ },
49
+ "past": {
50
+ "regex": "none",
51
+ "alertText": "* Data anterior a "
52
+ },
53
+ "future": {
54
+ "regex": "none",
55
+ "alertText": "* Data posterior a "
56
+ },
57
+ "maxCheckbox": {
58
+ "regex": "none",
59
+ "alertText": "* Máximo de ",
60
+ "alertText2": " opções permitidas"
61
+ },
62
+ "minCheckbox": {
63
+ "regex": "none",
64
+ "alertText": "* Favor selecionar ",
65
+ "alertText2": " opção(ões)"
66
+ },
67
+ "equals": {
68
+ "regex": "none",
69
+ "alertText": "* Os campos não correspondem"
70
+ },
71
+ "creditCard": {
72
+ "regex": "none",
73
+ "alertText": "* Número de cartão de crédito inválido"
74
+ },
75
+ "phone": {
76
+ "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
77
+ "alertText": "* Número de telefone inválido"
78
+ },
79
+ "email": {
80
+ "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,
81
+ "alertText": "* Endereço de email inválido"
82
+ },
83
+ "integer": {
84
+ "regex": /^[\-\+]?\d+$/,
85
+ "alertText": "* Número inteiro inválido"
86
+ },
87
+ "number": {
88
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
89
+ "alertText": "* Número decimal inválido"
90
+ },
91
+ "date": {
92
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
93
+ "alertText": "* Data inválida, deve ser no formato AAAA-MM-DD"
94
+ },
95
+ "ipv4": {
96
+ "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]))$/,
97
+ "alertText": "* Endereço IP inválido"
98
+ },
99
+ "url": {
100
+ "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,
101
+ "alertText": "* URL inválida"
102
+ },
103
+ "onlyNumberSp": {
104
+ "regex": /^[0-9\ ]+$/,
105
+ "alertText": "* Apenas números"
106
+ },
107
+ "onlyLetterSp": {
108
+ "regex": /^[a-zA-Z\ \']+$/,
109
+ "alertText": "* Apenas letras"
110
+ },
111
+ "onlyLetterNumber": {
112
+ "regex": /^[0-9a-zA-Z]+$/,
113
+ "alertText": "* Não são permitidos caracteres especiais"
114
+ },
115
+ "real": {
116
+ // Brazilian (Real - R$) money format
117
+ "regex": /^([1-9]{1}[\d]{0,2}(\.[\d]{3})*(\,[\d]{0,2})?|[1-9]{1}[\d]{0,}(\,[\d]{0,2})?|0(\,[\d]{0,2})?|(\,[\d]{1,2})?)$/,
118
+ "alertText": "* Número decimal inválido"
119
+ }
120
+ };
121
+
122
+ }
123
+ };
124
+
125
+ $.validationEngineLanguage.newLang();
126
+
127
+ })(jQuery);
@@ -0,0 +1,177 @@
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": "* Camp obligatoriu",
10
+ "alertTextCheckboxMultiple": "* Selecteaza o optiune",
11
+ "alertTextCheckboxe": "* Optiune obligatorie",
12
+ "alertTextDateRange": "* Campurile data cu ajutorul carora se stabileste perioada sunt obligatorii"
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": "* Perioada ",
23
+ "alertText2": "este invalida"
24
+ },
25
+ "dateTimeRange": {
26
+ "regex": "none",
27
+ "alertText": "* Intervalul de timp ",
28
+ "alertText2": "este invalid"
29
+ },
30
+ "minSize": {
31
+ "regex": "none",
32
+ "alertText": "* Sunt permise cel putin ",
33
+ "alertText2": " caractere"
34
+ },
35
+ "maxSize": {
36
+ "regex": "none",
37
+ "alertText": "* Sunt permise maxim ",
38
+ "alertText2": " caractere"
39
+ },
40
+ "groupRequired": {
41
+ "regex": "none",
42
+ "alertText": "* Trebuie sa completezi unul dintre urmatoarele campuri"
43
+ },
44
+ "min": {
45
+ "regex": "none",
46
+ "alertText": "* Valoarea minim admisa este "
47
+ },
48
+ "max": {
49
+ "regex": "none",
50
+ "alertText": "* Valoarea maxim admisa este "
51
+ },
52
+ "past": {
53
+ "regex": "none",
54
+ "alertText": "* Data trebuie sa fie una anterioara fata de "
55
+ },
56
+ "future": {
57
+ "regex": "none",
58
+ "alertText": "* Data este una din trecut fata de "
59
+ },
60
+ "maxCheckbox": {
61
+ "regex": "none",
62
+ "alertText": "* Maximul de optiuni permise este ",
63
+ "alertText2": ""
64
+ },
65
+ "minCheckbox": {
66
+ "regex": "none",
67
+ "alertText": "* Selecteaza minim ",
68
+ "alertText2": " optiuni"
69
+ },
70
+ "equals": {
71
+ "regex": "none",
72
+ "alertText": "* Campurile nu au fost completate identic"
73
+ },
74
+ "creditCard": {
75
+ "regex": "none",
76
+ "alertText": "* Nevalid num?rul de card de credit"
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": "* Numarul de telefon este scris eronat"
82
+ },
83
+ "email": {
84
+ // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
85
+ "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,
86
+ "alertText": "* Adresa e-mail este scrisa gresit"
87
+ },
88
+ "integer": {
89
+ "regex": /^[\-\+]?\d+$/,
90
+ "alertText": "* Nu este un numar intreg"
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": "* Trebuie sa fie un numar"
96
+ },
97
+ "date": {
98
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
99
+ "alertText": "* Data nu este corecta. Aceasta trebuie sa fie scrisa sub forma YYYY-MM-DD"
100
+ },
101
+ "ipv4": {
102
+ "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]))$/,
103
+ "alertText": "* Adresa IP nu este corecta"
104
+ },
105
+ "url": {
106
+ "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,
107
+ "alertText": "* URL gresit"
108
+ },
109
+ "onlyNumberSp": {
110
+ "regex": /^[0-9\ ]+$/,
111
+ "alertText": "* Sunt permise doar numerele"
112
+ },
113
+ "onlyLetterSp": {
114
+ "regex": /^[a-zA-Z\ \']+$/,
115
+ "alertText": "* Sunt admise doar literele"
116
+ },
117
+ "onlyLetterNumber": {
118
+ "regex": /^[0-9a-zA-Z]+$/,
119
+ "alertText": "* Trebuie sa folosesti doar litere si numere intregi"
120
+ },
121
+ // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
122
+ "ajaxUserCall": {
123
+ "url": "ajaxValidateFieldUser",
124
+ // you may want to pass extra data on the ajax call
125
+ "extraData": "name=eric",
126
+ "alertText": "* Numele utilizator nu este disponibil",
127
+ "alertTextLoad": "* Se efectueaza validarea. Asteapta..."
128
+ },
129
+ "ajaxUserCallPhp": {
130
+ "url": "phpajax/ajaxValidateFieldUser.php",
131
+ // you may want to pass extra data on the ajax call
132
+ "extraData": "name=eric",
133
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
134
+ "alertTextOk": "* Numele utilizator este disponibil",
135
+ "alertText": "* Numele utilizator nu este disponibil",
136
+ "alertTextLoad": "* Se efectueaza validarea. Asteapta..."
137
+ },
138
+ "ajaxNameCall": {
139
+ // remote json service location
140
+ "url": "ajaxValidateFieldName",
141
+ // error
142
+ "alertText": "* Numele nu este disponibil",
143
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
144
+ "alertTextOk": "* Numele este disponibil",
145
+ // speaks by itself
146
+ "alertTextLoad": "* Se efectueaza validarea. Asteapta..."
147
+ },
148
+ "ajaxNameCallPhp": {
149
+ // remote json service location
150
+ "url": "phpajax/ajaxValidateFieldName.php",
151
+ // error
152
+ "alertText": "* Numele nu este disponibil",
153
+ // speaks by itself
154
+ "alertTextLoad": "* Se efectueaza validarea. Asteapta..."
155
+ },
156
+ "validate2fields": {
157
+ "alertText": "* Scrie: HELLO"
158
+ },
159
+ //tls warning:homegrown not fielded
160
+ "dateFormat":{
161
+ "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]))$/,
162
+ "alertText": "* Data nu este corecta"
163
+ },
164
+ //tls warning:homegrown not fielded
165
+ "dateTimeFormat": {
166
+ "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})$/,
167
+ "alertText": "* Data nu este corecta sau formatul acesteia este unul gresit",
168
+ "alertText2": "Formatele recunoscute sunt: ",
169
+ "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM sau ",
170
+ "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
171
+ }
172
+ };
173
+
174
+ }
175
+ };
176
+ $.validationEngineLanguage.newLang();
177
+ })(jQuery);
@@ -0,0 +1,136 @@
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": "* Необходимо заполнить",
10
+ "alertTextCheckboxMultiple": "* Вы должны выбрать вариант",
11
+ "alertTextCheckboxe": "* Необходимо отметить"
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": "* Минимум ",
22
+ "alertText2": " символа(ов)"
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Максимум ",
27
+ "alertText2": " символа(ов)"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* You must fill one of the following fields"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* Минимальное значение "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* Максимальное значение "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Дата до "
44
+ },
45
+ "future": {
46
+ "regex": "none",
47
+ "alertText": "* Дата от "
48
+ },
49
+ "maxCheckbox": {
50
+ "regex": "none",
51
+ "alertText": "* Нельзя выбрать столько вариантов"
52
+ },
53
+ "minCheckbox": {
54
+ "regex": "none",
55
+ "alertText": "* Пожалуйста, выберите ",
56
+ "alertText2": " опцию(ии)"
57
+ },
58
+ "equals": {
59
+ "regex": "none",
60
+ "alertText": "* Поля не совпадают"
61
+ },
62
+ "creditCard": {
63
+ "regex": "none",
64
+ "alertText": "* Неверный номер кредитной карты"
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": "* Неправильный формат телефона"
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": "* Неверный формат email"
75
+ },
76
+ "integer": {
77
+ "regex": /^[\-\+]?\d+$/,
78
+ "alertText": "* Не целое число"
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": "* Неправильное число с плавающей точкой"
84
+ },
85
+ "date": {
86
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
87
+ "alertText": "* Неправильная дата (должно быть в ДД.MM.ГГГГ формате)"
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": "* Неправильный IP-адрес"
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": "* Неправильный URL"
96
+ },
97
+ "onlyNumberSp": {
98
+ "regex": /^[0-9\ ]+$/,
99
+ "alertText": "* Только числа"
100
+ },
101
+ "onlyLetterSp": {
102
+ "regex": /^[a-zA-Z\u0400-\u04FF\ \']+$/,
103
+ "alertText": "* Только буквы"
104
+ },
105
+ "onlyLetterNumber": {
106
+ "regex": /^[0-9a-zA-Z\u0400-\u04FF]+$/,
107
+ "alertText": "* Запрещены специальные символы"
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": "* Этот пользователь уже занят",
115
+ "alertTextLoad": "* Проверка, подождите..."
116
+ },
117
+ "ajaxNameCall": {
118
+ // remote json service location
119
+ "url": "ajaxValidateFieldName",
120
+ // error
121
+ "alertText": "* Это имя уже занято",
122
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
123
+ "alertTextOk": "* Это имя доступно",
124
+ // speaks by itself
125
+ "alertTextLoad": "* Проверка, подождите..."
126
+ },
127
+ "validate2fields": {
128
+ "alertText": "* Пожалуйста, введите HELLO"
129
+ }
130
+ };
131
+
132
+ }
133
+ };
134
+ $.validationEngineLanguage.newLang();
135
+ })(jQuery);
136
+