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,153 @@
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": "* Det här fältet krävs",
10
+ "alertTextCheckboxMultiple": "* Var god välj ett alternativ",
11
+ "alertTextCheckboxe": "* Den här kryssrutan måste anges"
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": " tecken"
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Maximalt ",
27
+ "alertText2": " antal tecken"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* You must fill one of the following fields"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* Minsta möjliga värde är "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* Maxvärdet är "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Datum måste vara före "
44
+ },
45
+ "future": {
46
+ "regex": "none",
47
+ "alertText": "* Datum efter "
48
+ },
49
+ "maxCheckbox": {
50
+ "regex": "none",
51
+ "alertText": "* Maximalt ",
52
+ "alertText2": " alternativ får väljas"
53
+ },
54
+ "minCheckbox": {
55
+ "regex": "none",
56
+ "alertText": "* Var god välj ",
57
+ "alertText2": " alternativ"
58
+ },
59
+ "equals": {
60
+ "regex": "none",
61
+ "alertText": "* Fält överensstämmer inte"
62
+ },
63
+ "creditCard": {
64
+ "regex": "none",
65
+ "alertText": "* Ogiltigt kreditkortsnummer"
66
+ },
67
+ "phone": {
68
+ // credit: jquery.h5validate.js / orefalo
69
+ "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
70
+ "alertText": "* Ogiltigt telefonnummer"
71
+ },
72
+ "email": {
73
+ // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
74
+ "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,
75
+ "alertText": "* Ogiltig e-postadress"
76
+ },
77
+ "integer": {
78
+ "regex": /^[\-\+]?\d+$/,
79
+ "alertText": "* Inte korrekt numeriskt värde"
80
+ },
81
+ "number": {
82
+ // Number, including positive, negative, and floating decimal. credit: orefalo
83
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
84
+ "alertText": "* Inte korrekt decimalvärde"
85
+ },
86
+ "date": {
87
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
88
+ "alertText": "* Ogiltigt datum, måste vara i YYYY-MM-DD -format"
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": "* Ogiltig IP-adress"
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": "* Ogiltig URL"
97
+ },
98
+ "onlyNumberSp": {
99
+ "regex": /^[0-9\ ]+$/,
100
+ "alertText": "* Enbart siffror"
101
+ },
102
+ "onlyLetterSp": {
103
+ "regex": /^[a-zA-Z\ \']+$/,
104
+ "alertText": "* Enbart bokstäver"
105
+ },
106
+ "onlyLetterNumber": {
107
+ "regex": /^[0-9a-zA-Z]+$/,
108
+ "alertText": "* Inga specialtecken"
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": "* Användarnamnet är upptaget",
116
+ "alertTextLoad": "* Validerar, var god vänta"
117
+ },
118
+ "ajaxUserCallPhp": {
119
+ "url": "phpajax/ajaxValidateFieldUser.php",
120
+ // you may want to pass extra data on the ajax call
121
+ "extraData": "name=eric",
122
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
123
+ "alertTextOk": "* Användarnamnet är tillgängligt",
124
+ "alertText": "* Användarnamnet är upptaget",
125
+ "alertTextLoad": "* Validerar, var god vänta"
126
+ },
127
+ "ajaxNameCall": {
128
+ // remote json service location
129
+ "url": "ajaxValidateFieldName",
130
+ // error
131
+ "alertText": "* Användarnamnet är upptaget",
132
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
133
+ "alertTextOk": "* Användarnamnet är tillgängligt",
134
+ // speaks by itself
135
+ "alertTextLoad": "* Validerar, var god vänta"
136
+ },
137
+ "ajaxNameCallPhp": {
138
+ // remote json service location
139
+ "url": "phpajax/ajaxValidateFieldName.php",
140
+ // error
141
+ "alertText": "* Användarnamnet är upptaget",
142
+ // speaks by itself
143
+ "alertTextLoad": "* Validerar, var god vänta"
144
+ },
145
+ "validate2fields": {
146
+ "alertText": "* Ange text HELLO"
147
+ }
148
+ };
149
+
150
+ }
151
+ };
152
+ $.validationEngineLanguage.newLang();
153
+ })(jQuery);
@@ -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": "* Bu alan zorunludur",
10
+ "alertTextCheckboxMultiple": "* Lütfen bir seçeneği işaretleyiniz",
11
+ "alertTextCheckboxe": "* Bu onay kutusu zorunludur"
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": "* Bu alana en az ",
22
+ "alertText2": " karakter girmelisiniz "
23
+ },
24
+ "maxSize": {
25
+ "regex": "none",
26
+ "alertText": "* Bu alana en fazla ",
27
+ "alertText2": " karakter girebilirsiniz"
28
+ },
29
+ "groupRequired": {
30
+ "regex": "none",
31
+ "alertText": "* You must fill one of the following fields"
32
+ },
33
+ "min": {
34
+ "regex": "none",
35
+ "alertText": "* Geçerli en küçük değer: "
36
+ },
37
+ "max": {
38
+ "regex": "none",
39
+ "alertText": "* Geçerli en yüksek değer: "
40
+ },
41
+ "past": {
42
+ "regex": "none",
43
+ "alertText": "* Lütfen ",
44
+ "alertText2": " tarihinden daha ileri bir tarih giriniz "
45
+ },
46
+ "future": {
47
+ "regex": "none",
48
+ "alertText": "* Lütfen ",
49
+ "alertText2": " tarihinden daha geri bir tarih giriniz "
50
+
51
+ },
52
+ "maxCheckbox": {
53
+ "regex": "none",
54
+ "alertText": "* En fazla ",
55
+ "alertText2": " onay kutusu işaretleyebilirsiniz"
56
+ },
57
+ "minCheckbox": {
58
+ "regex": "none",
59
+ "alertText": "* Lütfen en az ",
60
+ "alertText2": " onay kutusunu işaretleyiniz"
61
+ },
62
+ "equals": {
63
+ "regex": "none",
64
+ "alertText": "* Değerler aynı olmalı"
65
+ },
66
+ "creditCard": {
67
+ "regex": "none",
68
+ "alertText": "* Geçersiz kredi kartı numarası"
69
+ },
70
+ "phone": {
71
+ // credit: jquery.h5validate.js / orefalo
72
+ "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
73
+ "alertText": "* Geçersiz telefon numarası"
74
+ },
75
+ "email": {
76
+ // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/
77
+ "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,
78
+ "alertText": "* Geçersiz eposta adresi"
79
+ },
80
+ "integer": {
81
+ "regex": /^[\-\+]?\d+$/,
82
+ "alertText": "* Geçerli bir tam sayı değil"
83
+ },
84
+ "number": {
85
+ // Number, including positive, negative, and floating decimal. credit: orefalo
86
+ "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
87
+ "alertText": "* Geçerli bir noktalı sayı değil"
88
+ },
89
+ "date": {
90
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
91
+ "alertText": "* Geçersiz tarih. Tarih YYYY-MM-DD formatında olmalı"
92
+ },
93
+ "ipv4": {
94
+ "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]))$/,
95
+ "alertText": "* Geçersiz IP adresi"
96
+ },
97
+ "url": {
98
+ "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,
99
+ "alertText": "* Geçersiz URL"
100
+ },
101
+ "onlyNumberSp": {
102
+ "regex": /^[0-9\ ]+$/,
103
+ "alertText": "* Bu alanda sadece rakam olmalı"
104
+ },
105
+ "onlyLetterSp": {
106
+ "regex": /^[a-zA-Z\ \']+$/,
107
+ "alertText": "* Bu alanda sadece harf olmalı"
108
+ },
109
+ "onlyLetterNumber": {
110
+ "regex": /^[0-9a-zA-Z]+$/,
111
+ "alertText": "* Bu alanda özel karakterler olamaz"
112
+ },
113
+ // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
114
+ "ajaxUserCall": {
115
+ "url": "ajaxValidateFieldUser",
116
+ // you may want to pass extra data on the ajax call
117
+ "extraData": "name=eric",
118
+ "alertText": "* Bu kullanıcı adı kullanımda",
119
+ "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
120
+ },
121
+ "ajaxUserCallPhp": {
122
+ "url": "phpajax/ajaxValidateFieldUser.php",
123
+ // you may want to pass extra data on the ajax call
124
+ "extraData": "name=eric",
125
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
126
+ "alertTextOk": "* Bu kullanıcı adını kullanabilirsiniz",
127
+ "alertText": "* Bu kullanıcı adı kullanımda",
128
+ "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
129
+ },
130
+ "ajaxNameCall": {
131
+ // remote json service location
132
+ "url": "ajaxValidateFieldName",
133
+ // error
134
+ "alertText": "* Bu isim kullanımda",
135
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
136
+ "alertTextOk": "* Bu isim kullanılabilir",
137
+ // speaks by itself
138
+ "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
139
+ },
140
+ "ajaxNameCallPhp": {
141
+ // remote json service location
142
+ "url": "phpajax/ajaxValidateFieldName.php",
143
+ // error
144
+ "alertText": "* Bu isim kullanımda",
145
+ // speaks by itself
146
+ "alertTextLoad": "* Doğrulanıyor, lütfen bekleyiniz"
147
+ },
148
+ "validate2fields": {
149
+ "alertText": "* Lütfen 'HELLO' yazın"
150
+ }
151
+ };
152
+
153
+ }
154
+ };
155
+ $.validationEngineLanguage.newLang();
156
+ })(jQuery);
@@ -0,0 +1,179 @@
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": "* Trường này bắt buộc",
10
+ "alertTextCheckboxMultiple": "* Vui lòng chọn một tùy chọn",
11
+ "alertTextCheckboxe": "* Checkbox này bắt buộc",
12
+ "alertTextDateRange": "* Cả hai trường ngày tháng đều bắt buộc"
13
+ },
14
+ "requiredInFunction": {
15
+ "func": function(field, rules, i, options){
16
+ return (field.val() == "test") ? true : false;
17
+ },
18
+ "alertText": "* Giá trị của trường phải là test"
19
+ },
20
+ "dateRange": {
21
+ "regex": "none",
22
+ "alertText": "* Không đúng ",
23
+ "alertText2": "Khoảng ngày tháng"
24
+ },
25
+ "dateTimeRange": {
26
+ "regex": "none",
27
+ "alertText": "* Không đúng ",
28
+ "alertText2": "Khoảng thời gian"
29
+ },
30
+ "minSize": {
31
+ "regex": "none",
32
+ "alertText": "* Tối thiểu ",
33
+ "alertText2": " số ký tự được cho phép"
34
+ },
35
+ "maxSize": {
36
+ "regex": "none",
37
+ "alertText": "* Tối đa ",
38
+ "alertText2": " số ký tự được cho phép"
39
+ },
40
+ "groupRequired": {
41
+ "regex": "none",
42
+ "alertText": "* Bạn phải điền một trong những trường sau"
43
+ },
44
+ "min": {
45
+ "regex": "none",
46
+ "alertText": "* Giá trị nhỏ nhất là "
47
+ },
48
+ "max": {
49
+ "regex": "none",
50
+ "alertText": "* Giá trị lớn nhất là "
51
+ },
52
+ "past": {
53
+ "regex": "none",
54
+ "alertText": "* Ngày kéo dài tới "
55
+ },
56
+ "future": {
57
+ "regex": "none",
58
+ "alertText": "* Ngày đã qua "
59
+ },
60
+ "maxCheckbox": {
61
+ "regex": "none",
62
+ "alertText": "* Tối đa ",
63
+ "alertText2": " số tùy chọn được cho phép"
64
+ },
65
+ "minCheckbox": {
66
+ "regex": "none",
67
+ "alertText": "* Vui lòng chọn ",
68
+ "alertText2": " các tùy chọn"
69
+ },
70
+ "equals": {
71
+ "regex": "none",
72
+ "alertText": "* Giá trị các trường không giống nhau"
73
+ },
74
+ "creditCard": {
75
+ "regex": "none",
76
+ "alertText": "* Số thẻ tín dụng sai"
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": "* Số điện thoại sai"
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": "* Địa chỉ thư điện tử sai"
87
+ },
88
+ "integer": {
89
+ "regex": /^[\-\+]?\d+$/,
90
+ "alertText": "* Không đúng là số nguyên"
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": "* Không đúng là số thập phân"
96
+ },
97
+ "date": {
98
+ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
99
+ "alertText": "* Ngày sai, phải có định dạng 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": "* Địa chỉ IP sai"
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 sai"
108
+ },
109
+ "onlyNumberSp": {
110
+ "regex": /^[0-9\ ]+$/,
111
+ "alertText": "* Chỉ điền số"
112
+ },
113
+ "onlyLetterSp": {
114
+ "regex": /^[a-zA-Z\ \']+$/,
115
+ "alertText": "* Chỉ điền chữ"
116
+ },
117
+ "onlyLetterNumber": {
118
+ "regex": /^[0-9a-zA-Z]+$/,
119
+ "alertText": "* Không được chứa ký tự đặc biệt"
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": "* Tên này được dùng",
127
+ "alertTextLoad": "* Đang xác nhận, vui lòng chờ"
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": "* Tên người dùng này có thể dùng được",
135
+ "alertText": "* Tên người dùng này đã được sử dụng",
136
+ "alertTextLoad": "* Đang xác nhận, vui lòng chờ"
137
+ },
138
+ "ajaxNameCall": {
139
+ // remote json service location
140
+ "url": "ajaxValidateFieldName",
141
+ // error
142
+ "alertText": "* Tên này được dùng",
143
+ // if you provide an "alertTextOk", it will show as a green prompt when the field validates
144
+ "alertTextOk": "* Tên này có thể dùng",
145
+ // speaks by itself
146
+ "alertTextLoad": "* Đang xác nhận, vui lòng chờ"
147
+ },
148
+ "ajaxNameCallPhp": {
149
+ // remote json service location
150
+ "url": "phpajax/ajaxValidateFieldName.php",
151
+ // error
152
+ "alertText": "* Tên này được dùng",
153
+ // speaks by itself
154
+ "alertTextLoad": "* Đang xác nhận, vui lòng chờ"
155
+ },
156
+ "validate2fields": {
157
+ "alertText": "* Vui lòng nhập vào 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": "* Ngày sai"
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": "* Ngày sai hoặc định dạng ngày sai",
168
+ "alertText2": "Định dạng đúng là: ",
169
+ "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM hay ",
170
+ "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
171
+ }
172
+ };
173
+
174
+ }
175
+ };
176
+
177
+ $.validationEngineLanguage.newLang();
178
+
179
+ })(jQuery);