skyframe 0.0.1.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/skyframe.rb +8 -0
- data/lib/skyframe/version.rb +3 -0
- data/stylesheets/_main.scss +1 -0
- data/templates/project/files/404.html +157 -0
- data/templates/project/files/CHANGELOG.md +19 -0
- data/templates/project/files/about.html +96 -0
- data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-144x144-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-57x57-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon.png +0 -0
- data/templates/project/files/bg_direction_nav.png +0 -0
- data/templates/project/files/blog-details.html +255 -0
- data/templates/project/files/blog.html +157 -0
- data/templates/project/files/config.rb +28 -0
- data/templates/project/files/contact.html +158 -0
- data/templates/project/files/crossdomain.xml +15 -0
- data/templates/project/files/dummy-full.png +0 -0
- data/templates/project/files/dummy-square.png +0 -0
- data/templates/project/files/favicon.ico +0 -0
- data/templates/project/files/flash/video-js.swf +0 -0
- data/templates/project/files/forgot-password.html +101 -0
- data/templates/project/files/htaccess.txt +536 -0
- data/templates/project/files/humans.txt +18 -0
- data/templates/project/files/icon-gmap.png +0 -0
- data/templates/project/files/icon-search.png +0 -0
- data/templates/project/files/inc/breadcrumb.html +5 -0
- data/templates/project/files/inc/footer.html +37 -0
- data/templates/project/files/inc/header.html +20 -0
- data/templates/project/files/inc/js-bottom.html +21 -0
- data/templates/project/files/inc/js-top.html +10 -0
- data/templates/project/files/inc/main-nav.html +7 -0
- data/templates/project/files/logo.png +0 -0
- data/templates/project/files/logo@2x.png +0 -0
- data/templates/project/files/media/audio/dummy-audio.mp3 +0 -0
- data/templates/project/files/media/video/dummy-video.mp4 +0 -0
- data/templates/project/files/products.html +100 -0
- data/templates/project/files/readme.md +55 -0
- data/templates/project/files/robots.txt +3 -0
- data/templates/project/files/services.html +75 -0
- data/templates/project/files/sign-in.html +104 -0
- data/templates/project/files/sitemap.html +102 -0
- data/templates/project/files/video-js.png +0 -0
- data/templates/project/javascripts/libs/jquery-1.8.0.min.js +2 -0
- data/templates/project/javascripts/libs/jquery.validationEngine.js +1819 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-cz.js +156 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-da.js +135 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-de.js +139 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-en.js +192 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-es.js +137 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-et.js +139 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-fa.js +181 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-fi.js +111 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-fr.js +129 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-hr.js +177 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-hu.js +179 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-it.js +111 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-ja.js +149 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-nl.js +136 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-pl.js +140 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-pt.js +135 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-pt_BR.js +127 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-ro.js +177 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-ru.js +136 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-se.js +153 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-tr.js +156 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-vi.js +179 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-zh_CN.js +177 -0
- data/templates/project/javascripts/libs/languages/jquery.validationEngine-zh_TW.js +177 -0
- data/templates/project/javascripts/libs/modernizr-2.5.3.min.js +4 -0
- data/templates/project/javascripts/libs/respond.min.js +6 -0
- data/templates/project/javascripts/libs/selectivizr.js +560 -0
- data/templates/project/javascripts/plugins.js +83 -0
- data/templates/project/javascripts/script.js +282 -0
- data/templates/project/manifest.rb +136 -0
- data/templates/project/partials/_debug.scss +114 -0
- data/templates/project/partials/_functions.scss +10 -0
- data/templates/project/partials/_helpers.scss +86 -0
- data/templates/project/partials/_layout.scss +188 -0
- data/templates/project/partials/_media.scss +191 -0
- data/templates/project/partials/_misc.scss +103 -0
- data/templates/project/partials/_mixins.scss +140 -0
- data/templates/project/partials/_mods.scss +59 -0
- data/templates/project/partials/_normalize.scss +36 -0
- data/templates/project/partials/_print.scss +80 -0
- data/templates/project/partials/_type.scss +331 -0
- data/templates/project/partials/_vars.scss +114 -0
- data/templates/project/partials/mods/_mod-block.scss +96 -0
- data/templates/project/partials/mods/_mod-breadcrumb.scss +103 -0
- data/templates/project/partials/mods/_mod-carousel.scss +108 -0
- data/templates/project/partials/mods/_mod-footer.scss +199 -0
- data/templates/project/partials/mods/_mod-form.scss +319 -0
- data/templates/project/partials/mods/_mod-header.scss +291 -0
- data/templates/project/partials/mods/_mod-intro.scss +98 -0
- data/templates/project/partials/mods/_mod-layouts.scss +135 -0
- data/templates/project/partials/mods/_mod-main-nav.scss +143 -0
- data/templates/project/partials/mods/_mod-map.scss +107 -0
- data/templates/project/partials/mods/_mod-msg.scss +119 -0
- data/templates/project/partials/mods/_mod-paging.scss +101 -0
- data/templates/project/partials/mods/_mod-sitemap.scss +132 -0
- data/templates/project/partials/mods/_mod-split-form.scss +98 -0
- data/templates/project/partials/mods/_mod-strip.scss +118 -0
- data/templates/project/partials/mods/_mod-table.scss +118 -0
- data/templates/project/partials/mods/_mod-widget.scss +103 -0
- data/templates/project/partials/plugins/_flexslider.scss +82 -0
- data/templates/project/partials/plugins/_validation-engine.scss +137 -0
- data/templates/project/partials/plugins/_video-js.scss +616 -0
- data/templates/project/partials/sass-template.scss +103 -0
- data/templates/project/screen.scss +2 -0
- metadata +220 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
(function($){
|
2
|
+
$.fn.validationEngineLanguage = function(){};
|
3
|
+
$.validationEngineLanguage = {
|
4
|
+
newLang: function(){
|
5
|
+
$.validationEngineLanguage.allRules = {
|
6
|
+
"required": { // Add your regex rules here, you can take telephone as an example
|
7
|
+
"regex": "none",
|
8
|
+
"alertText": "* Campo richiesto",
|
9
|
+
"alertTextCheckboxMultiple": "* Per favore selezionare un'opzione",
|
10
|
+
"alertTextCheckboxe": "* E' richiesta la selezione della casella"
|
11
|
+
},
|
12
|
+
"requiredInFunction": {
|
13
|
+
"func": function(field, rules, i, options){
|
14
|
+
return (field.val() == "test") ? true : false;
|
15
|
+
},
|
16
|
+
"alertText": "* Field must equal test"
|
17
|
+
},
|
18
|
+
"length": {
|
19
|
+
"regex": "none",
|
20
|
+
"alertText": "* Fra ",
|
21
|
+
"alertText2": " e ",
|
22
|
+
"alertText3": " caratteri permessi"
|
23
|
+
},
|
24
|
+
"maxCheckbox": {
|
25
|
+
"regex": "none",
|
26
|
+
"alertText": "* Numero di caselle da selezionare in eccesso"
|
27
|
+
},
|
28
|
+
"groupRequired": {
|
29
|
+
"regex": "none",
|
30
|
+
"alertText": "* You must fill one of the following fields"
|
31
|
+
},
|
32
|
+
"minCheckbox": {
|
33
|
+
"regex": "none",
|
34
|
+
"alertText": "* Per favore selezionare ",
|
35
|
+
"alertText2": " opzioni"
|
36
|
+
},
|
37
|
+
"equals": {
|
38
|
+
"regex": "none",
|
39
|
+
"alertText": "* I campi non corrispondono"
|
40
|
+
},
|
41
|
+
"creditCard": {
|
42
|
+
"regex": "none",
|
43
|
+
"alertText": "* Non valido numero di carta di credito"
|
44
|
+
},
|
45
|
+
"phone": {
|
46
|
+
// credit: jquery.h5validate.js / orefalo
|
47
|
+
"regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
|
48
|
+
"alertText": "* Numero di telefono non corretto"
|
49
|
+
},
|
50
|
+
"email": {
|
51
|
+
// Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
|
52
|
+
"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,
|
53
|
+
"alertText": "* Indirizzo non corretto"
|
54
|
+
},
|
55
|
+
"integer": {
|
56
|
+
"regex": /^[\-\+]?\d+$/,
|
57
|
+
"alertText": "* Numero intero non corretto"
|
58
|
+
},
|
59
|
+
"number": {
|
60
|
+
// Number, including positive, negative, and floating decimal. Credit: bassistance
|
61
|
+
"regex": /^[\-\+]?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)$/,
|
62
|
+
"alertText": "* Numero decimale non corretto"
|
63
|
+
},
|
64
|
+
"date": {
|
65
|
+
"regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
|
66
|
+
"alertText": "* Data non corretta, re-inserire secondo formato AAAA-MM-GG"
|
67
|
+
},
|
68
|
+
|
69
|
+
"ipv4": {
|
70
|
+
"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]))$/,
|
71
|
+
"alertText": "* IP non corretto"
|
72
|
+
},
|
73
|
+
"url": {
|
74
|
+
"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,
|
75
|
+
"alertText": "* URL non corretta"
|
76
|
+
},
|
77
|
+
"onlyNumber": {
|
78
|
+
"regex": /^[0-9\ ]+$/,
|
79
|
+
"alertText": "* Solo numeri"
|
80
|
+
},
|
81
|
+
"onlyLetter": {
|
82
|
+
"regex": /^[a-zA-Z\ \']+$/,
|
83
|
+
"alertText": "* Solo lettere"
|
84
|
+
},
|
85
|
+
"validate2fields": {
|
86
|
+
"nname": "validate2fields",
|
87
|
+
"alertText": "* Occorre inserire nome e cognome"
|
88
|
+
},
|
89
|
+
"noSpecialCharacters": {
|
90
|
+
"regex": /^[0-9a-zA-Z]+$/,
|
91
|
+
"alertText": "* Caratteri speciali non permessi"
|
92
|
+
},
|
93
|
+
"ajaxUserCall": {
|
94
|
+
"file": "ajaxValidateFieldName",
|
95
|
+
"extraData": "name=eric",
|
96
|
+
"alertTextLoad": "* Caricamento, attendere per favore",
|
97
|
+
"alertText": "* Questo user � gi� stato utilizzato"
|
98
|
+
},
|
99
|
+
"ajaxNameCall": {
|
100
|
+
"file": "ajaxValidateFieldName",
|
101
|
+
"alertText": "* Questo nome � gi� stato utilizzato",
|
102
|
+
"alertTextOk": "* Questo nome � disponibile",
|
103
|
+
"alertTextLoad": "* Caricamento, attendere per favore"
|
104
|
+
}
|
105
|
+
|
106
|
+
};
|
107
|
+
|
108
|
+
}
|
109
|
+
};
|
110
|
+
$.validationEngineLanguage.newLang();
|
111
|
+
})(jQuery);
|
@@ -0,0 +1,149 @@
|
|
1
|
+
;/*****************************************************************
|
2
|
+
* Japanese language file for jquery.validationEngine.js (ver2.0)
|
3
|
+
*
|
4
|
+
* Transrator: tomotomo ( Tomoyuki SUGITA )
|
5
|
+
* http://tomotomoSnippet.blogspot.com/
|
6
|
+
* Licenced under the MIT Licence
|
7
|
+
*******************************************************************/
|
8
|
+
(function($){
|
9
|
+
$.fn.validationEngineLanguage = function(){
|
10
|
+
};
|
11
|
+
$.validationEngineLanguage = {
|
12
|
+
newLang: function(){
|
13
|
+
$.validationEngineLanguage.allRules = {
|
14
|
+
"required": { // Add your regex rules here, you can take telephone as an example
|
15
|
+
"regex": "none",
|
16
|
+
"alertText": "* 必須項目です",
|
17
|
+
"alertTextCheckboxMultiple": "* 選択してください",
|
18
|
+
"alertTextCheckboxe": "* チェックボックスをチェックしてください"
|
19
|
+
},
|
20
|
+
"requiredInFunction": {
|
21
|
+
"func": function(field, rules, i, options){
|
22
|
+
return (field.val() == "test") ? true : false;
|
23
|
+
},
|
24
|
+
"alertText": "* Field must equal test"
|
25
|
+
},
|
26
|
+
"minSize": {
|
27
|
+
"regex": "none",
|
28
|
+
"alertText": "* ",
|
29
|
+
"alertText2": "文字以上にしてください"
|
30
|
+
},
|
31
|
+
"groupRequired": {
|
32
|
+
"regex": "none",
|
33
|
+
"alertText": "* You must fill one of the following fields"
|
34
|
+
},
|
35
|
+
"maxSize": {
|
36
|
+
"regex": "none",
|
37
|
+
"alertText": "* ",
|
38
|
+
"alertText2": "文字以下にしてください"
|
39
|
+
},
|
40
|
+
"min": {
|
41
|
+
"regex": "none",
|
42
|
+
"alertText": "* ",
|
43
|
+
"alertText2": " 以上の数値にしてください"
|
44
|
+
},
|
45
|
+
"max": {
|
46
|
+
"regex": "none",
|
47
|
+
"alertText": "* ",
|
48
|
+
"alertText2": " 以下の数値にしてください"
|
49
|
+
},
|
50
|
+
"past": {
|
51
|
+
"regex": "none",
|
52
|
+
"alertText": "* ",
|
53
|
+
"alertText2": " より過去の日付にしてください"
|
54
|
+
},
|
55
|
+
"future": {
|
56
|
+
"regex": "none",
|
57
|
+
"alertText": "* ",
|
58
|
+
"alertText2": " より最近の日付にしてください"
|
59
|
+
},
|
60
|
+
"maxCheckbox": {
|
61
|
+
"regex": "none",
|
62
|
+
"alertText": "* チェックしすぎです"
|
63
|
+
},
|
64
|
+
"minCheckbox": {
|
65
|
+
"regex": "none",
|
66
|
+
"alertText": "* ",
|
67
|
+
"alertText2": "つ以上チェックしてください"
|
68
|
+
},
|
69
|
+
"equals": {
|
70
|
+
"regex": "none",
|
71
|
+
"alertText": "* 入力された値が一致しません"
|
72
|
+
},
|
73
|
+
"creditCard": {
|
74
|
+
"regex": "none",
|
75
|
+
"alertText": "* 無効なクレジットカード番号"
|
76
|
+
},
|
77
|
+
"phone": {
|
78
|
+
// credit: jquery.h5validate.js / orefalo
|
79
|
+
"regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
|
80
|
+
"alertText": "* 電話番号が正しくありません"
|
81
|
+
},
|
82
|
+
"email": {
|
83
|
+
// Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
|
84
|
+
"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,
|
85
|
+
"alertText": "* メールアドレスが正しくありません"
|
86
|
+
},
|
87
|
+
"integer": {
|
88
|
+
"regex": /^[\-\+]?\d+$/,
|
89
|
+
"alertText": "* 整数を半角で入力してください"
|
90
|
+
},
|
91
|
+
"number": {
|
92
|
+
// Number, including positive, negative, and floating decimal. credit: orefalo
|
93
|
+
"regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
|
94
|
+
"alertText": "* 数値を半角で入力してください"
|
95
|
+
},
|
96
|
+
"date": {
|
97
|
+
"regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
|
98
|
+
"alertText": "* 日付は半角で 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": "* IPアドレスが正しくありません"
|
103
|
+
},
|
104
|
+
"url": {
|
105
|
+
"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,
|
106
|
+
"alertText": "* URLが正しくありません"
|
107
|
+
},
|
108
|
+
"onlyNumberSp": {
|
109
|
+
"regex": /^[0-9\ ]+$/,
|
110
|
+
"alertText": "* 半角数字で入力してください"
|
111
|
+
},
|
112
|
+
"onlyLetterSp": {
|
113
|
+
"regex": /^[a-zA-Z\ \']+$/,
|
114
|
+
"alertText": "* 半角アルファベットで入力してください"
|
115
|
+
},
|
116
|
+
"onlyLetterNumber": {
|
117
|
+
"regex": /^[0-9a-zA-Z]+$/,
|
118
|
+
"alertText": "* 半角英数で入力してください"
|
119
|
+
},
|
120
|
+
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
|
121
|
+
"ajaxUserCall": {
|
122
|
+
"url": "ajaxValidateFieldUser",
|
123
|
+
// you may want to pass extra data on the ajax call
|
124
|
+
"extraData": "name=eric",
|
125
|
+
"alertText": "* This user is already taken",
|
126
|
+
"alertTextLoad": "* Validating, please wait"
|
127
|
+
},
|
128
|
+
"ajaxNameCall": {
|
129
|
+
// remote json service location
|
130
|
+
"url": "ajaxValidateFieldName",
|
131
|
+
// error
|
132
|
+
"alertText": "* This name is already taken",
|
133
|
+
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
|
134
|
+
"alertTextOk": "* This name is available",
|
135
|
+
// speaks by itself
|
136
|
+
"alertTextLoad": "* Validating, please wait"
|
137
|
+
},
|
138
|
+
"validate2fields": {
|
139
|
+
"alertText": "* 『HELLO』と入力してください"
|
140
|
+
}
|
141
|
+
};
|
142
|
+
|
143
|
+
}
|
144
|
+
};
|
145
|
+
$.validationEngineLanguage.newLang();
|
146
|
+
})(jQuery);
|
147
|
+
|
148
|
+
|
149
|
+
|
@@ -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": "geen",
|
9
|
+
"alertText": "* Dit veld is verplicht",
|
10
|
+
"alertTextCheckboxMultiple": "* Selecteer a.u.b. een optie",
|
11
|
+
"alertTextCheckboxe": "* Dit selectievakje is verplicht"
|
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": "* Minimaal ",
|
22
|
+
"alertText2": " karakters toegestaan"
|
23
|
+
},
|
24
|
+
"maxSize": {
|
25
|
+
"regex": "none",
|
26
|
+
"alertText": "* Maximaal ",
|
27
|
+
"alertText2": " karakters toegestaan"
|
28
|
+
},
|
29
|
+
"groupRequired": {
|
30
|
+
"regex": "none",
|
31
|
+
"alertText": "* You must fill one of the following fields"
|
32
|
+
},
|
33
|
+
"min": {
|
34
|
+
"regex": "none",
|
35
|
+
"alertText": "* Minimale waarde is "
|
36
|
+
},
|
37
|
+
"max": {
|
38
|
+
"regex": "none",
|
39
|
+
"alertText": "* Maximale waarde is "
|
40
|
+
},
|
41
|
+
"past": {
|
42
|
+
"regex": "none",
|
43
|
+
"alertText": "* Datum voorafgaand aan "
|
44
|
+
},
|
45
|
+
"future": {
|
46
|
+
"regex": "none",
|
47
|
+
"alertText": "* Datum na "
|
48
|
+
},
|
49
|
+
"maxCheckbox": {
|
50
|
+
"regex": "none",
|
51
|
+
"alertText": "* Toegestane aantal vinkjes overschreden"
|
52
|
+
},
|
53
|
+
"minCheckbox": {
|
54
|
+
"regex": "none",
|
55
|
+
"alertText": "* Selecteer a.u.b. ",
|
56
|
+
"alertText2": " opties"
|
57
|
+
},
|
58
|
+
"equals": {
|
59
|
+
"regex": "none",
|
60
|
+
"alertText": "* Velden komen niet overeen"
|
61
|
+
},
|
62
|
+
"creditCard": {
|
63
|
+
"regex": "none",
|
64
|
+
"alertText": "* Ongeldige credit card nummer"
|
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": "* Ongeldig telefoonnummer"
|
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": "* Ongeldig e-mailadres"
|
75
|
+
},
|
76
|
+
"integer": {
|
77
|
+
"regex": /^[\-\+]?\d+$/,
|
78
|
+
"alertText": "* Ongeldig geheel getal"
|
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": "* Ongeldig drijvende comma getal"
|
84
|
+
},
|
85
|
+
"date": {
|
86
|
+
"regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
|
87
|
+
"alertText": "* Ongeldige datum, formaat moet JJJJ-MM-DD zijn"
|
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": "* Ongeldig IP-adres"
|
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": "* Ongeldige URL"
|
96
|
+
},
|
97
|
+
"onlyNumberSp": {
|
98
|
+
"regex": /^[0-9\ ]+$/,
|
99
|
+
"alertText": "* Alleen cijfers"
|
100
|
+
},
|
101
|
+
"onlyLetterSp": {
|
102
|
+
"regex": /^[a-zA-Z\ \']+$/,
|
103
|
+
"alertText": "* Alleen leestekens"
|
104
|
+
},
|
105
|
+
"onlyLetterNumber": {
|
106
|
+
"regex": /^[0-9a-zA-Z]+$/,
|
107
|
+
"alertText": "* Geen vreemde tekens toegestaan"
|
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": "* Deze gebruiker bestaat al",
|
115
|
+
"alertTextLoad": "* Bezig met valideren, even geduld aub"
|
116
|
+
},
|
117
|
+
"ajaxNameCall": {
|
118
|
+
// remote json service location
|
119
|
+
"url": "ajaxValidateFieldName",
|
120
|
+
// error
|
121
|
+
"alertText": "* Deze naam bestaat al",
|
122
|
+
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
|
123
|
+
"alertTextOk": "* Deze naam is beschikbaar",
|
124
|
+
// speaks by itself
|
125
|
+
"alertTextLoad": "* Bezig met valideren, even geduld aub"
|
126
|
+
},
|
127
|
+
"validate2fields": {
|
128
|
+
"alertText": "* Voer aub HELLO in"
|
129
|
+
}
|
130
|
+
};
|
131
|
+
|
132
|
+
}
|
133
|
+
};
|
134
|
+
$.validationEngineLanguage.newLang();
|
135
|
+
})(jQuery);
|
136
|
+
|
@@ -0,0 +1,140 @@
|
|
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": "* Pole wymagane",
|
10
|
+
"alertTextCheckboxMultiple": "* Proszę wybrać opcję",
|
11
|
+
"alertTextCheckboxe": "* Pole wymagane"
|
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": "* Minimalna liczba znaków to ",
|
22
|
+
"alertText2": ""
|
23
|
+
},
|
24
|
+
"maxSize": {
|
25
|
+
"regex": "none",
|
26
|
+
"alertText": "* Maksymalna liczba znaków to ",
|
27
|
+
"alertText2": ""
|
28
|
+
},
|
29
|
+
"groupRequired": {
|
30
|
+
"regex": "none",
|
31
|
+
"alertText": "* Proszę wypełnić wymienione opcje"
|
32
|
+
},
|
33
|
+
"min": {
|
34
|
+
"regex": "none",
|
35
|
+
"alertText": "* Najmniejsza wartość to "
|
36
|
+
},
|
37
|
+
"max": {
|
38
|
+
"regex": "none",
|
39
|
+
"alertText": "* Największa wartość to "
|
40
|
+
},
|
41
|
+
"past": {
|
42
|
+
"regex": "none",
|
43
|
+
"alertText": "* Data musi być wcześniejsza niż "
|
44
|
+
},
|
45
|
+
"future": {
|
46
|
+
"regex": "none",
|
47
|
+
"alertText": "* Data musi być późniejsza niż "
|
48
|
+
},
|
49
|
+
"maxCheckbox": {
|
50
|
+
"regex": "none",
|
51
|
+
"alertText": "* Przekroczona maksymalna liczba opcji"
|
52
|
+
},
|
53
|
+
"minCheckbox": {
|
54
|
+
"regex": "none",
|
55
|
+
"alertText": "* Minimalna liczba opcji to ",
|
56
|
+
"alertText2": ""
|
57
|
+
},
|
58
|
+
"equals": {
|
59
|
+
"regex": "none",
|
60
|
+
"alertText": "* Pola nie są jednakowe"
|
61
|
+
},
|
62
|
+
"creditCard": {
|
63
|
+
"regex": "none",
|
64
|
+
"alertText": "* Nieprawidłowy numer karty kredytowej"
|
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": "* Nieprawidłowy numer telefonu"
|
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": "* Nieprawidłowy adres e-mail"
|
75
|
+
},
|
76
|
+
"integer": {
|
77
|
+
"regex": /^[\-\+]?\d+$/,
|
78
|
+
"alertText": "* Nieprawidłowa liczba całkowita"
|
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": "* Nieprawidłowa liczba dziesiętna"
|
84
|
+
},
|
85
|
+
"CZdate": {
|
86
|
+
// Date in Polish format, regex taken from Czech translation
|
87
|
+
"regex": /^(0[1-9]|[12][0-9]|3[01])[. /.](0[1-9]|1[012])[. /.](19|20)\d{2}$/,
|
88
|
+
"alertText": "* Data musi być w postaci DD.MM.RRRR"
|
89
|
+
},
|
90
|
+
"date": {
|
91
|
+
"regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
|
92
|
+
"alertText": "* Data musi być w postaci RRRR-MM-DD"
|
93
|
+
},
|
94
|
+
"ipv4": {
|
95
|
+
"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]))$/,
|
96
|
+
"alertText": "* Nieprawidłowy adres IP"
|
97
|
+
},
|
98
|
+
"url": {
|
99
|
+
"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,
|
100
|
+
"alertText": "* Nieprawidłowy adres internetowy"
|
101
|
+
},
|
102
|
+
"onlyNumberSp": {
|
103
|
+
"regex": /^[0-9\ ]+$/,
|
104
|
+
"alertText": "* Tylko liczby"
|
105
|
+
},
|
106
|
+
"onlyLetterSp": {
|
107
|
+
"regex": /^[a-zA-Z\ \']+$/,
|
108
|
+
"alertText": "* Tylko litery"
|
109
|
+
},
|
110
|
+
"onlyLetterNumber": {
|
111
|
+
"regex": /^[0-9a-zA-Z]+$/,
|
112
|
+
"alertText": "* Tylko litery i liczby"
|
113
|
+
},
|
114
|
+
// --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
|
115
|
+
"ajaxUserCall": {
|
116
|
+
"url": "ajaxValidateFieldUser",
|
117
|
+
// you may want to pass extra data on the ajax call
|
118
|
+
"extraData": "name=eric",
|
119
|
+
"alertText": "* Nazwa użytkownika jest już zajęta",
|
120
|
+
"alertTextLoad": "* Walidacja, proszę czekać"
|
121
|
+
},
|
122
|
+
"ajaxNameCall": {
|
123
|
+
// remote json service location
|
124
|
+
"url": "ajaxValidateFieldName",
|
125
|
+
// error
|
126
|
+
"alertText": "* Nazwa jest już zajęta",
|
127
|
+
// if you provide an "alertTextOk", it will show as a green prompt when the field validates
|
128
|
+
"alertTextOk": "* Nazwa jest dostępna",
|
129
|
+
// speaks by itself
|
130
|
+
"alertTextLoad": "* Walidacja, proszę czekać"
|
131
|
+
},
|
132
|
+
"validate2fields": {
|
133
|
+
"alertText": "* Proszę wpisać HELLO"
|
134
|
+
}
|
135
|
+
};
|
136
|
+
|
137
|
+
}
|
138
|
+
};
|
139
|
+
$.validationEngineLanguage.newLang();
|
140
|
+
})(jQuery);
|