diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..a507933
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,12 @@
+# This file is for unifying the coding style for different editors and IDEs
+# editorconfig.org
+
+root = true
+
+[*]
+indent_size = 2
+indent_style = space
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..10d9d84
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+node_modules
+.DS_Store
+.idea/
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..2d739bf
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,13 @@
+{
+ "boss": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "expr": true,
+ "immed": true,
+ "noarg": true,
+ "onevar": true,
+ "quotmark": "single",
+ "unused": true,
+ "node": true
+}
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..1a01981
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,10 @@
+#Testing, not relevant to end user
+test/
+.travis.yml
+.jshintrc
+
+#Not relevant to npm users
+bower.json
+
+#IDE
+.idea/
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9bf327d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+ - "4.2.4"
+before_script:
+ - npm install -g grunt-cli
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..1eef85c
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,208 @@
+//TODO: During next major version bump change to /dist. Leaving at ./form-validator for backwards
+//compatibility
+const DIST_DIR = './form-validator';
+const MAIN_PLUGIN_FILE = 'jquery.form-validator';
+const SRC_DIR = './src';
+const MAIN_DIR = '/main/';
+const MODULE_DIR = '/modules';
+const LANG_DIR = '/lang';
+const CSS_FILE = 'theme-default.css';
+const CORE_VALIDATORS = 'core-validators.js'; //must come at end of concatted file
+const coreValidatorsPath = SRC_DIR + MAIN_DIR + CORE_VALIDATORS;
+
+var fs = require('fs'),
+ readFile = function (file) {
+ return fs.readFileSync(file, 'utf-8');
+ },
+ replaceInFile = function (path, from, to) {
+ fs.writeFileSync(path, readFile(path).replace(from, to));
+ };
+
+function initializeGruntConfig(grunt) {
+
+ grunt.initConfig({
+
+ // Import package manifest
+ pkg: grunt.file.readJSON("package.json"),
+
+ // Banner definitions
+ meta: {
+ banner: "/** File generated by Grunt -- do not modify\n" +
+ " * <%= (pkg.title || pkg.name).toUpperCase() %>\n" +
+ " *\n" +
+ " * @version <%= pkg.version %>\n" +
+ " * @website <%= pkg.homepage %>\n" +
+ " * @author <%= pkg.author.name %>, <%= pkg.author.url %>\n" +
+ " * @license <%= pkg.license %>\n" +
+ " */\n"
+ },
+
+ concat: {
+ main:{
+ files: [
+ //This concatenates the core validators file after the other files
+ //Per: http://gruntjs.com/configuring-tasks
+ {
+ src: [SRC_DIR + MAIN_DIR+'*.js', '!' + coreValidatorsPath, coreValidatorsPath],
+ dest: DIST_DIR + '/' + MAIN_PLUGIN_FILE + '.js'
+ },
+ {
+ src: [SRC_DIR + MAIN_DIR+'*.js', '!' + coreValidatorsPath, coreValidatorsPath],
+ dest: DIST_DIR + '/' + MAIN_PLUGIN_FILE + '.min.js'
+ }]
+ },
+ options: {
+ banner: "<%= meta.banner %>"
+ }
+ },
+
+ cssmin: {
+ target: {
+ files: [
+ {
+ dest: DIST_DIR,
+ src: CSS_FILE,
+ cwd: SRC_DIR,
+ expand: true,
+ ext: '.min.css'
+ }
+ ]
+ }
+ },
+ // Lint definitions
+ jshint: {
+ files: [SRC_DIR + '/*'],
+ options: {
+ jshintrc: ".jshintrc",
+ ignores: [SRC_DIR + '/' + CSS_FILE]
+ }
+ },
+
+ // Minify definitions
+ uglify: {
+ options: {
+ banner: "<%= meta.banner %>"
+ },
+ main: {
+ files: [
+ {
+ expand: true,
+ cwd: DIST_DIR + '/',
+ src: ['**/*.js', '!' + MAIN_PLUGIN_FILE +'.js'],
+ dest: DIST_DIR + '/'
+ }
+ ]
+ }
+ },
+
+ watch: {
+ files: [SRC_DIR + '/**'],
+ tasks: ['test'],
+ options: {
+ nospawn: true,
+ livereload: true
+ }
+ },
+
+ // Unit tests
+ qunit: {
+ all: ['test/qunit.html']
+ },
+
+ // Standalone servers
+ connect: {
+ server: {
+ options: {
+ port: 8000,
+ base: '.'
+ }
+ }
+ },
+
+ copy: {
+ main: {
+ files: [
+ {
+ src: SRC_DIR + '/' + CSS_FILE,
+ dest: DIST_DIR + '/' + CSS_FILE
+ },
+ {
+ cwd: SRC_DIR + '/' + MODULE_DIR,
+ src: '**',
+ dest: DIST_DIR + '/',
+ expand: true
+ },
+ {
+ cwd: SRC_DIR + '/' + LANG_DIR,
+ src: '**',
+ dest: DIST_DIR + LANG_DIR +'/',
+ expand: true
+ }]
+ }
+ },
+
+ clean: [DIST_DIR + '/'],
+
+ umd: {
+ main: {
+ options: {
+ src: DIST_DIR + '/**/*.js',
+ dest: './',
+ deps: {
+ default: ['jQuery'],
+ amd: [{'jquery': 'jQuery'}],
+ cjs: [{'jquery': 'jQuery'}]
+ }
+ }
+ }
+ }
+ });
+}
+
+module.exports = function (grunt) {
+
+ initializeGruntConfig(grunt);
+ /*
+ * Change to new version or the next version number. The project must be built again after this task
+ * in order for the version change to take effect.
+ */
+ grunt.registerTask('version', 'Bump up the version number, or change version name by adding --new-version=3.1.0', function () {
+ var pkg = grunt.config.get('pkg'),
+ currentVersion = pkg.version,
+ newVersion = grunt.option('new-version');
+
+ if (!newVersion) {
+ var versionParts = currentVersion.split('.'),
+ newSubVersion = parseInt(versionParts.splice(versionParts.length - 1, 1)[0]) + 1;
+ newSubVersion = newSubVersion < 10 && newSubVersion > 0 ? '0' + newSubVersion : newSubVersion.toString();
+ newVersion = versionParts.join('.') + '.' + newSubVersion;
+ }
+
+ grunt.log.writeln('* Moving from version ' + currentVersion + ' to ' + newVersion);
+
+ replaceInFile('package.json', '"version": "' + currentVersion + '"',
+ '"version": "' + newVersion + '"');
+ replaceInFile('formvalidator.jquery.json', '"version": "' + currentVersion + '"', '"version": "' + newVersion + '"');
+
+ // Set new version globally (can later on be used by concat/uglify)
+ pkg.version = newVersion;
+ grunt.config.set('pkg', pkg);
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks("grunt-contrib-concat");
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks("grunt-contrib-jshint");
+ grunt.loadNpmTasks("grunt-contrib-uglify");
+ grunt.loadNpmTasks("grunt-contrib-watch");
+ grunt.loadNpmTasks('grunt-contrib-connect');
+ grunt.loadNpmTasks('grunt-contrib-qunit');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
+ grunt.loadNpmTasks('grunt-umd');
+
+ grunt.registerTask("build-production", ["version", "test", "uglify"]);
+ grunt.registerTask('build', ['concat', 'copy', 'umd', 'cssmin']);
+ grunt.registerTask('test', ['build','jshint', 'qunit']);
+ grunt.registerTask("default", ["test", "connect", "watch"]);
+ grunt.registerTask("prepublish", ["test", "uglify"]);
+};
diff --git a/README.md b/README.md
index 110f0c4..e1e957b 100644
--- a/README.md
+++ b/README.md
@@ -1,232 +1,1088 @@
-This plugin was created to minimize javascript logic in the html code when dealing with front-end validation of form data.
+# jQuery Form Validator [DISCONTINUED]
-[Live example can be viewed here](http://victorjonsson.se/jquery-form-validator/?from=github)
+*Validation framework that let's you configure, rather than code, your validation logic.*
+
+I started writing this plugin back in 2009 and it has given me much joy over the years. But all good things must come to an end and now it's time for this plugin to pull in its oars and go down with history.
+
+**This plugin is no longer being developed!** It supports jQuery v. 1.8 >= 2.2.4. No pull requests will become merged in but feel free to fork and do whatever you like!
+
+[](https://travis-ci.org/victorjonsson/jQuery-Form-Validator/builds/)
+
+[](https://www.npmjs.com/package/jquery-form-validator)
*Usage example*
```html
-
-```
-
-## Features
- * **validate_url**
- * **validate_date** — *yyyy-mm-dd (format can be customized, more information below)*
- * **validate_birthdate** — *yyyy-mm-dd, not allowing dates in the future or dates that is older then 122 years (format can be customized, more information below)*
- * **validate_email**
- * **validate_time** — *hh:mm*
- * **validate_domain** — *domain.com*
- * **validate_phone** — *atleast 7 digits only one hyphen and plus allowed*
- * **validate_swemob** — *validate that the value is a swedish mobile telephone number*
- * **validate_float**
- * **validate_int**
- * **validate_length** — *Validate that input length is in given range (length3-20)*
- * **validate_confirmation**
- * **validate_spamcheck**
- * **validate_ukvatnumber**
- * **validate_swesec** — *validate swedish social security number*
- * **required** — *no validation except that a value has to be given*
- * **validate_custom** — *Validate value against regexp (validate_custom regexp/^[a-z]{2} [0-9]{2}$/)
- * **validate_num_answers** — *Validate that a select element has the required number of selected options (validate_num_answers num5)*
+
+
+
+
+```
+
+### Support for HTML5
+
+This plugin can serve as a fallback solution for the validation attributes in the HTML5 spec. With the html5 module you can use the following native features:
+**Attributes**: require, pattern, maxlength, min, max, placeholder
+
+**Input types**: url, date, time, email, number
+
+**Elements**: Use the element `datalist` to create input suggestions
+
+
+### Default validators and features (no module needed)
+ * **url**
+ * **email**
+ * **domain** — *domain.com*
+ * **number** — *float/negative/positive/range/step*
+ * **date** — *yyyy-mm-dd (format can be customized, more information below)*
+ * **alphanumeric** — *with support for defining additional characters*
+ * **length** — *min/max/range*
+ * **required** — *no validation except that a value has to be given*
+ * **custom** — *Validate value against regexp*
+ * **checkboxgroup** — *ensure at least 1 checkbox in group has been selected*
* Show help information automatically when input is focused
- * Validate given values immediately when input is blurred.
- * Make validation optional by adding attribute data-validation-optional="true" to the element. This means that the validation defined in data-validation only will take place in case a value is given.
- * Make validation dependent on another input of type checkbox being checked by adding attribute data-validation-if-checked="name of checkbox input"
+ * Validate given values immediately when input looses focus.
+ * Make validation optional by adding attribute data-validation-optional="true" to the element. This means
+ that the validation defined in data-validation only will take place in case a value is given.
+ * Make validation dependent on another input of type checkbox being checked by adding attribute
+ data-validation-if-checked="name of checkbox input"
+ * Create input suggestions with ease, no jquery-ui needed
+ * to apply multiple validators to an input element, separate the validator names using a space (ex: required email)
+
+Read the documentation for the default features at [#default-validators](#default-validators)
+
+### Module: security
+ * **spamcheck**
+ * **confirmation**
+ * **creditcard**
+ * **CVV**
+ * **strength** — *Validate the strength of a password*
+ * **server** — *Validate value of input on server side*
+ * **letternumeric** — *Validate that the input value consists out of only letters and/or numbers*
+ * **recaptcha** - *Validate Google [reCaptcha 2](https://www.google.com/recaptcha/intro/index.html)*
+
+Read the documentation for the security module at [#security-validators](#security-validators)
+
+### Module: date
+ * **time** — *hh:mm*
+ * **birthdate** — *yyyy-mm-dd, not allowing dates in the future or dates that's older than 122 years (format can be customized, more information below)*
+
+Read the documentation for the date module at [#date-validators](#date-validators)
+
+### Module: location
+ * **country**
+ * **federatestate**
+ * **longlat**
+ * Suggest countries (english only)
+ * Suggest states in the US
+Read the documentation for the location module at [#location-validators](/#location-validators)
-## Validate inputs on blur
-It is now possible to show that the value of an input is incorrect immediately when the input gets blurred.
+### Module: file
+ * **mime**
+ * **extension**
+ * **size** (file size)
+ * **dimension** (size dimension and ratio)
+
+Read the documentation for the file module at [#file-validators](#file-validators)
+
+### Module: logic
+
+* **Dependent validation**
+* **Require "one-of"**
+
+Read the documentation for this module at [/#logic](#logic)
+
+### Module: sepa
+
+* **IBAN**
+* **BIC**
+* **Sepa**
+
+Read the documentation for this module at [http://formvalidator.net/#sepa](http://www.formvalidator.net/#sepa)
+
+
+### Module: sweden
+ * **swemob** — *validate that the value is a swedish mobile telephone number*
+ * **swesec** — *validate swedish social security number*
+ * **county** - *validate that the value is an existing county in Sweden*
+ * **municipality** - *validate that the value is an existing municipality in Sweden*
+ * Suggest county
+ * Suggest municipality
+
+Read the documentation for the Swedish module at [http://formvalidator.net/#sweden-validators](http://www.formvalidator.net/#country-specific-validators_sweden)
+
+### Module: uk
+ * **ukvatnumber**
+ * **uknin**
+ * **ukutr**
+
+Read the documentation for the UK module at [http://formvalidator.net/#uk-validators](http://www.formvalidator.net/#country-specific-validators_uk)
+
+### Module: brazil
+ * **brphone** — *Validate a brazilian telephone number*
+ * **cep**
+ * **cpf**
+
+### Module: poland
+ * **plpesel** - *validate polish personal identity number (in Polish identity cards)*
+ * **plnip** - *validate polish VAT identification number*
+ * **plregon** - *validate polish bussiness identity number*
+
+### Module: color
+ * **hex** - *validate hex color format*
+ * **rgb** - *validate rgb color format*
+ * **rgba** - *validate rgba color format*
+ * **hsl** - *validate hsl color format*
+ * **hsla** - *validate hsla color format*
+
+### Module: sanitation
+ * **trim**
+ * **trimLeft**
+ * **trimRight**
+ * **upper** — Convert all letters to upper case
+ * **lower** — Convert all letters to lower case
+ * **capitalize** — Convert the first letter in all words to upper case
+ * **insertRight** — Declare a text that should be inserted at the end of the value, attribute data-sanitize-insert-right
+ * **insertLeft** — Declare a text that should be inserted at the beginning of the value, attribute data-sanitize-insert-left
+ * **escape** — Convert < > & ' " to html entities
+ * **strip** — Comma separated list with words that gets automatically removed
+ * **numberFormat** — Declare the attribute data-sanitize-number-format with any of the formats described on http://numeraljs.com/. Note that this rule requires that numeral.js is included in the page
+
+Read the documentation for the sanitation module at [http://formvalidator.net/#data-sanitation](http://formvalidator.net/#data-sanitation)
+
+
+## Writing a custom validator
+You can use the function `$.formUtils.addValidator()` to add your own validation function. Here's an example of a validator
+that checks if the input contains an even number.
```html
-
-
+
+
```
+### Required properties passed into $.formUtils.addValidator
+
+*name* - The name of the validator, which is used in the validation attribute of the input element.
+
+*validatorFunction* - Callback function that validates the input. Should return a boolean telling if the value is considered valid or not.
+
+*errorMessageKey* - Name of language property that is used in case the value of the input is invalid.
+
+*errorMessage* - An alternative error message that is used if errorMessageKey is left with an empty value or isn't defined
+in the language object. Note that you also can use [inline error messages](http://formvalidator.net/#localization) in your form.
+
+
+The validation function takes these five arguments:
+- value — the value of the input thats being validated
+- $el — jQuery object referring to the input element being validated
+- config — Object containing the configuration of this form validation
+- language — Object with error dialogs
+- $form — jQuery object referring to the form element being validated
+
+## Creating a custom module
+
+A "module" is basically a javascript file containing one or more calls to [$.formUtils.addValidator()](#writing-a-custom-validator).
+The module file must be placed in the same directory as `jquery.form-validator.min.js` if you want it to load automatically via the setup function.
+
+You can use the method `$.formUtils.loadModules` if you want to load the module from a custom path.
+
+```js
+$.formUtils.loadModules('customModule otherCustomModule', 'js/validation-modules/');
+$.validate({
+ modules: 'security, date'
+});
+```
+
+The first argument of `$.formUtils.loadModules` is a comma separated string with names of module files, without
+file extension.
+
+The second argument is the path where the module files are located. This argument is optional, if not given
+the module files has to be located in the same directory as the core modules shipped together with this jquery plugin
+(js/form-validator/)
+
## Show help information
-Since version 1.1 it is possible to display help information for each input. The information will fade in when input is focused and fade out when input is blurred.
+It is possible to display help information for each input. The information will fade in when input is focused and fade out when input looses focus.
```html
-
+```
+
+## Fully customizable
+
+Read about how to customize this plugin over at [http://formvalidator.net/#configuration](http://formvalidator.net/#configuration)
+
+### Validate On Event ###
+You can cause an element to be validated upon the firing of an event, by attaching an attribute to the form input element named `data-validation-event="click"`. When the configuration settings have `validateOnEvent : true`, the click event will trigger the onBlur validaton for that element. Possible use case: Checkboxes. Instead of waiting for the checkbox to lose focus (blur) and waiting for a validation to occurr, you can specify that elements validation should occur as soon as that checkbox element is clicked.
+
+## Localization
+
+This plugin comes with translations for English, Polish,
+ Romanian,
+ Danish,
+ Norwegian,
+ Dutch,
+ Czech,
+ Catalan,
+ Russian,
+ Italian,
+ French,
+ German,
+ Swedish and
+ Portuguese. You can also choose to override the error
+dialogs yourself. Here you can read more about [localization](http://formvalidator.net/#localization)
+
+# Default validators
+
+### Answer length (required)
+
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+This plugin also supports the attributes "required" and "maxlength" by using the Html5 module.
+
+### Numbers
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+You can also define the decimal separator when initializing the validation.
+
+
+ Average points
+
+
+ ....
+
```
+Inputs of type "number" will also become validated by loading the html5 module.
-## Fully customizable
-```javascript
-var myConf = {
- // Name of element attribute holding the validation rules (default is data-validation)
- validationRuleAttribute : 'class',
+### E-mail
+```
+
+```
+Inputs of type "email" will also become validated by loading the html5 module.
- // Names of inputs not to be validated even though the element attribute containing
- // the validation rules tells us to
- ignore : ['som-name', 'other-name'],
+### URL:s
- // Class that will be put on elements which value is invalid (default is 'error')
- errorElementClass : 'error',
+```
+
+```
+Inputs of type "url" will also become validated by loading the html5 module.
- // Border color of elements which value is invalid, empty string to leave border
- // color as it is
- borderColorOnError : '#FFF',
+### Date
+
+```
+
+
- // Class of div container showing error messages (defualt is 'error_message')
- errorMessageClass : 'error_message',
+
+
- // Position of error messages. Set the value to "top" if you want the error messages
- // to be displayed in the top of the form. Otherwise you can set the value to
- // "element", each error message will then be displayed beside the input field that
- // it is refering to (default is 'top')
- errorMessagePosition : 'element',
+
+
+```
- // Date format used when validating dates and birthdate. (default is yyyy-mm-dd)
- dateFormat : 'dd/mm/yyyy',
+See the date module for further validators.
- // Window automatically scrolls to the top of the form when submitted data is
- // invalid (default is true)
- scrollToTopOnError : false,
+### Alphanumeric
- // Name of the element attribute containing the error message that will be
- // displayed instead of the error dialog that the validation function
- // referrs to (default is data-validation-error-msg)
- validationErrorMsgAttribute : 'data-error'
-};
+```
+
+
-var myLang = {
- errorTitle : 'Något gick fel',
- requiredFields : 'Du fyllde inte i alla fält markerade med *'
-};
+
+
+```
+If you want to allow any kind of letters (not only A-Z) you're looking for the letternumeric validator.
-$('#my_form')
- .showHelpOnFocus()
- .validateOnBlur(myLang, myConf)
- .submit(function() {
- return $(this).validate(myLang, myConf);
- });
+### Checkboxes Group
+Validate qty of checkboxes in a group (same name) have been checked, using min, max or range. Only the first checkbox element in the group needs to have the validation attributes added.
```
+
+
+
+
+
+
+If your checkboxes group is generated by a server-side script and you don't want to add the validation attributes to each input element, you can use this javascript snippet before calling the validatorLoad() function
-## Localization
-All error dialogs can be overwritten by passing an object into the validation function.
-
-```javascript
-var jQueryFormLang = {
- errorTitle : 'Form submission failed!',
- requiredFields : 'You have not answered all required fields',
- badTime : 'You have not given a correct time',
- badEmail : 'You have not given a correct e-mail address',
- badTelephone : 'You have not given a correct phone number',
- badSecurityAnswer : 'You have not given a correct answer to the security question',
- badDate : 'You have not given a correct date',
- tooLongStart : 'You have given an answer longer than ',
- tooLongEnd : ' characters',
- tooShortStart : 'You have given an answer shorter than ',
- tooShortEnd : ' characters',
- badLength : 'You have to give an answer between ',
- notConfirmed : 'Values could not be confirmed',
- badDomain : 'Incorrect domain value',
- badUrl : 'Incorrect url value',
- badFloat : 'Incorrect float value',
- badCustomVal : 'You gave an incorrect answer',
- badInt : 'Incorrect integer value',
- badSecurityNumber : 'Your social security number was incorrect',
- badUKVatAnswer : 'Incorrect UK VAT Number',
- badNumberOfSelectedOptionsStart : 'You have to choose at least ',
- badNumberOfSelectedOptionsEnd : ' answers'
-};
+
+
+Regexp
+
+
```
-```html
-
-
-
-
+This plugin also supports the attribute "pattern" by using the Html5 module.
+
+### Character count down
+```
+
+ History (50 characters left)
+
+
+
+```
+### Make validation optional
+```
+
+
+```
+You can also use the logic module if you want the validation of an input depend on another input having a value.
+
+### Display help text
+It is possible to display help information beside each input. The text will fade in when the input gets focus on and fade out when the input looses focus. The container for the help text will have the class form-help. If you don't want this feature you can read the setup guide on how to disable it.
+
+```
+
+ ```
+### Validate inputs when blurred
+
+By default each input will become validated immediately when the input looses focus. If you don't want this feature you can read the setup guide on how to disable it.
+
+### Input suggestions
+There are two ways you can give suggestions to the user while the user types.
+
+1) Using attribute data-suggestions
+
+```
+
+ What's your favorite color?
+
+
+ ...
+
+```
+2) Using $.formUtils.suggest()
+```
+
+```
+This plugin also supports the data-list element by using the Html5 module.
+
+Ignoring characters
+You can tell any validator to ignore certain characters by using the attribute data-validation-ignore (comma separated list).
+```
+
+ How much do you want to donate?
+
+
+
+```
+
+## Security validators<
+
+### Password confirmation
+
+This validator can be used to validate that the values of two inputs are the same. The first input should have a name suffixed with _confirmation and the second should have the same name but without the suffix.
+
+```
+
+```
+
+### Password strength
+
+Use this validator to make sure that your user has a strong enough password. Set attribute data-validation-strength to 1, 2 or 3 depending on how strong password you require.
+
+If you want the strength of the password to be displayed while the user types you call displayPasswordStrength() in the end of the form.
+
+```
+
+
+
+
+
+```
+
+### Server side validation
+
+By using this validator you can validate the value given by the user on the server before the form gets submitted. The validation function will send a POST request to the URL declared in data-validation-url. The argument posted to the URL will have the same name as the input being validated.
+
+The form will get the class validating-server-side while the server is being requested.
+
+The response from the validation script must be a JSON formatted object, containing the properties "valid" and "message".
+
+```
+{
+ "valid" : true|false,
+ "message" : "String with text that should be displayed as error message"
+}
+```
+
+#### Form
+
+```
+
+```
+
+#### /validate-input.php
+
+```
+ false,
+ 'message' => 'Post argument "user" is missing.'
+);
+
+if( isset($_POST['user']) ) {
+ $userRepo = new UserRepository( DataStorage::instance() );
+ $user = $userRepo->loadUser( $_POST['user'] );
+
+ if( $user ) {
+ // User name is registered on another account
+ $response = array('valid' => false, 'message' => 'This user name is already registered.');
+ } else {
+ // User name is available
+ $response = array('valid' => true);
+ }
+}
+echo json_encode($response);
+```
+
+**Modifying the server request**
+
+The parameter containing the input value, sent to the server, will by default have the same name as the input. You can however set your own parameter name by using the attribute data-validation-param-name. You can also send along other parameters to the server by using the attribute data-validation-req-params.
+
+```
+$user->get('ID')));
+?>
+
+ E-mail:
+
+
+```
+
+### Credit card validation
+
+This validator makes it possible to validate any of the credit cards VISA, Mastercard, Diners club, Maestro, CJB, Discover and American express
+
+```
+<-- Accept credit card number from Visa, Mastercard and American Express -->
+
+ Credit card number
+
+
+
+ Security code (cvv)
+
+
+```
+
+You can also let the user choose a credit card and programmatically change the allowed credit card on the input of the card number.
+
+```
+
+ Credit card
+
+
+
+ Credit card number
+
+
+...
+
+
```
-Inline error messages is also possible. If you add attribute data-validation-error-msg to an element the value of that attribute will be displayed instead of the error dialog that the validation function referrs to.
+### Simple captcha
-## Simple captcha example
-```php
+```
-
-....
-
-...
-
```
-## Input length restriction
-```html
+### Google reCAPTCHA
+
+Use this validator if wanting to integrate the Google service reCAPTCHA.
+
+```
- History (50 characters left)
-
+
-
+
+
```
-## Password confirmation example
-```html
-
Password:
-
Confirm password:
+## File validators
+
+### File size
+
+This validation is only supported by Internet Explorer 10, Mozilla FireFox v >= 3.6 and any of the later versions of webkit based browsers.
+
+```
+
+
+
+
+
+```
+
+### File type
+
+This validation will fall back on checking the file extension in older browsers. In modern browsers the validation will check that any of the extensions in data-validation-allowing exists in the mime type declaration of the file. This means that data-validation-allowing="pdf" will work in both modern browsers (checking against "application/pdf") and older browsers (checking the file extension ".pdf").
+
+```
+
+
+
+
+
+```
+
+Validating multiple files (with separate error messages depending on failed validation):
+
+```
+
+```
+
+### Image dimension and ratio
+
+Use the validator dimension to check the dimension of an image (jpg, gif or png).
+
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+Use the attribute data-validation-ratio to validate that the uploaded image has a certain ratio
+
```
+
+
+
+
+
+```
+
+## Logic
+
+### Validators depending on each other
+
+Use the attributes data-validation-depends-on to configure that an input is optional as long as another input is left without an answer.
+
+```
+
+
+ Contact me:
+
+
+
+ E-mail:
+
+
+```
+
+```
+
+
+ Country:
+
+
+
+
+ State:
+
+
+
+...
+
+
+
+```
+
+### Require only one out of several inputs
+
+Use the attribute data-validation-optional-if-answered to tell the validator that only one, out of a group of inputs, requires an answer.
+
+```
+
+ Home phone number:
+
+
+
+ Cell phone number:
+
+
+
+ Work phone number:
+
+
+
+```
+
+## Changelog
+
+#### 2.3.19
+- New translations (Polish, Romanian, Danish, Norwegian, Dutch, Czech, Russian, Italian)
+- Several improvements made to already existing translations
+- "Validation help" no longer puts constraints on input names
+- Improved confirmation validation
+- Config parameter `errorMessagePosition` is now only used to point out where error message should be placed. New configuration parameters is introduced that handles custom positioning of error messages [#226](https://github.com/victorjonsson/jQuery-Form-Validator/issues/226#issuecomment-191233456)
+- Now possible to add `data-validation-ignore` to filter out certain characters before validation
+- New sanitation method `strip` that removes defined characters
+- Now possible to declare attributes not prefixed with data-validation in jsconf module
+- All inputs gets sanitized on page load when using sanitation module
+- Allow dates to omit leading zero using `data-validation-require-leading-zero="false"`
+- Module toggleDisabled now acts on value change, not only mouse click
+- `data-validation-if-checked` now deprecated, use `data-validation-depends-on` instead [#153](https://github.com/victorjonsson/jQuery-Form-Validator/issues/153)
+- Event `beforeValidation` now gets value, language and configuration as arguments and can be used to prevent validation of the input.
+- Security module now has a `recaptcha` validator that uses Google reCaptcha 2
+- The plugin is installable using npm (also possible to require validation modules when using browserify)
+- Polish validation module
+- Brazilian validation module
+- UK validation module now also have validators `uknin` `ukutr`
+- Sepa-module that makes it possible to validate sepa, iban and bic.
+- New module named "logic" containing the features `data-validation-depends-on` and `data-validation-optional-if-answered`
+
+#### 2.2.8
+- The plugin is now again possible to install via bower.
+- Portoguese language pack and validators
+- New module used for data-sanitiation
+- E-mail addresses now validated in accordance to rfc 6531
+- Now possible to use $.fn.validate to programmatically validate inputs
+- Hidden inputs won't get validated by default (can be overriden using option validateHiddenInputs)
+
+
+#### 2.2.43
+- Fixed min/max parse error in HTML5 module
+- Now also supports Twitter bootstraps horizontal forms
+- This plugin now also distributes a default CSS theme including success/fail icons (used on formvalidator.net)
+- Email validation now won't fail if email begins with a number
+- This plugin now comes with error dialogs translated to English, French, German, Spanish and English.
+- New validator `letternumeric`. Validates that input consists out of any type of letter (not only alphanumeric) and/or numbers
+- You can now validate image dimension and ratio
+- ... and a bunch of other smaller bug fixes and improvements.
+
+#### 2.2.0
+* Now possible to define an error message for each validation rule on a certain input (issue #113)
+* This plugin now serves as a html5 fallback. You can now use the native attributes to declare which type
+of validation that should be applied.
+* Use a template for error messages when having errorMessagePosition set to top
+* Added validation of credit card number and CVV to the security module
+* Event onElementValidate added
+* Use the attribute data-validation-confirm to declare which input that should be confirmed when using validation=confirmation (issue #112)
+* Validation "required" now supports inputs of type radio
+* $.validateForm is now deprecated, use $.isValid instead
+* Possible to check if form is valid programmatically without showing error messages
+* Select elements can now be validated server-side
+* Cleaned up dialog messages
+* Various IE8 fixes
+* Possible to send along parameters to the server when using server side validation
+* Now possible to set your own parameter name when using server side validation
+* Improved/simplified URL validation
+* ... and a whole lot more small improvements
+
+#### 2.1.47
+* Incorrect error-styling when using datepicker or suggestions is now fixed
+* Incorrect error-styling of select elements is now fixed
+* Deprecated function $.validationSetup is now removed, use $.validate() instead
+* You can now return an array with errors using the event `onValidate`
+* You can now declare an element where all error messages should be placed (config.errorMessagePosition)
+
+#### 2.1.36
+* Now possible to use the native reset() function to clear error messages and error styling of the input elements
+
+#### 2.1.34
+* General improvements and bug fixes
+* Added events "beforeValidation" and "validation" (see http://formvalidator.net/#configuration_callbacks for more info)
+
+#### 2.1.27
+ * E-mail validation support .eu top domain
+ * Improvements in server validation
+ * Now possible to re-initiate the validation. This makes it possible to dynamically change the form and then call $.validate() again to refresh the validation (issue #59)
+ * Number validation now supports range
+
+#### 2.1.15
+ * E-mail addresses can now contain + symbol
+ * Correction of the US states in validation "federatestate"
+ * Fixed bug in server validation
+
+#### 2.1.09
+ * File validation now support multiple files
+ * Length validation can now be used to validate the number of uploaded files using a file input that supports multiple files
+ * Validation classes is no longer applied on inputs that for some reason shouldn't become validated
+
+#### 2.1.08
+ * Now possible to configure the decimal separator when validating float values. Use either the
+ attribute *data-validation-decimal-separator* or the property *decimalSeparator* when
+calling $.validate()
+ * $.validationSetup is renamed to $.validate. You will still be able to initiate the validation by calling
+ the $.validationSetup but it's considered deprecated.
+
+#### 2.1.06
+ * Modules can now be loaded from remote websites
+
+#### 2.1.05
+ * Fixed language bug (issue #43 on github)
+ * Validation on server side is now triggered by the blur event
+ * Now using class names that's compliant with twitter bootstrap 3.x
+
+#### 2.1
+ * Code refactoring and some functions renamed
+ * Validator "checkbox_group" added
+
+#### 2.0.7
+ * Now possible to validate file size, extension and mime type (using the file module)
+
+#### 2.0
+ * [min|max]_length is removed (now merged with length validation).
+ * The number, int and float validation is merged together, all three variants is now validated by the number validation.
+ * Phone validation is moved to "sweden" module and renamed to swephone.
+ * The attribute to be used when defining the regular expression for custom validations is now moved to its own attribute (data-validation-regexp)
+ * Length validation now looks at attribute data-validation-length (eg. min5, max200, 3-12).
+ * The validation rule no longer needs to be prefixed with "validate_" (it's still possible to use the prefix but it's considered deprecated).
+ * Some validation functions is moved to modules (see the function reference over at http://formvalidator.net).
+ * Added function $.validationSetup() to reduce the amount of code that has to be written when initiating the form validation.
+
## Credits
-[Victor Jonsson](https://github.com/victorjonsson)
-[Joel Sutherland](https://github.com/robamaton) (contributor)
-[Steve Wasiura](https://github.com/stevewasiura) (contributor)
-[Matt Clements](https://github.com/mattclements) (contributor)
-[dfcplc](https://github.com/dfcplc) (contributor)
-[Scott Gonzales](http://projects.scottsplayground.com/iri/) (URL regexp)
+
+http://www.formvalidator.net/#credits
diff --git a/bower.json b/bower.json
new file mode 100644
index 0000000..3286f06
--- /dev/null
+++ b/bower.json
@@ -0,0 +1,25 @@
+{
+ "name": "jquery-form-validator",
+ "homepage": "http://formvalidator.net/",
+ "authors": [
+ "victorjonsson"
+ ],
+ "description": "With this feature rich jQuery plugin it becomes easy to validate user input while keeping your HTML markup clean from javascript code. Even though this plugin has a wide range of validation functions it's designed to require as little bandwidth as possible. This is achieved by grouping together validation functions in \"modules\", making it possible for the programmer to load only those functions that's needed to validate a particular form.",
+ "main": "./form-validator/jquery.form-validator.min.js",
+ "keywords": [
+ "form",
+ "validator",
+ "jquery"
+ ],
+ "dependencies": {
+ "jquery": ">1.8.0"
+ },
+ "license": "MIT",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ]
+}
diff --git a/example.html b/example.html
deleted file mode 100644
index 8b68ed9..0000000
--- a/example.html
+++ /dev/null
@@ -1,264 +0,0 @@
-
-
-
-
- Form validation using jQuery
-
-
-
-
-
-
-
-
-
-
-
-
-
"},scrollToTopOnError:!0,dateFormat:"yyyy-mm-dd",addValidClassOnAll:!1,decimalSeparator:".",inputParentClassOnError:"has-error",inputParentClassOnSuccess:"has-success",validateHiddenInputs:!1,inlineErrorMessageCallback:!1,submitErrorMessageCallback:!1}},validators:{},sanitizers:{},_events:{load:[],valid:[],invalid:[]},haltValidation:!1,addValidator:function(a){var b=0===a.name.indexOf("validate_")?a.name:"validate_"+a.name;void 0===a.validateOnKeyUp&&(a.validateOnKeyUp=!0),this.validators[b]=a},addSanitizer:function(a){this.sanitizers[a.name]=a},warn:function(a,c){"console"in b?"function"==typeof b.console.warn?b.console.warn(a):"function"==typeof b.console.log&&b.console.log(a):c&&alert(a)},getValue:function(a,b){var c=b?b.find(a):a;if(c.length>0){var d=c.eq(0).attr("type");return"radio"===d||"checkbox"===d?c.filter(":checked").val()||"":c.val()||""}return!1},validateInput:function(b,c,d,e,f){d=d||a.formUtils.defaultConfig(),c=c||a.formUtils.LANG,e.length||(e=b.parent());var g=this.getValue(b);b.valAttr("skipped",!1).one("beforeValidation",function(){(b.attr("disabled")||!b.is(":visible")&&!d.validateHiddenInputs)&&b.valAttr("skipped",1)}).trigger("beforeValidation",[g,c,d]);var h="true"===b.valAttr("optional"),i=!g&&h,j=b.attr(d.validationRuleAttribute),k=!0,l="",m={isValid:!0,shouldChangeDisplay:!0,errorMsg:""};if(!j||i||b.valAttr("skipped"))return m.shouldChangeDisplay=d.addValidClassOnAll,m;var n=b.valAttr("ignore");return n&&a.each(n.split(""),function(a,b){g=g.replace(new RegExp("\\"+b,"g"),"")}),a.split(j,function(h){0!==h.indexOf("validate_")&&(h="validate_"+h);var i=a.formUtils.validators[h];if(!i)throw new Error('Using undefined validator "'+h+'". Maybe you have forgotten to load the module that "'+h+'" belongs to?');if("validate_checkbox_group"===h&&(b=e.find('[name="'+b.attr("name")+'"]:eq(0)')),("keyup"!==f||i.validateOnKeyUp)&&(k=i.validatorFunction(g,b,d,c,e,f)),!k)return d.validateOnBlur&&b.validateOnKeyUp(c,d),l=a.formUtils.dialogs.resolveErrorMessage(b,i,h,d,c),!1}),k===!1?(b.trigger("validation",!1),m.errorMsg=l,m.isValid=!1,m.shouldChangeDisplay=!0):null===k?m.shouldChangeDisplay=!1:(b.trigger("validation",!0),m.shouldChangeDisplay=!0),"function"==typeof d.onElementValidate&&null!==l&&d.onElementValidate(m.isValid,b,e,l),b.trigger("afterValidation",[m,f]),m},parseDate:function(b,c,d){var e,f,g,h,i=c.replace(/[a-zA-Z]/gi,"").substring(0,1),j="^",k=c.split(i||null);if(a.each(k,function(a,b){j+=(a>0?"\\"+i:"")+"(\\d{"+b.length+"})"}),j+="$",d){var l=[];a.each(b.split(i),function(a,b){1===b.length&&(b="0"+b),l.push(b)}),b=l.join(i)}if(e=b.match(new RegExp(j)),null===e)return!1;var m=function(b,c,d){for(var e=0;e28&&(h%4!==0||h%100===0&&h%400!==0)||2===g&&f>29&&(h%4===0||h%100!==0&&h%400===0)||g>12||0===g)&&(!(this.isShortMonth(g)&&f>30||!this.isShortMonth(g)&&f>31||0===f)&&[h,g,f])},parseDateInt:function(a){return 0===a.indexOf("0")&&(a=a.replace("0","")),parseInt(a,10)},isShortMonth:function(a){return a%2===0&&a<7||a%2!==0&&a>7},lengthRestriction:function(b,c){var d=parseInt(c.text(),10),e=0,f=function(){var a=b.val().length;if(a>d){var f=b.scrollTop();b.val(b.val().substring(0,d)),b.scrollTop(f)}e=d-a,e<0&&(e=0),c.text(e)};a(b).bind("keydown keyup keypress focus blur",f).bind("cut paste",function(){setTimeout(f,100)}),a(document).bind("ready",f)},numericRangeCheck:function(b,c){var d=a.split(c),e=parseInt(c.substr(3),10);return 1===d.length&&c.indexOf("min")===-1&&c.indexOf("max")===-1&&(d=[c,c]),2===d.length&&(bparseInt(d[1],10))?["out",d[0],d[1]]:0===c.indexOf("min")&&be?["max",e]:["ok"]},_numSuggestionElements:0,_selectedSuggestion:null,_previousTypedVal:null,suggest:function(b,d,e){var f={css:{maxHeight:"150px",background:"#FFF",lineHeight:"150%",textDecoration:"underline",overflowX:"hidden",overflowY:"auto",border:"#CCC solid 1px",borderTop:"none",cursor:"pointer"},activeSuggestionCSS:{background:"#E9E9E9"}},g=function(a,b){var c=b.offset();a.css({width:b.outerWidth(),left:c.left+"px",top:c.top+b.outerHeight()+"px"})};e&&a.extend(f,e),f.css.position="absolute",f.css["z-index"]=9999,b.attr("autocomplete","off"),0===this._numSuggestionElements&&c.bind("resize",function(){a(".jquery-form-suggestions").each(function(){var b=a(this),c=b.attr("data-suggest-container");g(b,a(".suggestions-"+c).eq(0))})}),this._numSuggestionElements++;var h=function(b){var c=b.valAttr("suggestion-nr");a.formUtils._selectedSuggestion=null,a.formUtils._previousTypedVal=null,a(".jquery-form-suggestion-"+c).fadeOut("fast")};return b.data("suggestions",d).valAttr("suggestion-nr",this._numSuggestionElements).unbind("focus.suggest").bind("focus.suggest",function(){a(this).trigger("keyup"),a.formUtils._selectedSuggestion=null}).unbind("keyup.suggest").bind("keyup.suggest",function(){var c=a(this),d=[],e=a.trim(c.val()).toLocaleLowerCase();if(e!==a.formUtils._previousTypedVal){a.formUtils._previousTypedVal=e;var i=!1,j=c.valAttr("suggestion-nr"),k=a(".jquery-form-suggestion-"+j);if(k.scrollTop(0),""!==e){var l=e.length>2;a.each(c.data("suggestions"),function(a,b){var c=b.toLocaleLowerCase();return c===e?(d.push(""+b+""),i=!0,!1):void((0===c.indexOf(e)||l&&c.indexOf(e)>-1)&&d.push(b.replace(new RegExp(e,"gi"),"$&")))})}i||0===d.length&&k.length>0?k.hide():d.length>0&&0===k.length?(k=a("").css(f.css).appendTo("body"),b.addClass("suggestions-"+j),k.attr("data-suggest-container",j).addClass("jquery-form-suggestions").addClass("jquery-form-suggestion-"+j)):d.length>0&&!k.is(":visible")&&k.show(),d.length>0&&e.length!==d[0].length&&(g(k,c),k.html(""),a.each(d,function(b,d){a("").append(d).css({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"5px"}).addClass("form-suggest-element").appendTo(k).click(function(){c.focus(),c.val(a(this).text()),c.trigger("change"),h(c)})}))}}).unbind("keydown.validation").bind("keydown.validation",function(b){var c,d,e=b.keyCode?b.keyCode:b.which,g=a(this);if(13===e&&null!==a.formUtils._selectedSuggestion){if(c=g.valAttr("suggestion-nr"),d=a(".jquery-form-suggestion-"+c),d.length>0){var i=d.find("div").eq(a.formUtils._selectedSuggestion).text();g.val(i),g.trigger("change"),h(g),b.preventDefault()}}else{c=g.valAttr("suggestion-nr"),d=a(".jquery-form-suggestion-"+c);var j=d.children();if(j.length>0&&a.inArray(e,[38,40])>-1){38===e?(null===a.formUtils._selectedSuggestion?a.formUtils._selectedSuggestion=j.length-1:a.formUtils._selectedSuggestion--,a.formUtils._selectedSuggestion<0&&(a.formUtils._selectedSuggestion=j.length-1)):40===e&&(null===a.formUtils._selectedSuggestion?a.formUtils._selectedSuggestion=0:a.formUtils._selectedSuggestion++,a.formUtils._selectedSuggestion>j.length-1&&(a.formUtils._selectedSuggestion=0));var k=d.innerHeight(),l=d.scrollTop(),m=d.children().eq(0).outerHeight(),n=m*a.formUtils._selectedSuggestion;return(nl+k)&&d.scrollTop(n),j.removeClass("active-suggestion").css("background","none").eq(a.formUtils._selectedSuggestion).addClass("active-suggestion").css(f.activeSuggestionCSS),b.preventDefault(),!1}}}).unbind("blur.suggest").bind("blur.suggest",function(){h(a(this))}),b},LANG:{errorTitle:"Form submission failed!",requiredField:"This is a required field",requiredFields:"You have not answered all required fields",badTime:"You have not given a correct time",badEmail:"You have not given a correct e-mail address",badTelephone:"You have not given a correct phone number",badSecurityAnswer:"You have not given a correct answer to the security question",badDate:"You have not given a correct date",lengthBadStart:"The input value must be between ",lengthBadEnd:" characters",lengthTooLongStart:"The input value is longer than ",lengthTooShortStart:"The input value is shorter than ",notConfirmed:"Input values could not be confirmed",badDomain:"Incorrect domain value",badUrl:"The input value is not a correct URL",badCustomVal:"The input value is incorrect",andSpaces:" and spaces ",badInt:"The input value was not a correct number",badSecurityNumber:"Your social security number was incorrect",badUKVatAnswer:"Incorrect UK VAT Number",badUKNin:"Incorrect UK NIN",badUKUtr:"Incorrect UK UTR Number",badStrength:"The password isn't strong enough",badNumberOfSelectedOptionsStart:"You have to choose at least ",badNumberOfSelectedOptionsEnd:" answers",badAlphaNumeric:"The input value can only contain alphanumeric characters ",badAlphaNumericExtra:" and ",wrongFileSize:"The file you are trying to upload is too large (max %s)",wrongFileType:"Only files of type %s is allowed",groupCheckedRangeStart:"Please choose between ",groupCheckedTooFewStart:"Please choose at least ",groupCheckedTooManyStart:"Please choose a maximum of ",groupCheckedEnd:" item(s)",badCreditCard:"The credit card number is not correct",badCVV:"The CVV number was not correct",wrongFileDim:"Incorrect image dimensions,",imageTooTall:"the image can not be taller than",imageTooWide:"the image can not be wider than",imageTooSmall:"the image was too small",min:"min",max:"max",imageRatioNotAccepted:"Image ratio is not be accepted",badBrazilTelephoneAnswer:"The phone number entered is invalid",badBrazilCEPAnswer:"The CEP entered is invalid",badBrazilCPFAnswer:"The CPF entered is invalid",badPlPesel:"The PESEL entered is invalid",badPlNip:"The NIP entered is invalid",badPlRegon:"The REGON entered is invalid",badreCaptcha:"Please confirm that you are not a bot",passwordComplexityStart:"Password must contain at least ",passwordComplexitySeparator:", ",passwordComplexityUppercaseInfo:" uppercase letter(s)",passwordComplexityLowercaseInfo:" lowercase letter(s)",passwordComplexitySpecialCharsInfo:" special character(s)",passwordComplexityNumericCharsInfo:" numeric character(s)",passwordComplexityEnd:"."}})}(a,window),function(a){a.formUtils.addValidator({name:"email",validatorFunction:function(b){var c=b.toLowerCase().split("@"),d=c[0],e=c[1];if(d&&e){if(0===d.indexOf('"')){var f=d.length;if(d=d.replace(/\"/g,""),d.length!==f-2)return!1}return a.formUtils.validators.validate_domain.validatorFunction(c[1])&&0!==d.indexOf(".")&&"."!==d.substring(d.length-1,d.length)&&d.indexOf("..")===-1&&!/[^\w\+\.\-\#\-\_\~\!\$\&\'\(\)\*\+\,\;\=\:]/.test(d)}return!1},errorMessage:"",errorMessageKey:"badEmail"}),a.formUtils.addValidator({name:"domain",validatorFunction:function(a){return a.length>0&&a.length<=253&&!/[^a-zA-Z0-9]/.test(a.slice(-2))&&!/[^a-zA-Z0-9]/.test(a.substr(0,1))&&!/[^a-zA-Z0-9\.\-]/.test(a)&&1===a.split("..").length&&a.split(".").length>1},errorMessage:"",errorMessageKey:"badDomain"}),a.formUtils.addValidator({name:"required",validatorFunction:function(b,c,d,e,f){switch(c.attr("type")){case"checkbox":return c.is(":checked");case"radio":return f.find('input[name="'+c.attr("name")+'"]').filter(":checked").length>0;default:return""!==a.trim(b)}},errorMessage:"",errorMessageKey:function(a){return"top"===a.errorMessagePosition||"function"==typeof a.errorMessagePosition?"requiredFields":"requiredField"}}),a.formUtils.addValidator({name:"length",validatorFunction:function(b,c,d,e){var f=c.valAttr("length"),g=c.attr("type");if(void 0===f)return alert('Please add attribute "data-validation-length" to '+c[0].nodeName+" named "+c.attr("name")),!0;var h,i="file"===g&&void 0!==c.get(0).files?c.get(0).files.length:b.length,j=a.formUtils.numericRangeCheck(i,f);switch(j[0]){case"out":this.errorMessage=e.lengthBadStart+f+e.lengthBadEnd,h=!1;break;case"min":this.errorMessage=e.lengthTooShortStart+j[1]+e.lengthBadEnd,h=!1;break;case"max":this.errorMessage=e.lengthTooLongStart+j[1]+e.lengthBadEnd,h=!1;break;default:h=!0}return h},errorMessage:"",errorMessageKey:""}),a.formUtils.addValidator({name:"url",validatorFunction:function(b){var c=/^(https?|ftp):\/\/((((\w|-|\.|~|[\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])(\w|-|\.|~|[\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])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|\[|\]|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;if(c.test(b)){var d=b.split("://")[1],e=d.indexOf("/");return e>-1&&(d=d.substr(0,e)),a.formUtils.validators.validate_domain.validatorFunction(d)}return!1},errorMessage:"",errorMessageKey:"badUrl"}),a.formUtils.addValidator({name:"number",validatorFunction:function(a,b,c){if(""!==a){var d,e,f=b.valAttr("allowing")||"",g=b.valAttr("decimal-separator")||c.decimalSeparator,h=!1,i=b.valAttr("step")||"",j=!1,k=b.attr("data-sanitize")||"",l=k.match(/(^|[\s])numberFormat([\s]|$)/i);if(l){if(!window.numeral)throw new ReferenceError("The data-sanitize value numberFormat cannot be used without the numeral library. Please see Data Validation in http://www.formvalidator.net for more information.");a.length&&(a=String(numeral().unformat(a)))}if(f.indexOf("number")===-1&&(f+=",number"),f.indexOf("negative")===-1&&0===a.indexOf("-"))return!1;if(f.indexOf("range")>-1&&(d=parseFloat(f.substring(f.indexOf("[")+1,f.indexOf(";"))),e=parseFloat(f.substring(f.indexOf(";")+1,f.indexOf("]"))),h=!0),""!==i&&(j=!0),","===g){if(a.indexOf(".")>-1)return!1;a=a.replace(",",".")}if(""===a.replace(/[0-9-]/g,"")&&(!h||a>=d&&a<=e)&&(!j||a%i===0))return!0;if(f.indexOf("float")>-1&&null!==a.match(new RegExp("^([0-9-]+)\\.([0-9]+)$"))&&(!h||a>=d&&a<=e)&&(!j||a%i===0))return!0}return!1},errorMessage:"",errorMessageKey:"badInt"}),a.formUtils.addValidator({name:"alphanumeric",validatorFunction:function(b,c,d,e){var f="^([a-zA-Z0-9",g="]+)$",h=c.valAttr("allowing"),i="",j=!1;if(h){i=f+h+g;var k=h.replace(/\\/g,"");k.indexOf(" ")>-1&&(j=!0,k=k.replace(" ",""),k+=e.andSpaces||a.formUtils.LANG.andSpaces),e.badAlphaNumericAndExtraAndSpaces&&e.badAlphaNumericAndExtra?j?this.errorMessage=e.badAlphaNumericAndExtraAndSpaces+k:this.errorMessage=e.badAlphaNumericAndExtra+k+e.badAlphaNumericExtra:this.errorMessage=e.badAlphaNumeric+e.badAlphaNumericExtra+k;
+}else i=f+g,this.errorMessage=e.badAlphaNumeric;return new RegExp(i).test(b)},errorMessage:"",errorMessageKey:""}),a.formUtils.addValidator({name:"custom",validatorFunction:function(a,b){var c=new RegExp(b.valAttr("regexp"));return c.test(a)},errorMessage:"",errorMessageKey:"badCustomVal"}),a.formUtils.addValidator({name:"date",validatorFunction:function(b,c,d){var e=c.valAttr("format")||d.dateFormat||"yyyy-mm-dd",f="false"===c.valAttr("require-leading-zero");return a.formUtils.parseDate(b,e,f)!==!1},errorMessage:"",errorMessageKey:"badDate"}),a.formUtils.addValidator({name:"checkbox_group",validatorFunction:function(b,c,d,e,f){var g=!0,h=c.attr("name"),i=a('input[type=checkbox][name^="'+h+'"]',f),j=i.filter(":checked").length,k=c.valAttr("qty");if(void 0===k){var l=c.get(0).nodeName;alert('Attribute "data-validation-qty" is missing from '+l+" named "+c.attr("name"))}var m=a.formUtils.numericRangeCheck(j,k);switch(m[0]){case"out":this.errorMessage=e.groupCheckedRangeStart+k+e.groupCheckedEnd,g=!1;break;case"min":this.errorMessage=e.groupCheckedTooFewStart+m[1]+(e.groupCheckedTooFewEnd||e.groupCheckedEnd),g=!1;break;case"max":this.errorMessage=e.groupCheckedTooManyStart+m[1]+(e.groupCheckedTooManyEnd||e.groupCheckedEnd),g=!1;break;default:g=!0}if(!g){var n=function(){i.unbind("click",n),i.filter("*[data-validation]").validateInputOnBlur(e,d,!1,"blur")};i.bind("click",n)}return g}})}(a)});
\ No newline at end of file
diff --git a/form-validator/jsconf.js b/form-validator/jsconf.js
new file mode 100644
index 0000000..1499923
--- /dev/null
+++ b/form-validator/jsconf.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){"use strict";a.formUtils.registerLoadedModule("jsconf"),a.setupValidation=function(b){var c=a(b.form||"form");a.each(b.validate||b.validation||{},function(b,d){var e;e="#"===b[0]?a(b):"."===b[0]?c.find(b):c.find('*[name="'+b+'"]'),e.attr("data-validation",d.validation),a.each(d,function(a,b){"validation"!==a&&b!==!1&&(b===!0&&(b="true"),"_"===a[0]?(a=a.substring(1),b===!1?e.removeAttr(a):e.attr(a,b)):e.valAttr(a,b))})}),a.validate(b)}}(a)});
\ No newline at end of file
diff --git a/form-validator/lang/ar.js b/form-validator/lang/ar.js
new file mode 100644
index 0000000..8b80062
--- /dev/null
+++ b/form-validator/lang/ar.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/ar"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"فَشِلَ إرسال النموذج",requiredField:"هذا الحقل مطلوب",requiredFields:"لم يتم ملأ جميع الحقول المطلوبة.",badTime:"حقل الوقت خاطىء",badEmail:"البريد الإلكتروني المدخل خاطئ",badTelephone:"رقم الهاتف المدخل خاطئ",badSecurityAnswer:"لم يتم الإجابة عن سؤال الأمان",badDate:"تاريخ مدخل خاطئ",lengthBadStart:"القيمة المدخلة يجب أن تكون بين ",lengthBadEnd:" حروف",lengthTooLongStart:"القيمة المدخل أطول من ",lengthTooShortStart:"القيمة المدخل أقصر من ",notConfirmed:"لم يتم تأكيد القيمة المدخلة",badDomain:"قيمة نطاق خاطئة",badUrl:"القيمة المدخلة ليست رابطاً صالحاً",badCustomVal:"القيمة المدخلة غير صالحة",andSpaces:" ومسافات ",badInt:"القيمة المدخلة ليست رقماً صحيحاً",badSecurityNumber:"رقم بطاقة الهوية غير صحيح",badUKVatAnswer:"رقم UK VAT غير صحيح",badUKNin:"غير صحيح UK NINرقم ",badUKUtr:"غير صحيح UK UTR رقم",badStrength:"كلمة المرور غير قوية",badNumberOfSelectedOptionsStart:"يجب اختيار على الأقل ",badNumberOfSelectedOptionsEnd:" أجوبة",badAlphaNumeric:"القيمة المدخلة يجب أن تتضمن حروف وأرقام فقط ",badAlphaNumericExtra:" و ",wrongFileSize:"الملف المراد تحميله كبير جداً (الحد المسموج %s)",wrongFileType:"ملفات من نوع %s فقط مسموحة",groupCheckedRangeStart:"من فضلك اختر بين ",groupCheckedTooFewStart:"من فضلك اختر على الأقل ",groupCheckedTooManyStart:"من فضلك اختر بحد أقصى ",groupCheckedEnd:" مرات",badCreditCard:"رقم بطاقة ائتمانية خاطىء",badCVV:"رمز الأمان خاطئ",wrongFileDim:"حدود الصورة غير صالحة",imageTooTall:"الصورة يمكن أن تكون أطول من",imageTooWide:"الصورة يمكن أن تكون أعرض من",imageTooSmall:"صورة صغيرة جداً",min:"أدنى",max:"أقصى",imageRatioNotAccepted:"أبعاد صورة غير مقبولة",badBrazilTelephoneAnswer:"رقم هاتف مدخل خاطىء",badBrazilCEPAnswer:"قيمة CEP المدخلة غير صحيحة",badBrazilCPFAnswer:"قيمة CPF المدخلة غير صحيحة",badPlPesel:"قيمة Pl PESEL المدخلة غير صحيحة",badPlNip:"قيمة Pl NIP المدخلة غير صحيحة",badPlRegon:"قيمة Pl REGON المدخلة غير صحيحة",badreCaptcha:"من فضلك أكد أنك لست روبوتاً",passwordComplexityStart:"كملة المرور تتكون على الأقل من ",passwordComplexitySeparator:", ",passwordComplexityUppercaseInfo:" حروف كبيرة",passwordComplexityLowercaseInfo:" حروف صغيرة",passwordComplexitySpecialCharsInfo:" رموز خاصة",passwordComplexityNumericCharsInfo:" أرقام",passwordComplexityEnd:"."}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/ca.js b/form-validator/lang/ca.js
new file mode 100644
index 0000000..5e92f50
--- /dev/null
+++ b/form-validator/lang/ca.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/ca"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"El formulari no s'ha pogut enviar!",requiredField:"Aquest camp és obligatori",requiredFields:"No ha contestat tots els camps requerits",badTime:"L'hora proporcionada no és vàlida",badEmail:"La direcció d'e-mail no és vàlida",badTelephone:"El número de telèfon proporcionat no és vàlid",badSecurityAnswer:"La resposta a la seva pregunta de seguretat és incorrecte",badDate:"La data proporcionada no és vàlida",lengthBadStart:"La seva resposta s'ha d'incloure entre ",lengthBadEnd:" caràcters",lengthTooLongStart:"La seva resposta ha de ser menor a ",lengthTooShortStart:"La seva resposta ha de ser major a ",notConfirmed:"Els valors proporcionats no poden ser confirmats",badDomain:"Ha introduït un domini incorrecte",badUrl:"La URL proporcionada no és vàlida",badCustomVal:"Els valors proporcionats no són vàlids",andSpaces:" i espais ",badInt:"El valor proporcionat no és un número vàlid",badSecurityNumber:"El número de seguretat social proporcionat és incorrecte",badUKVatAnswer:"El número VAT proporcionat no és vàlid pel Regne Unit",badStrength:"La contrasenya proporcionada no és suficientment segura",badNumberOfSelectedOptionsStart:"Ha de seleccionar almenys",badNumberOfSelectedOptionsEnd:" resposta(es)",badAlphaNumeric:"El valor proporcionat només ha de contenir caràcters alfanumèrics (a-z i números)",badAlphaNumericExtra:" i",wrongFileSize:"L'arxiu que està tractant de pujar és massa gran (màx. %s)",wrongFileType:"Només els arxius de tipus %s estan permesos",groupCheckedRangeStart:"Si us plau, triï entre ",groupCheckedTooFewStart:"Si us plau, triï almenys ",groupCheckedTooManyStart:"Si us plau, triï un màxim de ",groupCheckedEnd:" element(s)",badCreditCard:"El número de targeta de crèdit proporcionat no és vàlid",badCVV:"CVV proporcionat no és vàlid",wrongFileDim:"Les dimensions de la imatge no són vàlides,",imageTooTall:"l'alçada de la imatge no pot ser major a",imageTooWide:"l'amplada de la imatge no pot ser major a",imageTooSmall:"la imatge és massa petita",min:"min.",max:"màx.",imageRatioNotAccepted:"La proporció de la imatge (alçada x amplada) no és vàlida"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/cs.js b/form-validator/lang/cs.js
new file mode 100644
index 0000000..b6247ce
--- /dev/null
+++ b/form-validator/lang/cs.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/cs"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Podání formuláře selhalo!",requiredField:"Toto pole je povinné",requiredfields:"Nebyly vyplněny všechny požadované pole",badTime:"Neplatný čas",badEmail:"Neplatná e-mailová adresa",badTelephone:"Neplatné telefonní číslo",badSecurityAnswer:"Chybná odpověď na bezpečnostní otázku",badDate:"Nesprávné datum",lengthBadStart:"Zadaná hodnota musí být v rozmezí ",lengthBadEnd:" znaků",lengthTooLongStart:"Zadaná hodnota je větší než ",lengthTooShortStart:"Zadaná hodnota je menší než ",notConfirmed:"Zadané hodnoty nebyly potvrzené",badDomain:"Neplatná doména",badUrl:"Neplatný URL",badCustomVal:"Zadaná hodnota je chybná",andSpaces:" a mezery",badInt:"Neplatné číslo",badSecurityNumber:"Neplatné číslo zabezpečení",badUKVatAnswer:"Neplatné číslo DIČ ",badStrength:"Vaše heslo není dostatečně silné",badNumberOfSelectedOptionsStart:"Musíte vybrat nejméně ",badNumberOfSelectedOptionsEnd:" odpověď",badAlphaNumeric:"Zadaná hodnota může obsahovat pouze alfanumerické znaky ",badAlphaNumericExtra:" a ",wrongFileSize:"Soubor je příliš velký (max %s)",wrongFileType:"Pouze soubory typu %s",groupCheckedRangeStart:"Prosím, vyberte ",groupCheckedTooFewStart:"Vyberte prosím nejméně ",groupCheckedTooManyStart:"Vyberte prosím maximálně ",groupCheckedEnd:" složka(y)",badCreditCard:"Číslo kreditní karty je neplatné",badCVV:"Číslo CVV je neplatné",wrongFileDim:"Nesprávné rozměry obrázku,",imageTooTall:"obraz nemůže být vyšší než",imageTooWide:"obraz nemůže být širší než",imageTooSmall:"obraz je příliš malý",min:"min",max:"max",imageRatioNotAccepted:"Poměr obrázku je nesprávný",badBrazilTelephoneAnswer:"Neplatné telefonní číslo",badBrazilCEPAnswer:"Neplatné CEP",badBrazilCPFAnswer:"Neplatné CPF"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/da.js b/form-validator/lang/da.js
new file mode 100644
index 0000000..f0365b7
--- /dev/null
+++ b/form-validator/lang/da.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/da"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={andSpaces:" og mellemrum ",badAlphaNumeric:"Det indtastede kan kun indeholde alfanumeriske karakter ",badAlphaNumericExtra:" og ",badCVV:"Det angivne CVV nummer er ugyldigt",badCreditCard:"Det angivne kortnummer er ugyldigt",badCustomVal:"Den indtastede værdi er ugyldig",badDate:"Den angivne dato er ugyldig",badDomain:"Det angivne domæne er ugyldigt",badEmail:"Den angivne email adresse er ugyldig",badInt:"Det angivne tal er ugyldigt",badNumberOfSelectedOptionsEnd:" svar",badNumberOfSelectedOptionsStart:"Du skal vælge mindst ",badSecurityAnswer:"Du har ikke angivet et korrekt svar til sikkerhedsspørgsmålet",badSecurityNumber:"Dit CPR nummer er ikke korrekt",badStrength:"Det angivne password er ikke stærkt nok",badTelephone:"Det angivne telefonnummer er ugyldigt",badTime:"Det angivne tidspunkt er ugyldigt",badUrl:"Den angivne URL er ugyldig",badreCaptcha:"Verificer venligst at du ikke er en bot",errorTitle:"Formular forespørgslen fejlede!",groupCheckedEnd:" ting",groupCheckedRangeStart:"Vælg venligst mellem ",groupCheckedTooFewStart:"Vælg mindst ",groupCheckedTooManyStart:"Vælg højst ",imageRatioNotAccepted:"Billedets dimensioner er ikke acceptable",imageTooSmall:"Billedet er for lille",imageTooTall:"Billedet må ikke være højere end",imageTooWide:"Billedet må ikke være bredere end",lengthBadEnd:" tegn",lengthBadStart:"Feltets værdi skal være mellem ",lengthTooLongStart:"Feltets værdi må ikke være længere end ",lengthTooShortStart:"Feltets værdi må ikke være kortere end ",max:"max",min:"min",notConfirmed:"Feltværdierne kunne ikke bekræftes",requiredField:"Dette felt er påkrævet",requiredFields:"Du har ikke udfyldt alle påkrævede felter",wrongFileDim:"Forkerte billede dimensioner,",wrongFileSize:"Filen du forsøger at uploade er for stor (max %s)",wrongFileType:"Udelukkende filer at følgedne type er tilladt %s"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/de.js b/form-validator/lang/de.js
new file mode 100644
index 0000000..1196abf
--- /dev/null
+++ b/form-validator/lang/de.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/de"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Ihre Anfrage konnte nicht gesendet werden!",requiredField:"Dies ist ein Pflichtfeld",requiredFields:"Sie haben nicht alle Fragen beantwortet",badTime:"Sie haben nicht die korrekte Zeit eingegeben",badEmail:"Sie haben keine gültige E-Mail-Adresse eingegeben",badTelephone:"Sie haben keine richtige Telefonnummer eingetragen",badSecurityAnswer:"Sie haben die falsche Antwort auf die Sicherheitsfrage eingegeben",badDate:"Eingabe eines falschen Datums",lengthBadStart:"Der eingegebene Wert muss dazwischen sein ",lengthBadEnd:" Zeichen",lengthTooLongStart:"Der eingegebene Wert ist größer als ",lengthTooShortStart:"Der eingegebene Wert ist kleiner als ",notConfirmed:"Die Eingaben sind unterschiedlich",badDomain:"Sie haben die falsche Domäne eingetragen",badUrl:"Sie haben nicht die richtige URL eingegeben",badCustomVal:"Eingabe einer falschen Antwort",andSpaces:" und Leerzeichen",badInt:"Sie haben keine Nummer eingegeben",badSecurityNumber:"Sie haben eine falsche Sozialversicherungsnummer eingegeben",badUKVatAnswer:"Sie haben keine UK-Umsatzsteuer-Identifikationsnummer eingegeben",badStrength:"Sie haben ein Kennwort, das nicht sicher genug ist eingegeben",badNumberOfSelectedOptionsStart:"Wählen Sie zu mindestens ",badNumberOfSelectedOptionsEnd:" Antwort",badAlphaNumeric:"Sie können nur alphanumerische Zeichen (Buchstaben und Zahlen) eingeben",badAlphaNumericExtra:" und",wrongFileSize:"Die Datei, die Sie hochzuladen versuchen, ist zu groß (max %s)",wrongFileType:"Nur Dateien vom Typ %s sind zulässig",groupCheckedRangeStart:"Wählen Sie zwischen",groupCheckedTooFewStart:"Dann müssen Sie zumindest sicher,",groupCheckedTooManyStart:"Sie können nicht mehr als zu machen",groupCheckedEnd:" Auswahl",badCreditCard:"Sie haben eine ungültige Kreditkartennummer eingegeben",badCVV:"Sie haben eine falsche CVV eingegeben",wrongFileDim:"Illegale Bildgröße,",imageTooTall:"Bild kann nicht größer sein als",imageTooWide:"Bild kann nicht breiter sein als",imageTooSmall:"Bild ist zu klein",min:"min",max:"max",imageRatioNotAccepted:"Bildverhältnis wird nicht akzeptiert",badBrazilTelephoneAnswer:"Die eingegebene Telefonnummer ist nicht korrekt",badBrazilCEPAnswer:"Der CEP ist ungültig",badBrazilCPFAnswer:"Der CEP ist ungültig"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/es.js b/form-validator/lang/es.js
new file mode 100644
index 0000000..ebfa545
--- /dev/null
+++ b/form-validator/lang/es.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/es"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"El formulario no se ha podido enviar!",requiredField:"Este campo es obligatorio",requiredFields:"No ha contestado todos los campos requeridos",badTime:"La hora proporcionada no es válida",badEmail:"La dirección de e-mail no es válida",badTelephone:"El número de teléfono proporcionado no es válido",badSecurityAnswer:"La respuesta a su pregunta de seguridad es incorrecta",badDate:"La fecha proporcionada no es válida",lengthBadStart:"Su respuesta debe incluir entre ",lengthBadEnd:" caracteres",lengthTooLongStart:"Su respuesta debe de ser menor a ",lengthTooShortStart:"Su respuesta debe de ser mayor a ",notConfirmed:"Los valores proporcionados no pudieron ser confirmados",badDomain:"Ha introducido un dominio incorrecto",badUrl:"La URL proporcionada no es válida",badCustomVal:"Los valores proporcionados no son válidos",andSpaces:" y espacios ",badInt:"El valor proporcionado no es un número válido",badSecurityNumber:"El número de seguridad social proporcionado es incorrecto",badUKVatAnswer:"El número VAT proporcionado no es válido para el Reino Unido",badStrength:"La contraseña proporcionada no es lo suficientemente segura",badNumberOfSelectedOptionsStart:"Debe seleccionar al menos",badNumberOfSelectedOptionsEnd:" respuesta(s)",badAlphaNumeric:"El valor proporcionado solo debe contener caracteres alfanuméricos (a-z y números)",badAlphaNumericExtra:" y",wrongFileSize:"El archivo que está tratando de subir es demasiado grande (máx. %s)",wrongFileType:"Sólo los archivos del tipo %s están permitido",groupCheckedRangeStart:"Por favor, elija entre ",groupCheckedTooFewStart:"Por favor, elija al menos ",groupCheckedTooManyStart:"Por favor, elija un máximo de ",groupCheckedEnd:" ítem(s)",badCreditCard:"El número de tarjeta de crédito proporcionado no es válido",badCVV:"CVV proporcionado no es válido",wrongFileDim:"Las dimensiones de la imagen no son validas,",imageTooTall:"el alto de la imagen no puede ser mayor a",imageTooWide:"el ancho de la imagen no puede ser mayor a",imageTooSmall:"la imagen es demasiado pequeña",min:"min.",max:"máx.",imageRatioNotAccepted:"La proporción de imagen (alto x ancho) no es válida",passwordComplexityStart:"La contraseña debe contener al menos ",passwordComplexitySeparator:", ",passwordComplexityUppercaseInfo:" mayúscula(s)",passwordComplexityLowercaseInfo:" minúscula(s)",passwordComplexitySpecialCharsInfo:" caracter(es) especial(es)",passwordComplexityNumericCharsInfo:" número(s)",passwordComplexityEnd:"."}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/fa.js b/form-validator/lang/fa.js
new file mode 100644
index 0000000..e973dd5
--- /dev/null
+++ b/form-validator/lang/fa.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/fa"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"ثبت فرم با مشکل مواجه شد!",requiredField:"شما همه فیلدهای ضروری را تکمیل نکرده اید",requiredFields:"شما فیلد ضروری را تکمیل نکرده اید",badTime:"زمان درستی را وارد نکرده اید",badEmail:"آدرس ایمیل را به درستی وارد نکرده اید",badTelephone:"شماره تلفن وارد شده معتبر نیست",badSecurityAnswer:"شما به سوال امنیتی درست پاسخ نداده اید",badDate:"تاریخ درستی را وارد نکرده اید",lengthBadStart:"مقدار وارد شده باید ",lengthBadEnd:" حرف باشد.",lengthTooLongStart:"مقدار ورودی بیشتر از ",lengthTooShortStart:"مقدار ورودی کمتر از ",notConfirmed:"ورودی ها یکسان نیستند",badDomain:"آدرس دامنه به درستی وارد نشده است",badUrl:"آدرس اینترنتی به درستی وارد نشده است",badCustomVal:"مقدار ورودی نادرست است",andSpaces:" و فاصله خالی ",badInt:"مقدار ورودی باید عدد باشد",badSecurityNumber:"شماره امنیت اجتماعی شما معتبر نیست",badUKVatAnswer:"شماره مالیاتی شما درست نیست",badStrength:"کلمه عبور به قدر کافی مستحکم نیست",badNumberOfSelectedOptionsStart:"شما باید حداقل ",badNumberOfSelectedOptionsEnd:" پاسخ را انتخاب کنید",badAlphaNumeric:"مقدار ورودی می تواند حروف و شماره باشد ",badAlphaNumericExtra:" و ",wrongFileSize:"حجم فایل انتخابی زیاد است. (حداکثر %s)",wrongFileType:"فقط فایل های با فرمت %s مجاز هستند",groupCheckedRangeStart:"لطفا بین ",groupCheckedTooFewStart:"لطفا حداقل ",groupCheckedTooManyStart:"لطفا حداکثر ",groupCheckedEnd:" گزینه انتخاب کنید",badCreditCard:"شماره کارت اعتباری معتبر نیست",badCVV:"کد شناسایی سی وی وی معتبر نیست",wrongFileDim:"ابعاد تصویر صحیح نیست,",imageTooTall:"حداکثر طول تصویر",imageTooWide:"حداکثر عرض تصویر",imageTooSmall:"تصویر خیلی کوچک است",min:"حداقل",max:"حداکثر",imageRatioNotAccepted:"نسبت ابعاد تصویر مناسب نیست"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/fr.js b/form-validator/lang/fr.js
new file mode 100644
index 0000000..1526584
--- /dev/null
+++ b/form-validator/lang/fr.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/fr"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Le formulaire n'a pas pu être envoyé!",requiredField:"Ce champ est obligatoire",requiredFields:"Vous n'avez pas rempli tous les champs",badTime:"Vous n'avez pas saisi l'heure correctement",badEmail:"Vous n'avez pas saisi une adresse e-mail valide",badTelephone:"Vous n'avez pas saisi un numéro de téléphone valide",badSecurityAnswer:"Vous avez saisi une mauvaise réponse à la question de sécurité",badDate:"Vous n'avez pas saisi une date correcte",lengthBadStart:"Votre saisie doit comporter entre ",lengthBadEnd:" caractères",lengthTooLongStart:"Vous avez saisi une réponse qui est plus longue que ",lengthTooShortStart:"Votre saisie est plus courte que ",notConfirmed:"Les saisies ne sont pas identiques",badDomain:"Vous avez saisi un domaine incorrect",badUrl:"Vous avez saisi une URL incorrecte",badCustomVal:"Re-saisissez une réponse correcte",andSpaces:" et des espaces ",badInt:"Vous n'avez pas saisi un numéro",badSecurityNumber:"Vous avez saisi un mauvais numéro de sécurité sociale",badUKVatAnswer:"Vous n'avez pas saisi un numéro de TVA au Royaume-Uni",badStrength:"Vous avez saisi un mot de passe pas assez sécurisé",badNumberOfSelectedOptionsStart:"Vous devez sélectionner au moins ",badNumberOfSelectedOptionsEnd:" réponse(s)",badAlphaNumeric:"Vous ne pouvez répondre qu'avec des caractères alphanumériques et des chiffres ",badAlphaNumericExtra:" et ",wrongFileSize:"Le fichier que vous essayez de télécharger est trop grand (max %s)",wrongFileType:"Seuls les fichiers du type %s sont autorisés",groupCheckedRangeStart:"Choisissez entre ",groupCheckedTooFewStart:"Vous devez faire au moins ",groupCheckedTooManyStart:"Vous ne pouvez pas faire plus de ",groupCheckedEnd:" sélection(s)",badCreditCard:"Vous avez saisi un numéro de carte de crédit invalide",badCVV:"Vous avez saisi un CVV incorrect",wrongFileDim:"Mauvaise taille de l'image, ",imageTooTall:"l'image ne peut pas être plus élevée que",imageTooWide:"l'image ne peut pas être plus large que",imageTooSmall:"l'image est trop petite",min:"moins",max:"max",imageRatioNotAccepted:"Ratio de l'image non accepté"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/it.js b/form-validator/lang/it.js
new file mode 100644
index 0000000..76b83d5
--- /dev/null
+++ b/form-validator/lang/it.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/it"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Impossibile inviare il modulo!",requiredField:"Campo obbligatorio",requiredFields:"Non sono stati compilati tutti i campi richiesti",badTime:"L'ora scelta non è valida",badEmail:"Questo indirizzo email non è valido",badTelephone:"Il numero di telefono imputato non è valido",badSecurityAnswer:"La risposta alla domanda di sicurezza è errata",badDate:"La data scelta non è valida",lengthBadStart:"La sua risposta non può essere più lunga di ",lengthBadEnd:" caratteri",lengthTooLongStart:"La lunghezza della risposta deve essere minore di ",lengthTooShortStart:"La lunghezza della risposta deve essere maggiore di ",notConfirmed:"Il valore non è stato confermato.",badDomain:"Il dominio inserito non è corretto.",badUrl:"L' URL inserito non è valido",badCustomVal:"I valori inseriti non sono validi",andSpaces:" e spazi ",badInt:"Il numero inserito non è valido",badSecurityNumber:"Il numero di sicurezza inserito non è valido",badUKVatAnswer:"La Partita IVA (VAT) inserita non è valida nel Regno Unito",badStrength:"La password proposta non è sufficientemente sicura",badNumberOfSelectedOptionsStart:"Deve selezionare almeno",badNumberOfSelectedOptionsEnd:" risposta/e",badAlphaNumeric:"Il valore proposto deve contenere caratteri alfanumerici (a-z e 1234...)",badAlphaNumericExtra:"",wrongFileSize:"Il file che si sta cercando di caricare è troppo grande (massimo %s)",wrongFileType:"Solo i file di tipo %s possono essere inviati",groupCheckedRangeStart:"Si prega di scegliere tra ",groupCheckedTooFewStart:"Si prega di selezionare un minimo di ",groupCheckedTooManyStart:"Si prega di selezionare un massimo di ",groupCheckedEnd:" opzione/i",badCreditCard:"Il numero di carta di credito non risulta valido",badCVV:"CVV non valido",wrongFileDim:"La dimensione dell'immagine non è valida,",imageTooTall:"il lato alto dell'immagine non può essere maggiore di",imageTooWide:"il lato lungo dell'immagine non può essere maggiore di",imageTooSmall:"L'immagine è troppo piccola",min:"min.",max:"máx.",imageRatioNotAccepted:"La proporzione dell' immagine (altezza x larghezza) non è valida"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/ka.js b/form-validator/lang/ka.js
new file mode 100644
index 0000000..0d88991
--- /dev/null
+++ b/form-validator/lang/ka.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/ka"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"ფორმა ვერ გაიგზავნა!",requiredField:"ველის შევსება სავალდებულოა",requiredFields:"თქვენ არ შეგივსიათ ყველა სავალდებულო ველი",badTime:"თქვენ მიუთითეთ არასწორი დრო",badEmail:"თქვენ მიუთითეთ არასწორი ელ.ფოსტის მისამართი",badTelephone:"თქვენ მიუთითეთ არასწორი ტელეფონის ნომერი",badSecurityAnswer:"თქვენ გაეცით არასწორი პასუხი უსაფრთხოების კითხვას",badDate:"თქვენ მიუთითეთ არასწორი თარიღი",lengthBadStart:"ველის მნიშვნელობის სიგრძე უნდა იყოს ",lengthBadEnd:" შუალედში",lengthTooLongStart:"ველის მნიშვნელობის სიგრძე უნდა იყოს მაქსიმუმ ",lengthTooShortStart:"ველის მნიშვნელობის სიგრძე უნდა იყოს მინიმუმ ",notConfirmed:"ველის მნიშვნელობები ვერ დადასტურდა",badDomain:"არასწორი დომენის მისამართი",badUrl:"ველის მნიშვნელობა არ არის მართებული URL მისამართი",badCustomVal:"ველის მნიშვნელობა არ არის მართებული",andSpaces:" და გამოტოვებები ",badInt:"ველის მნიშვნელობა არ არის მართებული რიცხვი",badStrength:"პაროლი არ არის საკმარისად ძლიერი (კარგი)",badNumberOfSelectedOptionsStart:"თქვენ უნდა აირჩიოთ სულ მცირე ",badNumberOfSelectedOptionsEnd:" პასუხი",badAlphaNumeric:"ველის მნიშვნელობა უნდა შეიცავდეს მხოლოდ ციფრებსა და ასოებს ",badAlphaNumericExtra:" და ",wrongFileSize:"ფაილი, რომლის ატვირთვასაც ცდილობთ არის ძალიან დიდი (დასაშვებია მაქსიმუმ %s)",wrongFileType:"დასაშვებია მხოლოდ შემდეგი გაფართოების ფაილები: %s",groupCheckedRangeStart:"გთხოვთ, აირჩიოთ ",groupCheckedTooFewStart:"გთხოვთ, აირჩიოთ სულ მცირე ",groupCheckedTooManyStart:"გთხოვთ, აირჩიოთ მაქსიმუმ ",groupCheckedEnd:" პუნქტი",badCreditCard:"საკრედიტო ბარათის ნომერი არ არის მართებული",badCVV:"CVV კოდი არ არის მართებული",wrongFileDim:"არამართებული სურათის ზომები,",imageTooTall:"სურათი არ უნდა იყოს უფრო გრძელი ვიდრე",imageTooWide:"სურათი არ უნდა იყოს უფრო ფართე ვიდრე",imageTooSmall:"სურათი არის ძალიან პატარა",min:"მინიმუმ",max:"მაქსიმუმ",imageRatioNotAccepted:"სურათის სიგრძისა და სიგანის ეს თანაფარდობა დაუშვებელია",badBrazilTelephoneAnswer:"მითითებული ტელეფონის ნომერი არ არის მართებული",badreCaptcha:"დაადასტურეთ, რომ არ ხართ რობოტი",passwordComplexityStart:"პაროლი უნდა შეიცავდეს მინიმუმ ",passwordComplexitySeparator:", ",passwordComplexityUppercaseInfo:" დიდი ასო(ები)",passwordComplexityLowercaseInfo:" პატარა ასო(ები)",passwordComplexitySpecialCharsInfo:" სპეციალური სიმბოლო(ები)",passwordComplexityNumericCharsInfo:" რიცხვითი მნიშვნელობა(ები)",passwordComplexityEnd:"."}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/ko.js b/form-validator/lang/ko.js
new file mode 100644
index 0000000..7e2c0ea
--- /dev/null
+++ b/form-validator/lang/ko.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/ko"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"이 양식은 보낼 수 없습니다!",requiredField:"필수 입력란입니다.",requiredFields:"모든 필수 입력란을 입력해야 합니다.",badTime:"시간을 정확하게 입력하지 않았습니다.",badEmail:"e-mail을 정확하게 입력하지 않았습니다.",badTelephone:"전화번호를 정확하게 입력하지 않았습니다.",badSecurityAnswer:"보안 입력을 정확하게 입력하지 않았습니다.",badDate:"날짜를 정확하게 입력하지 않았습니다.",lengthBadStart:"입력 값은 ",lengthBadEnd:" 사이의 문자여야 합니다.",lengthTooLongStart:"입력 값의 길이가 ",lengthTooLongEnd:" 보다 깁니다.",lengthTooShortStart:"입력 값의 길이가 ",lengthTooShortEnd:" 보다 짧습니다.",notConfirmed:"입력 값이 일치하지 않습니다.",badDomain:"도메인을 정확하게 입력하지 않았습니다.",badUrl:"URL을 정확하게 입력하지 않았습니다.",badCustomVal:"입력 값이 정확하지 않습니다.",badInt:"입력 값이 숫자가 아닙니다.",badSecurityNumber:"주민등록번호가 정확하지 않습니다.",badStrength:"암호를 더 복잡하게 조합해야 합니다.",badNumberOfSelectedOptionsStart:"최소한 ",badNumberOfSelectedOptionsEnd:" 개 항목 이상을 선택해야 합니다.",badAlphaNumeric:"입력 값은 문자와 숫자만 허용합니다.",badAlphaNumericAndExtra:"입력 값은 문자와 숫자와 ",badAlphaNumericExtra:" 만 허용합니다.",badAlphaNumericAndExtraAndSpaces:"입력 값은 문자와 숫자와 ",andSpaces:" 와 빈문자(spaces)만 허용합니다. ",wrongFileSize:"업로드 하려고 하는 파일의 크기가 너무 큽니다. (최대 %s)",wrongFileType:"파일 타입은 %s 만 허용합니다.",groupCheckedRangeStart:"",groupCheckedEnd:" 개 항목을 선택해야 합니다.",groupCheckedTooFewStart:"최소한 ",groupCheckedTooFewEnd:" 개 항목 이상을 선택해야 합니다.",groupCheckedTooManyStart:"",groupCheckedTooManyEnd:" 개 항목 이하를 선택해야 합니다.",badCreditCard:"신용카드번호를 정확하지 않습니다.",badCVV:"CVV 번호가 정확하지 않습니다.",wrongFileDim:"잘못된 이미지 크기 ,",imageTooTall:"이미지 길이가 ",imageTooTallEnd:" 보다 길어야 합니다.",imageTooWide:"이미지 넓이가 ",imageTooWideEnd:" 보다 넓어야 합니다.",imageTooSmall:"이미지 크기가 너무 작습니다.",min:"min",max:"max",imageRatioNotAccepted:"이미지 비율이 맞지 않습니다."}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/nl.js b/form-validator/lang/nl.js
new file mode 100644
index 0000000..ae0f5f9
--- /dev/null
+++ b/form-validator/lang/nl.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/nl"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={andSpaces:" en spaties ",badAlphaNumeric:"De ingevoerde waarde mag alleen alfabetische karakters bevatten",badAlphaNumericExtra:" en ",badCVV:"Het CVV nummer was onjuist",badCreditCard:"Het creditcardnummer is onjuist",badCustomVal:"De ingevoerde waarde is onjuist",badDate:"U heeft niet de juiste datum aangegeven",badDomain:"Incorrect domein",badEmail:"U heeft een onjuist e-mailadres ingevoerd ",badInt:"De ingevoerde waarde was een onjuist getal",badNumberOfSelectedOptionsEnd:" antwoorden",badNumberOfSelectedOptionsStart:"U moet tenminste ",badSecurityAnswer:"U heeft de beveilingsvraag onjuist beantwoord",badSecurityNumber:"Uw burgerservicenummer was incorrect",badStrength:"Het wachtwoord is niet veilig genoeg",badTelephone:"U heeft een onjuist telefoonnummer ingevoerd",badTime:"U heeft een incorrecte tijd aangegeven",badUrl:"De ingevoerde waarde is geen correcte URL",badreCaptcha:"Bevestig a.u.b. dat u geen robot bent",errorTitle:"Indienen van formulier mislukt!",groupCheckedEnd:" item(s)",groupCheckedRangeStart:"Kies a.u.b. tussen ",groupCheckedTooFewStart:"Kies a.u.b. ten minste ",groupCheckedTooManyStart:"Kies a.u.b. maximaal ",imageRatioNotAccepted:"De afbeeldingsverhouding wordt niet geaccepteerd",imageTooSmall:"de afbeelding was te klein",imageTooTall:"de afbeelding kan niet langer zijn dan",imageTooWide:"de afbeelding kan niet wijder zijn dan",lengthBadEnd:" karakters",lengthBadStart:"De ingevoerde waarde moet liggen tussen ",lengthTooLongStart:"De ingevoerde waarde is langer dan ",lengthTooShortStart:"De ingevoerde waarde is korter dan ",max:"max",min:"min",notConfirmed:"Invoerwaarden konden niet worden bevestigd",requiredField:"Dit is een verplicht veld",requiredFields:"U heeft niet alle verplichte velden ingevuld",wrongFileDim:"Incorrecte afbeeldingsafmetingen,",wrongFileSize:"Het bestand dat u probeert te uploaden is te groot (max %s)",wrongFileType:"Alleen type %s bestanden zijn toegestaan"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/no.js b/form-validator/lang/no.js
new file mode 100644
index 0000000..7b4b1eb
--- /dev/null
+++ b/form-validator/lang/no.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/no"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={andSpaces:" og mellomrom ",badAlphaNumeric:"Inntastningsverdien kan kun inneholde alfanumeriske tegn ",badAlphaNumericExtra:" og ",badCVV:"CVV-nummeret var ikke korrekt",badCreditCard:"Kredittkortnummeret er ikke korrekt",badCustomVal:"Inntastingsverdien er ikke korrekt",badDate:"Du har ikke oppgitt en korrekt dato",badDomain:"Ukorrekt domeneverdi",badEmail:"Du har ikke oppgitt en korrekt e-postadresse",badInt:"Inntastingsverdien er ikke et korrekt tall",badNumberOfSelectedOptionsEnd:" svar",badNumberOfSelectedOptionsStart:"Du må velge minst ",badSecurityAnswer:"Du har ikke oppgitt et korrekt svar på sikkerhetsspørsmålet",badSecurityNumber:"Ditt personnummer var ukorrekt",badStrength:"Passordet er ikke sterkt nok",badTelephone:"Du har ikke oppgitt et korrekt telefonnummer",badTime:"Du har ikke oppgitt en korrekt tid",badUrl:"Inntastingsverdien er ikke en korrekt URL",badreCaptcha:"Vennligst bekreft at du ikke er en robot",errorTitle:"Innsending av skjemaet feilet!",groupCheckedEnd:" ting",groupCheckedRangeStart:"Vennligst velg mellom ",groupCheckedTooFewStart:"Vennligst velg minst ",groupCheckedTooManyStart:"Vennligst velg maksimum ",imageRatioNotAccepted:"Bildestørrelse ikke akseptert",imageTooSmall:"bildet er for lite",imageTooTall:"bildet kan ikke være høyere enn",imageTooWide:"bildet kan ikke være bredere enn",lengthBadEnd:"tegn",lengthBadStart:"Inntastingsverdien må være mellom ",lengthTooLongStart:"Inntastingsverdien er lenger enn ",lengthTooShortStart:"Inntastingsverdien er kortere enn ",max:"maks",min:"min",notConfirmed:"Inntastingsverdier kunne ikke bekreftes",requiredField:"Dette er et obligatorisk felt",requiredFields:"Du har ikke besvart alle obligatoriske felt",wrongFileDim:"Ukorrekte bildedimensjoner,",wrongFileSize:"Bildet du prøver å laste opp er for stort (max %s)",wrongFileType:"Kun filer av type %s er tillatt"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/pl.js b/form-validator/lang/pl.js
new file mode 100644
index 0000000..f0af0e1
--- /dev/null
+++ b/form-validator/lang/pl.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/pl"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Złożenie formularza nie powiodło się!",requiredField:"To pole jest wymagane",requiredfields:"Nie wszystkie wymagane pola zostały wypełnione",badTime:"Wprowadzono niepoprawny czas",badEmail:"Wprowadzono niepoprawny adres e-mail",badTelephone:"Wprowadzono niepoprawny numeru telefonu",badSecurityAnswer:"Nieprawidłowa odpowiedź na pytanie bezpieczeństwa",badDate:"Niepoprawna data",lengthBadStart:"Wprowadzona wartość musi być pomiędzy ",lengthBadEnd:" znaków",lengthTooLongStart:"Wprowadzona wartość jest większa niż ",lengthTooShortStart:"Wprowadzona wartość jest mniejsza niż ",notConfirmed:"Wprowadzone wartości nie zostały potwierdzone",badDomain:"Nieprawidłowa wartość domeny",badUrl:"Wprowadzono nieprawidłowy adres URL",badCustomVal:"Wprowadzona wartość jest niepoprawna",andSpaces:" i odstępy",badInt:"Wprowadzono nieprawidłowy numer",badSecurityNumber:"Wprowadzono niepoprawny numer ubezpieczenia społecznego",badUKVatAnswer:"Wprowadzono niepoprawny brytyjski numer VAT",badUKNin:"Wprowadzono niepoprawny brytyjski numer NIP",badUKUtr:"Wprowadzono niepoprawny brytyjski numer podatnika",badStrength:"Twoje hasło nie jest wystarczająco mocne",badNumberOfSelectedOptionsStart:"Musisz wybrać przynajmniej ",badNumberOfSelectedOptionsEnd:" odpowiedzi",badAlphaNumeric:"Wprowadzona wartość może zawierać tylko znaki alfanumeryczne ",badAlphaNumericExtra:" i ",wrongFileSize:"Wysyłany plik jest zbyt duży (max %s)",wrongFileType:"Dozwolone są tylko pliki typu %s",groupCheckedRangeStart:"Proszę wybrać pomiędzy ",groupCheckedTooFewStart:"Proszę wybrać przynajmniej ",groupCheckedTooManyStart:"Proszę wybrać maksymalnie ",groupCheckedEnd:" element(ów)",badCreditCard:"Podany numer karty kredytowej jest nieprawidłowy",badCVV:"Podany numer CVV jest nieprawidłowy",wrongFileDim:"Nieprawidłowe wymiary obrazu,",imageTooTall:"obraz nie może być wyższa niż",imageTooWide:"obraz nie może być szerszy niż",imageTooSmall:"obraz jest zbyt mały",min:"min",max:"max",imageRatioNotAccepted:"Proporcje obrazu są niepoprawne",badBrazilTelephoneAnswer:"Wprowadzono niepoprawny numer telefonu",badBrazilCEPAnswer:"Wprowadzono niepoprawny CEP",badBrazilCPFAnswer:"Wprowadzono niepoprawny CPF",badPlPesel:"Wprowadzono niepoprawny numer PESEL",badPlNip:"Wprowadzono niepoprawny numer NIP",badPlRegon:"Wprowadzono niepoprawny numer REGON",badreCaptcha:"Potwierdź że nie jesteś botem!"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/pt.js b/form-validator/lang/pt.js
new file mode 100644
index 0000000..089ab14
--- /dev/null
+++ b/form-validator/lang/pt.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/pt"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"O formulário não pode ser enviado!",requiredField:"Campo de preenchimento obrigatório",requiredFields:"Você ainda não preencheu todos os campos obrigatórios",badTime:"A hora digitada não é válida",badEmail:"O e-mail digitado não é válido",badTelephone:"O telefone digitado não é válido",badSecurityAnswer:"A pergunta de segurança não foi respondida corretamente",badDate:"A data digitada não é válida",lengthBadStart:"Sua resposta deve incluir entre ",lengthBadEnd:" caracteres",lengthTooLongStart:"Sua resposta tem mais que ",lengthTooShortStart:"Sua resposta tem menos que",notConfirmed:"As informações digitadas não puderam ser confirmadas",badDomain:"O domínio digitado não é válido",badUrl:"A URL digitada não é válida",badCustomVal:"Os dados digitados não são válidos",andSpaces:" e espaços",badInt:"O número digitado não é válido",badSecurityNumber:"O número de seguro social digitado não é válido",badUKVatAnswer:"O número do VAT digitado não é válido para o Reino Unido",badStrength:"Senha muito fraca",badNumberOfSelectedOptionsStart:"Selecione pelo menos",badNumberOfSelectedOptionsEnd:" alternativa(s)",badAlphaNumeric:"Use somente caracteres alfanuméricos (letras a-z e números)",badAlphaNumericExtra:" e",wrongFileSize:"O arquivo selecionado é maior que o tamanho máximo permitido (%s)",wrongFileType:"Somente arquivos %s são permitidos",groupCheckedRangeStart:"Por favor, escolha entre ",groupCheckedTooFewStart:"Por favor, escolha pelo menos ",groupCheckedTooManyStart:"Por favor, escolhe no máximo ",groupCheckedEnd:" alternativa(s)",badCreditCard:"O número de cartão de crédito digitado não é válido",badCVV:"O código de segurança do cartão de crédito não é válido",wrongFileDim:"As dimensões da imagem não são válidas",imageTooTall:"a imagem não pode ser mais alta que ",imageTooWide:"a imagem não pode ser mais larga que ",imageTooSmall:"a imagem é muito pequena",min:"min",max:"max",imageRatioNotAccepted:"A proporção da imagem (largura x altura) não é válida",badBrazilTelephoneAnswer:"O número de telefone digitado é inválido",badBrazilCEPAnswer:"O CEP digitado é inválido",badBrazilCPFAnswer:"O CPF digitado é inválido"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/ro.js b/form-validator/lang/ro.js
new file mode 100644
index 0000000..b413e2e
--- /dev/null
+++ b/form-validator/lang/ro.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/ro"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Nu sa reusit lansarea formularului!",requiredField:"Acest câmp este obligatoriu",requiredfields:"Nu toate câmpurile obligatorii au fost completate",badTime:"Timpul introdus este incorect",badEmail:"Adresa de e-mail este incorectă",badTelephone:"Numărul de telefon este incorect",badSecurityAnswer:"Răspuns incorect la întrebarea de siguran?ă",badDate:"Dară incorectă",lengthBadStart:"Valoarea introdusă trebuie să fie interval ",lengthBadEnd:" caractere",lengthTooLongStart:"Valoarea introdusă este mai mare decât ",lengthTooShortStart:"Valoarea introdusă este mai mică decât ",notConfirmed:"Valorile introduse nu au fost confirmate",badDomain:"Domeniul este incorect",badUrl:"Adresa URL este incorectă",badCustomVal:"Valoarea introdusă este incorectă",andSpaces:" şi spaţierea",badInt:"Numărul introdus este incorect",badSecurityNumber:"Numărul de asigurare introdus este incorect",badUKVatAnswer:"Numărul CIF introdus este incorect",badStrength:"Parola Dvs nu este suficient de sigură",badNumberOfSelectedOptionsStart:"Trebuie să alegi măcar ",badNumberOfSelectedOptionsEnd:" răspunsuri",badAlphaNumeric:"Valoarea introdusă trebuie să con însă doar caractere alfanumerice ",badAlphaNumericExtra:" și ",wrongFileSize:"Fisierul trimis este prea mare (max %s)",wrongFileType:"Se acceptă doar fisiere tip %s",groupCheckedRangeStart:"Te rog alege între ",groupCheckedTooFewStart:"Te rog alege măcar ",groupCheckedTooManyStart:"Te rog alege maxim ",groupCheckedEnd:" elemnt(e)",badCreditCard:"Numărul de card introdus este incorect",badCVV:"Numărul CVV introdus este incorect",wrongFileDim:"Dimensiunea imaginii este incorectă,",imageTooTall:"imaginea nu poate fi mai înaltă decât",imageTooWide:"imaginea nu poate fi mai lată decât",imageTooSmall:"imaginea este prea mică",min:"min",max:"max",imageRatioNotAccepted:"Proportiile imaginii sunt incorecte",badBrazilTelephoneAnswer:"Numărul de telefon introdus este incorect.",badBrazilCEPAnswer:"CEP incorect",badBrazilCPFAnswer:"CPF incorect"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/ru.js b/form-validator/lang/ru.js
new file mode 100644
index 0000000..63f018c
--- /dev/null
+++ b/form-validator/lang/ru.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/ru"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Ошибка отправки формы!",requiredField:"Это обязательное поле",requiredFields:"Вы задали не все обязательные поля",badTime:"Вы задали некорректное время",badEmail:"Вы задали некорректный e-mail",badTelephone:"Вы задали некорректный номер телефона",badSecurityAnswer:"Вы задали некорректный ответ на секретный вопрос",badDate:"Вы задали некорректную дату",lengthBadStart:"Значение должно быть в диапазоне",lengthBadEnd:" символов",lengthTooLongStart:"Значение длинее, чем ",lengthTooShortStart:"Значение меньше, чем ",notConfirmed:"Введённые значения не могут быть подтверждены",badDomain:"Некорректное значение домена",badUrl:"Некорретный URL",badCustomVal:"Введённое значение неверно",andSpaces:" и пробелы ",badInt:"Значение - не число",badSecurityNumber:"Введённый защитный номер - неправильный",badUKVatAnswer:"Некорректный UK VAT номер",badStrength:"Пароль не достаточно надёжен",badNumberOfSelectedOptionsStart:"Вы должны выбрать как минимум ",badNumberOfSelectedOptionsEnd:" ответов",badAlphaNumeric:"Значение должно содержать только числа и буквы ",badAlphaNumericExtra:" и ",wrongFileSize:"Загружаемый файл слишком велик (максимальный размер %s)",wrongFileType:"Принимаются файлы следующих типов %s",groupCheckedRangeStart:"Выберите между ",groupCheckedTooFewStart:"Выберите как минимум ",groupCheckedTooManyStart:"Выберите максимум из ",groupCheckedEnd:" элемент(ов)",badCreditCard:"Номер кредитной карты некорректен",badCVV:"CVV номер некорректно",wrongFileDim:"Неверные размеры графического файла,",imageTooTall:"изображение не может быть уже чем",imageTooWide:"изображение не может быть шире чем",imageTooSmall:"изображение слишком мало",min:"минимум",max:"максимум",imageRatioNotAccepted:"Изображение с таким соотношением сторон не принимается",badBrazilTelephoneAnswer:"Введённый номер телефона неправильный",badBrazilCEPAnswer:"CEP неправильный",badBrazilCPFAnswer:"CPF неправильный"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/sv.js b/form-validator/lang/sv.js
new file mode 100644
index 0000000..7f574af
--- /dev/null
+++ b/form-validator/lang/sv.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/sv"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Formuläret kunde inte skickas!",requiredField:"Detta är ett obligtoriskt fält",requiredFields:"Du har inte besvarat alla frågor",badTime:"Du har inte angett en korrekt tidpunkt",badEmail:"Du har inte angett en korrekt e-postadress",badTelephone:"Du har inte angett ett korrekt telefonnummer",badSecurityAnswer:"Du har angett fel svar på säkerhetsfrågan",badDate:"Du har anget ett felaktigt datum",lengthBadStart:"Ditt svar måste innehålla mellan ",lengthBadEnd:" tecken",lengthTooLongStart:"Du har angett ett svar som är längre än ",lengthTooShortStart:"Du har angett ett svar som är kortare än ",notConfirmed:"Svaren kunde inte bekräfta varandra",badDomain:"Du har angett en inkorrekt domän",badUrl:"Du har inte angett en korrekt webbadress",badCustomVal:"Du har anget ett inkorrekt svar",andSpaces:" och mellanslag ",badInt:"Du har inte angett en siffra",badSecurityNumber:"Du har angett ett felaktigt personnummer",badUKVatAnswer:"Du har inte angett ett brittiskt moms-nummer",badStrength:"Du har angett ett lösenord som inte är nog säkert",badNumberOfSelectedOptionsStart:"Du måste åtminstone välja ",badNumberOfSelectedOptionsEnd:" svarsalternativ",badAlphaNumeric:"Du kan endast svara med alfanumersika tecken (a-z och siffror)",badAlphaNumericExtra:" och ",wrongFileSize:"Filen du försöker ladda upp är för stor (max %s)",wrongFileType:"Endast filer av typen %s är tillåtna",groupCheckedRangeStart:"Välj mellan ",groupCheckedTooFewStart:"Då måste göra minst ",groupCheckedTooManyStart:"Du får inte göra fler än ",groupCheckedEnd:" val",badCreditCard:"Du har angett ett felaktigt kreditkortsnummer",badCVV:"Du har angett ett felaktigt CVV-nummer",wrongFileDim:"Otillåten bildstorlek,",imageTooTall:"bilden får inte vara högre än",imageTooWide:"bilden får inte vara bredare än",imageTooSmall:"bilden är för liten",genericBadInputValue:"The input value can be accepted",min:"minst",max:"max",imageRatioNotAccepted:"Bildens dimensioner (förhållandet mellan höjd och längd) kan inte accepteras"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/tr.js b/form-validator/lang/tr.js
new file mode 100644
index 0000000..4fc53d3
--- /dev/null
+++ b/form-validator/lang/tr.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/tr"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Form gönderilemedi!",requiredField:"Boş bırakılamaz",requiredFields:"Gerekli tüm alanları cevaplamadınız",badTime:"Geçersiz zaman girdiniz",badEmail:"Geçersiz e-posta adresi girdiniz",badTelephone:"Geçersiz telefon numarası girdiniz",badSecurityAnswer:"Güvenlik sorusuna doğru cevap vermediniz",badDate:"Geçersiz tarih girdiniz",lengthBadStart:"Girilen değer ",lengthBadEnd:" karakter olmalıdır",lengthTooLongStart:"Girilen değer en fazla ",lengthTooShortStart:"Girilen değer en az ",notConfirmed:"Girilen değerler uyuşmuyor",badDomain:"Geçersiz alan adı girdiniz",badUrl:"Geçersiz bağlantı girdiniz",badCustomVal:"Geçersiz değer girdiniz",andSpaces:" ve boşluk ",badInt:"Girilen değer sayı olamlıdır",badSecurityNumber:"Geçersiz güvenlik kodu girdiniz",badUKVatAnswer:"Geçersiz İngiltere KDV numarası girdiniz",badUKNin:"Geçersiz İngiltere NIN numarası girdiniz",badUKUtr:"Geçersiz İngiltere UTR numarası girdiniz",badStrength:"Şifreniz yeterince güçlü değil",badNumberOfSelectedOptionsStart:"En az ",badNumberOfSelectedOptionsEnd:" cevap seçmeniz gerekiyor",badAlphaNumeric:"Kabul edilen değer sadece alfanümerik karakterler ",badAlphaNumericExtra:" ve ",wrongFileSize:"Yüklemeye çalıştığınız dosya (en fazla %s) çok büyük",wrongFileType:"Yalnızca %s türündeki dosyaları yükleyebilirsiniz",groupCheckedRangeStart:"Lütfen ",groupCheckedTooFewStart:"Lütfen en az ",groupCheckedTooManyStart:"Lütfen en fazla ",groupCheckedEnd:" adet seçiniz",badCreditCard:"Geçersiz kredi kartı numarası girdiniz",badCVV:"Geçersiz CVV numarası girdiniz",wrongFileDim:"Hatalı resim yüklediniz çünkü",imageTooTall:"resim daha uzun olamaz",imageTooWide:"resim daha geniş olamaz",imageTooSmall:"görüntü çok küçük",min:"min",max:"max",imageRatioNotAccepted:"Kabul edilmeye görüntü oranı",badBrazilTelephoneAnswer:"Geçersiz telefon numarası girdiniz",badBrazilCEPAnswer:"Geçersiz Brezilya posta kodu girdiniz",badBrazilCPFAnswer:"Geçersiz Brezilya mükellef kayıt kimliği girdiniz",badPlPesel:"Geçersiz Polonya kişisel kimlik numarası girdiniz",badPlNip:"Geçersiz DKV girdiniz",badPlRegon:"Geçersiz Polonya ticari kimlik numarası girdiniz",badreCaptcha:"Lütfen bot olmadığınızı doğrulayın",passwordComplexityStart:"Şifreniz en az ",passwordComplexitySeparator:", ",passwordComplexityUppercaseInfo:" büyük harf",passwordComplexityLowercaseInfo:" küçük harf",passwordComplexitySpecialCharsInfo:" özel karakter",passwordComplexityNumericCharsInfo:" sayısal karakter",passwordComplexityEnd:" içermelidir"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/lang/vi.js b/form-validator/lang/vi.js
new file mode 100644
index 0000000..02f19f0
--- /dev/null
+++ b/form-validator/lang/vi.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("lang/vi"),a(b).bind("validatorsLoaded",function(){a.formUtils.LANG={errorTitle:"Có lỗi trong qua trình gửi dữ liệu!",requiredFields:"Bạn chưa nhập đủ các thông tin bắt buộc",badTime:"Thời gian chưa chính xác",badEmail:"Địa chỉ email chưa chính xác",badTelephone:"Số điện thoại chưa chính xác",badSecurityAnswer:"Câu hỏi bảo mật chưa chính xác",badDate:"Ngày tháng chưa chính xác",lengthBadStart:"Yêu cầu nhập từ ",lengthBadEnd:" ký tự",lengthTooLongStart:"Dữ liệu quá dài, yêu cầu ít hơn ",lengthTooShortStart:"Dữ liệu quá ngắn, yêu cầu nhiều hơn ",notConfirmed:"Dữ liệu không được xác nhận",badDomain:"Tên miền chưa chính xác",badUrl:"Địa chỉ website chưa chính xác",badCustomVal:"Dữ liệu chưa chính xác",andSpaces:" và các khoảng cách ",badInt:"Yêu cầu chỉ nhập số",badSecurityNumber:"Mã bảo mật chưa chính xác",badUKVatAnswer:"UK VAT chưa chính xác",badStrength:"Mật khẩu chưa đủ độ phức tạp",badNumberOfSelectedOptionsStart:"Bạn cần tích chọn ít nhất ",badNumberOfSelectedOptionsEnd:" lựa chọn",badAlphaNumeric:"Yêu cầu chỉ nhập chữ hoặc số ",badAlphaNumericExtra:" và ",wrongFileSize:"File của bạn quá lớn (chỉ chấp nhận file không quá %s)",wrongFileType:"Chỉ cho phép các định dạng file sau: %s",groupCheckedRangeStart:"Vui lòng tích chọn từ ",groupCheckedTooFewStart:"Vui lòng tích chọn ít nhất ",groupCheckedTooManyStart:"Vui lòng tích chọn nhiều nhất ",groupCheckedEnd:" lựa chọn",badCreditCard:"Mã thẻ chưa chính xác",badCVV:"Mã bảo mật (CVV) chưa chính xác",wrongFileDim:"Kích thước ảnh chưa chính xác,",imageTooTall:"Chiều cao ảnh không được vượt quá",imageTooWide:"Chiều rộng ảnh không được vượt quá",imageTooSmall:"Kích thước ảnh quá nhỏ",min:"nhỏ nhất",max:"lớn nhất",imageRatioNotAccepted:"Tỷ lệ ảnh chưa chính xác"}})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/location.js b/form-validator/location.js
new file mode 100644
index 0000000..0598731
--- /dev/null
+++ b/form-validator/location.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){a.formUtils.registerLoadedModule("location"),a.formUtils.addValidator({name:"country",validatorFunction:function(b){return a.inArray(b.toLowerCase(),this.countries)>-1},countries:["afghanistan","albania","algeria","american samoa","andorra","angola","anguilla","antarctica","antigua and barbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","bonaire","bosnia and herzegovina","botswana","bouvet island","brazil","british indian ocean territory","brunei darussalam","bulgaria","burkina faso","burundi","cabo verde","cambodia","cameroon","canada","cayman islands","central african republic","chad","chile","china","christmas island","cocos islands","colombia","comoros","democratic republic of the congo","congo","cook islands","costa rica","côte d'ivoire","croatia","cuba","curaçao","cyprus","czechia","denmark","djibouti","dominica","dominican republic","ecuador","egypt","el salvador","equatorial guinea","eritrea","estonia","ethiopia","falkland islands","faroe islands","fiji","finland","france","french guiana","french polynesia","french southern territories","gabon","gambia","georgia","germany","ghana","gibraltar","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guinea-bissau","guyana","haiti","heard island and mcdonald islands","honduras","hong kong","hungary","iceland","india","indonesia","iran","iraq","ireland","isle of man","israel","italy","jamaica","japan","jersey","jordan","kazakhstan","kenya","kiribati","north korea","south korea","kuwait","kyrgyzstan","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macao","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshall islands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","new caledonia","new zealand","nicaragua","niger","nigeria","niue","norfolk island","northern mariana islands","norway","oman","pakistan","palau","palestine","panama","papua new guinea","paraguay","peru","philippines","pitcairn","poland","portugal","puerto rico","qatar","réunion","romania","russia","rwanda","saint barthélemy","saint helena","ascension and tristan da cunha","Ascension and tristan da cunha","saint kitts and nevis","saint lucia","saint martin","saint pierre and miquelon","saint vincent and the grenadines","samoa","san marino","sao tome and principe","saudi arabia","senegal","serbia","seychelles","sierra leone","singapore","sint maarten","slovakia","slovenia","solomon islands","somalia","south africa","south georgia and the south sandwich islands","south sudan","spain","sri lanka","sudan","suriname","svalbard and jan mayen","swaziland","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timor-leste","togo","tokelau","tonga","trinidad and tobago","tunisia","turkey","turkmenistan","turks and caicos islands","tuvalu","uganda","ukraine","united arab emirates","united kingdom","united states minor outlying islands","united states","uruguay","uzbekistan","vanuatu","venezuela","vatican city","vietnam","virgin islands (british)","virgin islands (us)","wallis and futuna","western sahara","yemen","zambia","zimbabwe","åland islands"],errorMessage:"",errorMessageKey:"badCustomVal"}),a.formUtils.addValidator({name:"federatestate",validatorFunction:function(b){return a.inArray(b.toLowerCase(),this.states)>-1},states:["alabama","alaska","arizona","arkansas","california","colorado","connecticut","delaware","florida","georgia","hawaii","idaho","illinois","indiana","iowa","kansas","kentucky","louisiana","maine","maryland","district of columbia","massachusetts","michigan","minnesota","mississippi","missouri","montana","nebraska","nevada","new hampshire","new jersey","new mexico","new york","north carolina","north dakota","ohio","oklahoma","oregon","pennsylvania","rhode island","south carolina","south dakota","tennessee","texas","utah","vermont","virginia","washington","west virginia","wisconsin","wyoming"],errorMessage:"",errorMessageKey:"badCustomVal"}),a.formUtils.addValidator({name:"longlat",validatorFunction:function(a){var b=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;return b.test(a)},errorMessage:"",errorMessageKey:"badCustomVal"});var b=function(b){var c=[];return a.each(b,function(a,b){c.push(b.substr(0,1).toUpperCase()+b.substr(1,b.length))}),c.sort(),c};a.fn.suggestCountry=function(c){var d=b(a.formUtils.validators.validate_country.countries),e=a.inArray(d,"Usa");return d[e]="USA",a.formUtils.suggest(this,d,c)},a.fn.suggestState=function(c){var d=b(a.formUtils.validators.validate_federatestate.states);return a.formUtils.suggest(this,d,c)}}(a)});
\ No newline at end of file
diff --git a/form-validator/logic.js b/form-validator/logic.js
new file mode 100644
index 0000000..3656f0c
--- /dev/null
+++ b/form-validator/logic.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){"use strict";a.formUtils.registerLoadedModule("logic");var b=function(b,c){var d=function(){var c=a(this),d=c.valAttr("depends-on")||c.valAttr("if-checked");if(d){var f=a.formUtils.getValue('[name="'+d+'"]',b),g=a.split(c.valAttr("depends-on-value"),!1,!1),h=!f||g.length&&!e(f,g);h&&c.valAttr("skipped","1")}},e=function(b,c){var d=!1,e=b.toLocaleLowerCase();return a.each(c,function(a,b){if(e===b.toLocaleLowerCase())return d=!0,!1}),d},f=function(){var b=a(this),d=a.formUtils.getValue(b),e=b.valAttr("depending-value");a.each(this.dependingInputs,function(b,f){var g=!!a.formUtils.getValue(f),h=!d||e&&e!==d;h&&!g&&a.formUtils.dialogs.removeInputStylingAndMessage(f,c)})};b.find("[data-validation-depends-on]").off("beforeValidation",d).on("beforeValidation",d).each(function(){var c=a(this);b.find('[name="'+c.valAttr("depends-on")+'"]').each(function(){a(this).off("change",f).on("change",f).valAttr("depending-value",c.valAttr("depends-on-value")),this.dependingInputs=this.dependingInputs||[],this.dependingInputs.push(c)})})},c=function(b,c){var d=function(){var c=a(this),d=c.valAttr("optional-if-answered"),e=!1,f=!!a.formUtils.getValue(c);f||(a.each(a.split(d),function(c,d){var f=b.find('[name="'+d+'"]');if(e=!!a.formUtils.getValue(f))return!1}),e&&c.valAttr("skipped",1))},e=function(){var d=a(this),e=d.valAttr("optional-if-answered");a.each(a.split(e),function(d,e){var f=b.find('[name="'+e+'"]'),g=!!a.formUtils.getValue(f);g||a.formUtils.dialogs.removeInputStylingAndMessage(f,c)})};b.find("[data-validation-optional-if-answered]").off("beforeValidation",d).on("beforeValidation",d).each(function(){a(this).off("change",e).on("change",e)})};a.formUtils.$win.bind("validatorsLoaded formValidationSetup",function(d,e,f){e||(e=a("form")),b(e,f),c(e,f)})}(a)});
\ No newline at end of file
diff --git a/form-validator/poland.js b/form-validator/poland.js
new file mode 100644
index 0000000..e66f470
--- /dev/null
+++ b/form-validator/poland.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){a.formUtils.registerLoadedModule("poland"),a.formUtils.addValidator({name:"plpesel",validatorFunction:function(a){var b=[1,3,7,9,1,3,7,9,1,3],c=0,d=0;if(/\d{11}/.test(a)&&11===a.length){for(var e=0;e<10;e++)c+=a[e]*b[e];if(c%10!==0&&(d=10-c%10),parseInt(a.charAt(10))===d)return!0}return!1},errorMessage:"",errorMessageKey:"badPlPesel"}),a.formUtils.addValidator({name:"plnip",validatorFunction:function(a){var b=[6,5,7,2,3,4,5,6,7],c=0;if(/\d{10}/.test(a)&&10===a.length){for(var d=0;d<9;d++)c+=a[d]*b[d];if(parseInt(a.charAt(9))===c%11)return!0}return!1},errorMessage:"",errorMessageKey:"badPlNip"}),a.formUtils.addValidator({name:"plregon",validatorFunction:function(a){var b=[8,9,2,3,4,5,6,7],c=[2,4,8,5,0,9,7,3,6,1,2,4,8],d=0,e=0;if(/(\d{14}|\d{9})/.test(a)&&(9===a.length||14===a.length)){for(var f=0;f<8;f++)d+=a[f]*b[f];if(d%11!==10&&(e=d%11),parseInt(a.charAt(8))===e){if(14!==a.length)return!0;for(d=0,f=0;f<13;f++)d+=a[f]*c[f];if(d%11!==10&&(e=d%11),parseInt(a.charAt(13))===e)return!0}}return!1},errorMessage:"",errorMessageKey:"badPlRegon"})}(a)});
\ No newline at end of file
diff --git a/form-validator/sanitize.js b/form-validator/sanitize.js
new file mode 100644
index 0000000..3bfc959
--- /dev/null
+++ b/form-validator/sanitize.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.addSanitizer({name:"upper",sanitizerFunction:function(a){return a.toLocaleUpperCase()}}),a.formUtils.addSanitizer({name:"lower",sanitizerFunction:function(a){return a.toLocaleLowerCase()}}),a.formUtils.addSanitizer({name:"trim",sanitizerFunction:function(b){return a.trim(b)}}),a.formUtils.addSanitizer({name:"trimLeft",sanitizerFunction:function(a){return a.replace(/^\s+/,"")}}),a.formUtils.addSanitizer({name:"trimRight",sanitizerFunction:function(a){return a.replace(/\s+$/,"")}}),a.formUtils.addSanitizer({name:"capitalize",sanitizerFunction:function(b){var c=b.split(" ");return a.each(c,function(a,b){c[a]=b.substr(0,1).toUpperCase()+b.substr(1,b.length)}),c.join(" ")}}),a.formUtils.addSanitizer({name:"insert",sanitizerFunction:function(a,b,c){var d=(b.attr("data-sanitize-insert-"+c)||"").replace(/\[SPACE\]/g," ");return"left"===c&&0===a.indexOf(d)||"right"===c&&a.substring(a.length-d.length)===d?a:("left"===c?d:"")+a+("right"===c?d:"")}}),a.formUtils.addSanitizer({name:"insertRight",sanitizerFunction:function(b,c){return a.formUtils.sanitizers.insert.sanitizerFunction(b,c,"right")}}),a.formUtils.addSanitizer({name:"insertLeft",sanitizerFunction:function(b,c){return a.formUtils.sanitizers.insert.sanitizerFunction(b,c,"left")}}),a.formUtils.addSanitizer({name:"numberFormat",sanitizerFunction:function(a,c){if(0===a.length)return a;if(!("numeral"in b))throw new ReferenceError('Using sanitation function "numberFormat" requires that you include numeral.js (http://numeraljs.com/)');return a=numeral().unformat(a),a=numeral(a).format(c.attr("data-sanitize-number-format"))}}),a.formUtils.addSanitizer({name:"strip",sanitizerFunction:function(b,c){var d=c.attr("data-sanitize-strip")||"";return a.split(d,function(c){var d=new RegExp(a.isNumeric(c)?c:"\\"+c,"g");b=b.replace(d,"")}),b}}),a.formUtils.addSanitizer({name:"escape",sanitizerFunction:function(b,c){var d=c.valAttr("is-escaped"),e={"<":"__%AMP%__lt;",">":"__%AMP%__gt;","&":"__%AMP%__amp;","'":"__%AMP%__#8217;",'"':"__%AMP%__quot;"};return"yes"===d?b:(c.valAttr("is-escaped","yes"),c.one("keyup",function(a){9!==a.keyCode&&c.valAttr("is-escaped","no")}),a.each(e,function(a,c){b=b.replace(new RegExp(a,"g"),c)}),b.replace(new RegExp("__%AMP%__","g"),"&"))}}),a.formUtils.registerLoadedModule("sanitize");var c='[type="button"], [type="submit"], [type="radio"], [type="checkbox"], [type="reset"], [type="search"]',d=function(b,d,e){d||(d=a("form")),d.each||(d=a(d));var f=function(){var b=a(this),c=b.val();a.split(b.attr("data-sanitize"),function(d){var f=a.formUtils.sanitizers[d];if(!f)throw new Error('Use of unknown sanitize command "'+d+'"');c=f.sanitizerFunction(c,b,e)}),b.val(c).trigger("keyup.validation")};d.each(function(){var b=a(this);e.sanitizeAll&&b.find("input,textarea").not(c).each(function(){var b=a(this),c=b.attr("data-sanitize")||"";b.attr("data-sanitize",e.sanitizeAll+" "+c)}),b.find("[data-sanitize]").unbind("blur.sanitation",f).bind("blur.sanitation",f),a(function(){b.trigger("blur.sanitation")})})};a(b).on("validatorsLoaded formValidationSetup",d),a.formUtils.setupSanitation=d}(a,window)});
\ No newline at end of file
diff --git a/form-validator/security.js b/form-validator/security.js
new file mode 100644
index 0000000..c1fd315
--- /dev/null
+++ b/form-validator/security.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b){"use strict";a.formUtils.registerLoadedModule("security"),a.formUtils.addValidator({name:"spamcheck",validatorFunction:function(a,b){var c=b.valAttr("captcha");return c===a},errorMessage:"",errorMessageKey:"badSecurityAnswer"}),a.formUtils.addValidator({name:"confirmation",validatorFunction:function(b,c,d,e,f){var g,h=c.valAttr("confirm")||c.attr("name")+"_confirmation",i=f.find('[name="'+h+'"]');if(!i.length)return a.formUtils.warn('Password confirmation validator: could not find an input with name "'+h+'"',!0),!1;if(g=i.val(),d.validateOnBlur&&!i[0].hasValidationCallback){i[0].hasValidationCallback=!0;var j=function(){c.validate()};i.on("keyup",j),f.one("formValidationSetup",function(){i[0].hasValidationCallback=!1,i.off("keyup",j)})}return b===g},errorMessage:"",errorMessageKey:"notConfirmed"});var c={amex:[15,15],diners_club:[14,14],cjb:[16,16],laser:[16,19],visa:[16,16],mastercard:[16,16],maestro:[12,19],discover:[16,16]},d=!1,e=!1;a.formUtils.addValidator({name:"creditcard",validatorFunction:function(b,f){var g=a.split(f.valAttr("allowing")||"");if(e=a.inArray("amex",g)>-1,d=e&&1===g.length,g.length>0){var h=!1;if(a.each(g,function(d,e){if(e in c){if(b.length>=c[e][0]&&b.length<=c[e][1])return h=!0,!1}else a.formUtils.warn('Use of unknown credit card "'+e+'"',!0)}),!h)return!1}if(""!==b.replace(new RegExp("[0-9]","g"),""))return!1;var i=0;return a.each(b.split("").reverse(),function(a,b){b=parseInt(b,10),a%2===0?i+=b:(b*=2,i+=b<10?b:b-9)}),i%10===0},errorMessage:"",errorMessageKey:"badCreditCard"}),a.formUtils.addValidator({name:"cvv",validatorFunction:function(a){return""===a.replace(/[0-9]/g,"")&&(a+="",d?4===a.length:e?3===a.length||4===a.length:3===a.length)},errorMessage:"",errorMessageKey:"badCVV"}),a.formUtils.addValidator({name:"strength",validatorFunction:function(b,c){var d=c.valAttr("strength")||2;return d&&d>3&&(d=3),a.formUtils.validators.validate_strength.calculatePasswordStrength(b)>=d},errorMessage:"",errorMessageKey:"badStrength",calculatePasswordStrength:function(a){if(a.length<4)return 0;var b=0,c=function(a,b){for(var c="",d=0;d100&&(b=100),b<20?0:b<40?1:b<=60?2:3},strengthDisplay:function(b,c){var d={fontSize:"12pt",padding:"4px",bad:"Very bad",weak:"Weak",good:"Good",strong:"Strong"};c&&a.extend(d,c),b.bind("keyup",function(){var b=a(this).val(),c="undefined"==typeof d.parent?a(this).parent():a(d.parent),e=c.find(".strength-meter"),f=a.formUtils.validators.validate_strength.calculatePasswordStrength(b),g={background:"pink",color:"#FF0000",fontWeight:"bold",border:"red solid 1px",borderWidth:"0px 0px 4px",display:"inline-block",fontSize:d.fontSize,padding:d.padding},h=d.bad;0===e.length&&(e=a(""),e.addClass("strength-meter").appendTo(c)),b?e.show():e.hide(),1===f?h=d.weak:2===f?(g.background="lightyellow",g.borderColor="yellow",g.color="goldenrod",h=d.good):f>=3&&(g.background="lightgreen",g.borderColor="darkgreen",g.color="darkgreen",h=d.strong),e.css(g).text(h)})}});var f=function(b,c,d,e,f){var g=c.valAttr("req-params")||c.data("validation-req-params")||{},h=c.valAttr("param-name")||c.attr("name"),i=function(a,b){b(a)};if(!h)throw new Error("Missing input name used for http requests made by server validator");g||(g={}),"string"==typeof g&&(g=a.parseJSON(g)),g[h]=d,a.ajax({url:b,type:"POST",cache:!1,data:g,dataType:"json",error:function(a){return i({valid:!1,message:"Connection failed with status: "+a.statusText},f),!1},success:function(a){i(a,f)}})};a.formUtils.addAsyncValidator({name:"server",validatorFunction:function(a,b,c,d,e,g){var h=c.valAttr("url")||d.backendUrl||document.location.href;g.addClass("validating-server-side"),c.addClass("validating-server-side"),f(h,c,b,d,function(b){g.removeClass("validating-server-side"),c.removeClass("validating-server-side"),b.message&&c.attr(d.validationErrorMsgAttribute,b.message),a(b.valid)})},errorMessage:"",errorMessageKey:"badBackend"}),a.formUtils.addValidator({name:"letternumeric",validatorFunction:function(b,c,d,e){var f="^([a-zA-Z0-9ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",g="]+)$",h=c.valAttr("allowing"),i="";if(h){i=f+h+g;var j=h.replace(/\\/g,"");j.indexOf(" ")>-1&&(j=j.replace(" ",""),j+=e.andSpaces||a.formUtils.LANG.andSpaces),this.errorMessage=e.badAlphaNumeric+e.badAlphaNumericExtra+j}else i=f+g,this.errorMessage=e.badAlphaNumeric;return new RegExp(i).test(b)},errorMessage:"",errorMessageKey:"requiredFields"}),a.formUtils.addValidator({name:"complexity",validatorFunction:function(b,c,d,e){var f=c.valAttr("require-uc-letter")||"0",g=c.valAttr("require-lc-letter")||"0",h=c.valAttr("require-special-char")||"0",i=c.valAttr("require-numeral")||"0",j=c.valAttr("require-length")||"0",k={"uc-letter":{pattern:"^(?=(?:.*[A-Z]){"+f+",}).+",numRequired:f,dialogEnd:e.passwordComplexityUppercaseInfo},"lc-letter":{pattern:"^(?=(?:.*[a-z]){"+g+",}).+",numRequired:g,dialogEnd:e.passwordComplexityLowercaseInfo},"special-char":{pattern:"^(?=(?:.*(_|[!\"#$%&'()*+\\\\,-./:;<=>?@[\\]^_`{|}~])){"+h+",}).+",numRequired:h,dialogEnd:e.passwordComplexitySpecialCharsInfo},numeral:{pattern:"^(?=(?:.*\\d){"+i+",}).+",numRequired:i,dialogEnd:e.passwordComplexityNumericCharsInfo},length:{callback:function(a){return a.length>=j},numRequired:j,dialogEnd:e.lengthBadEnd}},l="";return a.each(k,function(a,d){var f=parseInt(d.numRequired,10);if(f){var g=new RegExp(d.pattern),h=!1;h=d.callback?d.callback(b):g.test(b),h?c.trigger("complexityRequirementValidation",[!0,a]):(""===l&&(l=e.passwordComplexityStart),l+=e.passwordComplexitySeparator+f+d.dialogEnd,c.trigger("complexityRequirementValidation",[!1,a]))}}),!l||(this.errorMessage=l+e.passwordComplexityEnd,!1)},errorMessage:"",errorMessageKey:""}),a.formUtils.addValidator({name:"recaptcha",validatorFunction:function(a,b){return""!==grecaptcha.getResponse(b.valAttr("recaptcha-widget-id"))},errorMessage:"",errorMessageKey:"badreCaptcha"}),a.fn.displayPasswordStrength=function(b){return new a.formUtils.validators.validate_strength.strengthDisplay(this,b),this};var g=function(b,c,d){if(c||(c=a("form")),"undefined"!=typeof grecaptcha&&!a.formUtils.hasLoadedGrecaptcha)throw new Error("reCaptcha API can not be loaded by hand, delete reCaptcha API snippet.");if(!a.formUtils.hasLoadedGrecaptcha&&a('[data-validation~="recaptcha"]',c).length){a.formUtils.hasLoadedGrecaptcha=!0;var e="//www.google.com/recaptcha/api.js?onload=reCaptchaLoaded&render=explicit"+(d.lang?"&hl="+d.lang:""),f=document.createElement("script");f.type="text/javascript",f.async=!0,f.defer=!0,f.src=e,document.getElementsByTagName("body")[0].appendChild(f)}};b.reCaptchaLoaded=function(b){b&&"object"==typeof b&&b.length||(b=a("form")),b.each(function(){var b=a(this),c=b.get(0).validationConfig||b.context.validationConfig||!1;c&&a('[data-validation~="recaptcha"]',b).each(function(){var d=a(this),e=document.createElement("DIV"),f=c.reCaptchaSiteKey||d.valAttr("recaptcha-sitekey"),g=c.reCaptchaTheme||d.valAttr("recaptcha-theme")||"light",h=c.reCaptchaSize||d.valAttr("recaptcha-size")||"normal",i=c.reCaptchaType||d.valAttr("recaptcha-type")||"image";if(!f)throw new Error("Google reCaptcha site key is required.");var j=grecaptcha.render(e,{sitekey:f,theme:g,size:h,type:i,callback:function(a){b.find('[data-validation~="recaptcha"]').trigger("validation",a&&""!==a)},"expired-callback":function(){b.find('[data-validation~="recaptcha"]').trigger("validation",!1)}});d.valAttr("recaptcha-widget-id",j).hide().on("beforeValidation",function(a){a.stopImmediatePropagation()}).parent().append(e)})})},a(b).on("validatorsLoaded formValidationSetup",g)}(a,window)});
\ No newline at end of file
diff --git a/form-validator/sepa.js b/form-validator/sepa.js
new file mode 100644
index 0000000..5b60f92
--- /dev/null
+++ b/form-validator/sepa.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){"use strict";a.formUtils.registerLoadedModule("sepa");var b=[["AD",24,"F04F04A12"],["AE",23,"F03F16"],["AL",28,"F08A16"],["AT",20,"F05F11"],["AZ",28,"U04A20"],["BA",20,"F03F03F08F02"],["BE",16,"F03F07F02"],["BG",22,"U04F04F02A08"],["BH",22,"U04A14"],["BR",29,"F08F05F10U01A01"],["CH",21,"F05A12"],["CR",21,"F03F14"],["CY",28,"F03F05A16"],["CZ",24,"F04F06F10"],["DE",22,"F08F10"],["DK",18,"F04F09F01"],["DO",28,"U04F20"],["EE",20,"F02F02F11F01"],["ES",24,"F04F04F01F01F10"],["FI",18,"F06F07F01"],["FO",18,"F04F09F01"],["FR",27,"F05F05A11F02"],["GB",22,"U04F06F08"],["GE",22,"U02F16"],["GI",23,"U04A15"],["GL",18,"F04F09F01"],["GR",27,"F03F04A16"],["GT",28,"A04A20"],["HR",21,"F07F10"],["HU",28,"F03F04F01F15F01"],["IE",22,"U04F06F08"],["IL",23,"F03F03F13"],["IS",26,"F04F02F06F10"],["IT",27,"U01F05F05A12"],["KW",30,"U04A22"],["KZ",20,"F03A13"],["LB",28,"F04A20"],["LC",32,"U04F24"],["LI",21,"F05A12"],["LT",20,"F05F11"],["LU",20,"F03A13"],["LV",21,"U04A13"],["MC",27,"F05F05A11F02"],["MD",24,"U02A18"],["ME",22,"F03F13F02"],["MK",19,"F03A10F02"],["MR",27,"F05F05F11F02"],["MT",31,"U04F05A18"],["MU",30,"U04F02F02F12F03U03"],["NL",18,"U04F10"],["NO",15,"F04F06F01"],["PK",24,"U04A16"],["PL",28,"F08F16"],["PS",29,"U04A21"],["PT",25,"F04F04F11F02"],["RO",24,"U04A16"],["RS",22,"F03F13F02"],["SA",24,"F02A18"],["SE",24,"F03F16F01"],["SI",19,"F05F08F02"],["SK",24,"F04F06F10"],["SM",27,"U01F05F05A12"],["ST",25,"F08F11F02"],["TL",23,"F03F14F02"],["TN",24,"F02F03F13F02"],["TR",26,"F05F01A16"],["VG",24,"U04F16"],["XK",20,"F04F10F02"],["AO",25,"F21"],["BF",27,"F23"],["BI",16,"F12"],["BJ",28,"F24"],["CI",28,"U01F23"],["CM",27,"F23"],["CV",25,"F21"],["DZ",24,"F20"],["IR",26,"F22"],["JO",30,"A04F22"],["MG",27,"F23"],["ML",28,"U01F23"],["MZ",25,"F21"],["QA",29,"U04A21"],["SN",28,"U01F23"],["UA",29,"F25"]],c=function(a){a=a.replace(/\s+/g,""),a=a.substr(4)+a.substr(0,4),a=a.split("").map(function(a){var b=a.charCodeAt(0);return b>="A".charCodeAt(0)&&b<="Z".charCodeAt(0)?b-"A".charCodeAt(0)+10:a}).join("");for(var b,c=a;c.length>2;)b=c.slice(0,9),c=(parseInt(b,10)%97).toString()+c.slice(b.length);return parseInt(c,10)%97===1},d=function(a){a=a.toUpperCase(),a=a.replace(/\s+/g,"");var c=a.slice(0,2),d=0,e="";for(d=0;d12||g<1||g>j[f-1])return!1;c=c.substring(2,c.length);for(var k="",l=0;l-1},errorMessage:"",errorMessageKey:"badCustomVal",counties:["stockholms län","uppsala län","södermanlands län","östergötlands län","jönköpings län","kronobergs län","kalmar län","gotlands län","blekinge län","skåne län","hallands län","västra götalands län","värmlands län","örebro län","västmanlands län","dalarnas län","gävleborgs län","västernorrlands län","jämtlands län","västerbottens län","norrbottens län"]}),a.formUtils.addValidator({name:"swemunicipality",validatorFunction:function(b){return b=b.toLowerCase(),a.inArray(b,this.municipalities)!==-1||("s kommun"===b.substr(-8)&&a.inArray(b.substr(0,b.length-8),this.municipalities)>-1||" kommun"===b.substr(-7)&&a.inArray(b.substr(0,b.length-7),this.municipalities)>-1)},errorMessage:"",errorMessageKey:"badCustomVal",municipalities:["ale","alingsås","alvesta","aneby","arboga","arjeplog","arvidsjaur","arvika","askersund","avesta","bengtsfors","berg","bjurholm","bjuv","boden","bollebygd","bollnäs","borgholm","borlänge","borås","botkyrka","boxholm","bromölla","bräcke","burlöv","båstad","dals-ed","danderyd","degerfors","dorotea","eda","ekerö","eksjö","emmaboda","enköpings","eskilstuna","eslövs","essunga","fagersta","falkenberg","falköping","falu","filipstad","finspång","flen","forshaga","färgelanda","gagnef","gislaved","gnesta","gnosjö","gotland","grum","grästorp","gullspång","gällivare","gävle","göteborg","götene","habo","hagfor","hallsberg","hallstahammar","halmstad","hammarö","haninge","haparanda","heby","hedemora","helsingborg","herrljunga","hjo","hofor","huddinge","hudiksvall","hultsfred","hylte","håbo","hällefor","härjedalen","härnösand","härryda","hässleholm","höganäs","högsby","hörby","höör","jokkmokk","järfälla","jönköping","kalix","kalmar","karlsborg","karlshamn","karlskoga","karlskrona","karlstad","katrineholm","kil","kinda","kiruna","klippan","knivsta","kramfors","kristianstad","kristinehamn","krokoms","kumla","kungsbacka","kungsör","kungälv","kävlinge","köping","laholm","landskrona","laxå","lekeberg","leksand","lerum","lessebo","lidingö","lidköping","lilla edets","lindesbergs","linköpings","ljungby","ljusdals","ljusnarsbergs","lomma","ludvika","luleå","lunds","lycksele","lysekil","malmö","malung-sälen","malå","mariestad","marks","markaryd","mellerud","mjölby","mora","motala","mullsjö","munkedal","munkfors","mölndal","mönsterås","mörbylånga","nacka","nora","norberg","nordanstig","nordmaling","norrköping","norrtälje","norsjö","nybro","nykvarn","nyköping","nynäshamn","nässjö","ockelbo","olofström","orsa","orust","osby","oskarshamn","ovanåker","oxelösund","pajala","partille","perstorp","piteå","ragunda","robertsfors","ronneby","rättvik","sala","salem","sandviken","sigtuna","simrishamn","sjöbo","skara","skellefteå","skinnskatteberg","skurup","skövde","smedjebacken","sollefteå","sollentuna","solna","sorsele","sotenäs","staffanstorp","stenungsund","stockholm","storfors","storuman","strängnäs","strömstad","strömsund","sundbyberg","sundsvall","sunne","surahammar","svalöv","svedala","svenljunga","säffle","säter","sävsjö","söderhamns","söderköping","södertälje","sölvesborg","tanum","tibro","tidaholm","tierp","timrå","tingsryd","tjörn","tomelilla","torsby","torså","tranemo","tranå","trelleborg","trollhättan","trosa","tyresö","täby","töreboda","uddevalla","ulricehamns","umeå","upplands väsby","upplands-bro","uppsala","uppvidinge","vadstena","vaggeryd","valdemarsvik","vallentuna","vansbro","vara","varberg","vaxholm","vellinge","vetlanda","vilhelmina","vimmerby","vindeln","vingåker","vårgårda","vänersborg","vännäs","värmdö","värnamo","västervik","västerås","växjö","ydre","ystad","åmål","ånge","åre","årjäng","åsele","åstorp","åtvidaberg","älmhult","älvdalen","älvkarleby","älvsbyn","ängelholm","öckerö","ödeshög","örebro","örkelljunga","örnsköldsvik","östersund","österåker","östhammar","östra göinge","överkalix","övertorneå"]}),a.formUtils.addValidator({name:"swephone",validatorFunction:function(a){var b=a.match(/\+/g),c=a.match(/-/g);return!(null!==b&&b.length>1||null!==c&&c.length>1)&&((null===b||0===a.indexOf("+"))&&(a=a.replace(/([-|\+])/g,""),a.length>8&&null===a.match(/[^0-9]/g)))},errorMessage:"",errorMessageKey:"badTelephone"}),a.formUtils.addValidator({name:"swemobile",validatorFunction:function(b){if(!a.formUtils.validators.validate_swephone.validatorFunction(b))return!1;b=b.replace(/[^0-9]/g,"");var c=b.substring(0,3);return(10===b.length||"467"===c)&&((11===b.length||"467"!==c)&&(/07[0-9{1}]/.test(c)||"467"===c))},errorMessage:"",errorMessageKey:"badTelephone"});var c=function(b){var c=[];return a.each(b,function(a,b){c.push(b.substr(0,1).toUpperCase()+b.substr(1,b.length))}),c.sort(),c};a.fn.suggestSwedishCounty=function(b){var d=c(a.formUtils.validators.validate_swecounty.counties);return a.formUtils.suggest(this,d,b)},a.fn.suggestSwedishMunicipality=function(b){var d=c(a.formUtils.validators.validate_swemunicipality.municipalities);return a.formUtils.suggest(this,d,b)}}(a,window)});
\ No newline at end of file
diff --git a/form-validator/theme-default.css b/form-validator/theme-default.css
new file mode 100644
index 0000000..f0c5e5b
--- /dev/null
+++ b/form-validator/theme-default.css
@@ -0,0 +1,110 @@
+/**
+ * Default CSS theme for jQuery-Form-Validator.
+ * @author Victor Jonsson
+ */
+
+
+/* Input element having an invalid value */
+select.error,
+input.error {
+ border-color: #b94a48;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAYAAAA/mJfHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAYSmlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjarVllVBV/t94TJ6hDdx26pLu7QboVOHRzODQYoIAICmKggoKCiogKBiklJqKIKKhYhIgoKgaKinI/gP7f9733frhr3d+HWc888+y9n73XrJk18wMQFqDR6XEoB0B8QgrD3daC6uvnTyW9ABSEgAJrQJUWmkw3d3V1gv95IQBfRwEBALivTKPT4+D/tjjDwpNDARBXAAgJSw6NB0AuAuBCoXRGCgBhCACk0lPoKQCELwDAw/D18wcgkgGAJ3IFiwAAT8gKVgMAHoanuyUA0QqAzEqjMSIBKK4AQE0LjUwBoNABiFwJYdEJADx5AEST0ChaGIDQVQBYEx+fGAYgNA8A8iH/kify33KG/M1Jo0X+xSu9AAAA2So6mR5Hy4T/7xUfl/qnhiQAsEYx7NwBgAcAORmb6OgOAKwASGdCyFoXAOACQG5GhwGs4rGoVDuvVf1caLKlPwDwAaAQRrNyBAARAJQvNdbLfBVr0BgAK3p0bXSKvecqDmEkuq/mR9PCk609/uCocHun1ZyFCXFr/+CqiGgbewDgAEAvZkV5+qz4RK+mRXuvBQAKADqUHOvhuKp/nhVlufaPhpHq7gUA0gDolwiGjfuKBhOIT/7TF6YSSrP2AAABAMwsJcrTbiUW8w1P9nX64y0s3Mp6xQMWFp7gteoZS6GnWLivxhbQ41xX9VhVeJyt+8qcsabkNI8/scMpDM/VmWOTMTQH1xX/2F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l4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pmkb7KYAAAAgY0hSTQAAbZgAAHOOAAD6zAAAhPoAAHmBAAD9EwAAMG0AABIpDR4mTgAAAOZJREFUeNrMlL0NwyAQhZ+jLJAVkE4M4BVMR50RvIIzAivYI6S+zh4hHgAhZYWM4DTnCCFsoshFnkQBB9/9impZFhylEw5UFsaaatbUbj1iTR1ruhRhrKkGMALoWVOXsY8AHIAHa1KlyO4AVq+ONbkE1MhWAejjh+cMbBDPqzqJQAGoM3c/qnLdlPRcod7G+jAVYQJs0zT2QKXRmADMufMcaC9NJR1VW46sD6YI2wC9og7HkV+tD6/SaKQgIytWk9Y0B5tTkPVhljqZnbubNevFs7E+PBNbI9HfrA/DV6Pxn7/Gr3oPAAwLXEdIhTGuAAAAAElFTkSuQmCC');
+ background-position: right 5px center;
+ background-repeat: no-repeat;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+}
+
+/* Input element having a valid value */
+select.valid,
+input.valid {
+ border-color: #468847;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAgVBMVEUAAABetV5buFtcuFxcuVxdu11cuFxbuFtcuFxcuFxbtltcuFxbtltetl5cuFxct1xduV1fuF9cuFxcuFxbultcuFxduF1gtWBduV1cuFxcuVxcuFxcuFxcuFxet15dt11cuFxcuFxbt1teuF5duV1euF5cuVxcuFxcuFxcuFwAAADG3XcxAAAAKXRSTlMAJrDPRSnn1OjCKvM4MamLFivp8jvI1xgs6jpL++w5UvrxUU83RMe6MlhBCPsAAAABYktHRACIBR1IAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AwTFzUBkZPjhwAAAHBJREFUGNNjYCAJMDIxsyDzWdk0NdmR+RyampqcCD4XiM/Nw8DLxy8A4gsKAfnCIgwMopqaYuIMDBIwPgOzJkhEQhLElwIplZYBMmWFQXw5iGHyCppgoCgHM14JLKLIg7BQGSiiqILsRFU1dQ3iPQgAPhMLEPHXqSUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTYtMTItMTlUMjM6NTM6MDErMDE6MDCbiS6WAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE2LTEyLTE5VDIzOjUzOjAxKzAxOjAw6tSWKgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=');
+ background-position: right 5px center;
+ background-repeat: no-repeat;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+}
+
+/* File inputs with invalid value */
+input[type="file"].error {
+ color: #b94a48;
+ background: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+/* File inputs with valid value */
+input[type="file"].valid {
+ color: #468847;
+ background: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+/* Element showing an inline error message */
+.form-error {
+ display: block;
+ color: #b94a48;
+ margin-top: 5px;
+ margin-bottom: 10px;
+ line-height: 140%;
+}
+
+/* Element showing the help text declared in data-validation-help */
+span.help {
+ color: #999;
+ font-size: 90%;
+}
+
+/* Here you can style the look of the input while server being
+ requested when using data-validation="server" */
+select.async-validation,
+input.async-validation,
+select.validating-server-side, /* deprecated */
+input.validating-server-side /* deprecated */ {
+ opacity: 0.5;
+ background-image: url('data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886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rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAAKAAcALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkEAAoACAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAAKAAkALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQACgAKACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQACgALACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==');
+ background-position: right 5px center;
+ background-repeat: no-repeat;
+ background-color: #FFF;
+}
+
+/* Here you can style the entire form while server being
+ requested when using data-validation="server" */
+form.async-validation,
+form.validating-server-side /* deprecated */ {
+
+}
+
+/* Container for error messages when having configuration
+ parameter "errorMessagePosition" set to "top" */
+div.form-error {
+ background-color: #f2dede;
+ padding: 15px;
+ margin-bottom: 20px;
+ border: #b94a48 1px solid;
+ border-radius: 4px;
+}
+
+/* Title in top of the error message container */
+div.form-error strong {
+ font-weight: bold;
+ display: block;
+ margin: 0;
+ padding: 0 0 10px;
+}
+
+/* Typography styling in the error message container */
+div.form-error strong,
+div.form-error ul li {
+ line-height: 140%;
+ color: #b94a48;
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
+ font-size: 14px;
+}
+
+div.form-error ul,
+div.form-error ul li {
+ background: none;
+}
diff --git a/form-validator/theme-default.min.css b/form-validator/theme-default.min.css
new file mode 100644
index 0000000..14e6218
--- /dev/null
+++ b/form-validator/theme-default.min.css
@@ -0,0 +1 @@
+input.error,input.valid,select.error,select.valid{background-position:right 5px center;background-repeat:no-repeat}input.error,select.error{border-color:#b94a48;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAYAAAA/mJfHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAYSmlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjarVllVBV/t94TJ6hDdx26pLu7QboVOHRzODQYoIAICmKggoKCiogKBiklJqKIKKhYhIgoKgaKinI/gP7f9733frhr3d+HWc888+y9n73XrJk18wMQFqDR6XEoB0B8QgrD3daC6uvnTyW9ABSEgAJrQJUWmkw3d3V1gv95IQBfRwEBALivTKPT4+D/tjjDwpNDARBXAAgJSw6NB0AuAuBCoXRGCgBhCACk0lPoKQCELwDAw/D18wcgkgGAJ3IFiwAAT8gKVgMAHoanuyUA0QqAzEqjMSIBKK4AQE0LjUwBoNABiFwJYdEJADx5AEST0ChaGIDQVQBYEx+fGAYgNA8A8iH/kify33KG/M1Jo0X+xSu9AAAA2So6mR5Hy4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ogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDxwaG90b3Nob3A6VGV4dExheWVycz4KICAgICAgICAgICAgPHJkZjpCYWc+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8cGhvdG9zaG9wOkxheWVyTmFtZT7DlzwvcGhvdG9zaG9wOkxheWVyTmFtZT4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllclRleHQ+w5c8L3Bob3Rvc2hvcDpMYXllclRleHQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllck5hbWU+YTwvcGhvdG9zaG9wOkxheWVyTmFtZT4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllclRleHQ+YTwvcGhvdG9zaG9wOkxheWVyVGV4dD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkJhZz4KICAgICAgICAgPC9waG90b3Nob3A6VGV4dExheWVycz4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPkRpc3BsYXk8L3Bob3Rvc2hvcDpJQ0NQcm9maWxlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTk8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTc8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pmkb7KYAAAAgY0hSTQAAbZgAAHOOAAD6zAAAhPoAAHmBAAD9EwAAMG0AABIpDR4mTgAAAOZJREFUeNrMlL0NwyAQhZ+jLJAVkE4M4BVMR50RvIIzAivYI6S+zh4hHgAhZYWM4DTnCCFsoshFnkQBB9/9impZFhylEw5UFsaaatbUbj1iTR1ruhRhrKkGMALoWVOXsY8AHIAHa1KlyO4AVq+ONbkE1MhWAejjh+cMbBDPqzqJQAGoM3c/qnLdlPRcod7G+jAVYQJs0zT2QKXRmADMufMcaC9NJR1VW46sD6YI2wC9og7HkV+tD6/SaKQgIytWk9Y0B5tTkPVhljqZnbubNevFs7E+PBNbI9HfrA/DV6Pxn7/Gr3oPAAwLXEdIhTGuAAAAAElFTkSuQmCC);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.valid,select.valid{border-color:#468847;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAgVBMVEUAAABetV5buFtcuFxcuVxdu11cuFxbuFtcuFxcuFxbtltcuFxbtltetl5cuFxct1xduV1fuF9cuFxcuFxbultcuFxduF1gtWBduV1cuFxcuVxcuFxcuFxcuFxet15dt11cuFxcuFxbt1teuF5duV1euF5cuVxcuFxcuFxcuFwAAADG3XcxAAAAKXRSTlMAJrDPRSnn1OjCKvM4MamLFivp8jvI1xgs6jpL++w5UvrxUU83RMe6MlhBCPsAAAABYktHRACIBR1IAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AwTFzUBkZPjhwAAAHBJREFUGNNjYCAJMDIxsyDzWdk0NdmR+RyampqcCD4XiM/Nw8DLxy8A4gsKAfnCIgwMopqaYuIMDBIwPgOzJkhEQhLElwIplZYBMmWFQXw5iGHyCppgoCgHM14JLKLIg7BQGSiiqILsRFU1dQ3iPQgAPhMLEPHXqSUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTYtMTItMTlUMjM6NTM6MDErMDE6MDCbiS6WAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE2LTEyLTE5VDIzOjUzOjAxKzAxOjAw6tSWKgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input[type=file].error{color:#b94a48;background:0 0;-webkit-box-shadow:none;box-shadow:none}input[type=file].valid{color:#468847;background:0 0;-webkit-box-shadow:none;box-shadow:none}.form-error{display:block;color:#b94a48;margin-top:5px;margin-bottom:10px;line-height:140%}span.help{color:#999;font-size:90%}input.async-validation,input.validating-server-side,select.async-validation,select.validating-server-side{opacity:.5;background-image:url(data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRI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at:no-repeat;background-color:#FFF}div.form-error{background-color:#f2dede;padding:15px;margin-bottom:20px;border:1px solid #b94a48;border-radius:4px}div.form-error strong{font-weight:700;display:block;margin:0;padding:0 0 10px}div.form-error strong,div.form-error ul li{line-height:140%;color:#b94a48;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px}div.form-error ul,div.form-error ul li{background:0 0}
\ No newline at end of file
diff --git a/form-validator/toggleDisabled.js b/form-validator/toggleDisabled.js
new file mode 100644
index 0000000..38bd9aa
--- /dev/null
+++ b/form-validator/toggleDisabled.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a,b,c){"use strict";function d(b,c,d){var e=!0;return b.find("[data-validation]").each(function(){if(this!==c){var b=a(this),f=b.hasClass(d.successElementClass),g="true"===b.valAttr("optional"),h=b.hasClass(d.errorElementClass);if(h||!f&&!g)return e=!1,!1}}),e}a.formUtils.registerLoadedModule("toggleDisabled");var e=function(a,b){"disabled"===b?a.find('*[type="submit"]').addClass("disabled").attr("disabled","disabled"):a.find('*[type="submit"]').removeClass("disabled").removeAttr("disabled")},f=!1;a.formUtils.$win.bind("validatorsLoaded formValidationSetup",function(b,g,h){var i=h.disabledFormFilter?g.filter(h.disabledFormFilter):g,j=h.showErrorDialogs===c||h.showErrorDialogs,k=function(b,c,d){var e=a(this);d&&d.indexOf("blur")>-1?e.unbind("afterValidation",k):c.isValid?e.unbind("afterValidation",k):e.valAttr("have-been-blurred")||(c.shouldChangeDisplay=!1)};i.addClass(j?"disabled-with-errors":"disabled-without-errors").on("reset",function(){e(a(this),"disabled")}).find("*[data-validation]").valAttr("event","keyup change").on("validation",function(b,c){if(!f){f=!0;var g=a(this).closest("form");c&&d(g,this,h)?e(g,"enabled"):e(g,"disabled"),f=!1}}).on("afterValidation",k).on("blur",function(){a(this).valAttr("have-been-blurred",1)}).each(function(){var b=a(this),c=b.attr("data-validation");c.indexOf("checkbox_group")>-1&&b.closest("form").find('input[name="'+b.attr("name")+'"]').each(function(){a(this).on("change",function(){b.validate()})})}),i.find("[data-validation-async]").valAttr("event","change"),e(i,"disabled"),i.validateOnEvent(h.language,h)}).on("validationErrorDisplay",function(a,b,c){b.closest("form").hasClass("disabled-without-errors")&&c.hide()})}(a,window)});
\ No newline at end of file
diff --git a/form-validator/uk.js b/form-validator/uk.js
new file mode 100644
index 0000000..ad5cd17
--- /dev/null
+++ b/form-validator/uk.js
@@ -0,0 +1,9 @@
+/** File generated by Grunt -- do not modify
+ * JQUERY-FORM-VALIDATOR
+ *
+ * @version 2.3.79
+ * @website http://formvalidator.net/
+ * @author Victor Jonsson, http://victorjonsson.se
+ * @license MIT
+ */
+!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){"use strict";a.formUtils.registerLoadedModule("uk"),a.formUtils.addValidator({name:"ukvatnumber",validatorFunction:function(a){if(a=a.replace(/[^0-9]/g,""),a.length<9)return!1;var b=!1,c=[];c=a.split("");var d=Number(c[7]+c[8]),e=c[0],f=c[1];if(0===e&&f>0)return!1;for(var g=0,h=0;h<7;h++)g+=c[h]*(8-h);for(var i=0,j=0,k=8;k>=2;k--)i+=c[j]*k,j++;for(;g>0;)g-=97;return g=Math.abs(g),d===g&&(b=!0),b||(g%=97,g>=55?g-=55:g+=42,g===d&&(b=!0)),b},errorMessage:"",errorMessageKey:"badUKVatAnswer"}),a.formUtils.addValidator({name:"ukutr",validatorFunction:function(a){var b=[0,6,7,8,9,10,5,4,3,2],c=[2,1,9,8,7,6,5,4,3,2,1],d=0;if(/\d{10}/.test(a)&&10===a.length){for(var e=0;e<10;e++)d+=a[e]*b[e];if(parseInt(a.charAt(0))===c[d%11])return!0}return!1},errorMessage:"",errorMessageKey:"badUkUtr"}),a.formUtils.addValidator({name:"uknin",validatorFunction:function(a){return!!/^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)(?:[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z])(?:\s*\d\s*){6}([A-D]|\s)$/i.test(a)},errorMessage:"",errorMessageKey:"badUkNin"})}(a)});
\ No newline at end of file
diff --git a/formvalidator.jquery.json b/formvalidator.jquery.json
index 8327826..3507aa1 100644
--- a/formvalidator.jquery.json
+++ b/formvalidator.jquery.json
@@ -1,26 +1,24 @@
{
- "name" : "formvalidator",
- "title" : "jQuery Form Validator",
- "description" : "This plugin was created to minimize javascript logic in the html code when dealing with front-end validation of form data",
+ "name": "formvalidator",
+ "title": "jQuery Form Validator",
+ "description": "This plugin makes it easy to validate user input while keeping your HTML markup clean from javascript code. Even though this plugin has a wide range of validation functions it's designed to require as little bandwidth as possible. This is achieved by grouping together validation functions in \"modules\", making it possible for the programmer to load only those functions that's needed to validate a particular form.",
"keywords": [
"form",
- "validation"
+ "validation",
+ "validator"
],
- "version" : "1.5.4",
- "author" : {
+ "version": "2.3.79",
+ "author": {
"name": "Victor Jonsson",
"url": "http://victorjonsson.se",
- "email" : "kontakt@victorjonsson.se"
+ "email": "kontakt@victorjonsson.se"
},
- "homepage" : "https://github.com/victorjonsson/jQuery-Form-Validator",
- "demo" : "http://victorjonsson.se/51/jquery-form-validator/?from=jQuery",
- "download" : "https://raw.github.com/victorjonsson/jQuery-Form-Validator/master/jquery.formvalidator.min.js",
- "bugs" : "https://github.com/victorjonsson/jQuery-Form-Validator/issues",
- "licenses" : [{
- "type": "GPLv2",
- "url": "http://www.gnu.org/licenses/gpl-2.0.html"
- }],
- "dependencies" : {
- "jquery": ">=1.5"
+ "homepage": "http://formvalidator.net",
+ "demo": "http://formvalidator.net",
+ "download": "http://formvalidator.net",
+ "bugs": "https://github.com/victorjonsson/jQuery-Form-Validator/issues",
+ "license": "MIT",
+ "dependencies": {
+ "jquery": ">=1.8"
}
-}
\ No newline at end of file
+}
diff --git a/jquery.formvalidator.js b/jquery.formvalidator.js
deleted file mode 100755
index 101e0be..0000000
--- a/jquery.formvalidator.js
+++ /dev/null
@@ -1,1080 +0,0 @@
-/*
-* FORM VALIDATION MADE EASY
-* ------------------------------------------
-* Created by Victor Jonsson
-* Documentation and issue tracking on Github
-*
-* @license GPLv2 http://www.example.com/licenses/gpl.html
-* @version 1.5.dev
-*/
-(function($) {
- $.extend($.fn, {
-
- /**
- * Should be called on the element containing the input elements
- *
- * @param {Object} language Optional, will override jQueryFormUtils.LANG
- * @param {Object} settings Optional, will override the default settings
- * @return {jQuery}
- */
- validateOnBlur : function(language, settings) {
- var $el = $(this);
- $el.find('textarea,input,select').blur(function() {
- $(this).doValidate(language, settings);
- });
-
- return $el;
- },
-
- /**
- * Should be called on the element containing the input elements.
- *
- *
- * @param {String} attrName Optional, default is data-validation-help
- * @return {jQuery}
- */
- showHelpOnFocus : function(attrName) {
- if(!attrName) {
- attrName = 'data-validation-help';
- }
-
- var $el = $(this);
- $el.find('textarea,input').each(function() {
- var help = $(this).attr(attrName);
- if(help) {
- $(this)
- .focus(function() {
- var $name = $(this).attr('name');
- var $element = $(this);
- if($element.parent().find('.jquery_form_help_'+$name).length == 0) {
- $element.after(
- $('')
- .addClass('jquery_form_help_'+$name)
- .text(help)
- .hide()
- .fadeIn()
- );
- }else{
- $element.parent().find('.jquery_form_help_'+$name).fadeIn();
- }
- })
- .blur(function() {
- var $name = $(this).attr('name');
- $(this).parent().find('.jquery_form_help_'+$name)
- .fadeOut('slow');
- });
- }
- });
-
- return $el;
- },
-
- /**
- * Function that validates the value of given input and shows
- * error message in a span element that is appended to the parent
- * element
- *
- * @param {Object} language Optional, will override jQueryFormUtils.LANG
- * @param {Object} settings Optional, will override the default settings
- * @param {Boolean} attachKeyupEvent Optional
- * @return {jQuery}
- */
- doValidate : function(language, settings, attachKeyupEvent) {
- if(typeof attachKeyupEvent == 'undefined') {
- attachKeyupEvent = true;
- }
-
- var $element = $(this);
- // test if there is custom obj to hold element error msg (id = element name + err_msg)
- var elementErrMsgObj = document.getElementById($element.attr('name')+'_err_msg');
-
- var config = {
- ignore : [], // Names of inputs not to be validated, overwriting attribute notaed validation
- validationRuleAttribute : 'data-validation',
- validationErrorMsgAttribute : 'data-validation-error-msg', // define custom err msg inline with element
- errorElementClass : 'error', // Class that will be put on elements which value is invalid
- borderColorOnError : 'red',
- dateFormat : 'yyyy-mm-dd'
-
- };
-
- if (settings) {
- $.extend(config, settings);
- }
- if (language) {
- $.extend(jQueryFormUtils.LANG, language);
- }
- // get updated dialog strings
- language = jQueryFormUtils.LANG;
-
- var elementType = $element.attr('type');
- if (jQueryFormUtils.defaultBorderColor === null && elementType !== 'submit' && elementType !== 'checkbox' && elementType !== 'radio') {
- jQueryFormUtils.defaultBorderColor = $element.css('border-color');
- }
-
- // Remove possible error style applied by previous validation
- $element
- .removeClass(config.errorElementClass)
- .parent()
- .find('.jquery_form_error_message').remove();
-
- // if element has custom err msg container, clear it
- if( elementErrMsgObj != null) {
- elementErrMsgObj.innerHTML = '';
- }
-
- if(config.borderColorOnError !== '') {
- $element.css('border-color', jQueryFormUtils.defaultBorderColor);
- }
-
- if(!jQueryFormUtils.ignoreInput($element.attr('name'), elementType, config)) {
- var validation = jQueryFormUtils.validateInput($element, language, config);
-
- if(validation === true) {
- $element.unbind('keyup');
- } else {
- $element.addClass(config.errorElementClass);
- // if element has custom err msg container, use it
- if( elementErrMsgObj != null) {
- elementErrMsgObj.innerHTML = validation;
- } else { // use regular span append
- $element.parent().append(''+validation+'');
- }
-
- if(config.borderColorOnError !== '') {
- $element.css('border-color', config.borderColorOnError);
- }
-
- if(attachKeyupEvent) {
- $element.bind('keyup', function() {
- $(this).doValidate(language, settings, false);
- });
- }
- }
- }
-
- return $(this);
- },
-
- /**
- * Function that validate all inputs in a form
- *
- * @param language
- * @param settings
- */
- validate : function(language, settings) {
-
- /*
- * Config
- */
- var config = {
- ignore : [], // Names of inputs not to be validated even though node attribute containing the validation rules tells us to
- errorElementClass : 'error', // Class that will be put on elements which value is invalid
- borderColorOnError : 'red', // Border color of elements which value is invalid, empty string to not change border color
- errorMessageClass : 'jquery_form_error_message', // class name of div containing error messages when validation fails
- validationRuleAttribute : 'data-validation', // name of the attribute holding the validation rules
- validationErrorMsgAttribute : 'data-validation-error-msg', // define custom err msg inline with element
- errorMessagePosition : 'top', // Can be either "top" or "element"
- scrollToTopOnError : true,
- dateFormat : 'yyyy-mm-dd'
- };
-
- /*
- * Extends initial settings
- */
- if (settings) {
- $.extend(config, settings);
- }
- if (language) {
- $.extend(jQueryFormUtils.LANG, language);
- }
- // get updated dialog strings
- language = jQueryFormUtils.LANG;
-
- /**
- * Adds message to error message stack if not already in the message stack
- *
- * @param {String} mess
- */
- var addErrorMessage = function(mess) {
- if (jQuery.inArray(mess, errorMessages) < 0) {
- errorMessages.push(mess);
- }
- };
-
- /** Error messages for this validation */
- var errorMessages = [];
-
- /** Input elements which value was not valid */
- var errorInputs = [];
-
- /** Form instance */
- var $form = $(this);
-
- //
- // Validate element values
- //
- $form.find('input,textarea,select').each(function() {
-
- var $el = $(this);
- var elementType = $el.attr('type');
- if (!jQueryFormUtils.ignoreInput($el.attr('name'), elementType, config)) {
-
- // input of type radio
- if(elementType === 'radio') {
- var validationRule = $el.attr(config.validationRuleAttribute);
- if (typeof validationRule != 'undefined' && validationRule === 'required') {
- var radioButtonName = $el.attr('name');
- var isChecked = false;
- $form.find('input[name=' + radioButtonName + ']').each(function() {
- if ($(this).is(':checked')) {
- isChecked = true;
- return false;
- }
- });
-
- if (!isChecked) {
- var validationErrorMsg = $el.attr(config.validationErrorMsgAttribute);
- $el.attr('data-validation-current-error', validationErrorMsg || language.requiredFields);
- errorMessages.push(validationErrorMsg || language.requiredFields);
- errorInputs.push($el);
- }
- }
- }
- // inputs, textareas and select lists
- else {
-
- // memorize border color
- if (jQueryFormUtils.defaultBorderColor === null && elementType) {
- jQueryFormUtils.defaultBorderColor = $.trim($el.css('border-color'));
- }
-
- var valid = jQueryFormUtils.validateInput(
- $el,
- language,
- config,
- $form
- );
-
- if(valid !== true) {
- errorInputs.push($el);
- $el.attr('data-validation-current-error', valid);
- addErrorMessage(valid);
- }
- }
- }
- });
-
- //
- // Reset style and remove error class
- //
- // if(jQueryFormUtils.defaultBorderColor == config.borderColorOnError)
- // jQueryFormUtils.defaultBorderColor = 'inherit';
-
- var borderStyleProp = jQueryFormUtils.defaultBorderColor===null ||
- (jQueryFormUtils.defaultBorderColor.indexOf(' ') > -1 && jQueryFormUtils.defaultBorderColor.indexOf('rgb') == -1)
- ? 'border':'border-color';
-
- $form.find('input,textarea,select')
- .css(borderStyleProp, jQueryFormUtils.defaultBorderColor)
- .removeClass(config.errorElementClass);
-
- //
- // Remove possible error messages from last validation
- //
- $('.' + config.errorMessageClass.split(' ').join('.')).remove();
- $('.jquery_form_error_message').remove();
-
-
- //
- // Validation failed
- //
- if (errorInputs.length > 0) {
-
- // Apply error style to invalid inputs
- for (var i = 0; i < errorInputs.length; i++) {
- if (config.borderColorOnError !== '') {
- errorInputs[i].css('border-color', config.borderColorOnError);
- }
- errorInputs[i].addClass(config.errorElementClass);
- }
-
- // display all error messages in top of form
- if (config.errorMessagePosition === 'top') {
- var messages = '' + language.errorTitle + '';
- for (var i = 0; i < errorMessages.length; i++) {
- messages += ' * ' + errorMessages[i];
- }
- // using div instead of P gives better control of css display properties
- $form.children().eq(0).before('
' + messages + '
');
- if(config.scrollToTopOnError) {
- $(window).scrollTop($form.offset().top - 20);
- }
- }
-
- // Display error message below input field
- else {
- for (var i = 0; i < errorInputs.length; i++) {
- var parent = errorInputs[i].parent();
- var errorSpan = parent.find('span[class=jquery_form_error_message]');
- if (errorSpan.length > 0) {
- errorSpan.eq(0).text(errorInputs[i].attr('data-validation-current-error'));
- } else {
- parent.append('' + errorInputs[i].attr('data-validation-current-error') + '');
- }
- }
- }
- return false;
- }
-
- return true;
- },
-
- /**
- * Plugin for displaying input length restriction
- */
- restrictLength : function(maxLengthElement) {
- new jQueryFormUtils.lengthRestriction(this, maxLengthElement);
- return this;
- }
-
- });
-})(jQuery);
-
-
-/**
- * Namespace for helper functions
- */
-var jQueryFormUtils = {};
-
-/**
- * Static variable for holding default border color on input
- */
-jQueryFormUtils.defaultBorderColor = null;
-
-/**
- * Validate email
- *
- * @return {Boolean}
- */
-jQueryFormUtils.validateEmail = function(email) {
- var emailFilter = /^([a-zA-Z0-9_\.\-])+@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
- if(emailFilter.test(email)) {
- var parts = email.split('@');
- if(parts.length == 2) {
- return jQueryFormUtils.validateDomain(parts[1]);
- }
- }
- return false;
-};
-
-/**
- * Validate phone number, at least 7 digits only one hyphen and plus allowed
- *
- * @return {Boolean}
- */
-jQueryFormUtils.validatePhoneNumber = function(tele) {
- var numPlus = tele.match(/\+/g);
- var numHifen = tele.match(/-/g);
-
- if ((numPlus !== null && numPlus.length > 1) || (numHifen !== null && numHifen.length > 1)) {
- return false;
- }
- if (numPlus !== null && tele.indexOf('+') !== 0) {
- return false;
- }
-
- tele = tele.replace(/([-|\+])/g, '');
- return tele.length > 8 && tele.match(/[^0-9]/g) === null;
-};
-
-/**
- * Validate that string is a swedish telephone number
- *
- * @param {Number}
- * @return {Boolean}
- */
-jQueryFormUtils.validateSwedishMobileNumber = function(number) {
- if (!jQueryFormUtils.validatePhoneNumber(number)) {
- return false;
- }
-
- number = number.replace(/[^0-9]/g, '');
- var begin = number.substring(0, 3);
-
- if (number.length != 10 && begin !== '467') {
- return false;
- } else if (number.length != 11 && begin === '467') {
- return false;
- }
- return (/07[0-9{1}]/).test(begin) || (begin === '467' && number.substr(3, 1) === '0');
-};
-
-/**
- * Validate that string is a UK VAT Number
- * TODO: Extra Checking for other VAT Numbers (Other countries and UK Government/Health Authorities)
- * Code Adapted from http://www.codingforums.com/showthread.php?t=211967
- *
- * @param {Number}
- * @return {Boolean}
- */
-jQueryFormUtils.validateUKVATNumber = function(number) {
- number = number.replace(/[^0-9]/g, '');
-
- //Check Length
- if(number.length < 9) {
- return false;
- }
-
- var valid = false;
-
- var VATsplit = number.split("");
-
- var checkDigits = Number(VATsplit[7] + VATsplit[8]); // two final digits as a number
-
- var firstDigit = VATsplit[0];
- var secondDigit = VATsplit[1];
- if ((firstDigit == 0) && (secondDigit >0)) {
- return false;
- }
-
- var total = 0;
- for (var i=0; i<7; i++) { // first 7 digits
- total += VATsplit[i] * (8-i); // sum weighted cumulative total
- }
-
- var c = 0;
- var i = 0;
-
- for (var m = 8; m>=2; m--) {
- c += VATsplit[i] * m;
- i++;
- }
-
- // Traditional Algorithm for VAT numbers issued before 2010
-
- while (total > 0) {
- total -= 97; // deduct 97 repeatedly until total is negative
- }
- total = Math.abs(total); // make positive
-
- if (checkDigits == total) {
- valid = true;
- }
-
- // If not valid try the new method (introduced November 2009) by subtracting 55 from the mod 97 check digit if we can - else add 42
-
- if (!valid) {
- total = total%97; // modulus 97
-
- if (total >= 55) {
- total = total - 55
- } else {
- total = total + 42
- }
-
- if (total == checkDigits) {
- valid = true;
- }
- }
-
- return valid;
-};
-
-/**
- * Is this a valid birth date YYYY-MM-DD
- *
- * @return {Boolean}
- */
-jQueryFormUtils.validateBirthdate = function(val, dateFormat) {
- var inputDate = this.parseDate(val, dateFormat);
- if (!inputDate) {
- return false;
- }
-
- var d = new Date();
- var currentYear = d.getFullYear();
- var year = inputDate[0];
- var month = inputDate[1];
- var day = inputDate[2];
-
- if (year === currentYear) {
- var currentMonth = d.getMonth() + 1;
- if (month === currentMonth) {
- var currentDay = d.getDate();
- return day <= currentDay;
- }
- else {
- return month < currentMonth;
- }
- }
- else {
- return year < currentYear && year > (currentYear - 124); // we can not live for ever yet...
- }
-};
-
-jQueryFormUtils.ignoreInput = function(name, type, config) {
- if (type === 'submit' || type === 'button') {
- return true;
- }
-
- for (var i = 0; i < config.ignore.length; i++) {
- if (config.ignore[i] === name) {
- return true;
- }
- }
- return false;
-};
-
-/**
- * Is it a correct date according to given dateFormat. Will return false if not, otherwise
- * an array 0=>year 1=>month 2=>day
- *
- * @param {String} val
- * @param {String} dateFormat
- * @return {Array}|{Boolean}
- */
-jQueryFormUtils.parseDate = function(val, dateFormat) {
- var divider = dateFormat.replace(/[a-zA-Z]/gi, '').substring(0,1);
- var regexp = '^';
- var formatParts = dateFormat.split(divider);
- for(var i=0; i < formatParts.length; i++) {
- regexp += (i > 0 ? '\\'+divider:'') + '(\\d{'+formatParts[i].length+'})';
- }
- regexp += '$';
-
- var matches = val.match(new RegExp(regexp));
- if (matches === null) {
- return false;
- }
-
- var findDateUnit = function(unit, formatParts, matches) {
- for(var i=0; i < formatParts.length; i++) {
- if(formatParts[i].substring(0,1) === unit) {
- return jQueryFormUtils.parseDateInt(matches[i+1]);
- }
- }
- return -1;
- };
-
- var month = findDateUnit('m', formatParts, matches);
- var day = findDateUnit('d', formatParts, matches);
- var year = findDateUnit('y', formatParts, matches);
-
- if ((month === 2 && day > 28 && (year % 4 !== 0 || year % 100 === 0 && year % 400 !== 0))
- || (month === 2 && day > 29 && (year % 4 === 0 || year % 100 !== 0 && year % 400 === 0))
- || month > 12 || month === 0) {
- return false;
- }
- if ((this.isShortMonth(month) && day > 30) || (!this.isShortMonth(month) && day > 31) || day === 0) {
- return false;
- }
-
- return [year, month, day];
-};
-
-/**
- * skum fix. är talet 05 eller lägre ger parseInt rätt int annars får man 0 när man kör parseInt?
- *
- * @param {String} val
- * @param {Number}
- */
-jQueryFormUtils.parseDateInt = function(val) {
- if (val.indexOf('0') === 0) {
- val = val.replace('0', '');
- }
- return parseInt(val,10);
-};
-
-/**
- * Validate swedish security number yyymmddXXXX
- *
- * @param {String} securityNumber
- * @return {Boolean}
- */
-jQueryFormUtils.validateSwedishSecurityNumber = function(securityNumber) {
- if (!securityNumber.match(/^(\d{4})(\d{2})(\d{2})(\d{4})$/)) {
- return false;
- }
-
- var year = RegExp.$1;
- var month = jQueryFormUtils.parseDateInt(RegExp.$2);
- var day = jQueryFormUtils.parseDateInt(RegExp.$3);
-
- // var gender = parseInt( (RegExp.$4) .substring(2,3)) % 2; ==> 1 === male && 0 === female
-
- var months = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
- if (year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {
- months[1] = 29;
- }
- if (month < 1 || month > 12 || day < 1 || day > months[month - 1]) {
- return false;
- }
-
- securityNumber = securityNumber.substring(2, securityNumber.length);
- var check = '';
- for (var i = 0; i < securityNumber.length; i++) {
- check += ((((i + 1) % 2) + 1) * securityNumber.substring(i, i + 1));
- }
- var checksum = 0;
- for (i = 0; i < check.length; i++) {
- checksum += parseInt(check.substring(i, i + 1),10);
- }
-
- return checksum % 10 === 0;
-};
-
-/**
- * Validate time HH:mm
- *
- * @param {String} time
- * @return {Boolean}
- */
-jQueryFormUtils.validateTime = function(time) {
- if (time.match(/^(\d{2}):(\d{2})$/) === null) {
- return false;
- } else {
- var hours = parseInt(time.split(':')[0],10);
- var minutes = parseInt(time.split(':')[1],10);
- if((hours > 24 || minutes > 59) || (hours === 24 && minutes > 0)) {
- return false;
- }
- }
- return true;
-};
-
-/**
- * Validate float value
- *
- * @param {String} val
- * @return {Boolean}
- */
-jQueryFormUtils.validateFloat = function(val) {
- return val.match(/^(\-|)([0-9]+)\.([0-9]+)$/) !== null;
-};
-
-/**
- * Validate that given value is a number
- *
- * @param {String} val
- * @return {Boolean}
- */
-jQueryFormUtils.validateInteger = function(val) {
- return val !== '' && val.replace(/[0-9]/g, '') === '';
-};
-
-/**
- * Has month only 30 days?
- *
- * @param {Number} m
- * @return {Boolean}
- */
-jQueryFormUtils.isShortMonth = function(m) {
- return (m % 2 === 0 && m < 7) || (m % 2 !== 0 && m > 7);
-};
-
-/**
- * Simple spam check
- *
- * @param {String} val
- * @param {String} classAttr
- * @return {Boolean}
- */
-jQueryFormUtils.simpleSpamCheck = function(val, classAttr) {
- var answer = classAttr.match(/captcha([0-9a-z]+)/i)[1].replace('captcha', '');
- return val === answer;
-};
-
-/**
- * Validate domain name
- *
- * @param {String} val
- * @return {Boolean}
- */
-jQueryFormUtils.validateDomain = function(val) {
- val = val.toLowerCase();
- val = val.replace('ftp://', '').replace('https://', '').replace('http://', '').replace('www.', '');
- var arr = new Array('.com', '.net', '.org', '.biz', '.coop', '.info', '.museum', '.name', '.pro',
- '.edu', '.gov', '.int', '.mil', '.ac', '.ad', '.ae', '.af', '.ag', '.ai', '.al',
- '.am', '.an', '.ao', '.aq', '.ar', '.as', '.at', '.au', '.aw', '.az', '.ba', '.bb',
- '.bd', '.be', '.bf', '.bg', '.bh', '.bi', '.bj', '.bm', '.bn', '.bo', '.br', '.bs',
- '.bt', '.bv', '.bw', '.by', '.bz', '.ca', '.cc', '.cd', '.cf', '.cg', '.ch', '.ci',
- '.ck', '.cl', '.cm', '.cn', '.co', '.cr', '.cu', '.cv', '.cx', '.cy', '.cz', '.de',
- '.dj', '.dk', '.dm', '.do', '.dz', '.ec', '.ee', '.eg', '.eh', '.er', '.es', '.et',
- '.fi', '.fj', '.fk', '.fm', '.fo', '.fr', '.ga', '.gd', '.ge', '.gf', '.gg', '.gh',
- '.gi', '.gl', '.gm', '.gn', '.gp', '.gq', '.gr', '.gs', '.gt', '.gu', '.gv', '.gy',
- '.hk', '.hm', '.hn', '.hr', '.ht', '.hu', '.id', '.ie', '.il', '.im', '.in', '.io',
- '.iq', '.ir', '.is', '.it', '.je', '.jm', '.jo', '.jp', '.ke', '.kg', '.kh', '.ki',
- '.km', '.kn', '.kp', '.kr', '.kw', '.ky', '.kz', '.la', '.lb', '.lc', '.li', '.lk',
- '.lr', '.ls', '.lt', '.lu', '.lv', '.ly', '.ma', '.mc', '.md', '.me', '.mg', '.mh',
- '.mk', '.ml', '.mm', '.mn', '.mo', '.mp', '.mq', '.mr', '.ms', '.mt', '.mu', '.mv',
- '.mw', '.mx', '.my', '.mz', '.na', '.nc', '.ne', '.nf', '.ng', '.ni', '.nl', '.no',
- '.np', '.nr', '.nu', '.nz', '.om', '.pa', '.pe', '.pf', '.pg', '.ph', '.pk', '.pl',
- '.pm', '.pn', '.pr', '.ps', '.pt', '.pw', '.py', '.qa', '.re', '.ro', '.rs', '.rw',
- '.ru', '.sa', '.sb', '.sc', '.sd', '.se', '.sg', '.sh', '.si', '.sj', '.sk', '.sl',
- '.sm', '.sn', '.so', '.sr', '.st', '.sv', '.sy', '.sz', '.tc', '.td', '.tf', '.tg',
- '.th', '.tj', '.tk', '.tm', '.tn', '.to', '.tp', '.tr', '.tt', '.tv', '.tw', '.tz',
- '.ua', '.ug', '.uk', '.um', '.us', '.uy', '.uz', '.va', '.vc', '.ve', '.vg', '.vi',
- '.vn', '.vu', '.ws', '.wf', '.ye', '.yt', '.za', '.zm', '.zw', '.mobi', '.xxx', '.asia');
-
- var dot = val.lastIndexOf('.');
- var domain = val.substring(0, dot);
- var ext = val.substring(dot, val.length);
- var hasTopDomain = false;
-
- for (var i = 0; i < arr.length; i++) {
- if (arr[i] === ext) {
- if(ext==='.uk') {
- //Run Extra Checks for UK Domain Names
- var domainParts = val.split('.');
- var tld2 = domainParts[domainParts.length-2];
- var ukarr = new Array('co', 'me', 'ac', 'gov', 'judiciary',
- 'ltd', 'mod', 'net', 'nhs', 'nic', 'org', 'parliament',
- 'plc', 'police', 'sch', 'bl', 'british-library', 'jet',
- 'nls');
-
- for(var j = 0; j < ukarr.length; j++) {
- if(ukarr[j] === tld2) {
- hasTopDomain = true;
- break;
- }
- }
- } else {
- hasTopDomain = true;
- break;
- }
- }
- }
-
-
-
- if (!hasTopDomain) {
- return false;
- } else if (dot < 2 || dot > 57) {
- return false;
- } else {
- var firstChar = domain.substring(0, 1);
- var lastChar = domain.substring(domain.length - 1, domain.length);
-
- if (firstChar === '-' || firstChar === '.' || lastChar === '-' || lastChar === '.') {
- return false;
- }
- if (domain.split('.').length > 3 || domain.split('..').length > 1) {
- return false;
- }
- if (domain.replace(/[0-9a-z\.\-]/g, '') !== '') {
- return false;
- }
- }
-
- return true;
-};
-
-/**
- * => getAttribute($(element).attr('class'), 'length') = 12
- * @param {String} attrValue
- * @param {String} attrName
- * @returns {Number}
- */
-jQueryFormUtils.attrInt = function(attrValue, attrName) {
- var regex = new RegExp('(' + attrName + '[0-9\-]+)', "g");
- return attrValue.match(regex)[0].replace(/[^0-9\-]/g, '');
-};
-
-/**
- * Validate the value of given element according to the validation rule
- * defined in attribute with given name. Will return true if valid,
- * error message otherwise.
- *
- * Notice!
- * This function is a wrapper around jQueryFormUtils.validate that makes
- * it possible to handle select elements with multiple values
- *
- * @param {jQuery} el - Element containing the value (input,select,textarea)
- * @param {Object} language (jQueryFormUtils.LANG)
- * @param {Object} config
- * @param {jQuery} form - Optional
- * @return {String}|{Boolean}
- */
-jQueryFormUtils.validateInput = function(el, language, config, form) {
- var values = el.val();
- values = values || ''; // coerce to empty string if null
-
- if( !(values instanceof Array) ) {
- values = [values];
- }
-
- // Validate select with multiple values
- if( el.get(0).nodeName == 'SELECT' && el.attr('multiple') ) {
- var validationRules = el.attr(config.validationRuleAttribute);
- var validationErrorMsg = el.attr(config.validationErrorMsgAttribute);
- if(validationRules.indexOf('validate_num_answers') > -1) {
- var num = jQueryFormUtils.attrInt(validationRules, 'num');
- if(num > values.length) {
- return validationErrorMsg || (language.badNumberOfSelectedOptionsStart +num+ language.badNumberOfSelectedOptionsEnd);
- }
- }
- }
-
-
- for(var i=0; i < values.length; i++) {
- var validation = jQueryFormUtils.validate(values[i], el, language, config, form);
- if(validation !== true)
- return validation;
- }
-
- return true;
-};
-
-/**
- * Validate the value of given element according to the validation rule
- * defined in attribute with given name. Will return true if valid,
- * error message otherwise
- *
- * @see jQueryFormUtils.validateInput
- *
- * @param {String} value
- * @param {jQuery} el - Element containing the value (input,select,textarea)
- * @param {Object} language (jQueryFormUtils.LANG)
- * @param {Object} config
- * @param {jQuery} form - Optional
- * @return {String}|{Boolean}
- */
-jQueryFormUtils.validate = function(value, el, language, config, form) {
-
- var optional = el.attr("data-validation-optional");
-
- // test if a checkbox forces this element to be validated
- var validationDependsOnCheckedInput = false;
- var validationDependentInputIsChecked = false;
- // get value of this element's attribute "... if-checked"
- var validateIfCheckedElementName = el.attr("data-validation-if-checked");
- // make sure we can proceed
- if (validateIfCheckedElementName != null) {
-
- // Set the boolean telling us that the validation depends
- // on another input being checked
- validationDependsOnCheckedInput = true;
-
- // Form not given as argument
- if(!form)
- form = el.closest("form");
-
- // select the checkbox type element in this form
- var validateIfCheckedElement = form.find('input[name="' + validateIfCheckedElementName + '"]');
-
- // test if it's property "checked" is checked
- if ( validateIfCheckedElement.prop('checked') ) {
- // set value for validation checkpoint
- validationDependentInputIsChecked = true;
- }
- }
-
- // validation checkpoint
- // if empty AND optional attribute is present
- // OR depending on a checkbox being checked AND checkbox is checked, return true
- if ((!value && optional === 'true') || (validationDependsOnCheckedInput && !validationDependentInputIsChecked)) {
- return true;
- }
-
- var validationRules = el.attr(config.validationRuleAttribute);
-
- // see if form element has inline err msg attribute
- var validationErrorMsg = el.attr(config.validationErrorMsgAttribute);
-
- if (typeof validationRules != 'undefined' && validationRules !== null) {
-
- // Required
- if (validationRules.indexOf('required') > -1 && value === '') {
- // return custom inline err msg if defined
- return validationErrorMsg || language.requiredFields;
- }
-
- // Min length
- if (validationRules.indexOf('validate_min_length') > -1 && value.length < jQueryFormUtils.attrInt(validationRules, 'length')) {
- return validationErrorMsg || language.tooShortStart + jQueryFormUtils.attrInt(validationRules, 'length') + language.tooShortEnd;
- }
-
- // Max length
- if (validationRules.indexOf('validate_max_length') > -1 && value.length > jQueryFormUtils.attrInt(validationRules, 'length')) {
- return validationErrorMsg || language.tooLongStart + jQueryFormUtils.attrInt(validationRules, 'length') + language.tooLongEnd;
- }
-
- // Length range
- if (validationRules.indexOf('validate_length') > -1) {
- var range = jQueryFormUtils.attrInt(validationRules, 'length').split('-');
- if (value.length < parseInt(range[0],10) || value.length > parseInt(range[1],10)) {
- return validationErrorMsg || language.badLength + jQueryFormUtils.attrInt(validationRules, 'length') + language.tooLongEnd;
- }
- }
-
- // Email
- if (validationRules.indexOf('validate_email') > -1 && !jQueryFormUtils.validateEmail(value)) {
- return validationErrorMsg || language.badEmail;
- }
-
- // Domain
- else if (validationRules.indexOf('validate_domain') > -1 && !jQueryFormUtils.validateDomain(value)) {
- return validationErrorMsg || language.badDomain;
- }
-
- // Url
- else if (validationRules.indexOf('validate_url') > -1 && !jQueryFormUtils.validateUrl(value)) {
- return validationErrorMsg || language.badUrl;
- }
-
- // Float
- else if (validationRules.indexOf('validate_float') > -1 && !jQueryFormUtils.validateFloat(value)) {
- return validationErrorMsg || language.badFloat;
- }
-
- // Integer
- else if (validationRules.indexOf('validate_int') > -1 && !jQueryFormUtils.validateInteger(value)) {
- return validationErrorMsg || language.badInt;
- }
-
- // Time
- else if (validationRules.indexOf('validate_time') > -1 && !jQueryFormUtils.validateTime(value)) {
- return validationErrorMsg || language.badTime;
- }
-
- // Date
- else if (validationRules.indexOf('validate_date') > -1 && !jQueryFormUtils.parseDate(value, config.dateFormat)) {
- return validationErrorMsg || language.badDate;
- }
-
- // Birth date
- else if (validationRules.indexOf('validate_birthdate') > -1 && !jQueryFormUtils.validateBirthdate(value, config.dateFormat)) {
- return validationErrorMsg || language.badDate;
- }
-
- // Phone number
- else if (validationRules.indexOf('validate_phone') > -1 && !jQueryFormUtils.validatePhoneNumber(value)) {
- return validationErrorMsg || language.badTelephone;
- }
-
- // Swedish phone number
- else if (validationRules.indexOf('validate_swemobile') > -1 && !jQueryFormUtils.validateSwedishMobileNumber(value)) {
- return validationErrorMsg || language.badTelephone;
- }
-
- // simple spam check
- else if (validationRules.indexOf('validate_spamcheck') > -1 && !jQueryFormUtils.simpleSpamCheck(value, validationRules)) {
- return validationErrorMsg || language.badSecurityAnswer;
- }
-
- // UK VAT Number check
- else if (validationRules.indexOf('validate_ukvatnumber') > -1 && !jQueryFormUtils.validateUKVATNumber(value)) {
- return validationErrorMsg || language.badUKVatAnswer;
- }
-
- // Custom regexp validation
- if (validationRules.indexOf('validate_custom') > -1 && validationRules.indexOf('regexp/') > -1) {
- var regexp = new RegExp(validationRules.split('regexp/')[1].split('/')[0]);
- if (!regexp.test(value)) {
- return validationErrorMsg || language.badCustomVal;
- }
- }
-
- // Swedish social security number
- if (validationRules.indexOf('validate_swesc') > -1 && !jQueryFormUtils.validateSwedishSecurityNumber(value)) {
- return validationErrorMsg || language.badSecurityNumber;
- }
-
- // confirmation
- if (validationRules.indexOf('validate_confirmation') > -1 && typeof(form) != 'undefined') {
- var conf = '';
- var confInput = form.find('input[name=' + el.attr('name') + '_confirmation]').eq(0);
- if (confInput) {
- conf = confInput.val();
- }
- if (value !== conf) {
- return validationErrorMsg || language.notConfirmed;
- }
- }
- }
-
- return true;
-};
-
-/**
- * Error dialogs
- *
- * @var {Object}
- */
-jQueryFormUtils.LANG = {
- errorTitle : 'Form submission failed!',
- requiredFields : 'You have not answered all required fields',
- badTime : 'You have not given a correct time',
- badEmail : 'You have not given a correct e-mail address',
- badTelephone : 'You have not given a correct phone number',
- badSecurityAnswer : 'You have not given a correct answer to the security question',
- badDate : 'You have not given a correct date',
- tooLongStart : 'You have given an answer longer than ',
- tooLongEnd : ' characters',
- tooShortStart : 'You have given an answer shorter than ',
- tooShortEnd : ' characters',
- badLength : 'You have to give an answer between ',
- notConfirmed : 'Values could not be confirmed',
- badDomain : 'Incorrect domain value',
- badUrl : 'Incorrect url value',
- badFloat : 'Incorrect float value',
- badCustomVal : 'You gave an incorrect answer',
- badInt : 'Incorrect integer value',
- badSecurityNumber : 'Your social security number was incorrect',
- badUKVatAnswer : 'Incorrect UK VAT Number',
- badNumberOfSelectedOptionsStart : 'You have to choose at least ',
- badNumberOfSelectedOptionsEnd : ' answers'
-};
-
-
-/**
- * Validate url
- *
- * @param {String} url
- * @return {Boolean}
- */
-jQueryFormUtils.validateUrl = function(url) {
- // contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/ but added support for arrays in the url ?arg[]=sdfsdf
- var urlFilter = /^(https|http|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;
- if(urlFilter.test(url)) {
- var domain = url.split(/^https|^http|^ftp/i)[1].replace('://', '');
- var domainSlashPos = domain.indexOf('/');
- if(domainSlashPos > -1)
- domain = domain.substr(0, domainSlashPos);
-
- return jQueryFormUtils.validateDomain(domain); // todo: add support for IP-addresses
- }
- return false;
-};
-
-/**
- * Restrict input length
- *
- * @param {jQuery} inputElement Jquery Html object
- * @param {jQuery} maxLengthElement jQuery Html Object
- * @return void
- */
-jQueryFormUtils.lengthRestriction = function(inputElement, maxLengthElement) {
- // read maxChars from counter display initial text value
- var maxChars = parseInt(maxLengthElement.text(),10);
-
- // bind events to this element
- // setTimeout is needed, cut or paste fires before val is available
- $(inputElement).bind('keydown keyup keypress focus blur', countCharacters )
- .bind('cut paste', function(){ setTimeout(countCharacters, 100); } )
- ;
- // internal function does the counting and sets display value
- function countCharacters(){
- var numChars = inputElement.val().length;
- if(numChars > maxChars){
- // get current scroll bar position
- var currScrollTopPos = inputElement.scrollTop();
- // trim value to max length
- inputElement.val(inputElement.val().substring(0, maxChars));
- inputElement.scrollTop(currScrollTopPos);
- };
- // set counter text
- maxLengthElement.text(maxChars - numChars);
- };
-};
diff --git a/jquery.formvalidator.min.js b/jquery.formvalidator.min.js
deleted file mode 100644
index b0973ec..0000000
--- a/jquery.formvalidator.min.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-* FORM VALIDATION MADE EASY
-* ------------------------------------------
-* Created by Victor Jonsson
-* Documentation and issue tracking on Github
-*
-* @license GPLv2 http://www.example.com/licenses/gpl.html
-* @version 1.5.4
-*/
-(function(a){a.extend(a.fn,{validateOnBlur:function(b,c){var d=a(this);return d.find("textarea,input,select").blur(function(){a(this).doValidate(b,c)}),d},showHelpOnFocus:function(b){b||(b="data-validation-help");var c=a(this);return c.find("textarea,input").each(function(){var c=a(this).attr(b);c&&a(this).focus(function(){var b=a(this);b.parent().find(".jquery_form_help").length==0&&b.after(a("").addClass("jquery_form_help").text(c).hide().fadeIn())}).blur(function(){a(this).parent().find(".jquery_form_help").fadeOut("slow",function(){a(this).remove()})})}),c},doValidate:function(b,c,d){typeof d=="undefined"&&(d=!0);var e=a(this),f={ignore:[],validationRuleAttribute:"data-validation",validationErrorMsgAttribute:"data-validation-error-msg",errorElementClass:"error",borderColorOnError:"red",dateFormat:"yyyy-mm-dd"};c&&a.extend(f,c),b&&a.extend(jQueryFormUtils.LANG,b),b=jQueryFormUtils.LANG;var g=e.attr("type");jQueryFormUtils.defaultBorderColor===null&&g!=="submit"&&g!=="checkbox"&&g!=="radio"&&(jQueryFormUtils.defaultBorderColor=e.css("border-color")),e.removeClass(f.errorElementClass).parent().find(".jquery_form_error_message").remove(),f.borderColorOnError!==""&&e.css("border-color",jQueryFormUtils.defaultBorderColor);if(!jQueryFormUtils.ignoreInput(e.attr("name"),g,f)){var h=jQueryFormUtils.validateInput(e,b,f);h===!0?e.unbind("keyup"):(e.addClass(f.errorElementClass).parent().append(''+h+""),f.borderColorOnError!==""&&e.css("border-color",f.borderColorOnError),d&&e.bind("keyup",function(){a(this).doValidate(b,c,!1)}))}return a(this)},validate:function(b,c){var d={ignore:[],errorElementClass:"error",borderColorOnError:"red",errorMessageClass:"jquery_form_error_message",validationRuleAttribute:"data-validation",validationErrorMsgAttribute:"data-validation-error-msg",errorMessagePosition:"top",scrollToTopOnError:!0,dateFormat:"yyyy-mm-dd"};c&&a.extend(d,c),b&&a.extend(jQueryFormUtils.LANG,b),b=jQueryFormUtils.LANG;var e=function(a){jQuery.inArray(a,f)<0&&f.push(a)},f=[],g=[],h=a(this);h.find("input,textarea,select").each(function(){var c=a(this),i=c.attr("type");if(!jQueryFormUtils.ignoreInput(c.attr("name"),i,d))if(i==="radio"){var j=c.attr(d.validationRuleAttribute);if(typeof j!="undefined"&&j==="required"){var k=c.attr("name"),l=!1;h.find("input[name="+k+"]").each(function(){if(a(this).is(":checked"))return l=!0,!1});if(!l){var m=c.attr(d.validationErrorMsgAttribute);c.attr("data-validation-current-error",m||b.requiredFields),f.push(m||b.requiredFields),g.push(c)}}}else{jQueryFormUtils.defaultBorderColor===null&&i&&(jQueryFormUtils.defaultBorderColor=a.trim(c.css("border-color")));var n=jQueryFormUtils.validateInput(c,b,d,h);n!==!0&&(g.push(c),c.attr("data-validation-current-error",n),e(n))}});var i=jQueryFormUtils.defaultBorderColor===null||jQueryFormUtils.defaultBorderColor.indexOf(" ")>-1&&jQueryFormUtils.defaultBorderColor.indexOf("rgb")==-1?"border":"border-color";h.find("input,textarea,select").css(i,jQueryFormUtils.defaultBorderColor).removeClass(d.errorElementClass),a("."+d.errorMessageClass.split(" ").join(".")).remove(),a(".jquery_form_error_message").remove();if(g.length>0){for(var j=0;j";for(var j=0;j * "+f[j];h.children().eq(0).before('
'+k+"
"),d.scrollToTopOnError&&a(window).scrollTop(h.offset().top-20)}else for(var j=0;j0?m.eq(0).text(g[j].attr("data-validation-current-error")):l.append(''+g[j].attr("data-validation-current-error")+"")}return!1}return!0},restrictLength:function(a){return new jQueryFormUtils.lengthRestriction(this,a),this}})})(jQuery);var jQueryFormUtils={};jQueryFormUtils.defaultBorderColor=null,jQueryFormUtils.validateEmail=function(a){var b=/^([a-zA-Z0-9_\.\-])+@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(b.test(a)){var c=a.split("@");if(c.length==2)return jQueryFormUtils.validateDomain(c[1])}return!1},jQueryFormUtils.validatePhoneNumber=function(a){var b=a.match(/\+/g),c=a.match(/-/g);return b!==null&&b.length>1||c!==null&&c.length>1?!1:b!==null&&a.indexOf("+")!==0?!1:(a=a.replace(/([-|\+])/g,""),a.length>8&&a.match(/[^0-9]/g)===null)},jQueryFormUtils.validateSwedishMobileNumber=function(a){if(!jQueryFormUtils.validatePhoneNumber(a))return!1;a=a.replace(/[^0-9]/g,"");var b=a.substring(0,3);return a.length!=10&&b!=="467"?!1:a.length!=11&&b==="467"?!1:/07[0-9{1}]/.test(b)||b==="467"&&a.substr(3,1)==="0"},jQueryFormUtils.validateUKVATNumber=function(a){a=a.replace(/[^0-9]/g,"");if(a.length<9)return!1;var b=!1,c=a.split(""),d=Number(c[7]+c[8]),e=c[0],f=c[1];if(e==0&&f>0)return!1;var g=0;for(var h=0;h<7;h++)g+=c[h]*(8-h);var i=0,h=0;for(var j=8;j>=2;j--)i+=c[h]*j,h++;while(g>0)g-=97;return g=Math.abs(g),d==g&&(b=!0),b||(g%=97,g>=55?g-=55:g+=42,g==d&&(b=!0)),b},jQueryFormUtils.validateBirthdate=function(a,b){var c=this.parseDate(a,b);if(!c)return!1;var d=new Date,e=d.getFullYear(),f=c[0],g=c[1],h=c[2];if(f===e){var i=d.getMonth()+1;if(g===i){var j=d.getDate();return h<=j}return ge-124},jQueryFormUtils.ignoreInput=function(a,b,c){if(b==="submit"||b==="button")return!0;for(var d=0;d0?"\\"+c:"")+"(\\d{"+e[f].length+"})";d+="$";var g=a.match(new RegExp(d));if(g===null)return!1;var h=function(a,b,c){for(var d=0;d28&&(k%4!==0||k%100===0&&k%400!==0)||i===2&&j>29&&(k%4===0||k%100!==0&&k%400===0)||i>12||i===0?!1:this.isShortMonth(i)&&j>30||!this.isShortMonth(i)&&j>31||j===0?!1:[k,i,j]},jQueryFormUtils.parseDateInt=function(a){return a.indexOf("0")===0&&(a=a.replace("0","")),parseInt(a,10)},jQueryFormUtils.validateSwedishSecurityNumber=function(a){if(!a.match(/^(\d{4})(\d{2})(\d{2})(\d{4})$/))return!1;var b=RegExp.$1,c=jQueryFormUtils.parseDateInt(RegExp.$2),d=jQueryFormUtils.parseDateInt(RegExp.$3),e=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(b%400===0||b%4===0&&b%100!==0)e[1]=29;if(c<1||c>12||d<1||d>e[c-1])return!1;a=a.substring(2,a.length);var f="";for(var g=0;g24||c>59||b===24&&c>0?!1:!0},jQueryFormUtils.validateFloat=function(a){return a.match(/^(\-|)([0-9]+)\.([0-9]+)$/)!==null},jQueryFormUtils.validateInteger=function(a){return a!==""&&a.replace(/[0-9]/g,"")===""},jQueryFormUtils.isShortMonth=function(a){return a%2===0&&a<7||a%2!==0&&a>7},jQueryFormUtils.simpleSpamCheck=function(a,b){var c=b.match(/captcha([0-9a-z]+)/i)[1].replace("captcha","");return a===c},jQueryFormUtils.validateDomain=function(a){a=a.replace("ftp://","").replace("https://","").replace("http://","").replace("www.","");var b=new Array(".com",".net",".org",".biz",".coop",".info",".museum",".name",".pro",".edu",".gov",".int",".mil",".ac",".ad",".ae",".af",".ag",".ai",".al",".am",".an",".ao",".aq",".ar",".as",".at",".au",".aw",".az",".ba",".bb",".bd",".be",".bf",".bg",".bh",".bi",".bj",".bm",".bn",".bo",".br",".bs",".bt",".bv",".bw",".by",".bz",".ca",".cc",".cd",".cf",".cg",".ch",".ci",".ck",".cl",".cm",".cn",".co",".cr",".cu",".cv",".cx",".cy",".cz",".de",".dj",".dk",".dm",".do",".dz",".ec",".ee",".eg",".eh",".er",".es",".et",".fi",".fj",".fk",".fm",".fo",".fr",".ga",".gd",".ge",".gf",".gg",".gh",".gi",".gl",".gm",".gn",".gp",".gq",".gr",".gs",".gt",".gu",".gv",".gy",".hk",".hm",".hn",".hr",".ht",".hu",".id",".ie",".il",".im",".in",".io",".iq",".ir",".is",".it",".je",".jm",".jo",".jp",".ke",".kg",".kh",".ki",".km",".kn",".kp",".kr",".kw",".ky",".kz",".la",".lb",".lc",".li",".lk",".lr",".ls",".lt",".lu",".lv",".ly",".ma",".mc",".md",".mg",".mh",".mk",".ml",".mm",".mn",".mo",".mp",".mq",".mr",".ms",".mt",".mu",".mv",".mw",".mx",".my",".mz",".na",".nc",".ne",".nf",".ng",".ni",".nl",".no",".np",".nr",".nu",".nz",".om",".pa",".pe",".pf",".pg",".ph",".pk",".pl",".pm",".pn",".pr",".ps",".pt",".pw",".py",".qa",".re",".ro",".rw",".ru",".sa",".sb",".sc",".sd",".se",".sg",".sh",".si",".sj",".sk",".sl",".sm",".sn",".so",".sr",".st",".sv",".sy",".sz",".tc",".td",".tf",".tg",".th",".tj",".tk",".tm",".tn",".to",".tp",".tr",".tt",".tv",".tw",".tz",".ua",".ug",".uk",".um",".us",".uy",".uz",".va",".vc",".ve",".vg",".vi",".vn",".vu",".ws",".wf",".ye",".yt",".yu",".za",".zm",".zw",".mobi",".xxx"),c=a.lastIndexOf("."),d=a.substring(0,c),e=a.substring(c,a.length),f=!1;for(var g=0;g57)return!1;var l=d.substring(0,1),m=d.substring(d.length-1,d.length);return l==="-"||l==="."||m==="-"||m==="."?!1:d.split(".").length>3||d.split("..").length>1?!1:d.replace(/[0-9a-z\.\-]/g,"")!==""?!1:!0},jQueryFormUtils.attrInt=function(a,b){var c=new RegExp("("+b+"[0-9-]+)","g");return a.match(c)[0].replace(/[^0-9\-]/g,"")},jQueryFormUtils.validateInput=function(a,b,c,d){var e=a.val();e=e||"",e instanceof Array||(e=[e]);if(a.get(0).nodeName=="SELECT"&&a.attr("multiple")){var f=a.attr(c.validationRuleAttribute),g=a.attr(c.validationErrorMsgAttribute);if(f.indexOf("validate_num_answers")>-1){var h=jQueryFormUtils.attrInt(f,"num");if(h>e.length)return g||b.badNumberOfSelectedOptionsStart+h+b.badNumberOfSelectedOptionsEnd}}for(var i=0;i-1&&a==="")return l||c.requiredFields;if(k.indexOf("validate_min_length")>-1&&a.length-1&&a.length>jQueryFormUtils.attrInt(k,"length"))return l||c.tooLongStart+jQueryFormUtils.attrInt(k,"length")+c.tooLongEnd;if(k.indexOf("validate_length")>-1){var m=jQueryFormUtils.attrInt(k,"length").split("-");if(a.lengthparseInt(m[1],10))return l||c.badLength+jQueryFormUtils.attrInt(k,"length")+c.tooLongEnd}if(k.indexOf("validate_email")>-1&&!jQueryFormUtils.validateEmail(a))return l||c.badEmail;if(k.indexOf("validate_domain")>-1&&!jQueryFormUtils.validateDomain(a))return l||c.badDomain;if(k.indexOf("validate_url")>-1&&!jQueryFormUtils.validateUrl(a))return l||c.badUrl;if(k.indexOf("validate_float")>-1&&!jQueryFormUtils.validateFloat(a))return l||c.badFloat;if(k.indexOf("validate_int")>-1&&!jQueryFormUtils.validateInteger(a))return l||c.badInt;if(k.indexOf("validate_time")>-1&&!jQueryFormUtils.validateTime(a))return l||c.badTime;if(k.indexOf("validate_date")>-1&&!jQueryFormUtils.parseDate(a,d.dateFormat))return l||c.badDate;if(k.indexOf("validate_birthdate")>-1&&!jQueryFormUtils.validateBirthdate(a,d.dateFormat))return l||c.badDate;if(k.indexOf("validate_phone")>-1&&!jQueryFormUtils.validatePhoneNumber(a))return l||c.badTelephone;if(k.indexOf("validate_swemobile")>-1&&!jQueryFormUtils.validateSwedishMobileNumber(a))return l||c.badTelephone;if(k.indexOf("validate_spamcheck")>-1&&!jQueryFormUtils.simpleSpamCheck(a,k))return l||c.badSecurityAnswer;if(k.indexOf("validate_ukvatnumber")>-1&&!jQueryFormUtils.validateUKVATNumber(a))return l||c.badUKVatAnswer;if(k.indexOf("validate_custom")>-1&&k.indexOf("regexp/")>-1){var n=new RegExp(k.split("regexp/")[1].split("/")[0]);if(!n.test(a))return l||c.badCustomVal}if(k.indexOf("validate_swesc")>-1&&!jQueryFormUtils.validateSwedishSecurityNumber(a))return l||c.badSecurityNumber;if(k.indexOf("validate_confirmation")>-1&&typeof e!="undefined"){var o="",p=e.find("input[name="+b.attr("name")+"_confirmation]").eq(0);p&&(o=p.val());if(a!==o)return l||c.notConfirmed}}return!0},jQueryFormUtils.LANG={errorTitle:"Form submission failed!",requiredFields:"You have not answered all required fields",badTime:"You have not given a correct time",badEmail:"You have not given a correct e-mail address",badTelephone:"You have not given a correct phone number",badSecurityAnswer:"You have not given a correct answer to the security question",badDate:"You have not given a correct date",tooLongStart:"You have given an answer longer than ",tooLongEnd:" characters",tooShortStart:"You have given an answer shorter than ",tooShortEnd:" characters",badLength:"You have to give an answer between ",notConfirmed:"Values could not be confirmed",badDomain:"Incorrect domain value",badUrl:"Incorrect url value",badFloat:"Incorrect float value",badCustomVal:"You gave an incorrect answer",badInt:"Incorrect integer value",badSecurityNumber:"Your social security number was incorrect",badUKVatAnswer:"Incorrect UK VAT Number",badNumberOfSelectedOptionsStart:"You have to choose at least ",badNumberOfSelectedOptionsEnd:" answers"},jQueryFormUtils.validateUrl=function(a){var b=/^(https|http|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;if(b.test(a)){var c=a.split(/^https|^http|^ftp/i)[1].replace("://",""),d=c.indexOf("/");return d>-1&&(c=c.substr(0,d)),jQueryFormUtils.validateDomain(c)}return!1},jQueryFormUtils.lengthRestriction=function(a,b){this.input=a,this.maxLength=parseInt(b.text(),10);var c=this;$(this.input).keyup(function(){$(this).val($(this).val().substring(0,c.maxLength)),b.text(c.maxLength-$(this).val().length)}).focus(function(){$(this).keyup()}).trigger("keyup")};
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..dd540de
--- /dev/null
+++ b/package.json
@@ -0,0 +1,49 @@
+{
+ "name": "jquery-form-validator",
+ "description": "With this feature rich jQuery plugin it becomes easy to validate user input while keeping your HTML markup clean from javascript code. Even though this plugin has a wide range of validation functions it's designed to require as little bandwidth as possible. This is achieved by grouping together validation functions in \"modules\", making it possible for the programmer to load only those functions that's needed to validate a particular form.",
+ "version": "2.3.79",
+ "main": "./form-validator/jquery.form-validator.min.js",
+ "keywords": [
+ "form",
+ "validator",
+ "jquery"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/victorjonsson/jQuery-Form-Validator.git"
+ },
+ "bugs": {
+ "url": "https://github.com/victorjonsson/jQuery-Form-Validator/issues"
+ },
+ "author": {
+ "name": "Victor Jonsson",
+ "email": "kontakt@victorjonsson.se",
+ "url": "http://victorjonsson.se"
+ },
+ "homepage": "http://formvalidator.net/",
+ "license": "MIT",
+ "devDependencies": {
+ "grunt": "~0.4.5",
+ "grunt-cli": "~0.1.13",
+ "grunt-contrib-clean": "~1.0.0",
+ "grunt-contrib-concat": "^0.5.1",
+ "grunt-contrib-connect": "^0.11.2",
+ "grunt-contrib-copy": "~1.0.0",
+ "grunt-contrib-cssmin": "~0.14.0",
+ "grunt-contrib-jshint": "~1.0.0",
+ "grunt-contrib-qunit": "^0.7.0",
+ "grunt-contrib-uglify": "~0.11.1",
+ "grunt-contrib-watch": "^0.6.1",
+ "grunt-umd": "~2.4.0",
+ "numeral": "~1.5.3",
+ "qunitjs": "^1.20.0",
+ "jquery": "2.2.4"
+ },
+ "dependencies": {
+ "jquery": "2.2.4"
+ },
+ "scripts": {
+ "prepublish": "grunt prepublish",
+ "test": "grunt test"
+ }
+}
diff --git a/src/lang/ar.js b/src/lang/ar.js
new file mode 100644
index 0000000..f2165d6
--- /dev/null
+++ b/src/lang/ar.js
@@ -0,0 +1,79 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Arabic language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/ar');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'فَشِلَ إرسال النموذج',
+ requiredField: 'هذا الحقل مطلوب',
+ requiredFields: 'لم يتم ملأ جميع الحقول المطلوبة.',
+ badTime: 'حقل الوقت خاطىء',
+ badEmail: 'البريد الإلكتروني المدخل خاطئ',
+ badTelephone: 'رقم الهاتف المدخل خاطئ',
+ badSecurityAnswer: 'لم يتم الإجابة عن سؤال الأمان',
+ badDate: 'تاريخ مدخل خاطئ',
+ lengthBadStart: 'القيمة المدخلة يجب أن تكون بين ',
+ lengthBadEnd: ' حروف',
+ lengthTooLongStart: 'القيمة المدخل أطول من ',
+ lengthTooShortStart: 'القيمة المدخل أقصر من ',
+ notConfirmed: 'لم يتم تأكيد القيمة المدخلة',
+ badDomain: 'قيمة نطاق خاطئة',
+ badUrl: 'القيمة المدخلة ليست رابطاً صالحاً',
+ badCustomVal: 'القيمة المدخلة غير صالحة',
+ andSpaces: ' ومسافات ',
+ badInt: 'القيمة المدخلة ليست رقماً صحيحاً',
+ badSecurityNumber: 'رقم بطاقة الهوية غير صحيح',
+ badUKVatAnswer: 'رقم UK VAT غير صحيح',
+ badUKNin: 'غير صحيح UK NINرقم ',
+ badUKUtr: 'غير صحيح UK UTR رقم',
+ badStrength: 'كلمة المرور غير قوية',
+ badNumberOfSelectedOptionsStart: 'يجب اختيار على الأقل ',
+ badNumberOfSelectedOptionsEnd: ' أجوبة',
+ badAlphaNumeric: 'القيمة المدخلة يجب أن تتضمن حروف وأرقام فقط ',
+ badAlphaNumericExtra: ' و ',
+ wrongFileSize: 'الملف المراد تحميله كبير جداً (الحد المسموج %s)',
+ wrongFileType: 'ملفات من نوع %s فقط مسموحة',
+ groupCheckedRangeStart: 'من فضلك اختر بين ',
+ groupCheckedTooFewStart: 'من فضلك اختر على الأقل ',
+ groupCheckedTooManyStart: 'من فضلك اختر بحد أقصى ',
+ groupCheckedEnd: ' مرات',
+ badCreditCard: 'رقم بطاقة ائتمانية خاطىء',
+ badCVV: 'رمز الأمان خاطئ',
+ wrongFileDim : 'حدود الصورة غير صالحة',
+ imageTooTall : 'الصورة يمكن أن تكون أطول من',
+ imageTooWide : 'الصورة يمكن أن تكون أعرض من',
+ imageTooSmall : 'صورة صغيرة جداً',
+ min : 'أدنى',
+ max : 'أقصى',
+ imageRatioNotAccepted : 'أبعاد صورة غير مقبولة',
+ badBrazilTelephoneAnswer: 'رقم هاتف مدخل خاطىء',
+ badBrazilCEPAnswer: 'قيمة CEP المدخلة غير صحيحة',
+ badBrazilCPFAnswer: 'قيمة CPF المدخلة غير صحيحة',
+ badPlPesel: 'قيمة Pl PESEL المدخلة غير صحيحة',
+ badPlNip: 'قيمة Pl NIP المدخلة غير صحيحة',
+ badPlRegon: 'قيمة Pl REGON المدخلة غير صحيحة',
+ badreCaptcha: 'من فضلك أكد أنك لست روبوتاً',
+ passwordComplexityStart: 'كملة المرور تتكون على الأقل من ',
+ passwordComplexitySeparator: ', ',
+ passwordComplexityUppercaseInfo: ' حروف كبيرة',
+ passwordComplexityLowercaseInfo: ' حروف صغيرة',
+ passwordComplexitySpecialCharsInfo: ' رموز خاصة',
+ passwordComplexityNumericCharsInfo: ' أرقام',
+ passwordComplexityEnd: '.'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/ca.js b/src/lang/ca.js
new file mode 100644
index 0000000..3f7123c
--- /dev/null
+++ b/src/lang/ca.js
@@ -0,0 +1,63 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Catalan language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/ca');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'El formulari no s\'ha pogut enviar!',
+ requiredField: 'Aquest camp és obligatori',
+ requiredFields: 'No ha contestat tots els camps requerits',
+ badTime: 'L\'hora proporcionada no és vàlida',
+ badEmail: 'La direcció d\'e-mail no és vàlida',
+ badTelephone: 'El número de telèfon proporcionat no és vàlid',
+ badSecurityAnswer: 'La resposta a la seva pregunta de seguretat és incorrecte',
+ badDate: 'La data proporcionada no és vàlida',
+ lengthBadStart: 'La seva resposta s\'ha d\'incloure entre ',
+ lengthBadEnd: ' caràcters',
+ lengthTooLongStart: 'La seva resposta ha de ser menor a ',
+ lengthTooShortStart: 'La seva resposta ha de ser major a ',
+ notConfirmed: 'Els valors proporcionats no poden ser confirmats',
+ badDomain: 'Ha introduït un domini incorrecte',
+ badUrl: 'La URL proporcionada no és vàlida',
+ badCustomVal: 'Els valors proporcionats no són vàlids',
+ andSpaces: ' i espais ',
+ badInt: 'El valor proporcionat no és un número vàlid',
+ badSecurityNumber: 'El número de seguretat social proporcionat és incorrecte',
+ badUKVatAnswer: 'El número VAT proporcionat no és vàlid pel Regne Unit',
+ badStrength: 'La contrasenya proporcionada no és suficientment segura',
+ badNumberOfSelectedOptionsStart: 'Ha de seleccionar almenys',
+ badNumberOfSelectedOptionsEnd: ' resposta(es)',
+ badAlphaNumeric: 'El valor proporcionat només ha de contenir caràcters alfanumèrics (a-z i números)',
+ badAlphaNumericExtra: ' i',
+ wrongFileSize: 'L\'arxiu que està tractant de pujar és massa gran (màx. %s)',
+ wrongFileType: 'Només els arxius de tipus %s estan permesos',
+ groupCheckedRangeStart: 'Si us plau, triï entre ',
+ groupCheckedTooFewStart: 'Si us plau, triï almenys ',
+ groupCheckedTooManyStart: 'Si us plau, triï un màxim de ',
+ groupCheckedEnd: ' element(s)',
+ badCreditCard: 'El número de targeta de crèdit proporcionat no és vàlid',
+ badCVV: 'CVV proporcionat no és vàlid',
+ wrongFileDim: 'Les dimensions de la imatge no són vàlides,',
+ imageTooTall: 'l\'alçada de la imatge no pot ser major a',
+ imageTooWide: 'l\'amplada de la imatge no pot ser major a',
+ imageTooSmall: 'la imatge és massa petita',
+ min: 'min.',
+ max: 'màx.',
+ imageRatioNotAccepted : 'La proporció de la imatge (alçada x amplada) no és vàlida'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/cs.js b/src/lang/cs.js
new file mode 100644
index 0000000..b2a5bd8
--- /dev/null
+++ b/src/lang/cs.js
@@ -0,0 +1,66 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Czech language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/cs');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Podání formuláře selhalo!',
+ requiredField: 'Toto pole je povinné',
+ requiredfields: 'Nebyly vyplněny všechny požadované pole',
+ badTime: 'Neplatný čas',
+ badEmail: 'Neplatná e-mailová adresa',
+ badTelephone: 'Neplatné telefonní číslo',
+ badSecurityAnswer: 'Chybná odpověď na bezpečnostní otázku',
+ badDate: 'Nesprávné datum',
+ lengthBadStart: 'Zadaná hodnota musí být v rozmezí ',
+ lengthBadEnd: ' znaků',
+ lengthTooLongStart: 'Zadaná hodnota je větší než ',
+ lengthTooShortStart: 'Zadaná hodnota je menší než ',
+ notConfirmed: 'Zadané hodnoty nebyly potvrzené',
+ badDomain: 'Neplatná doména',
+ badUrl: 'Neplatný URL',
+ badCustomVal: 'Zadaná hodnota je chybná',
+ andSpaces: ' a mezery',
+ badInt: 'Neplatné číslo',
+ badSecurityNumber: 'Neplatné číslo zabezpečení',
+ badUKVatAnswer: 'Neplatné číslo DIČ ',
+ badStrength: 'Vaše heslo není dostatečně silné',
+ badNumberOfSelectedOptionsStart: 'Musíte vybrat nejméně ',
+ badNumberOfSelectedOptionsEnd: ' odpověď',
+ badAlphaNumeric: 'Zadaná hodnota může obsahovat pouze alfanumerické znaky ',
+ badAlphaNumericExtra: ' a ',
+ wrongFileSize: 'Soubor je příliš velký (max %s)',
+ wrongFileType: 'Pouze soubory typu %s',
+ groupCheckedRangeStart: 'Prosím, vyberte ',
+ groupCheckedTooFewStart: 'Vyberte prosím nejméně ',
+ groupCheckedTooManyStart: 'Vyberte prosím maximálně ',
+ groupCheckedEnd: ' složka(y)',
+ badCreditCard: 'Číslo kreditní karty je neplatné',
+ badCVV: 'Číslo CVV je neplatné',
+ wrongFileDim: 'Nesprávné rozměry obrázku,',
+ imageTooTall: 'obraz nemůže být vyšší než',
+ imageTooWide: 'obraz nemůže být širší než',
+ imageTooSmall: 'obraz je příliš malý',
+ min: 'min',
+ max: 'max',
+ imageRatioNotAccepted: 'Poměr obrázku je nesprávný',
+ badBrazilTelephoneAnswer: 'Neplatné telefonní číslo',
+ badBrazilCEPAnswer: 'Neplatné CEP',
+ badBrazilCPFAnswer: 'Neplatné CPF'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/da.js b/src/lang/da.js
new file mode 100644
index 0000000..fe875bc
--- /dev/null
+++ b/src/lang/da.js
@@ -0,0 +1,66 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Danish language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/da');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ andSpaces: ' og mellemrum ',
+ badAlphaNumeric: 'Det indtastede kan kun indeholde alfanumeriske karakter ',
+ badAlphaNumericExtra: ' og ',
+ badCVV: 'Det angivne CVV nummer er ugyldigt',
+ badCreditCard:'Det angivne kortnummer er ugyldigt',
+ badCustomVal: 'Den indtastede værdi er ugyldig',
+ badDate: 'Den angivne dato er ugyldig',
+ badDomain: 'Det angivne domæne er ugyldigt',
+ badEmail: 'Den angivne email adresse er ugyldig',
+ badInt: 'Det angivne tal er ugyldigt',
+ badNumberOfSelectedOptionsEnd: ' svar',
+ badNumberOfSelectedOptionsStart: 'Du skal vælge mindst ',
+ badSecurityAnswer: 'Du har ikke angivet et korrekt svar til sikkerhedsspørgsmålet',
+ badSecurityNumber: 'Dit CPR nummer er ikke korrekt',
+ badStrength: 'Det angivne password er ikke stærkt nok',
+ badTelephone: 'Det angivne telefonnummer er ugyldigt',
+ badTime: 'Det angivne tidspunkt er ugyldigt',
+ badUrl: 'Den angivne URL er ugyldig',
+ badreCaptcha: 'Verificer venligst at du ikke er en bot',
+ errorTitle: 'Formular forespørgslen fejlede!',
+ groupCheckedEnd: ' ting',
+ groupCheckedRangeStart: 'Vælg venligst mellem ',
+ groupCheckedTooFewStart: 'Vælg mindst ',
+ groupCheckedTooManyStart: 'Vælg højst ',
+ imageRatioNotAccepted: 'Billedets dimensioner er ikke acceptable',
+ imageTooSmall: 'Billedet er for lille',
+ imageTooTall: 'Billedet må ikke være højere end',
+ imageTooWide: 'Billedet må ikke være bredere end',
+ lengthBadEnd: ' tegn',
+ lengthBadStart: 'Feltets værdi skal være mellem ',
+ lengthTooLongStart: 'Feltets værdi må ikke være længere end ',
+ lengthTooShortStart: 'Feltets værdi må ikke være kortere end ',
+ max: 'max',
+ min: 'min',
+ notConfirmed: 'Feltværdierne kunne ikke bekræftes',
+ requiredField: 'Dette felt er påkrævet',
+ requiredFields: 'Du har ikke udfyldt alle påkrævede felter',
+ wrongFileDim: 'Forkerte billede dimensioner,',
+ wrongFileSize: 'Filen du forsøger at uploade er for stor (max %s)',
+ wrongFileType: 'Udelukkende filer at følgedne type er tilladt %s'
+ };
+
+ });
+
+})(jQuery, window);
+
+
+
diff --git a/src/lang/de.js b/src/lang/de.js
new file mode 100644
index 0000000..485f92d
--- /dev/null
+++ b/src/lang/de.js
@@ -0,0 +1,66 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * German language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/de');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Ihre Anfrage konnte nicht gesendet werden!',
+ requiredField: 'Dies ist ein Pflichtfeld',
+ requiredFields: 'Sie haben nicht alle Fragen beantwortet',
+ badTime: 'Sie haben nicht die korrekte Zeit eingegeben',
+ badEmail: 'Sie haben keine gültige E-Mail-Adresse eingegeben',
+ badTelephone: 'Sie haben keine richtige Telefonnummer eingetragen',
+ badSecurityAnswer: 'Sie haben die falsche Antwort auf die Sicherheitsfrage eingegeben',
+ badDate: 'Eingabe eines falschen Datums',
+ lengthBadStart: 'Der eingegebene Wert muss dazwischen sein ',
+ lengthBadEnd: ' Zeichen',
+ lengthTooLongStart: 'Der eingegebene Wert ist größer als ',
+ lengthTooShortStart: 'Der eingegebene Wert ist kleiner als ',
+ notConfirmed: 'Die Eingaben sind unterschiedlich',
+ badDomain: 'Sie haben die falsche Domäne eingetragen',
+ badUrl: 'Sie haben nicht die richtige URL eingegeben',
+ badCustomVal: 'Eingabe einer falschen Antwort',
+ andSpaces: ' und Leerzeichen',
+ badInt: 'Sie haben keine Nummer eingegeben',
+ badSecurityNumber: 'Sie haben eine falsche Sozialversicherungsnummer eingegeben',
+ badUKVatAnswer: 'Sie haben keine UK-Umsatzsteuer-Identifikationsnummer eingegeben',
+ badStrength: 'Sie haben ein Kennwort, das nicht sicher genug ist eingegeben',
+ badNumberOfSelectedOptionsStart: 'Wählen Sie zu mindestens ',
+ badNumberOfSelectedOptionsEnd: ' Antwort',
+ badAlphaNumeric: 'Sie können nur alphanumerische Zeichen (Buchstaben und Zahlen) eingeben',
+ badAlphaNumericExtra: ' und',
+ wrongFileSize: 'Die Datei, die Sie hochzuladen versuchen, ist zu groß (max %s)',
+ wrongFileType: 'Nur Dateien vom Typ %s sind zulässig',
+ groupCheckedRangeStart: 'Wählen Sie zwischen',
+ groupCheckedTooFewStart: 'Dann müssen Sie zumindest sicher,',
+ groupCheckedTooManyStart: 'Sie können nicht mehr als zu machen',
+ groupCheckedEnd: ' Auswahl',
+ badCreditCard: 'Sie haben eine ungültige Kreditkartennummer eingegeben',
+ badCVV: 'Sie haben eine falsche CVV eingegeben',
+ wrongFileDim: 'Illegale Bildgröße,',
+ imageTooTall: 'Bild kann nicht größer sein als',
+ imageTooWide: 'Bild kann nicht breiter sein als',
+ imageTooSmall: 'Bild ist zu klein',
+ min: 'min',
+ max: 'max',
+ imageRatioNotAccepted : 'Bildverhältnis wird nicht akzeptiert',
+ badBrazilTelephoneAnswer: 'Die eingegebene Telefonnummer ist nicht korrekt',
+ badBrazilCEPAnswer: 'Der CEP ist ungültig',
+ badBrazilCPFAnswer: 'Der CEP ist ungültig'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/es.js b/src/lang/es.js
new file mode 100644
index 0000000..4bf3750
--- /dev/null
+++ b/src/lang/es.js
@@ -0,0 +1,70 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Spanish language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/es');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'El formulario no se ha podido enviar!',
+ requiredField: 'Este campo es obligatorio',
+ requiredFields: 'No ha contestado todos los campos requeridos',
+ badTime: 'La hora proporcionada no es válida',
+ badEmail: 'La dirección de e-mail no es válida',
+ badTelephone: 'El número de teléfono proporcionado no es válido',
+ badSecurityAnswer: 'La respuesta a su pregunta de seguridad es incorrecta',
+ badDate: 'La fecha proporcionada no es válida',
+ lengthBadStart: 'Su respuesta debe incluir entre ',
+ lengthBadEnd: ' caracteres',
+ lengthTooLongStart: 'Su respuesta debe de ser menor a ',
+ lengthTooShortStart: 'Su respuesta debe de ser mayor a ',
+ notConfirmed: 'Los valores proporcionados no pudieron ser confirmados',
+ badDomain: 'Ha introducido un dominio incorrecto',
+ badUrl: 'La URL proporcionada no es válida',
+ badCustomVal: 'Los valores proporcionados no son válidos',
+ andSpaces: ' y espacios ',
+ badInt: 'El valor proporcionado no es un número válido',
+ badSecurityNumber: 'El número de seguridad social proporcionado es incorrecto',
+ badUKVatAnswer: 'El número VAT proporcionado no es válido para el Reino Unido',
+ badStrength: 'La contraseña proporcionada no es lo suficientemente segura',
+ badNumberOfSelectedOptionsStart: 'Debe seleccionar al menos',
+ badNumberOfSelectedOptionsEnd: ' respuesta(s)',
+ badAlphaNumeric: 'El valor proporcionado solo debe contener caracteres alfanuméricos (a-z y números)',
+ badAlphaNumericExtra: ' y',
+ wrongFileSize: 'El archivo que está tratando de subir es demasiado grande (máx. %s)',
+ wrongFileType: 'Sólo los archivos del tipo %s están permitido',
+ groupCheckedRangeStart: 'Por favor, elija entre ',
+ groupCheckedTooFewStart: 'Por favor, elija al menos ',
+ groupCheckedTooManyStart: 'Por favor, elija un máximo de ',
+ groupCheckedEnd: ' ítem(s)',
+ badCreditCard: 'El número de tarjeta de crédito proporcionado no es válido',
+ badCVV: 'CVV proporcionado no es válido',
+ wrongFileDim: 'Las dimensiones de la imagen no son validas,',
+ imageTooTall: 'el alto de la imagen no puede ser mayor a',
+ imageTooWide: 'el ancho de la imagen no puede ser mayor a',
+ imageTooSmall: 'la imagen es demasiado pequeña',
+ min: 'min.',
+ max: 'máx.',
+ imageRatioNotAccepted : 'La proporción de imagen (alto x ancho) no es válida',
+ passwordComplexityStart: 'La contraseña debe contener al menos ',
+ passwordComplexitySeparator: ', ',
+ passwordComplexityUppercaseInfo: ' mayúscula(s)',
+ passwordComplexityLowercaseInfo: ' minúscula(s)',
+ passwordComplexitySpecialCharsInfo: ' caracter(es) especial(es)',
+ passwordComplexityNumericCharsInfo: ' número(s)',
+ passwordComplexityEnd: '.'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/fa.js b/src/lang/fa.js
new file mode 100644
index 0000000..e163493
--- /dev/null
+++ b/src/lang/fa.js
@@ -0,0 +1,65 @@
+/* jshint -W100 */
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Farsi language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ * @version 0.0.1
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/fa');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'ثبت فرم با مشکل مواجه شد!',
+ requiredField: 'شما همه فیلدهای ضروری را تکمیل نکرده اید',
+ requiredFields: 'شما فیلد ضروری را تکمیل نکرده اید',
+ badTime: 'زمان درستی را وارد نکرده اید',
+ badEmail: 'آدرس ایمیل را به درستی وارد نکرده اید',
+ badTelephone: 'شماره تلفن وارد شده معتبر نیست',
+ badSecurityAnswer: 'شما به سوال امنیتی درست پاسخ نداده اید',
+ badDate: 'تاریخ درستی را وارد نکرده اید',
+ lengthBadStart: 'مقدار وارد شده باید ',
+ lengthBadEnd: ' حرف باشد.',
+ lengthTooLongStart: 'مقدار ورودی بیشتر از ',
+ lengthTooShortStart: 'مقدار ورودی کمتر از ',
+ notConfirmed: 'ورودی ها یکسان نیستند',
+ badDomain: 'آدرس دامنه به درستی وارد نشده است',
+ badUrl: 'آدرس اینترنتی به درستی وارد نشده است',
+ badCustomVal: 'مقدار ورودی نادرست است',
+ andSpaces: ' و فاصله خالی ',
+ badInt: 'مقدار ورودی باید عدد باشد',
+ badSecurityNumber: 'شماره امنیت اجتماعی شما معتبر نیست',
+ badUKVatAnswer: 'شماره مالیاتی شما درست نیست',
+ badStrength: 'کلمه عبور به قدر کافی مستحکم نیست',
+ badNumberOfSelectedOptionsStart: 'شما باید حداقل ',
+ badNumberOfSelectedOptionsEnd: ' پاسخ را انتخاب کنید',
+ badAlphaNumeric: 'مقدار ورودی می تواند حروف و شماره باشد ',
+ badAlphaNumericExtra: ' و ',
+ wrongFileSize: 'حجم فایل انتخابی زیاد است. (حداکثر %s)',
+ wrongFileType: 'فقط فایل های با فرمت %s مجاز هستند',
+ groupCheckedRangeStart: 'لطفا بین ',
+ groupCheckedTooFewStart: 'لطفا حداقل ',
+ groupCheckedTooManyStart: 'لطفا حداکثر ',
+ groupCheckedEnd: ' گزینه انتخاب کنید',
+ badCreditCard: 'شماره کارت اعتباری معتبر نیست',
+ badCVV: 'کد شناسایی سی وی وی معتبر نیست',
+ wrongFileDim : 'ابعاد تصویر صحیح نیست,',
+ imageTooTall : 'حداکثر طول تصویر',
+ imageTooWide : 'حداکثر عرض تصویر',
+ imageTooSmall : 'تصویر خیلی کوچک است',
+ min : 'حداقل',
+ max : 'حداکثر',
+ imageRatioNotAccepted : 'نسبت ابعاد تصویر مناسب نیست'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/fr.js b/src/lang/fr.js
new file mode 100644
index 0000000..2259e7f
--- /dev/null
+++ b/src/lang/fr.js
@@ -0,0 +1,63 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * French language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/fr');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Le formulaire n\'a pas pu être envoyé!',
+ requiredField: 'Ce champ est obligatoire',
+ requiredFields: 'Vous n\'avez pas rempli tous les champs',
+ badTime: 'Vous n\'avez pas saisi l\'heure correctement',
+ badEmail: 'Vous n\'avez pas saisi une adresse e-mail valide',
+ badTelephone: 'Vous n\'avez pas saisi un numéro de téléphone valide',
+ badSecurityAnswer: 'Vous avez saisi une mauvaise réponse à la question de sécurité',
+ badDate: 'Vous n\'avez pas saisi une date correcte',
+ lengthBadStart: 'Votre saisie doit comporter entre ',
+ lengthBadEnd: ' caractères',
+ lengthTooLongStart: 'Vous avez saisi une réponse qui est plus longue que ',
+ lengthTooShortStart: 'Votre saisie est plus courte que ',
+ notConfirmed: 'Les saisies ne sont pas identiques',
+ badDomain: 'Vous avez saisi un domaine incorrect',
+ badUrl: 'Vous avez saisi une URL incorrecte',
+ badCustomVal: 'Re-saisissez une réponse correcte',
+ andSpaces: ' et des espaces ',
+ badInt: 'Vous n\'avez pas saisi un numéro',
+ badSecurityNumber: 'Vous avez saisi un mauvais numéro de sécurité sociale',
+ badUKVatAnswer: 'Vous n\'avez pas saisi un numéro de TVA au Royaume-Uni',
+ badStrength: 'Vous avez saisi un mot de passe pas assez sécurisé',
+ badNumberOfSelectedOptionsStart: 'Vous devez sélectionner au moins ',
+ badNumberOfSelectedOptionsEnd: ' réponse(s)',
+ badAlphaNumeric: 'Vous ne pouvez répondre qu\'avec des caractères alphanumériques et des chiffres ',
+ badAlphaNumericExtra: ' et ',
+ wrongFileSize: 'Le fichier que vous essayez de télécharger est trop grand (max %s)',
+ wrongFileType: 'Seuls les fichiers du type %s sont autorisés',
+ groupCheckedRangeStart: 'Choisissez entre ',
+ groupCheckedTooFewStart: 'Vous devez faire au moins ',
+ groupCheckedTooManyStart: 'Vous ne pouvez pas faire plus de ',
+ groupCheckedEnd: ' sélection(s)',
+ badCreditCard: 'Vous avez saisi un numéro de carte de crédit invalide',
+ badCVV: 'Vous avez saisi un CVV incorrect',
+ wrongFileDim: 'Mauvaise taille de l\'image, ',
+ imageTooTall: 'l\'image ne peut pas être plus élevée que',
+ imageTooWide: 'l\'image ne peut pas être plus large que',
+ imageTooSmall: 'l\'image est trop petite',
+ min: 'moins',
+ max: 'max',
+ imageRatioNotAccepted: 'Ratio de l\'image non accepté'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/it.js b/src/lang/it.js
new file mode 100644
index 0000000..35cf0ba
--- /dev/null
+++ b/src/lang/it.js
@@ -0,0 +1,63 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Italian language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ * @version 2.2.163
+ */
+(function($, window) {
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/it');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Impossibile inviare il modulo!',
+ requiredField: 'Campo obbligatorio',
+ requiredFields: 'Non sono stati compilati tutti i campi richiesti',
+ badTime: 'L\'ora scelta non è valida',
+ badEmail: 'Questo indirizzo email non è valido',
+ badTelephone: 'Il numero di telefono imputato non è valido',
+ badSecurityAnswer: 'La risposta alla domanda di sicurezza è errata',
+ badDate: 'La data scelta non è valida',
+ lengthBadStart: 'La sua risposta non può essere più lunga di ',
+ lengthBadEnd: ' caratteri',
+ lengthTooLongStart: 'La lunghezza della risposta deve essere minore di ',
+ lengthTooShortStart: 'La lunghezza della risposta deve essere maggiore di ',
+ notConfirmed: 'Il valore non è stato confermato.',
+ badDomain: 'Il dominio inserito non è corretto.',
+ badUrl: 'L\' URL inserito non è valido',
+ badCustomVal: 'I valori inseriti non sono validi',
+ andSpaces: ' e spazi ',
+ badInt: 'Il numero inserito non è valido',
+ badSecurityNumber: 'Il numero di sicurezza inserito non è valido',
+ badUKVatAnswer: 'La Partita IVA (VAT) inserita non è valida nel Regno Unito',
+ badStrength: 'La password proposta non è sufficientemente sicura',
+ badNumberOfSelectedOptionsStart: 'Deve selezionare almeno',
+ badNumberOfSelectedOptionsEnd: ' risposta/e',
+ badAlphaNumeric: 'Il valore proposto deve contenere caratteri alfanumerici (a-z e 1234...)',
+ badAlphaNumericExtra: '',
+ wrongFileSize: 'Il file che si sta cercando di caricare è troppo grande (massimo %s)',
+ wrongFileType: 'Solo i file di tipo %s possono essere inviati',
+ groupCheckedRangeStart: 'Si prega di scegliere tra ',
+ groupCheckedTooFewStart: 'Si prega di selezionare un minimo di ',
+ groupCheckedTooManyStart: 'Si prega di selezionare un massimo di ',
+ groupCheckedEnd: ' opzione/i',
+ badCreditCard: 'Il numero di carta di credito non risulta valido',
+ badCVV: 'CVV non valido',
+ wrongFileDim: 'La dimensione dell\'immagine non è valida,',
+ imageTooTall: 'il lato alto dell\'immagine non può essere maggiore di',
+ imageTooWide: 'il lato lungo dell\'immagine non può essere maggiore di',
+ imageTooSmall: 'L\'immagine è troppo piccola',
+ min: 'min.',
+ max: 'máx.',
+ imageRatioNotAccepted : 'La proporzione dell\' immagine (altezza x larghezza) non è valida'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/ka.js b/src/lang/ka.js
new file mode 100644
index 0000000..eb42c13
--- /dev/null
+++ b/src/lang/ka.js
@@ -0,0 +1,69 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Georgian language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/ka');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'ფორმა ვერ გაიგზავნა!',
+ requiredField: 'ველის შევსება სავალდებულოა',
+ requiredFields: 'თქვენ არ შეგივსიათ ყველა სავალდებულო ველი',
+ badTime: 'თქვენ მიუთითეთ არასწორი დრო',
+ badEmail: 'თქვენ მიუთითეთ არასწორი ელ.ფოსტის მისამართი',
+ badTelephone: 'თქვენ მიუთითეთ არასწორი ტელეფონის ნომერი',
+ badSecurityAnswer: 'თქვენ გაეცით არასწორი პასუხი უსაფრთხოების კითხვას',
+ badDate: 'თქვენ მიუთითეთ არასწორი თარიღი',
+ lengthBadStart: 'ველის მნიშვნელობის სიგრძე უნდა იყოს ',
+ lengthBadEnd: ' შუალედში',
+ lengthTooLongStart: 'ველის მნიშვნელობის სიგრძე უნდა იყოს მაქსიმუმ ',
+ lengthTooShortStart: 'ველის მნიშვნელობის სიგრძე უნდა იყოს მინიმუმ ',
+ notConfirmed: 'ველის მნიშვნელობები ვერ დადასტურდა',
+ badDomain: 'არასწორი დომენის მისამართი',
+ badUrl: 'ველის მნიშვნელობა არ არის მართებული URL მისამართი',
+ badCustomVal: 'ველის მნიშვნელობა არ არის მართებული',
+ andSpaces: ' და გამოტოვებები ',
+ badInt: 'ველის მნიშვნელობა არ არის მართებული რიცხვი',
+ badStrength: 'პაროლი არ არის საკმარისად ძლიერი (კარგი)',
+ badNumberOfSelectedOptionsStart: 'თქვენ უნდა აირჩიოთ სულ მცირე ',
+ badNumberOfSelectedOptionsEnd: ' პასუხი',
+ badAlphaNumeric: 'ველის მნიშვნელობა უნდა შეიცავდეს მხოლოდ ციფრებსა და ასოებს ',
+ badAlphaNumericExtra: ' და ',
+ wrongFileSize: 'ფაილი, რომლის ატვირთვასაც ცდილობთ არის ძალიან დიდი (დასაშვებია მაქსიმუმ %s)',
+ wrongFileType: 'დასაშვებია მხოლოდ შემდეგი გაფართოების ფაილები: %s',
+ groupCheckedRangeStart: 'გთხოვთ, აირჩიოთ ',
+ groupCheckedTooFewStart: 'გთხოვთ, აირჩიოთ სულ მცირე ',
+ groupCheckedTooManyStart: 'გთხოვთ, აირჩიოთ მაქსიმუმ ',
+ groupCheckedEnd: ' პუნქტი',
+ badCreditCard: 'საკრედიტო ბარათის ნომერი არ არის მართებული',
+ badCVV: 'CVV კოდი არ არის მართებული',
+ wrongFileDim: 'არამართებული სურათის ზომები,',
+ imageTooTall: 'სურათი არ უნდა იყოს უფრო გრძელი ვიდრე',
+ imageTooWide: 'სურათი არ უნდა იყოს უფრო ფართე ვიდრე',
+ imageTooSmall: 'სურათი არის ძალიან პატარა',
+ min: 'მინიმუმ',
+ max: 'მაქსიმუმ',
+ imageRatioNotAccepted: 'სურათის სიგრძისა და სიგანის ეს თანაფარდობა დაუშვებელია',
+ badBrazilTelephoneAnswer: 'მითითებული ტელეფონის ნომერი არ არის მართებული',
+ badreCaptcha: 'დაადასტურეთ, რომ არ ხართ რობოტი',
+ passwordComplexityStart: 'პაროლი უნდა შეიცავდეს მინიმუმ ',
+ passwordComplexitySeparator: ', ',
+ passwordComplexityUppercaseInfo: ' დიდი ასო(ები)',
+ passwordComplexityLowercaseInfo: ' პატარა ასო(ები)',
+ passwordComplexitySpecialCharsInfo: ' სპეციალური სიმბოლო(ები)',
+ passwordComplexityNumericCharsInfo: ' რიცხვითი მნიშვნელობა(ები)',
+ passwordComplexityEnd: '.'
+ };
+ });
+
+})(jQuery, window);
diff --git a/src/lang/ko.js b/src/lang/ko.js
new file mode 100644
index 0000000..2ed7d38
--- /dev/null
+++ b/src/lang/ko.js
@@ -0,0 +1,70 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Korean language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/ko');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: '이 양식은 보낼 수 없습니다!',
+ requiredField: '필수 입력란입니다.',
+ requiredFields: '모든 필수 입력란을 입력해야 합니다.',
+ badTime: '시간을 정확하게 입력하지 않았습니다.',
+ badEmail: 'e-mail을 정확하게 입력하지 않았습니다.',
+ badTelephone: '전화번호를 정확하게 입력하지 않았습니다.',
+ badSecurityAnswer: '보안 입력을 정확하게 입력하지 않았습니다.',
+ badDate: '날짜를 정확하게 입력하지 않았습니다.',
+ lengthBadStart: '입력 값은 ',
+ lengthBadEnd: ' 사이의 문자여야 합니다.',
+ lengthTooLongStart: '입력 값의 길이가 ',
+ lengthTooLongEnd: ' 보다 깁니다.',
+ lengthTooShortStart: '입력 값의 길이가 ',
+ lengthTooShortEnd: ' 보다 짧습니다.',
+ notConfirmed: '입력 값이 일치하지 않습니다.',
+ badDomain: '도메인을 정확하게 입력하지 않았습니다.',
+ badUrl: 'URL을 정확하게 입력하지 않았습니다.',
+ badCustomVal: '입력 값이 정확하지 않습니다.',
+ badInt: '입력 값이 숫자가 아닙니다.',
+ badSecurityNumber: '주민등록번호가 정확하지 않습니다.',
+ badStrength: '암호를 더 복잡하게 조합해야 합니다.',
+ badNumberOfSelectedOptionsStart: '최소한 ',
+ badNumberOfSelectedOptionsEnd: ' 개 항목 이상을 선택해야 합니다.',
+ badAlphaNumeric: '입력 값은 문자와 숫자만 허용합니다.',
+ badAlphaNumericAndExtra: '입력 값은 문자와 숫자와 ',
+ badAlphaNumericExtra: ' 만 허용합니다.',
+ badAlphaNumericAndExtraAndSpaces: '입력 값은 문자와 숫자와 ',
+ andSpaces: ' 와 빈문자(spaces)만 허용합니다. ',
+ wrongFileSize: '업로드 하려고 하는 파일의 크기가 너무 큽니다. (최대 %s)',
+ wrongFileType: '파일 타입은 %s 만 허용합니다.',
+ groupCheckedRangeStart: '',
+ groupCheckedEnd: ' 개 항목을 선택해야 합니다.',
+ groupCheckedTooFewStart: '최소한 ',
+ groupCheckedTooFewEnd: ' 개 항목 이상을 선택해야 합니다.',
+ groupCheckedTooManyStart: '',
+ groupCheckedTooManyEnd: ' 개 항목 이하를 선택해야 합니다.',
+ badCreditCard: '신용카드번호를 정확하지 않습니다.',
+ badCVV: 'CVV 번호가 정확하지 않습니다.',
+ wrongFileDim : '잘못된 이미지 크기 ,',
+ imageTooTall : '이미지 길이가 ',
+ imageTooTallEnd : ' 보다 길어야 합니다.',
+ imageTooWide : '이미지 넓이가 ',
+ imageTooWideEnd : ' 보다 넓어야 합니다.',
+ imageTooSmall : '이미지 크기가 너무 작습니다.',
+ min : 'min',
+ max : 'max',
+ imageRatioNotAccepted : '이미지 비율이 맞지 않습니다.',
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/nl.js b/src/lang/nl.js
new file mode 100644
index 0000000..f6df88e
--- /dev/null
+++ b/src/lang/nl.js
@@ -0,0 +1,63 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Dutch language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function ($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/nl');
+
+ $(window).bind('validatorsLoaded', function () {
+
+ $.formUtils.LANG = {
+ andSpaces: ' en spaties ',
+ badAlphaNumeric: 'De ingevoerde waarde mag alleen alfabetische karakters bevatten',
+ badAlphaNumericExtra: ' en ',
+ badCVV: 'Het CVV nummer was onjuist',
+ badCreditCard: 'Het creditcardnummer is onjuist',
+ badCustomVal: 'De ingevoerde waarde is onjuist',
+ badDate: 'U heeft niet de juiste datum aangegeven',
+ badDomain: 'Incorrect domein',
+ badEmail: 'U heeft een onjuist e-mailadres ingevoerd ',
+ badInt: 'De ingevoerde waarde was een onjuist getal',
+ badNumberOfSelectedOptionsEnd: ' antwoorden',
+ badNumberOfSelectedOptionsStart: 'U moet tenminste ',
+ badSecurityAnswer: 'U heeft de beveilingsvraag onjuist beantwoord',
+ badSecurityNumber: 'Uw burgerservicenummer was incorrect',
+ badStrength: 'Het wachtwoord is niet veilig genoeg',
+ badTelephone: 'U heeft een onjuist telefoonnummer ingevoerd',
+ badTime: 'U heeft een incorrecte tijd aangegeven',
+ badUrl: 'De ingevoerde waarde is geen correcte URL',
+ badreCaptcha: 'Bevestig a.u.b. dat u geen robot bent',
+ errorTitle: 'Indienen van formulier mislukt!',
+ groupCheckedEnd: ' item(s)',
+ groupCheckedRangeStart: 'Kies a.u.b. tussen ',
+ groupCheckedTooFewStart: 'Kies a.u.b. ten minste ',
+ groupCheckedTooManyStart: 'Kies a.u.b. maximaal ',
+ imageRatioNotAccepted: 'De afbeeldingsverhouding wordt niet geaccepteerd',
+ imageTooSmall: 'de afbeelding was te klein',
+ imageTooTall: 'de afbeelding kan niet langer zijn dan',
+ imageTooWide: 'de afbeelding kan niet wijder zijn dan',
+ lengthBadEnd: ' karakters',
+ lengthBadStart: 'De ingevoerde waarde moet liggen tussen ',
+ lengthTooLongStart: 'De ingevoerde waarde is langer dan ',
+ lengthTooShortStart: 'De ingevoerde waarde is korter dan ',
+ max: 'max',
+ min: 'min',
+ notConfirmed: 'Invoerwaarden konden niet worden bevestigd',
+ requiredField: 'Dit is een verplicht veld',
+ requiredFields: 'U heeft niet alle verplichte velden ingevuld',
+ wrongFileDim: 'Incorrecte afbeeldingsafmetingen,',
+ wrongFileSize: 'Het bestand dat u probeert te uploaden is te groot (max %s)',
+ wrongFileType: 'Alleen type %s bestanden zijn toegestaan'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/no.js b/src/lang/no.js
new file mode 100644
index 0000000..8aca430
--- /dev/null
+++ b/src/lang/no.js
@@ -0,0 +1,63 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Norwegian language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function ($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/no');
+
+ $(window).bind('validatorsLoaded', function () {
+
+ $.formUtils.LANG = {
+ andSpaces: ' og mellomrom ',
+ badAlphaNumeric: 'Inntastningsverdien kan kun inneholde alfanumeriske tegn ',
+ badAlphaNumericExtra: ' og ',
+ badCVV: 'CVV-nummeret var ikke korrekt',
+ badCreditCard: 'Kredittkortnummeret er ikke korrekt',
+ badCustomVal: 'Inntastingsverdien er ikke korrekt',
+ badDate: 'Du har ikke oppgitt en korrekt dato',
+ badDomain: 'Ukorrekt domeneverdi',
+ badEmail: 'Du har ikke oppgitt en korrekt e-postadresse',
+ badInt: 'Inntastingsverdien er ikke et korrekt tall',
+ badNumberOfSelectedOptionsEnd: ' svar',
+ badNumberOfSelectedOptionsStart: 'Du må velge minst ',
+ badSecurityAnswer: 'Du har ikke oppgitt et korrekt svar på sikkerhetsspørsmålet',
+ badSecurityNumber: 'Ditt personnummer var ukorrekt',
+ badStrength: 'Passordet er ikke sterkt nok',
+ badTelephone: 'Du har ikke oppgitt et korrekt telefonnummer',
+ badTime: 'Du har ikke oppgitt en korrekt tid',
+ badUrl: 'Inntastingsverdien er ikke en korrekt URL',
+ badreCaptcha: 'Vennligst bekreft at du ikke er en robot',
+ errorTitle: 'Innsending av skjemaet feilet!',
+ groupCheckedEnd: ' ting',
+ groupCheckedRangeStart: 'Vennligst velg mellom ',
+ groupCheckedTooFewStart: 'Vennligst velg minst ',
+ groupCheckedTooManyStart: 'Vennligst velg maksimum ',
+ imageRatioNotAccepted: 'Bildestørrelse ikke akseptert',
+ imageTooSmall: 'bildet er for lite',
+ imageTooTall: 'bildet kan ikke være høyere enn',
+ imageTooWide: 'bildet kan ikke være bredere enn',
+ lengthBadEnd: 'tegn',
+ lengthBadStart: 'Inntastingsverdien må være mellom ',
+ lengthTooLongStart: 'Inntastingsverdien er lenger enn ',
+ lengthTooShortStart: 'Inntastingsverdien er kortere enn ',
+ max: 'maks',
+ min: 'min',
+ notConfirmed: 'Inntastingsverdier kunne ikke bekreftes',
+ requiredField: 'Dette er et obligatorisk felt',
+ requiredFields: 'Du har ikke besvart alle obligatoriske felt',
+ wrongFileDim: 'Ukorrekte bildedimensjoner,',
+ wrongFileSize: 'Bildet du prøver å laste opp er for stort (max %s)',
+ wrongFileType: 'Kun filer av type %s er tillatt'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/pl.js b/src/lang/pl.js
new file mode 100644
index 0000000..5258b0d
--- /dev/null
+++ b/src/lang/pl.js
@@ -0,0 +1,72 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Polish language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/pl');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Złożenie formularza nie powiodło się!',
+ requiredField: 'To pole jest wymagane',
+ requiredfields: 'Nie wszystkie wymagane pola zostały wypełnione',
+ badTime: 'Wprowadzono niepoprawny czas',
+ badEmail: 'Wprowadzono niepoprawny adres e-mail',
+ badTelephone: 'Wprowadzono niepoprawny numeru telefonu',
+ badSecurityAnswer: 'Nieprawidłowa odpowiedź na pytanie bezpieczeństwa',
+ badDate: 'Niepoprawna data',
+ lengthBadStart: 'Wprowadzona wartość musi być pomiędzy ',
+ lengthBadEnd: ' znaków',
+ lengthTooLongStart: 'Wprowadzona wartość jest większa niż ',
+ lengthTooShortStart: 'Wprowadzona wartość jest mniejsza niż ',
+ notConfirmed: 'Wprowadzone wartości nie zostały potwierdzone',
+ badDomain: 'Nieprawidłowa wartość domeny',
+ badUrl: 'Wprowadzono nieprawidłowy adres URL',
+ badCustomVal: 'Wprowadzona wartość jest niepoprawna',
+ andSpaces: ' i odstępy',
+ badInt: 'Wprowadzono nieprawidłowy numer',
+ badSecurityNumber: 'Wprowadzono niepoprawny numer ubezpieczenia społecznego',
+ badUKVatAnswer: 'Wprowadzono niepoprawny brytyjski numer VAT',
+ badUKNin: 'Wprowadzono niepoprawny brytyjski numer NIP',
+ badUKUtr: 'Wprowadzono niepoprawny brytyjski numer podatnika',
+ badStrength: 'Twoje hasło nie jest wystarczająco mocne',
+ badNumberOfSelectedOptionsStart: 'Musisz wybrać przynajmniej ',
+ badNumberOfSelectedOptionsEnd: ' odpowiedzi',
+ badAlphaNumeric: 'Wprowadzona wartość może zawierać tylko znaki alfanumeryczne ',
+ badAlphaNumericExtra: ' i ',
+ wrongFileSize: 'Wysyłany plik jest zbyt duży (max %s)',
+ wrongFileType: 'Dozwolone są tylko pliki typu %s',
+ groupCheckedRangeStart: 'Proszę wybrać pomiędzy ',
+ groupCheckedTooFewStart: 'Proszę wybrać przynajmniej ',
+ groupCheckedTooManyStart: 'Proszę wybrać maksymalnie ',
+ groupCheckedEnd: ' element(ów)',
+ badCreditCard: 'Podany numer karty kredytowej jest nieprawidłowy',
+ badCVV: 'Podany numer CVV jest nieprawidłowy',
+ wrongFileDim: 'Nieprawidłowe wymiary obrazu,',
+ imageTooTall: 'obraz nie może być wyższa niż',
+ imageTooWide: 'obraz nie może być szerszy niż',
+ imageTooSmall: 'obraz jest zbyt mały',
+ min: 'min',
+ max: 'max',
+ imageRatioNotAccepted: 'Proporcje obrazu są niepoprawne',
+ badBrazilTelephoneAnswer: 'Wprowadzono niepoprawny numer telefonu',
+ badBrazilCEPAnswer: 'Wprowadzono niepoprawny CEP',
+ badBrazilCPFAnswer: 'Wprowadzono niepoprawny CPF',
+ badPlPesel: 'Wprowadzono niepoprawny numer PESEL',
+ badPlNip: 'Wprowadzono niepoprawny numer NIP',
+ badPlRegon: 'Wprowadzono niepoprawny numer REGON',
+ badreCaptcha: 'Potwierdź że nie jesteś botem!'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/pt.js b/src/lang/pt.js
new file mode 100644
index 0000000..d956150
--- /dev/null
+++ b/src/lang/pt.js
@@ -0,0 +1,66 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Portuguese language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/pt');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'O formulário não pode ser enviado!',
+ requiredField: 'Campo de preenchimento obrigatório',
+ requiredFields: 'Você ainda não preencheu todos os campos obrigatórios',
+ badTime: 'A hora digitada não é válida',
+ badEmail: 'O e-mail digitado não é válido',
+ badTelephone: 'O telefone digitado não é válido',
+ badSecurityAnswer: 'A pergunta de segurança não foi respondida corretamente',
+ badDate: 'A data digitada não é válida',
+ lengthBadStart: 'Sua resposta deve incluir entre ',
+ lengthBadEnd: ' caracteres',
+ lengthTooLongStart: 'Sua resposta tem mais que ',
+ lengthTooShortStart: 'Sua resposta tem menos que',
+ notConfirmed: 'As informações digitadas não puderam ser confirmadas',
+ badDomain: 'O domínio digitado não é válido',
+ badUrl: 'A URL digitada não é válida',
+ badCustomVal: 'Os dados digitados não são válidos',
+ andSpaces: ' e espaços',
+ badInt: 'O número digitado não é válido',
+ badSecurityNumber: 'O número de seguro social digitado não é válido',
+ badUKVatAnswer: 'O número do VAT digitado não é válido para o Reino Unido',
+ badStrength: 'Senha muito fraca',
+ badNumberOfSelectedOptionsStart: 'Selecione pelo menos',
+ badNumberOfSelectedOptionsEnd: ' alternativa(s)',
+ badAlphaNumeric: 'Use somente caracteres alfanuméricos (letras a-z e números)',
+ badAlphaNumericExtra: ' e',
+ wrongFileSize: 'O arquivo selecionado é maior que o tamanho máximo permitido (%s)',
+ wrongFileType: 'Somente arquivos %s são permitidos',
+ groupCheckedRangeStart: 'Por favor, escolha entre ',
+ groupCheckedTooFewStart: 'Por favor, escolha pelo menos ',
+ groupCheckedTooManyStart: 'Por favor, escolhe no máximo ',
+ groupCheckedEnd: ' alternativa(s)',
+ badCreditCard: 'O número de cartão de crédito digitado não é válido',
+ badCVV: 'O código de segurança do cartão de crédito não é válido',
+ wrongFileDim: 'As dimensões da imagem não são válidas',
+ imageTooTall: 'a imagem não pode ser mais alta que ',
+ imageTooWide: 'a imagem não pode ser mais larga que ',
+ imageTooSmall: 'a imagem é muito pequena',
+ min: 'min',
+ max: 'max',
+ imageRatioNotAccepted : 'A proporção da imagem (largura x altura) não é válida',
+ badBrazilTelephoneAnswer: 'O número de telefone digitado é inválido',
+ badBrazilCEPAnswer: 'O CEP digitado é inválido',
+ badBrazilCPFAnswer: 'O CPF digitado é inválido'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/ro.js b/src/lang/ro.js
new file mode 100644
index 0000000..d223cad
--- /dev/null
+++ b/src/lang/ro.js
@@ -0,0 +1,66 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Romanian language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/ro');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Nu sa reusit lansarea formularului!',
+ requiredField: 'Acest câmp este obligatoriu',
+ requiredfields: 'Nu toate câmpurile obligatorii au fost completate',
+ badTime: 'Timpul introdus este incorect',
+ badEmail: 'Adresa de e-mail este incorectă',
+ badTelephone: 'Numărul de telefon este incorect',
+ badSecurityAnswer: 'Răspuns incorect la întrebarea de siguran?ă',
+ badDate: 'Dară incorectă',
+ lengthBadStart: 'Valoarea introdusă trebuie să fie interval ',
+ lengthBadEnd: ' caractere',
+ lengthTooLongStart: 'Valoarea introdusă este mai mare decât ',
+ lengthTooShortStart: 'Valoarea introdusă este mai mică decât ',
+ notConfirmed: 'Valorile introduse nu au fost confirmate',
+ badDomain: 'Domeniul este incorect',
+ badUrl: 'Adresa URL este incorectă',
+ badCustomVal: 'Valoarea introdusă este incorectă',
+ andSpaces: ' şi spaţierea',
+ badInt: 'Numărul introdus este incorect',
+ badSecurityNumber: 'Numărul de asigurare introdus este incorect',
+ badUKVatAnswer: 'Numărul CIF introdus este incorect',
+ badStrength: 'Parola Dvs nu este suficient de sigură',
+ badNumberOfSelectedOptionsStart: 'Trebuie să alegi măcar ',
+ badNumberOfSelectedOptionsEnd: ' răspunsuri',
+ badAlphaNumeric: 'Valoarea introdusă trebuie să con însă doar caractere alfanumerice ',
+ badAlphaNumericExtra: ' și ',
+ wrongFileSize: 'Fisierul trimis este prea mare (max %s)',
+ wrongFileType: 'Se acceptă doar fisiere tip %s',
+ groupCheckedRangeStart: 'Te rog alege între ',
+ groupCheckedTooFewStart: 'Te rog alege măcar ',
+ groupCheckedTooManyStart: 'Te rog alege maxim ',
+ groupCheckedEnd: ' elemnt(e)',
+ badCreditCard: 'Numărul de card introdus este incorect',
+ badCVV: 'Numărul CVV introdus este incorect',
+ wrongFileDim: 'Dimensiunea imaginii este incorectă,',
+ imageTooTall: 'imaginea nu poate fi mai înaltă decât',
+ imageTooWide: 'imaginea nu poate fi mai lată decât',
+ imageTooSmall: 'imaginea este prea mică',
+ min: 'min',
+ max: 'max',
+ imageRatioNotAccepted: 'Proportiile imaginii sunt incorecte',
+ badBrazilTelephoneAnswer: 'Numărul de telefon introdus este incorect.',
+ badBrazilCEPAnswer: 'CEP incorect',
+ badBrazilCPFAnswer: 'CPF incorect'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/ru.js b/src/lang/ru.js
new file mode 100644
index 0000000..f281dd2
--- /dev/null
+++ b/src/lang/ru.js
@@ -0,0 +1,67 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Russian language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/ru');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+
+ errorTitle: 'Ошибка отправки формы!',
+ requiredField: 'Это обязательное поле',
+ requiredFields: 'Вы задали не все обязательные поля',
+ badTime: 'Вы задали некорректное время',
+ badEmail: 'Вы задали некорректный e-mail',
+ badTelephone: 'Вы задали некорректный номер телефона',
+ badSecurityAnswer: 'Вы задали некорректный ответ на секретный вопрос',
+ badDate: 'Вы задали некорректную дату',
+ lengthBadStart: 'Значение должно быть в диапазоне',
+ lengthBadEnd: ' символов',
+ lengthTooLongStart: 'Значение длинее, чем ',
+ lengthTooShortStart: 'Значение меньше, чем ',
+ notConfirmed: 'Введённые значения не могут быть подтверждены',
+ badDomain: 'Некорректное значение домена',
+ badUrl: 'Некорретный URL',
+ badCustomVal: 'Введённое значение неверно',
+ andSpaces: ' и пробелы ',
+ badInt: 'Значение - не число',
+ badSecurityNumber: 'Введённый защитный номер - неправильный',
+ badUKVatAnswer: 'Некорректный UK VAT номер',
+ badStrength: 'Пароль не достаточно надёжен',
+ badNumberOfSelectedOptionsStart: 'Вы должны выбрать как минимум ',
+ badNumberOfSelectedOptionsEnd: ' ответов',
+ badAlphaNumeric: 'Значение должно содержать только числа и буквы ',
+ badAlphaNumericExtra: ' и ',
+ wrongFileSize: 'Загружаемый файл слишком велик (максимальный размер %s)',
+ wrongFileType: 'Принимаются файлы следующих типов %s',
+ groupCheckedRangeStart: 'Выберите между ',
+ groupCheckedTooFewStart: 'Выберите как минимум ',
+ groupCheckedTooManyStart: 'Выберите максимум из ',
+ groupCheckedEnd: ' элемент(ов)',
+ badCreditCard: 'Номер кредитной карты некорректен',
+ badCVV: 'CVV номер некорректно',
+ wrongFileDim : 'Неверные размеры графического файла,',
+ imageTooTall : 'изображение не может быть уже чем',
+ imageTooWide : 'изображение не может быть шире чем',
+ imageTooSmall : 'изображение слишком мало',
+ min : 'минимум',
+ max : 'максимум',
+ imageRatioNotAccepted : 'Изображение с таким соотношением сторон не принимается',
+ badBrazilTelephoneAnswer: 'Введённый номер телефона неправильный',
+ badBrazilCEPAnswer: 'CEP неправильный',
+ badBrazilCPFAnswer: 'CPF неправильный'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/sv.js b/src/lang/sv.js
new file mode 100644
index 0000000..3ce91b3
--- /dev/null
+++ b/src/lang/sv.js
@@ -0,0 +1,64 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Swedish language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/sv');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Formuläret kunde inte skickas!',
+ requiredField: 'Detta är ett obligtoriskt fält',
+ requiredFields: 'Du har inte besvarat alla frågor',
+ badTime: 'Du har inte angett en korrekt tidpunkt',
+ badEmail: 'Du har inte angett en korrekt e-postadress',
+ badTelephone: 'Du har inte angett ett korrekt telefonnummer',
+ badSecurityAnswer: 'Du har angett fel svar på säkerhetsfrågan',
+ badDate: 'Du har anget ett felaktigt datum',
+ lengthBadStart: 'Ditt svar måste innehålla mellan ',
+ lengthBadEnd: ' tecken',
+ lengthTooLongStart: 'Du har angett ett svar som är längre än ',
+ lengthTooShortStart: 'Du har angett ett svar som är kortare än ',
+ notConfirmed: 'Svaren kunde inte bekräfta varandra',
+ badDomain: 'Du har angett en inkorrekt domän',
+ badUrl: 'Du har inte angett en korrekt webbadress',
+ badCustomVal: 'Du har anget ett inkorrekt svar',
+ andSpaces: ' och mellanslag ',
+ badInt: 'Du har inte angett en siffra',
+ badSecurityNumber: 'Du har angett ett felaktigt personnummer',
+ badUKVatAnswer: 'Du har inte angett ett brittiskt moms-nummer',
+ badStrength: 'Du har angett ett lösenord som inte är nog säkert',
+ badNumberOfSelectedOptionsStart: 'Du måste åtminstone välja ',
+ badNumberOfSelectedOptionsEnd: ' svarsalternativ',
+ badAlphaNumeric: 'Du kan endast svara med alfanumersika tecken (a-z och siffror)',
+ badAlphaNumericExtra: ' och ',
+ wrongFileSize: 'Filen du försöker ladda upp är för stor (max %s)',
+ wrongFileType: 'Endast filer av typen %s är tillåtna',
+ groupCheckedRangeStart: 'Välj mellan ',
+ groupCheckedTooFewStart: 'Då måste göra minst ',
+ groupCheckedTooManyStart: 'Du får inte göra fler än ',
+ groupCheckedEnd: ' val',
+ badCreditCard: 'Du har angett ett felaktigt kreditkortsnummer',
+ badCVV: 'Du har angett ett felaktigt CVV-nummer',
+ wrongFileDim : 'Otillåten bildstorlek,',
+ imageTooTall : 'bilden får inte vara högre än',
+ imageTooWide : 'bilden får inte vara bredare än',
+ imageTooSmall : 'bilden är för liten',
+ genericBadInputValue : 'The input value can be accepted',
+ min : 'minst',
+ max : 'max',
+ imageRatioNotAccepted : 'Bildens dimensioner (förhållandet mellan höjd och längd) kan inte accepteras'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/tr.js b/src/lang/tr.js
new file mode 100644
index 0000000..f76d50e
--- /dev/null
+++ b/src/lang/tr.js
@@ -0,0 +1,79 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Turkish language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/tr');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Form gönderilemedi!',
+ requiredField: 'Boş bırakılamaz',
+ requiredFields: 'Gerekli tüm alanları cevaplamadınız',
+ badTime: 'Geçersiz zaman girdiniz',
+ badEmail: 'Geçersiz e-posta adresi girdiniz',
+ badTelephone: 'Geçersiz telefon numarası girdiniz',
+ badSecurityAnswer: 'Güvenlik sorusuna doğru cevap vermediniz',
+ badDate: 'Geçersiz tarih girdiniz',
+ lengthBadStart: 'Girilen değer ',
+ lengthBadEnd: ' karakter olmalıdır',
+ lengthTooLongStart: 'Girilen değer en fazla ',
+ lengthTooShortStart: 'Girilen değer en az ',
+ notConfirmed: 'Girilen değerler uyuşmuyor',
+ badDomain: 'Geçersiz alan adı girdiniz',
+ badUrl: 'Geçersiz bağlantı girdiniz',
+ badCustomVal: 'Geçersiz değer girdiniz',
+ andSpaces: ' ve boşluk ',
+ badInt: 'Girilen değer sayı olamlıdır',
+ badSecurityNumber: 'Geçersiz güvenlik kodu girdiniz',
+ badUKVatAnswer: 'Geçersiz İngiltere KDV numarası girdiniz',
+ badUKNin: 'Geçersiz İngiltere NIN numarası girdiniz',
+ badUKUtr: 'Geçersiz İngiltere UTR numarası girdiniz',
+ badStrength: 'Şifreniz yeterince güçlü değil',
+ badNumberOfSelectedOptionsStart: 'En az ',
+ badNumberOfSelectedOptionsEnd: ' cevap seçmeniz gerekiyor',
+ badAlphaNumeric: 'Kabul edilen değer sadece alfanümerik karakterler ',
+ badAlphaNumericExtra: ' ve ',
+ wrongFileSize: 'Yüklemeye çalıştığınız dosya (en fazla %s) çok büyük',
+ wrongFileType: 'Yalnızca %s türündeki dosyaları yükleyebilirsiniz',
+ groupCheckedRangeStart: 'Lütfen ',
+ groupCheckedTooFewStart: 'Lütfen en az ',
+ groupCheckedTooManyStart: 'Lütfen en fazla ',
+ groupCheckedEnd: ' adet seçiniz',
+ badCreditCard: 'Geçersiz kredi kartı numarası girdiniz',
+ badCVV: 'Geçersiz CVV numarası girdiniz',
+ wrongFileDim: 'Hatalı resim yüklediniz çünkü',
+ imageTooTall: 'resim daha uzun olamaz',
+ imageTooWide: 'resim daha geniş olamaz',
+ imageTooSmall: 'görüntü çok küçük',
+ min: 'min',
+ max: 'max',
+ imageRatioNotAccepted: 'Kabul edilmeye görüntü oranı',
+ badBrazilTelephoneAnswer: 'Geçersiz telefon numarası girdiniz',
+ badBrazilCEPAnswer: 'Geçersiz Brezilya posta kodu girdiniz',
+ badBrazilCPFAnswer: 'Geçersiz Brezilya mükellef kayıt kimliği girdiniz',
+ badPlPesel: 'Geçersiz Polonya kişisel kimlik numarası girdiniz',
+ badPlNip: 'Geçersiz DKV girdiniz',
+ badPlRegon: 'Geçersiz Polonya ticari kimlik numarası girdiniz',
+ badreCaptcha: 'Lütfen bot olmadığınızı doğrulayın',
+ passwordComplexityStart: 'Şifreniz en az ',
+ passwordComplexitySeparator: ', ',
+ passwordComplexityUppercaseInfo: ' büyük harf',
+ passwordComplexityLowercaseInfo: ' küçük harf',
+ passwordComplexitySpecialCharsInfo: ' özel karakter',
+ passwordComplexityNumericCharsInfo: ' sayısal karakter',
+ passwordComplexityEnd: ' içermelidir'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/lang/vi.js b/src/lang/vi.js
new file mode 100644
index 0000000..9aa01f5
--- /dev/null
+++ b/src/lang/vi.js
@@ -0,0 +1,62 @@
+/**
+ * jQuery Form Validator
+ * ------------------------------------------
+ *
+ * Vietnamese language package
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('lang/vi');
+
+ $(window).bind('validatorsLoaded', function() {
+
+ $.formUtils.LANG = {
+ errorTitle: 'Có lỗi trong qua trình gửi dữ liệu!',
+ requiredFields: 'Bạn chưa nhập đủ các thông tin bắt buộc',
+ badTime: 'Thời gian chưa chính xác',
+ badEmail: 'Địa chỉ email chưa chính xác',
+ badTelephone: 'Số điện thoại chưa chính xác',
+ badSecurityAnswer: 'Câu hỏi bảo mật chưa chính xác',
+ badDate: 'Ngày tháng chưa chính xác',
+ lengthBadStart: 'Yêu cầu nhập từ ',
+ lengthBadEnd: ' ký tự',
+ lengthTooLongStart: 'Dữ liệu quá dài, yêu cầu ít hơn ',
+ lengthTooShortStart: 'Dữ liệu quá ngắn, yêu cầu nhiều hơn ',
+ notConfirmed: 'Dữ liệu không được xác nhận',
+ badDomain: 'Tên miền chưa chính xác',
+ badUrl: 'Địa chỉ website chưa chính xác',
+ badCustomVal: 'Dữ liệu chưa chính xác',
+ andSpaces: ' và các khoảng cách ',
+ badInt: 'Yêu cầu chỉ nhập số',
+ badSecurityNumber: 'Mã bảo mật chưa chính xác',
+ badUKVatAnswer: 'UK VAT chưa chính xác',
+ badStrength: 'Mật khẩu chưa đủ độ phức tạp',
+ badNumberOfSelectedOptionsStart: 'Bạn cần tích chọn ít nhất ',
+ badNumberOfSelectedOptionsEnd: ' lựa chọn',
+ badAlphaNumeric: 'Yêu cầu chỉ nhập chữ hoặc số ',
+ badAlphaNumericExtra: ' và ',
+ wrongFileSize: 'File của bạn quá lớn (chỉ chấp nhận file không quá %s)',
+ wrongFileType: 'Chỉ cho phép các định dạng file sau: %s',
+ groupCheckedRangeStart: 'Vui lòng tích chọn từ ',
+ groupCheckedTooFewStart: 'Vui lòng tích chọn ít nhất ',
+ groupCheckedTooManyStart: 'Vui lòng tích chọn nhiều nhất ',
+ groupCheckedEnd: ' lựa chọn',
+ badCreditCard: 'Mã thẻ chưa chính xác',
+ badCVV: 'Mã bảo mật (CVV) chưa chính xác',
+ wrongFileDim: 'Kích thước ảnh chưa chính xác,',
+ imageTooTall: 'Chiều cao ảnh không được vượt quá',
+ imageTooWide: 'Chiều rộng ảnh không được vượt quá',
+ imageTooSmall: 'Kích thước ảnh quá nhỏ',
+ min: 'nhỏ nhất',
+ max: 'lớn nhất',
+ imageRatioNotAccepted: 'Tỷ lệ ảnh chưa chính xác'
+ };
+
+ });
+
+})(jQuery, window);
diff --git a/src/main/async.js b/src/main/async.js
new file mode 100644
index 0000000..f2cc135
--- /dev/null
+++ b/src/main/async.js
@@ -0,0 +1,167 @@
+/**
+ */
+(function ($, window, undefined) {
+
+ var disableFormSubmit = function () {
+ return false;
+ },
+ lastFormEvent = null,
+ HaltManager = {
+ numHalted: 0,
+ haltValidation: function($form) {
+ this.numHalted++;
+ $.formUtils.haltValidation = true;
+ $form
+ .unbind('submit', disableFormSubmit)
+ .bind('submit', disableFormSubmit)
+ .find('*[type="submit"]')
+ .addClass('disabled')
+ .attr('disabled', 'disabled');
+ },
+ unHaltValidation: function($form) {
+ this.numHalted--;
+ if (this.numHalted === 0) {
+ $.formUtils.haltValidation = false;
+ $form
+ .unbind('submit', disableFormSubmit)
+ .find('*[type="submit"]')
+ .removeClass('disabled')
+ .removeAttr('disabled', 'disabled');
+ }
+ }
+ };
+
+ function AsyncValidation($form, $input) {
+ this.$form = $form;
+ this.$input = $input;
+ this.reset();
+ $input.on('change paste', this.reset.bind(this));
+ }
+
+ AsyncValidation.prototype.reset = function() {
+ this.haltedFormValidation = false;
+ this.hasRun = false;
+ this.isRunning = false;
+ this.result = undefined;
+ };
+
+ AsyncValidation.prototype.run = function(eventContext, callback) {
+ if (eventContext === 'keyup') {
+ return null;
+ } else if (this.isRunning) {
+ lastFormEvent = eventContext;
+ if (!this.haltedFormValidation) {
+ HaltManager.haltValidation();
+ this.haltedFormValidation = true;
+ }
+ return null; // Waiting for result
+ } else if(this.hasRun) {
+ //this.$input.one('keyup change paste', this.reset.bind(this));
+ return this.result;
+ } else {
+ lastFormEvent = eventContext;
+ HaltManager.haltValidation(this.$form);
+ this.haltedFormValidation = true;
+ this.isRunning = true;
+ this.$input
+ .attr('disabled', 'disabled')
+ .addClass('async-validation');
+ this.$form.addClass('async-validation');
+
+ callback(function(result) {
+ this.done(result);
+ }.bind(this));
+
+ return null;
+ }
+ };
+
+ AsyncValidation.prototype.done = function(result) {
+ this.result = result;
+ this.hasRun = true;
+ this.isRunning = false;
+ this.$input
+ .removeAttr('disabled')
+ .removeClass('async-validation');
+ this.$form.removeClass('async-validation');
+ if (this.haltedFormValidation) {
+ HaltManager.unHaltValidation(this.$form);
+ if (lastFormEvent === 'submit') {
+ this.$form.trigger('submit');
+ } else {
+ this.$input.trigger('validation.revalidate');
+ }
+ }
+ };
+
+ AsyncValidation.loadInstance = function(validatorName, $input, $form) {
+ // Return async validator attached to this input element
+ // or create a new async validator and attach it to the input
+ var asyncValidation,
+ input = $input.get(0);
+
+ if (!input.asyncValidators) {
+ input.asyncValidators = {};
+ }
+
+ if (input.asyncValidators[validatorName]) {
+ asyncValidation = input.asyncValidators[validatorName];
+ } else {
+ asyncValidation = new AsyncValidation($form, $input);
+ input.asyncValidators[validatorName] = asyncValidation;
+ }
+
+ return asyncValidation;
+ };
+
+ $.formUtils = $.extend($.formUtils || {}, {
+
+ /**
+ * @deprecated
+ * @param validatorName
+ * @param $input
+ * @param $form
+ */
+ asyncValidation: function(validatorName, $input, $form) {
+ // @todo: Remove when moving up to version 3.0
+ this.warn('Use of deprecated function $.formUtils.asyncValidation, use $.formUtils.addAsyncValidator() instead');
+ return AsyncValidation.loadInstance(validatorName, $input, $form);
+ },
+
+ /**
+ * @param {Object} asyncValidator
+ */
+ addAsyncValidator: function (asyncValidator) {
+ var validator = $.extend({}, asyncValidator),
+ originalValidatorFunc = validator.validatorFunction;
+ validator.async = true;
+ validator.validatorFunction = function (value, $el, config, language, $form, eventContext) {
+ var asyncValidation = AsyncValidation.loadInstance(this.name, $el, $form);
+ return asyncValidation.run(eventContext, function(done) {
+ originalValidatorFunc.apply(validator, [
+ done, value, $el, config, language, $form, eventContext
+ ]);
+ });
+ };
+ this.addValidator(validator);
+ }
+ });
+
+ // Tag elements having async validators
+ $(window).bind('validatorsLoaded formValidationSetup', function (evt, $form) {
+ if (!$form) {
+ $form = $('form');
+ }
+ $form.find('[data-validation]').each(function () {
+ var $input = $(this);
+ $input.valAttr('async', false);
+ $.each($.split($input.attr('data-validation')), function (i, validatorName) {
+ var validator = $.formUtils.validators['validate_'+validatorName];
+ if (validator && validator.async) {
+ $input.valAttr('async', 'yes');
+ }
+ });
+ });
+ });
+
+})(jQuery, window);
diff --git a/src/main/core-validators.js b/src/main/core-validators.js
new file mode 100644
index 0000000..8f2f409
--- /dev/null
+++ b/src/main/core-validators.js
@@ -0,0 +1,354 @@
+/**
+ * File declaring all default validators.
+ */
+(function($) {
+
+ /*
+ * Validate email
+ */
+ $.formUtils.addValidator({
+ name: 'email',
+ validatorFunction: function (email) {
+
+ var emailParts = email.toLowerCase().split('@'),
+ localPart = emailParts[0],
+ domain = emailParts[1];
+
+ if (localPart && domain) {
+
+ if( localPart.indexOf('"') === 0 ) {
+ var len = localPart.length;
+ localPart = localPart.replace(/\"/g, '');
+ if( localPart.length !== (len-2) ) {
+ return false; // It was not allowed to have more than two apostrophes
+ }
+ }
+
+ return $.formUtils.validators.validate_domain.validatorFunction(emailParts[1]) &&
+ localPart.indexOf('.') !== 0 &&
+ localPart.substring(localPart.length-1, localPart.length) !== '.' &&
+ localPart.indexOf('..') === -1 &&
+ !(/[^\w\+\.\-\#\-\_\~\!\$\&\'\(\)\*\+\,\;\=\:]/.test(localPart));
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badEmail'
+ });
+
+ /*
+ * Validate domain name
+ */
+ $.formUtils.addValidator({
+ name: 'domain',
+ validatorFunction: function (val) {
+ return val.length > 0 &&
+ val.length <= 253 && // Including sub domains
+ !(/[^a-zA-Z0-9]/.test(val.slice(-2))) && !(/[^a-zA-Z0-9]/.test(val.substr(0, 1))) && !(/[^a-zA-Z0-9\.\-]/.test(val)) &&
+ val.split('..').length === 1 &&
+ val.split('.').length > 1;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badDomain'
+ });
+
+ /*
+ * Validate required
+ */
+ $.formUtils.addValidator({
+ name: 'required',
+ validatorFunction: function (val, $el, config, language, $form) {
+ switch ($el.attr('type')) {
+ case 'checkbox':
+ return $el.is(':checked');
+ case 'radio':
+ return $form.find('input[name="' + $el.attr('name') + '"]').filter(':checked').length > 0;
+ default:
+ return $.trim(val) !== '';
+ }
+ },
+ errorMessage: '',
+ errorMessageKey: function(config) {
+ if (config.errorMessagePosition === 'top' || typeof config.errorMessagePosition === 'function') {
+ return 'requiredFields';
+ }
+ else {
+ return 'requiredField';
+ }
+ }
+ });
+
+ /*
+ * Validate length range
+ */
+ $.formUtils.addValidator({
+ name: 'length',
+ validatorFunction: function (val, $el, conf, lang) {
+ var lengthAllowed = $el.valAttr('length'),
+ type = $el.attr('type');
+
+ if (lengthAllowed === undefined) {
+ alert('Please add attribute "data-validation-length" to ' + $el[0].nodeName + ' named ' + $el.attr('name'));
+ return true;
+ }
+
+ // check if length is above min, below max or within range.
+ var len = type === 'file' && $el.get(0).files !== undefined ? $el.get(0).files.length : val.length,
+ lengthCheckResults = $.formUtils.numericRangeCheck(len, lengthAllowed),
+ checkResult;
+
+ switch (lengthCheckResults[0]) { // outside of allowed range
+ case 'out':
+ this.errorMessage = lang.lengthBadStart + lengthAllowed + lang.lengthBadEnd;
+ checkResult = false;
+ break;
+ // too short
+ case 'min':
+ this.errorMessage = lang.lengthTooShortStart + lengthCheckResults[1] + lang.lengthBadEnd;
+ checkResult = false;
+ break;
+ // too long
+ case 'max':
+ this.errorMessage = lang.lengthTooLongStart + lengthCheckResults[1] + lang.lengthBadEnd;
+ checkResult = false;
+ break;
+ // ok
+ default:
+ checkResult = true;
+ }
+
+ return checkResult;
+ },
+ errorMessage: '',
+ errorMessageKey: ''
+ });
+
+ /*
+ * Validate url
+ */
+ $.formUtils.addValidator({
+ name: 'url',
+ validatorFunction: function (url) {
+ // written by Scott Gonzalez: http://projects.scottsplayground.com/iri/
+ // - Victor Jonsson added support for arrays in the url ?arg[]=sdfsdf
+ // - General improvements made by Stéphane Moureau
+
+ var urlFilter = /^(https?|ftp):\/\/((((\w|-|\.|~|[\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])(\w|-|\.|~|[\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])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|\[|\]|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
+ if (urlFilter.test(url)) {
+ var domain = url.split('://')[1],
+ domainSlashPos = domain.indexOf('/');
+
+ if (domainSlashPos > -1) {
+ domain = domain.substr(0, domainSlashPos);
+ }
+
+ return $.formUtils.validators.validate_domain.validatorFunction(domain); // todo: add support for IP-addresses
+ }
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badUrl'
+ });
+
+ /*
+ * Validate number (floating or integer)
+ */
+ $.formUtils.addValidator({
+ name: 'number',
+ validatorFunction: function (val, $el, conf) {
+ if (val !== '') {
+ var allowing = $el.valAttr('allowing') || '',
+ decimalSeparator = $el.valAttr('decimal-separator') || conf.decimalSeparator,
+ allowsRange = false,
+ begin, end,
+ steps = $el.valAttr('step') || '',
+ allowsSteps = false,
+ sanitize = $el.attr('data-sanitize') || '',
+ isFormattedWithNumeral = sanitize.match(/(^|[\s])numberFormat([\s]|$)/i);
+
+ if (isFormattedWithNumeral) {
+ if (!window.numeral) {
+ throw new ReferenceError('The data-sanitize value numberFormat cannot be used without the numeral' +
+ ' library. Please see Data Validation in http://www.formvalidator.net for more information.');
+ }
+ //Unformat input first, then convert back to String
+ if (val.length) {
+ val = String(numeral().unformat(val));
+ }
+ }
+
+ if (allowing.indexOf('number') === -1) {
+ allowing += ',number';
+ }
+
+ if (allowing.indexOf('negative') === -1 && val.indexOf('-') === 0) {
+ return false;
+ }
+
+ if (allowing.indexOf('range') > -1) {
+ begin = parseFloat(allowing.substring(allowing.indexOf('[') + 1, allowing.indexOf(';')));
+ end = parseFloat(allowing.substring(allowing.indexOf(';') + 1, allowing.indexOf(']')));
+ allowsRange = true;
+ }
+
+ if (steps !== '') {
+ allowsSteps = true;
+ }
+
+ if (decimalSeparator === ',') {
+ if (val.indexOf('.') > -1) {
+ return false;
+ }
+ // Fix for checking range with floats using ,
+ val = val.replace(',', '.');
+ }
+ if (val.replace(/[0-9-]/g, '') === '' && (!allowsRange || (val >= begin && val <= end)) && (!allowsSteps || (val % steps === 0))) {
+ return true;
+ }
+
+ if (allowing.indexOf('float') > -1 && val.match(new RegExp('^([0-9-]+)\\.([0-9]+)$')) !== null && (!allowsRange || (val >= begin && val <= end)) && (!allowsSteps || (val % steps === 0))) {
+ return true;
+ }
+ }
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badInt'
+ });
+
+ /*
+ * Validate alpha numeric
+ */
+ $.formUtils.addValidator({
+ name: 'alphanumeric',
+ validatorFunction: function (val, $el, conf, language) {
+ var patternStart = '^([a-zA-Z0-9',
+ patternEnd = ']+)$',
+ additionalChars = $el.valAttr('allowing'),
+ pattern = '',
+ hasSpaces = false;
+
+ if (additionalChars) {
+ pattern = patternStart + additionalChars + patternEnd;
+ var extra = additionalChars.replace(/\\/g, '');
+ if (extra.indexOf(' ') > -1) {
+ hasSpaces = true;
+ extra = extra.replace(' ', '');
+ extra += language.andSpaces || $.formUtils.LANG.andSpaces;
+ }
+
+ if(language.badAlphaNumericAndExtraAndSpaces && language.badAlphaNumericAndExtra) {
+ if(hasSpaces) {
+ this.errorMessage = language.badAlphaNumericAndExtraAndSpaces + extra;
+ } else {
+ this.errorMessage = language.badAlphaNumericAndExtra + extra + language.badAlphaNumericExtra;
+ }
+ } else {
+ this.errorMessage = language.badAlphaNumeric + language.badAlphaNumericExtra + extra;
+ }
+ } else {
+ pattern = patternStart + patternEnd;
+ this.errorMessage = language.badAlphaNumeric;
+ }
+
+ return new RegExp(pattern).test(val);
+ },
+ errorMessage: '',
+ errorMessageKey: ''
+ });
+
+ /*
+ * Validate against regexp
+ */
+ $.formUtils.addValidator({
+ name: 'custom',
+ validatorFunction: function (val, $el) {
+ var regexp = new RegExp($el.valAttr('regexp'));
+ return regexp.test(val);
+ },
+ errorMessage: '',
+ errorMessageKey: 'badCustomVal'
+ });
+
+ /*
+ * Validate date
+ */
+ $.formUtils.addValidator({
+ name: 'date',
+ validatorFunction: function (date, $el, conf) {
+ var dateFormat = $el.valAttr('format') || conf.dateFormat || 'yyyy-mm-dd',
+ addMissingLeadingZeros = $el.valAttr('require-leading-zero') === 'false';
+ return $.formUtils.parseDate(date, dateFormat, addMissingLeadingZeros) !== false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badDate'
+ });
+
+
+ /*
+ * Validate group of checkboxes, validate qty required is checked
+ * written by Steve Wasiura : http://stevewasiura.waztech.com
+ * element attrs
+ * data-validation="checkbox_group"
+ * data-validation-qty="1-2" // min 1 max 2
+ * data-validation-error-msg="chose min 1, max of 2 checkboxes"
+ */
+ $.formUtils.addValidator({
+ name: 'checkbox_group',
+ validatorFunction: function (val, $el, conf, lang, $form) {
+ // preset return var
+ var isValid = true,
+ // get name of element. since it is a checkbox group, all checkboxes will have same name
+ elname = $el.attr('name'),
+ // get checkboxes and count the checked ones
+ $checkBoxes = $('input[type=checkbox][name^="' + elname + '"]', $form),
+ checkedCount = $checkBoxes.filter(':checked').length,
+ // get el attr that specs qty required / allowed
+ qtyAllowed = $el.valAttr('qty');
+
+ if (qtyAllowed === undefined) {
+ var elementType = $el.get(0).nodeName;
+ alert('Attribute "data-validation-qty" is missing from ' + elementType + ' named ' + $el.attr('name'));
+ }
+
+ // call Utility function to check if count is above min, below max, within range etc.
+ var qtyCheckResults = $.formUtils.numericRangeCheck(checkedCount, qtyAllowed);
+
+ // results will be array, [0]=result str, [1]=qty int
+ switch (qtyCheckResults[0]) {
+ // outside allowed range
+ case 'out':
+ this.errorMessage = lang.groupCheckedRangeStart + qtyAllowed + lang.groupCheckedEnd;
+ isValid = false;
+ break;
+ // below min qty
+ case 'min':
+ this.errorMessage = lang.groupCheckedTooFewStart + qtyCheckResults[1] + (lang.groupCheckedTooFewEnd || lang.groupCheckedEnd);
+ isValid = false;
+ break;
+ // above max qty
+ case 'max':
+ this.errorMessage = lang.groupCheckedTooManyStart + qtyCheckResults[1] + (lang.groupCheckedTooManyEnd || lang.groupCheckedEnd);
+ isValid = false;
+ break;
+ // ok
+ default:
+ isValid = true;
+ }
+
+ if( !isValid ) {
+ var _triggerOnBlur = function() {
+ $checkBoxes.unbind('click', _triggerOnBlur);
+ $checkBoxes.filter('*[data-validation]').validateInputOnBlur(lang, conf, false, 'blur');
+ };
+ $checkBoxes.bind('click', _triggerOnBlur);
+ }
+
+ return isValid;
+ }
+ // errorMessage : '', // set above in switch statement
+ // errorMessageKey: '' // not used
+ });
+
+})(jQuery);
diff --git a/src/main/deprecated.js b/src/main/deprecated.js
new file mode 100644
index 0000000..35b7c55
--- /dev/null
+++ b/src/main/deprecated.js
@@ -0,0 +1,110 @@
+/**
+ * Deprecated functions and attributes
+ * @todo: Remove in release of 3.0
+ */
+(function ($, undefined) {
+
+ 'use strict';
+
+ /**
+ * @deprecated
+ * @param language
+ * @param conf
+ */
+ $.fn.validateForm = function (language, conf) {
+ $.formUtils.warn('Use of deprecated function $.validateForm, use $.isValid instead');
+ return this.isValid(language, conf, true);
+ };
+
+ $(window)
+ .on('formValidationPluginInit', function(evt, config) {
+ convertDeprecatedLangCodeToISO6391(config);
+ addSupportForCustomErrorMessageCallback(config);
+ addSupportForElementReferenceInPositionParam(config);
+ })
+ .on('validatorsLoaded formValidationSetup', function(evt, $form) {
+ if( !$form ) {
+ $form = $('form');
+ }
+ addSupportForValidationDependingOnCheckedInput($form);
+ });
+
+
+ function addSupportForCustomErrorMessageCallback(config) {
+ if (config &&
+ config.errorMessagePosition === 'custom' &&
+ typeof config.errorMessageCustom === 'function') {
+
+ $.formUtils.warn('Use of deprecated function errorMessageCustom, use config.submitErrorMessageCallback instead');
+
+ config.submitErrorMessageCallback = function($form, errorMessages) {
+ config.errorMessageCustom(
+ $form,
+ config.language.errorTitle,
+ errorMessages,
+ config
+ );
+ };
+ }
+ }
+
+ function addSupportForElementReferenceInPositionParam(config) {
+ if (config.errorMessagePosition && typeof config.errorMessagePosition === 'object') {
+ $.formUtils.warn('Deprecated use of config parameter errorMessagePosition, use config.submitErrorMessageCallback instead');
+ var $errorMessageContainer = config.errorMessagePosition;
+ config.errorMessagePosition = 'top';
+ config.submitErrorMessageCallback = function() {
+ return $errorMessageContainer;
+ };
+ }
+ }
+
+ function addSupportForValidationDependingOnCheckedInput($form) {
+ var $inputsDependingOnCheckedInputs = $form.find('[data-validation-if-checked]');
+ if ($inputsDependingOnCheckedInputs.length) {
+ $.formUtils.warn(
+ 'Detected use of attribute "data-validation-if-checked" which is '+
+ 'deprecated. Use "data-validation-depends-on" provided by module "logic"'
+ );
+ }
+
+ $inputsDependingOnCheckedInputs
+ .on('beforeValidation', function() {
+
+ var $elem = $(this),
+ nameOfDependingInput = $elem.valAttr('if-checked');
+
+ // Set the boolean telling us that the validation depends
+ // on another input being checked
+ var $dependingInput = $('input[name="' + nameOfDependingInput + '"]', $form),
+ dependingInputIsChecked = $dependingInput.is(':checked'),
+ valueOfDependingInput = ($.formUtils.getValue($dependingInput) || '').toString(),
+ requiredValueOfDependingInput = $elem.valAttr('if-checked-value');
+
+ if (!dependingInputIsChecked || !(
+ !requiredValueOfDependingInput ||
+ requiredValueOfDependingInput === valueOfDependingInput
+ )) {
+ $elem.valAttr('skipped', true);
+ }
+
+ });
+ }
+
+ function convertDeprecatedLangCodeToISO6391(config) {
+ var deprecatedLangCodes = {
+ se: 'sv',
+ cz: 'cs',
+ dk: 'da'
+ };
+
+ if (config.lang in deprecatedLangCodes) {
+ var newLangCode = deprecatedLangCodes[config.lang];
+ $.formUtils.warn(
+ 'Deprecated use of lang code "'+config.lang+'" use "'+newLangCode+'" instead'
+ );
+ config.lang = newLangCode;
+ }
+ }
+
+})(jQuery);
diff --git a/src/main/dialogs.js b/src/main/dialogs.js
new file mode 100644
index 0000000..1747812
--- /dev/null
+++ b/src/main/dialogs.js
@@ -0,0 +1,205 @@
+/**
+ * Utility methods used for displaying error messages (attached to $.formUtils)
+ */
+(function ($) {
+
+ 'use strict';
+
+ var dialogs = {
+
+ resolveErrorMessage: function($elem, validator, validatorName, conf, language) {
+ var errorMsgAttr = conf.validationErrorMsgAttribute + '-' + validatorName.replace('validate_', ''),
+ validationErrorMsg = $elem.attr(errorMsgAttr);
+
+ if (!validationErrorMsg) {
+ validationErrorMsg = $elem.attr(conf.validationErrorMsgAttribute);
+ if (!validationErrorMsg) {
+ if (typeof validator.errorMessageKey !== 'function') {
+ validationErrorMsg = language[validator.errorMessageKey];
+ }
+ else {
+ validationErrorMsg = language[validator.errorMessageKey(conf)];
+ }
+ if (!validationErrorMsg) {
+ validationErrorMsg = validator.errorMessage;
+ }
+ }
+ }
+ return validationErrorMsg;
+ },
+ getParentContainer: function ($elem) {
+ if ($elem.valAttr('error-msg-container')) {
+ return $($elem.valAttr('error-msg-container'));
+ } else {
+ var $parent = $elem.parent();
+ if($elem.attr('type') === 'checkbox' && $elem.closest('.checkbox').length) {
+ $parent = $elem.closest('.checkbox').parent();
+ } else if($elem.attr('type') === 'radio' && $elem.closest('.radio').length) {
+ $parent = $elem.closest('.radio').parent();
+ }
+ if($parent.closest('.input-group').length) {
+ $parent = $parent.closest('.input-group').parent();
+ }
+ return $parent;
+ }
+ },
+ applyInputErrorStyling: function ($input, conf) {
+ $input
+ .addClass(conf.errorElementClass)
+ .removeClass(conf.successElementClass);
+
+ this.getParentContainer($input)
+ .addClass(conf.inputParentClassOnError)
+ .removeClass(conf.inputParentClassOnSuccess);
+
+ if (conf.borderColorOnError !== '') {
+ $input.css('border-color', conf.borderColorOnError);
+ }
+ },
+ applyInputSuccessStyling: function($input, conf) {
+ $input.addClass(conf.successElementClass);
+ this.getParentContainer($input)
+ .addClass(conf.inputParentClassOnSuccess);
+ },
+ removeInputStylingAndMessage: function($input, conf) {
+
+ // Reset input css
+ $input
+ .removeClass(conf.successElementClass)
+ .removeClass(conf.errorElementClass)
+ .css('border-color', '');
+
+ var $parentContainer = dialogs.getParentContainer($input);
+
+ // Reset parent css
+ $parentContainer
+ .removeClass(conf.inputParentClassOnError)
+ .removeClass(conf.inputParentClassOnSuccess);
+
+ // Remove possible error message
+ if (typeof conf.inlineErrorMessageCallback === 'function') {
+ var $errorMessage = conf.inlineErrorMessageCallback($input, false, conf);
+ if ($errorMessage) {
+ $errorMessage.html('');
+ }
+ } else {
+ $parentContainer
+ .find('.' + conf.errorMessageClass)
+ .remove();
+ }
+
+ },
+ removeAllMessagesAndStyling: function($form, conf) {
+
+ // Remove error messages in top of form
+ if (typeof conf.submitErrorMessageCallback === 'function') {
+ var $errorMessagesInTopOfForm = conf.submitErrorMessageCallback($form, false, conf);
+ if ($errorMessagesInTopOfForm) {
+ $errorMessagesInTopOfForm.html('');
+ }
+ } else {
+ $form.find('.' + conf.errorMessageClass + '.alert').remove();
+ }
+
+ // Remove input css/messages
+ $form.find('.' + conf.errorElementClass + ',.' + conf.successElementClass).each(function() {
+ dialogs.removeInputStylingAndMessage($(this), conf);
+ });
+ },
+ setInlineMessage: function ($input, errorMsg, conf) {
+
+ this.applyInputErrorStyling($input, conf);
+
+ var custom = document.getElementById($input.attr('name') + '_err_msg'),
+ $messageContainer = false,
+ setErrorMessage = function ($elem) {
+ $.formUtils.$win.trigger('validationErrorDisplay', [$input, $elem]);
+ $elem.html(errorMsg);
+ },
+ addErrorToMessageContainer = function() {
+ var $found = false;
+ $messageContainer.find('.' + conf.errorMessageClass).each(function () {
+ if (this.inputReferer === $input[0]) {
+ $found = $(this);
+ return false;
+ }
+ });
+ if ($found) {
+ if (!errorMsg) {
+ $found.remove();
+ } else {
+ setErrorMessage($found);
+ }
+ } else if(errorMsg !== '') {
+ $message = $('');
+ setErrorMessage($message);
+ $message[0].inputReferer = $input[0];
+ $messageContainer.prepend($message);
+ }
+ },
+ $message;
+
+ if (custom) {
+ // Todo: remove in 3.0
+ $.formUtils.warn('Using deprecated element reference ' + custom.id);
+ $messageContainer = $(custom);
+ addErrorToMessageContainer();
+ } else if (typeof conf.inlineErrorMessageCallback === 'function') {
+ $messageContainer = conf.inlineErrorMessageCallback($input, errorMsg, conf);
+ if (!$messageContainer) {
+ // Error display taken care of by inlineErrorMessageCallback
+ return;
+ }
+ addErrorToMessageContainer();
+ } else {
+ var $parent = this.getParentContainer($input);
+ $message = $parent.find('.' + conf.errorMessageClass + '.help-block');
+ if ($message.length === 0) {
+ $message = $('').addClass('help-block').addClass(conf.errorMessageClass);
+ $message.appendTo($parent);
+ }
+ setErrorMessage($message);
+ }
+ },
+ setMessageInTopOfForm: function ($form, errorMessages, conf, lang) {
+ var view = '
'+
+ '{errorTitle}'+
+ '
{fields}
'+
+ '
',
+ $container = false;
+
+ if (typeof conf.submitErrorMessageCallback === 'function') {
+ $container = conf.submitErrorMessageCallback($form, errorMessages, conf);
+ if (!$container) {
+ // message display taken care of by callback
+ return;
+ }
+ }
+
+ var viewParams = {
+ errorTitle: lang.errorTitle,
+ fields: '',
+ errorMessageClass: conf.errorMessageClass
+ };
+
+ $.each(errorMessages, function (i, msg) {
+ viewParams.fields += '
'+msg+'
';
+ });
+
+ $.each(viewParams, function(param, value) {
+ view = view.replace('{'+param+'}', value);
+ });
+
+ if ($container) {
+ $container.html(view);
+ } else {
+ $form.children().eq(0).before($(view));
+ }
+ }
+ };
+
+ $.formUtils = $.extend($.formUtils || {}, {
+ dialogs: dialogs
+ });
+
+})(jQuery);
diff --git a/src/main/jquery-plugins.js b/src/main/jquery-plugins.js
new file mode 100644
index 0000000..e0aa610
--- /dev/null
+++ b/src/main/jquery-plugins.js
@@ -0,0 +1,475 @@
+/**
+ * File declaring all methods if this plugin which is applied to $.fn.
+ */
+(function($, window, undefined) {
+
+ 'use strict';
+
+ var _helpers = 0;
+
+
+ /**
+ * Assigns validateInputOnBlur function to elements blur event
+ *
+ * @param {Object} language Optional, will override $.formUtils.LANG
+ * @param {Object} conf Optional, will override the default settings
+ * @return {jQuery}
+ */
+ $.fn.validateOnBlur = function (language, conf) {
+ var $form = this,
+ $elems = this.find('*[data-validation]');
+
+ $elems.each(function(){
+ var $this = $(this);
+ if ($this.is('[type=radio]')){
+ var $additionals = $form.find('[type=radio][name="' + $this.attr('name') + '"]');
+ $additionals.bind('blur.validation', function(){
+ $this.validateInputOnBlur(language, conf, true, 'blur');
+ });
+ if (conf.validateCheckboxRadioOnClick) {
+ $additionals.bind('click.validation', function () {
+ $this.validateInputOnBlur(language, conf, true, 'click');
+ });
+ }
+ }
+ });
+
+ $elems.bind('blur.validation', function () {
+ $(this).validateInputOnBlur(language, conf, true, 'blur');
+ });
+
+ if (conf.validateCheckboxRadioOnClick) {
+ // bind click event to validate on click for radio & checkboxes for nice UX
+ this.find('input[type=checkbox][data-validation],input[type=radio][data-validation]')
+ .bind('click.validation', function () {
+ $(this).validateInputOnBlur(language, conf, true, 'click');
+ });
+ }
+
+ return this;
+ };
+
+ /*
+ * Assigns validateInputOnBlur function to elements custom event
+ * @param {Object} language Optional, will override $.formUtils.LANG
+ * @param {Object} settings Optional, will override the default settings
+ * * @return {jQuery}
+ */
+ $.fn.validateOnEvent = function (language, config) {
+ if(this.length === 0) {
+ return;
+ }
+
+ var $elements = this[0].nodeName === 'FORM' ? this.find('*[data-validation-event]') : this;
+ $elements
+ .each(function () {
+ var $el = $(this),
+ etype = $el.valAttr('event');
+ if (etype) {
+ $el
+ .unbind(etype + '.validation')
+ .bind(etype + '.validation', function (evt) {
+ if( (evt || {}).keyCode !== 9 ) {
+ $(this).validateInputOnBlur(language, config, true, etype);
+ }
+ });
+ }
+ });
+ return this;
+ };
+
+ /**
+ * fade in help message when input gains focus
+ * fade out when input loses focus
+ *
+ *
+ * @param {String} attrName - Optional, default is data-help
+ * @return {jQuery}
+ */
+ $.fn.showHelpOnFocus = function (attrName) {
+ if (!attrName) {
+ attrName = 'data-validation-help';
+ }
+
+ // Add help text listeners
+ this.find('textarea,input').each(function () {
+ var $elem = $(this),
+ className = 'jquery_form_help_' + (++_helpers),
+ help = $elem.attr(attrName);
+
+ // Reset
+ $elem
+ .removeClass('has-help-text')
+ .unbind('focus.help')
+ .unbind('blur.help');
+
+ if (help) {
+ $elem
+ .addClass('has-help-txt')
+ .bind('focus.help', function () {
+ var $help = $elem.parent().find('.' + className);
+ if ($help.length === 0) {
+ $help = $('')
+ .addClass(className)
+ .addClass('help')
+ .addClass('help-block') // twitter bs
+ .text(help)
+ .hide();
+
+ $elem.after($help);
+ }
+ $help.fadeIn();
+ })
+ .bind('blur.help', function () {
+ $(this)
+ .parent()
+ .find('.' + className)
+ .fadeOut('slow');
+ });
+ }
+ });
+
+ return this;
+ };
+
+ /**
+ * @param {Function} cb
+ * @param {Object} [conf]
+ * @param {Object} [lang]
+ */
+ $.fn.validate = function(cb, conf, lang) {
+ var language = $.extend({}, $.formUtils.LANG, lang || {});
+ this.each(function() {
+ var $elem = $(this),
+ closestFormElem = $elem.closest('form').get(0) || {},
+ formDefaultConfig = closestFormElem.validationConfig || $.formUtils.defaultConfig();
+
+ $elem.one('validation', function(evt, isValid) {
+ if ( typeof cb === 'function' ) {
+ cb(isValid, this, evt);
+ }
+ });
+
+ $elem.validateInputOnBlur(
+ language,
+ $.extend({}, formDefaultConfig, conf || {}),
+ true
+ );
+ });
+ };
+
+ /**
+ * Tells whether or not validation of this input will have to postpone the form submit ()
+ * @returns {Boolean}
+ */
+ $.fn.willPostponeValidation = function() {
+ return (this.valAttr('suggestion-nr') ||
+ this.valAttr('postpone') ||
+ this.hasClass('hasDatepicker')) &&
+ !window.postponedValidation;
+ };
+
+ /**
+ * Validate single input when it loses focus
+ * shows error message in a span element
+ * that is appended to the parent element
+ *
+ * @param {Object} [language] Optional, will override $.formUtils.LANG
+ * @param {Object} [conf] Optional, will override the default settings
+ * @param {Boolean} attachKeyupEvent Optional
+ * @param {String} eventContext
+ * @return {jQuery}
+ */
+ $.fn.validateInputOnBlur = function (language, conf, attachKeyupEvent, eventContext) {
+
+ $.formUtils.eventType = eventContext;
+
+ if ( this.willPostponeValidation() ) {
+ // This validation has to be postponed
+ var _self = this,
+ postponeTime = this.valAttr('postpone') || 200;
+
+ window.postponedValidation = function () {
+ _self.validateInputOnBlur(language, conf, attachKeyupEvent, eventContext);
+ window.postponedValidation = false;
+ };
+
+ setTimeout(function () {
+ if (window.postponedValidation) {
+ window.postponedValidation();
+ }
+ }, postponeTime);
+
+ return this;
+ }
+
+ language = $.extend({}, $.formUtils.LANG, language || {});
+ $.formUtils.dialogs.removeInputStylingAndMessage(this, conf);
+
+ var $elem = this,
+ $form = $elem.closest('form'),
+ result = $.formUtils.validateInput(
+ $elem,
+ language,
+ conf,
+ $form,
+ eventContext
+ );
+
+ var reValidate = function() {
+ $elem.validateInputOnBlur(language, conf, false, 'blur.revalidated');
+ };
+
+ if (eventContext === 'blur') {
+ $elem
+ .unbind('validation.revalidate', reValidate)
+ .one('validation.revalidate', reValidate);
+ }
+
+ if (attachKeyupEvent) {
+ $elem.removeKeyUpValidation();
+ }
+
+ if (result.shouldChangeDisplay) {
+ if (result.isValid) {
+ $.formUtils.dialogs.applyInputSuccessStyling($elem, conf);
+ } else {
+ $.formUtils.dialogs.setInlineMessage($elem, result.errorMsg, conf);
+ }
+ }
+
+ if (!result.isValid && attachKeyupEvent) {
+ $elem.validateOnKeyUp(language, conf);
+ }
+
+ return this;
+ };
+
+ /**
+ * Validate element on keyup-event
+ */
+ $.fn.validateOnKeyUp = function(language, conf) {
+ this.each(function() {
+ var $input = $(this);
+ if (!$input.valAttr('has-keyup-event')) {
+ $input
+ .valAttr('has-keyup-event', 'true')
+ .bind('keyup.validation', function (evt) {
+ if( evt.keyCode !== 9 ) {
+ $input.validateInputOnBlur(language, conf, false, 'keyup');
+ }
+ });
+ }
+ });
+ return this;
+ };
+
+ /**
+ * Remove validation on keyup
+ */
+ $.fn.removeKeyUpValidation = function() {
+ this.each(function() {
+ $(this)
+ .valAttr('has-keyup-event', false)
+ .unbind('keyup.validation');
+ });
+ return this;
+ };
+
+ /**
+ * Short hand for fetching/adding/removing element attributes
+ * prefixed with 'data-validation-'
+ *
+ * @param {String} name
+ * @param {String|Boolean} [val]
+ * @return {String|undefined|jQuery}
+ * @protected
+ */
+ $.fn.valAttr = function (name, val) {
+ if (val === undefined) {
+ return this.attr('data-validation-' + name);
+ } else if (val === false || val === null) {
+ return this.removeAttr('data-validation-' + name);
+ } else {
+ name = ((name.length > 0) ? '-' + name : '');
+ return this.attr('data-validation' + name, val);
+ }
+ };
+
+ /**
+ * Function that validates all inputs in active form
+ *
+ * @param {Object} [language]
+ * @param {Object} [conf]
+ * @param {Boolean} [displayError] Defaults to true
+ */
+ $.fn.isValid = function (language, conf, displayError) {
+
+ if ($.formUtils.isLoadingModules) {
+ var $self = this;
+ setTimeout(function () {
+ $self.isValid(language, conf, displayError);
+ }, 200);
+ return null;
+ }
+
+ conf = $.extend({}, $.formUtils.defaultConfig(), conf || {});
+ language = $.extend({}, $.formUtils.LANG, language || {});
+ displayError = displayError !== false;
+
+ if ($.formUtils.errorDisplayPreventedWhenHalted) {
+ // isValid() was called programmatically with argument displayError set
+ // to false when the validation was halted by any of the validators
+ delete $.formUtils.errorDisplayPreventedWhenHalted;
+ displayError = false;
+ }
+
+ /**
+ * Adds message to error message stack if not already in the message stack
+ *
+ * @param {String} mess
+ * @para {jQuery} $elem
+ */
+ var addErrorMessage = function (mess, $elem) {
+ if ($.inArray(mess, errorMessages) < 0) {
+ errorMessages.push(mess);
+ }
+ errorInputs.push($elem);
+ $elem.valAttr('current-error', mess);
+ if (displayError) {
+ $.formUtils.dialogs.applyInputErrorStyling($elem, conf);
+ }
+ },
+
+ /** Holds inputs (of type checkox or radio) already validated, to prevent recheck of mulitple checkboxes & radios */
+ checkedInputs = [],
+
+ /** Error messages for this validation */
+ errorMessages = [],
+
+ /** Input elements which value was not valid */
+ errorInputs = [],
+
+ /** Form instance */
+ $form = this,
+
+ /**
+ * Tells whether or not to validate element with this name and of this type
+ *
+ * @param {String} name
+ * @param {String} type
+ * @return {Boolean}
+ */
+ ignoreInput = function (name, type) {
+ if (type === 'submit' || type === 'button' || type === 'reset') {
+ return true;
+ }
+ return $.inArray(name, conf.ignore || []) > -1;
+ };
+
+ // Reset style and remove error class
+ if (displayError) {
+ $.formUtils.dialogs.removeAllMessagesAndStyling($form, conf);
+ }
+
+ // Validate element values
+ $form.find('input,textarea,select').filter(':not([type="submit"],[type="button"])').each(function () {
+ var $elem = $(this),
+ elementType = $elem.attr('type'),
+ isCheckboxOrRadioBtn = elementType === 'radio' || elementType === 'checkbox',
+ elementName = $elem.attr('name');
+
+ if (!ignoreInput(elementName, elementType) && (!isCheckboxOrRadioBtn || $.inArray(elementName, checkedInputs) < 0)) {
+
+ if (isCheckboxOrRadioBtn) {
+ checkedInputs.push(elementName);
+ }
+
+ var result = $.formUtils.validateInput(
+ $elem,
+ language,
+ conf,
+ $form,
+ 'submit'
+ );
+
+ if (!result.isValid) {
+ addErrorMessage(result.errorMsg, $elem);
+ } else if (result.isValid && result.shouldChangeDisplay) {
+ $elem.valAttr('current-error', false);
+ $.formUtils.dialogs.applyInputSuccessStyling($elem, conf);
+ }
+ }
+
+ });
+
+ // Run validation callback
+ if (typeof conf.onValidate === 'function') {
+ var errors = conf.onValidate($form);
+ if ($.isArray(errors)) {
+ $.each(errors, function (i, err) {
+ addErrorMessage(err.message, err.element);
+ });
+ }
+ else if (errors && errors.element && errors.message) {
+ addErrorMessage(errors.message, errors.element);
+ }
+ }
+
+ // Reset form validation flag
+ $.formUtils.isValidatingEntireForm = false;
+
+ // Validation failed
+ if (errorInputs.length > 0) {
+ if (displayError) {
+ if (conf.errorMessagePosition === 'top') {
+ $.formUtils.dialogs.setMessageInTopOfForm($form, errorMessages, conf, language);
+ } else {
+ $.each(errorInputs, function (i, $input) {
+ $.formUtils.dialogs.setInlineMessage($input, $input.valAttr('current-error'), conf);
+ });
+ }
+ if (conf.scrollToTopOnError) {
+ $.formUtils.$win.scrollTop($form.offset().top - 20);
+ }
+ }
+ }
+
+ if (!displayError && $.formUtils.haltValidation) {
+ $.formUtils.errorDisplayPreventedWhenHalted = true;
+ }
+
+ return errorInputs.length === 0 && !$.formUtils.haltValidation;
+ };
+
+ /**
+ * Plugin for displaying input length restriction
+ */
+ $.fn.restrictLength = function (maxLengthElement) {
+ new $.formUtils.lengthRestriction(this, maxLengthElement);
+ return this;
+ };
+
+ /**
+ * Add suggestion dropdown to inputs having data-suggestions with a comma
+ * separated string with suggestions
+ * @param {Array} [settings]
+ * @returns {jQuery}
+ */
+ $.fn.addSuggestions = function (settings) {
+ var sugs = false;
+ this.find('input').each(function () {
+ var $field = $(this);
+
+ sugs = $.split($field.attr('data-suggestions'));
+
+ if (sugs.length > 0 && !$field.hasClass('has-suggestions')) {
+ $.formUtils.suggest($field, sugs, settings);
+ $field.addClass('has-suggestions');
+ }
+ });
+ return this;
+ };
+
+
+})(jQuery, window);
diff --git a/src/main/module-loader.js b/src/main/module-loader.js
new file mode 100644
index 0000000..490555c
--- /dev/null
+++ b/src/main/module-loader.js
@@ -0,0 +1,154 @@
+/**
+ * Utility methods used for handling loading of modules (attached to $.formUtils)
+ */
+(function($) {
+
+ 'use strict';
+
+ $.formUtils = $.extend($.formUtils || {}, {
+
+ /**
+ * @var {Boolean}
+ */
+ isLoadingModules: false,
+
+ /**
+ * @var {Object}
+ */
+ loadedModules: {},
+
+ /**
+ * @param {String} name
+ */
+ registerLoadedModule: function (name) {
+ this.loadedModules[$.trim(name).toLowerCase()] = true;
+ },
+
+ /**
+ * @param {String} name
+ * @return {Boolean}
+ */
+ hasLoadedModule: function (name) {
+ return $.trim(name).toLowerCase() in this.loadedModules;
+ },
+
+ /**
+ * @example
+ * $.formUtils.loadModules('date, security.dev');
+ *
+ * Will load the scripts date.js and security.dev.js from the
+ * directory where this script resides. If you want to load
+ * the modules from another directory you can use the
+ * path argument.
+ *
+ * The script will be cached by the browser unless the module
+ * name ends with .dev
+ *
+ * @param {String} modules - Comma separated string with module file names (no directory nor file extension)
+ * @param {String} [path] - Path where the module files are located if their not in the same directory as the core modules
+ * @param {function} [callback] - Callback invoked when all modules are loaded
+ */
+ loadModules: function (modules, path, callback) {
+
+ if ($.formUtils.isLoadingModules) {
+ setTimeout(function () {
+ $.formUtils.loadModules(modules, path, callback);
+ }, 100);
+ return;
+ }
+
+ var loadModuleScripts = function (modules, path) {
+
+ var moduleList = $.split(modules),
+ numModules = moduleList.length,
+ moduleLoadedCallback = function () {
+ numModules--;
+ if (numModules === 0) {
+ $.formUtils.isLoadingModules = false;
+ if (typeof callback === 'function') {
+ callback();
+ }
+ }
+ };
+
+ if (numModules > 0) {
+ $.formUtils.isLoadingModules = true;
+ }
+
+ var cacheSuffix = '?_=' + ( new Date().getTime() ),
+ appendToElement = document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0];
+
+ $.each(moduleList, function (i, modName) {
+ modName = $.trim(modName);
+ if (modName.length === 0 || $.formUtils.hasLoadedModule(modName)) {
+ moduleLoadedCallback();
+ } else {
+ var scriptUrl = path + modName + (modName.slice(-3) === '.js' ? '' : '.js'),
+ script = document.createElement('SCRIPT');
+
+ if (typeof define === 'function' && define.amd) {
+ require([scriptUrl + ( scriptUrl.slice(-7) === '.dev.js' ? cacheSuffix : '' )], moduleLoadedCallback);
+ } else {
+ // Load the script
+ script.type = 'text/javascript';
+ script.onload = moduleLoadedCallback;
+ script.src = scriptUrl + ( scriptUrl.slice(-7) === '.dev.js' ? cacheSuffix : '' );
+ script.onerror = function() {
+ $.formUtils.warn('Unable to load form validation module '+scriptUrl, true);
+ moduleLoadedCallback();
+ };
+ script.onreadystatechange = function () {
+ // IE 7 fix
+ if (this.readyState === 'complete' || this.readyState === 'loaded') {
+ moduleLoadedCallback();
+ // Handle memory leak in IE
+ this.onload = null;
+ this.onreadystatechange = null;
+ }
+ };
+ appendToElement.appendChild(script);
+ }
+ }
+ });
+ };
+
+ if (path) {
+ loadModuleScripts(modules, path);
+ } else {
+ var findScriptPathAndLoadModules = function () {
+ var foundPath = false;
+ $('script[src*="form-validator"]').each(function () {
+ var isScriptFromPluginNodeModulesDirectory = this.src.split('form-validator')[1].split('node_modules').length > 1;
+ if (!isScriptFromPluginNodeModulesDirectory) {
+ foundPath = this.src.substr(0, this.src.lastIndexOf('/')) + '/';
+ if (foundPath === '/') {
+ foundPath = '';
+ }
+ return false;
+ }
+ });
+
+ if (foundPath !== false) {
+ loadModuleScripts(modules, foundPath);
+ return true;
+ }
+ return false;
+ };
+
+ if (!findScriptPathAndLoadModules()) {
+ $(function () {
+ var hasLoadedModuleScripts = findScriptPathAndLoadModules();
+ if (!hasLoadedModuleScripts) {
+ // The modules may have been inserted via a minified script
+ if (typeof callback === 'function') {
+ callback();
+ }
+ }
+ });
+ }
+ }
+ }
+
+ });
+
+})(jQuery);
diff --git a/src/main/setup.js b/src/main/setup.js
new file mode 100644
index 0000000..f799226
--- /dev/null
+++ b/src/main/setup.js
@@ -0,0 +1,175 @@
+/**
+ * Setup function for the plugin
+ */
+(function ($) {
+
+ 'use strict';
+
+
+ /**
+ * A bit smarter split function
+ * delimiter can be space, comma, dash or pipe
+ * @param {String} val
+ * @param {Function|String} [callback]
+ * @param {Boolean} [allowSpaceAsDelimiter]
+ * @returns {Array|void}
+ */
+ $.split = function (val, callback, allowSpaceAsDelimiter) {
+ // default to true
+ allowSpaceAsDelimiter = allowSpaceAsDelimiter === undefined || allowSpaceAsDelimiter === true;
+ var pattern = '[,|'+(allowSpaceAsDelimiter ? '\\s':'')+'-]\\s*',
+ regex = new RegExp(pattern, 'g');
+ if (typeof callback !== 'function') {
+ // return array
+ if (!val) {
+ return [];
+ }
+ var values = [];
+ $.each(val.split(callback ? callback : regex),
+ function (i, str) {
+ str = $.trim(str);
+ if (str.length) {
+ values.push(str);
+ }
+ }
+ );
+ return values;
+ } else if (val) {
+ // exec callback func on each
+ $.each(val.split(regex),
+ function (i, str) {
+ str = $.trim(str);
+ if (str.length) {
+ return callback(str, i);
+ }
+ }
+ );
+ }
+ };
+
+ /**
+ * Short hand function that makes the validation setup require less code
+ * @param conf
+ */
+ $.validate = function (conf) {
+
+ var defaultConf = $.extend($.formUtils.defaultConfig(), {
+ form: 'form',
+ validateOnEvent: false,
+ validateOnBlur: true,
+ validateCheckboxRadioOnClick: true,
+ showHelpOnFocus: true,
+ addSuggestions: true,
+ modules: '',
+ onModulesLoaded: null,
+ language: false,
+ onSuccess: false,
+ onError: false,
+ onElementValidate: false
+ });
+
+ conf = $.extend(defaultConf, conf || {});
+
+ $(window).trigger('formValidationPluginInit', [conf]);
+
+ if( conf.lang && conf.lang !== 'en' ) {
+ var langModule = 'lang/'+conf.lang+'.js';
+ conf.modules += conf.modules.length ? ','+langModule : langModule;
+ }
+
+ // Add validation to forms
+ $(conf.form).each(function (i, form) {
+
+ // Make a reference to the config for this form
+ form.validationConfig = conf;
+
+ // Trigger jQuery event that we're about to setup validation
+ var $form = $(form);
+ $form.trigger('formValidationSetup', [$form, conf]);
+
+ // Remove classes and event handlers that might have been
+ // added by a previous call to $.validate
+ $form.find('.has-help-txt')
+ .unbind('focus.validation')
+ .unbind('blur.validation');
+
+ $form
+ .removeClass('has-validation-callback')
+ .unbind('submit.validation')
+ .unbind('reset.validation')
+ .find('input[data-validation],textarea[data-validation]')
+ .unbind('blur.validation');
+
+ // Validate when submitted
+ $form.bind('submit.validation', function (evt) {
+
+ var $form = $(this),
+ stop = function() {
+ evt.stopImmediatePropagation();
+ return false;
+ };
+
+ if ($.formUtils.haltValidation) {
+ // pressing several times on submit button while validation is halted
+ return stop();
+ }
+
+ if ($.formUtils.isLoadingModules) {
+ setTimeout(function () {
+ $form.trigger('submit.validation');
+ }, 200);
+ return stop();
+ }
+
+ var valid = $form.isValid(conf.language, conf);
+ if ($.formUtils.haltValidation) {
+ // Validation got halted by one of the validators
+ return stop();
+ } else {
+ if (valid && typeof conf.onSuccess === 'function') {
+ var callbackResponse = conf.onSuccess($form);
+ if (callbackResponse === false) {
+ return stop();
+ }
+ } else if (!valid && typeof conf.onError === 'function') {
+ conf.onError($form);
+ return stop();
+ } else {
+ return valid ? true : stop();
+ }
+ }
+ })
+ .bind('reset.validation', function () {
+ $.formUtils.dialogs.removeAllMessagesAndStyling($form, conf);
+ })
+ .addClass('has-validation-callback');
+
+ if (conf.showHelpOnFocus) {
+ $form.showHelpOnFocus();
+ }
+ if (conf.addSuggestions) {
+ $form.addSuggestions();
+ }
+ if (conf.validateOnBlur) {
+ $form.validateOnBlur(conf.language, conf);
+ $form.bind('html5ValidationAttrsFound', function () {
+ $form.validateOnBlur(conf.language, conf);
+ });
+ }
+ if (conf.validateOnEvent) {
+ $form.validateOnEvent(conf.language, conf);
+ }
+ });
+
+ if (conf.modules !== '') {
+ $.formUtils.loadModules(conf.modules, null, function() {
+ if (typeof conf.onModulesLoaded === 'function') {
+ conf.onModulesLoaded();
+ }
+ var $form = typeof conf.form === 'string' ? $(conf.form) : conf.form;
+ $.formUtils.$win.trigger('validatorsLoaded', [$form, conf]);
+ });
+ }
+ };
+
+})(jQuery);
diff --git a/src/main/utils.js b/src/main/utils.js
new file mode 100644
index 0000000..0caf1ca
--- /dev/null
+++ b/src/main/utils.js
@@ -0,0 +1,713 @@
+/**
+ * Utility methods and properties attached to $.formUtils
+ */
+(function($, window) {
+
+ 'use strict';
+
+ var $win = $(window);
+
+ $.formUtils = $.extend($.formUtils || {}, {
+
+ $win: $win,
+
+ /**
+ * Default config for $(...).isValid();
+ */
+ defaultConfig: function () {
+ return {
+ ignore: [], // Names of inputs not to be validated even though `validationRuleAttribute` containing the validation rules tells us to
+ errorElementClass: 'error', // Class that will be put on elements which value is invalid
+ successElementClass: 'valid', // Class that will be put on elements that has been validated with success
+ borderColorOnError: '#b94a48', // Border color of elements which value is invalid, empty string to not change border color
+ errorMessageClass: 'form-error', // class name of div containing error messages when validation fails
+ validationRuleAttribute: 'data-validation', // name of the attribute holding the validation rules
+ validationErrorMsgAttribute: 'data-validation-error-msg', // define custom err msg inline with element
+ errorMessagePosition: 'inline', // Can be either "top" or "inline"
+ errorMessageTemplate: {
+ container: '
{messages}
',
+ messages: '{errorTitle}
{fields}
',
+ field: '
{msg}
'
+ },
+ scrollToTopOnError: true,
+ dateFormat: 'yyyy-mm-dd',
+ addValidClassOnAll: false, // whether or not to apply class="valid" even if the input wasn't validated
+ decimalSeparator: '.',
+ inputParentClassOnError: 'has-error', // twitter-bootstrap default class name
+ inputParentClassOnSuccess: 'has-success', // twitter-bootstrap default class name
+ validateHiddenInputs: false, // whether or not hidden inputs should be validated
+ inlineErrorMessageCallback: false,
+ submitErrorMessageCallback: false
+ };
+ },
+
+ /**
+ * Available validators
+ */
+ validators: {},
+
+ /**
+ * Available sanitizers
+ */
+ sanitizers: {},
+
+ /**
+ * Events triggered by form validator
+ */
+ _events: {load: [], valid: [], invalid: []},
+
+ /**
+ * Setting this property to true during validation will
+ * stop further validation from taking place and form will
+ * not be sent
+ */
+ haltValidation: false,
+
+ /**
+ * Function for adding a validator
+ * @see $.formUtils.addAsyncValidator (async.js)
+ * @param {Object} validator
+ */
+ addValidator: function (validator) {
+ // prefix with "validate_" for backward compatibility reasons
+ var name = validator.name.indexOf('validate_') === 0 ? validator.name : 'validate_' + validator.name;
+ if (validator.validateOnKeyUp === undefined) {
+ validator.validateOnKeyUp = true;
+ }
+ this.validators[name] = validator;
+ },
+
+ /**
+ * Function for adding a sanitizer
+ * @param {Object} sanitizer
+ */
+ addSanitizer: function (sanitizer) {
+ this.sanitizers[sanitizer.name] = sanitizer;
+ },
+
+ /**
+ * Warn user via the console if available
+ */
+ warn: function(msg, fallbackOnAlert) {
+ if( 'console' in window ) {
+ if( typeof window.console.warn === 'function' ) {
+ window.console.warn(msg);
+ } else if( typeof window.console.log === 'function' ) {
+ window.console.log(msg);
+ }
+ } else if (fallbackOnAlert) {
+ // This is for some old IE version...
+ alert(msg);
+ }
+ },
+
+ /**
+ * Same as input $.fn.val() but also supporting input of typ radio or checkbox
+ * @example
+ *
+ * $.formUtils.getValue('.myRadioButtons', $('#some-form'));
+ * $.formUtils.getValue($('#some-form').find('.check-boxes'));
+ *
+ * @param query
+ * @param $parent
+ * @returns {String|Boolean}
+ */
+ getValue: function(query, $parent) {
+ var $inputs = $parent ? $parent.find(query) : query;
+ if ($inputs.length > 0 ) {
+ var type = $inputs.eq(0).attr('type');
+ if (type === 'radio' || type === 'checkbox') {
+ return $inputs.filter(':checked').val() || '';
+ } else {
+ return $inputs.val() || '';
+ }
+ }
+ return false;
+ },
+
+ /**
+ * Validate the value of given element according to the validation rules
+ * found in the attribute data-validation. Will return an object representing
+ * a validation result, having the props shouldChangeDisplay, isValid and errorMsg
+ * @param {jQuery} $elem
+ * @param {Object} language ($.formUtils.LANG)
+ * @param {Object} conf
+ * @param {jQuery} $form
+ * @param {String} [eventContext]
+ * @return {Object}
+ */
+ validateInput: function ($elem, language, conf, $form, eventContext) {
+
+ conf = conf || $.formUtils.defaultConfig();
+ language = language || $.formUtils.LANG;
+
+ if (!$form.length) {
+ $form = $elem.parent();
+ }
+
+ var value = this.getValue($elem);
+
+ $elem
+ .valAttr('skipped', false)
+ .one('beforeValidation', function() {
+ // Skip input because its hidden or disabled
+ // Doing this in a callback makes it possible for others to prevent the default
+ // behaviour by binding to the same event and call evt.stopImmediatePropagation()
+ if ($elem.attr('disabled') || (!$elem.is(':visible') && !conf.validateHiddenInputs)) {
+ $elem.valAttr('skipped', 1);
+ }
+ })
+ .trigger('beforeValidation', [value, language, conf]);
+
+ var inputIsOptional = $elem.valAttr('optional') === 'true',
+ skipBecauseItsEmpty = !value && inputIsOptional,
+ validationRules = $elem.attr(conf.validationRuleAttribute),
+ isValid = true,
+ errorMsg = '',
+ result = {isValid: true, shouldChangeDisplay:true, errorMsg:''};
+
+ // For input type="number", browsers attempt to parse the entered value into a number.
+ // If the input is not numeric, browsers handle the situation differently:
+ // Chrome 48 simply disallows non-numeric input; FF 44 clears out the input box on blur;
+ // Safari 5 parses the entered string to find a leading number.
+ // If the input fails browser validation, the browser sets the input value equal to an empty string.
+ // Therefore, we cannot distinguish (apart from hacks) between an empty input type="text" and one with a
+ // value that can't be parsed by the browser.
+
+ if (!validationRules || skipBecauseItsEmpty || $elem.valAttr('skipped')) {
+ result.shouldChangeDisplay = conf.addValidClassOnAll;
+ return result;
+ }
+
+ // Filter out specified characters
+ var ignore = $elem.valAttr('ignore');
+ if (ignore) {
+ $.each(ignore.split(''), function(i, character) {
+ value = value.replace(new RegExp('\\'+character, 'g'), '');
+ });
+ }
+
+ $.split(validationRules, function (rule) {
+
+ if (rule.indexOf('validate_') !== 0) {
+ rule = 'validate_' + rule;
+ }
+
+ var validator = $.formUtils.validators[rule];
+
+ if (validator) {
+
+ // special change of element for checkbox_group rule
+ if (rule === 'validate_checkbox_group') {
+ // set element to first in group, so error msg attr doesn't need to be set on all elements in group
+ $elem = $form.find('[name="' + $elem.attr('name') + '"]:eq(0)');
+ }
+
+ if (eventContext !== 'keyup' || validator.validateOnKeyUp) {
+ // A validator can prevent itself from getting triggered on keyup
+ isValid = validator.validatorFunction(value, $elem, conf, language, $form, eventContext);
+ }
+
+ if (!isValid) {
+ if (conf.validateOnBlur) {
+ $elem.validateOnKeyUp(language, conf);
+ }
+ errorMsg = $.formUtils.dialogs.resolveErrorMessage($elem, validator, rule, conf, language);
+ return false; // break iteration
+ }
+
+ } else {
+
+ // todo: Add some validator lookup function and tell immediately which module is missing
+ throw new Error('Using undefined validator "' + rule +
+ '". Maybe you have forgotten to load the module that "' + rule +'" belongs to?');
+
+ }
+
+ });
+
+
+ if (isValid === false) {
+ $elem.trigger('validation', false);
+ result.errorMsg = errorMsg;
+ result.isValid = false;
+ result.shouldChangeDisplay = true;
+ } else if (isValid === null) {
+ // A validatorFunction returning null means that it's not able to validate
+ // the input at this time. Most probably some async stuff need to gets finished
+ // first and then the validator will re-trigger the validation.
+ result.shouldChangeDisplay = false;
+ } else {
+ $elem.trigger('validation', true);
+ result.shouldChangeDisplay = true;
+ }
+
+ // Run element validation callback
+ if (typeof conf.onElementValidate === 'function' && errorMsg !== null) {
+ conf.onElementValidate(result.isValid, $elem, $form, errorMsg);
+ }
+
+ $elem.trigger('afterValidation', [result, eventContext]);
+
+ return result;
+ },
+
+ /**
+ * Is it a correct date according to given dateFormat. Will return false if not, otherwise
+ * an array 0=>year 1=>month 2=>day
+ *
+ * @param {String} val
+ * @param {String} dateFormat
+ * @param {Boolean} [addMissingLeadingZeros]
+ * @return {Array}|{Boolean}
+ */
+ parseDate: function (val, dateFormat, addMissingLeadingZeros) {
+ var divider = dateFormat.replace(/[a-zA-Z]/gi, '').substring(0, 1),
+ regexp = '^',
+ formatParts = dateFormat.split(divider || null),
+ matches, day, month, year;
+
+ $.each(formatParts, function (i, part) {
+ regexp += (i > 0 ? '\\' + divider : '') + '(\\d{' + part.length + '})';
+ });
+
+ regexp += '$';
+
+ if (addMissingLeadingZeros) {
+ var newValueParts = [];
+ $.each(val.split(divider), function(i, part) {
+ if(part.length === 1) {
+ part = '0'+part;
+ }
+ newValueParts.push(part);
+ });
+ val = newValueParts.join(divider);
+ }
+
+ matches = val.match(new RegExp(regexp));
+ if (matches === null) {
+ return false;
+ }
+
+ var findDateUnit = function (unit, formatParts, matches) {
+ for (var i = 0; i < formatParts.length; i++) {
+ if (formatParts[i].substring(0, 1) === unit) {
+ return $.formUtils.parseDateInt(matches[i + 1]);
+ }
+ }
+ return -1;
+ };
+
+ month = findDateUnit('m', formatParts, matches);
+ day = findDateUnit('d', formatParts, matches);
+ year = findDateUnit('y', formatParts, matches);
+
+ if ((month === 2 && day > 28 && (year % 4 !== 0 || year % 100 === 0 && year % 400 !== 0)) ||
+ (month === 2 && day > 29 && (year % 4 === 0 || year % 100 !== 0 && year % 400 === 0)) ||
+ month > 12 || month === 0) {
+ return false;
+ }
+ if ((this.isShortMonth(month) && day > 30) || (!this.isShortMonth(month) && day > 31) || day === 0) {
+ return false;
+ }
+
+ return [year, month, day];
+ },
+
+ /**
+ * skum fix. är talet 05 eller lägre ger parseInt rätt int annars får man 0 när man kör parseInt?
+ *
+ * @param {String} val
+ * @return {Number}
+ */
+ parseDateInt: function (val) {
+ if (val.indexOf('0') === 0) {
+ val = val.replace('0', '');
+ }
+ return parseInt(val, 10);
+ },
+
+ /**
+ * Has month only 30 days?
+ *
+ * @param {Number} m
+ * @return {Boolean}
+ */
+ isShortMonth: function (m) {
+ return (m % 2 === 0 && m < 7) || (m % 2 !== 0 && m > 7);
+ },
+
+ /**
+ * Restrict input length
+ *
+ * @param {jQuery} $inputElement Jquery Html object
+ * @param {jQuery} $maxLengthElement jQuery Html Object
+ * @return void
+ */
+ lengthRestriction: function ($inputElement, $maxLengthElement) {
+ // read maxChars from counter display initial text value
+ var maxChars = parseInt($maxLengthElement.text(), 10),
+ charsLeft = 0,
+
+ // internal function does the counting and sets display value
+ countCharacters = function () {
+ var numChars = $inputElement.val().length;
+ if (numChars > maxChars) {
+ // get current scroll bar position
+ var currScrollTopPos = $inputElement.scrollTop();
+ // trim value to max length
+ $inputElement.val($inputElement.val().substring(0, maxChars));
+ $inputElement.scrollTop(currScrollTopPos);
+ }
+ charsLeft = maxChars - numChars;
+ if (charsLeft < 0) {
+ charsLeft = 0;
+ }
+
+ // set counter text
+ $maxLengthElement.text(charsLeft);
+ };
+
+ // bind events to this element
+ // setTimeout is needed, cut or paste fires before val is available
+ $($inputElement).bind('keydown keyup keypress focus blur', countCharacters)
+ .bind('cut paste', function () {
+ setTimeout(countCharacters, 100);
+ });
+
+ // count chars on pageload, if there are prefilled input-values
+ $(document).bind('ready', countCharacters);
+ },
+
+ /**
+ * Test numeric against allowed range
+ *
+ * @param $value int
+ * @param $rangeAllowed str; (1-2, min1, max2, 10)
+ * @return array
+ */
+ numericRangeCheck: function (value, rangeAllowed) {
+ // split by dash
+ var range = $.split(rangeAllowed),
+ // min or max
+ minmax = parseInt(rangeAllowed.substr(3), 10);
+
+ if( range.length === 1 && rangeAllowed.indexOf('min') === -1 && rangeAllowed.indexOf('max') === -1 ) {
+ range = [rangeAllowed, rangeAllowed]; // only a number, checking agains an exact number of characters
+ }
+
+ // range ?
+ if (range.length === 2 && (value < parseInt(range[0], 10) || value > parseInt(range[1], 10) )) {
+ return [ 'out', range[0], range[1] ];
+ } // value is out of range
+ else if (rangeAllowed.indexOf('min') === 0 && (value < minmax )) // min
+ {
+ return ['min', minmax];
+ } // value is below min
+ else if (rangeAllowed.indexOf('max') === 0 && (value > minmax )) // max
+ {
+ return ['max', minmax];
+ } // value is above max
+ // since no other returns executed, value is in allowed range
+ return [ 'ok' ];
+ },
+
+
+ _numSuggestionElements: 0,
+ _selectedSuggestion: null,
+ _previousTypedVal: null,
+
+ /**
+ * Utility function that can be used to create plugins that gives
+ * suggestions when inputs is typed into
+ * @param {jQuery} $elem
+ * @param {Array} suggestions
+ * @param {Object} settings - Optional
+ * @return {jQuery}
+ */
+ suggest: function ($elem, suggestions, settings) {
+ var conf = {
+ css: {
+ maxHeight: '150px',
+ background: '#FFF',
+ lineHeight: '150%',
+ textDecoration: 'underline',
+ overflowX: 'hidden',
+ overflowY: 'auto',
+ border: '#CCC solid 1px',
+ borderTop: 'none',
+ cursor: 'pointer'
+ },
+ activeSuggestionCSS: {
+ background: '#E9E9E9'
+ }
+ },
+ setSuggsetionPosition = function ($suggestionContainer, $input) {
+ var offset = $input.offset();
+ $suggestionContainer.css({
+ width: $input.outerWidth(),
+ left: offset.left + 'px',
+ top: (offset.top + $input.outerHeight()) + 'px'
+ });
+ };
+
+ if (settings) {
+ $.extend(conf, settings);
+ }
+
+ conf.css.position = 'absolute';
+ conf.css['z-index'] = 9999;
+ $elem.attr('autocomplete', 'off');
+
+ if (this._numSuggestionElements === 0) {
+ // Re-position suggestion container if window size changes
+ $win.bind('resize', function () {
+ $('.jquery-form-suggestions').each(function () {
+ var $container = $(this),
+ suggestID = $container.attr('data-suggest-container');
+ setSuggsetionPosition($container, $('.suggestions-' + suggestID).eq(0));
+ });
+ });
+ }
+
+ this._numSuggestionElements++;
+
+ var onSelectSuggestion = function ($el) {
+ var suggestionId = $el.valAttr('suggestion-nr');
+ $.formUtils._selectedSuggestion = null;
+ $.formUtils._previousTypedVal = null;
+ $('.jquery-form-suggestion-' + suggestionId).fadeOut('fast');
+ };
+
+ $elem
+ .data('suggestions', suggestions)
+ .valAttr('suggestion-nr', this._numSuggestionElements)
+ .unbind('focus.suggest')
+ .bind('focus.suggest', function () {
+ $(this).trigger('keyup');
+ $.formUtils._selectedSuggestion = null;
+ })
+ .unbind('keyup.suggest')
+ .bind('keyup.suggest', function () {
+ var $input = $(this),
+ foundSuggestions = [],
+ val = $.trim($input.val()).toLocaleLowerCase();
+
+ if (val === $.formUtils._previousTypedVal) {
+ return;
+ }
+ else {
+ $.formUtils._previousTypedVal = val;
+ }
+
+ var hasTypedSuggestion = false,
+ suggestionId = $input.valAttr('suggestion-nr'),
+ $suggestionContainer = $('.jquery-form-suggestion-' + suggestionId);
+
+ $suggestionContainer.scrollTop(0);
+
+ // Find the right suggestions
+ if (val !== '') {
+ var findPartial = val.length > 2;
+ $.each($input.data('suggestions'), function (i, suggestion) {
+ var lowerCaseVal = suggestion.toLocaleLowerCase();
+ if (lowerCaseVal === val) {
+ foundSuggestions.push('' + suggestion + '');
+ hasTypedSuggestion = true;
+ return false;
+ } else if (lowerCaseVal.indexOf(val) === 0 || (findPartial && lowerCaseVal.indexOf(val) > -1)) {
+ foundSuggestions.push(suggestion.replace(new RegExp(val, 'gi'), '$&'));
+ }
+ });
+ }
+
+ // Hide suggestion container
+ if (hasTypedSuggestion || (foundSuggestions.length === 0 && $suggestionContainer.length > 0)) {
+ $suggestionContainer.hide();
+ }
+
+ // Create suggestion container if not already exists
+ else if (foundSuggestions.length > 0 && $suggestionContainer.length === 0) {
+ $suggestionContainer = $('').css(conf.css).appendTo('body');
+ $elem.addClass('suggestions-' + suggestionId);
+ $suggestionContainer
+ .attr('data-suggest-container', suggestionId)
+ .addClass('jquery-form-suggestions')
+ .addClass('jquery-form-suggestion-' + suggestionId);
+ }
+
+ // Show hidden container
+ else if (foundSuggestions.length > 0 && !$suggestionContainer.is(':visible')) {
+ $suggestionContainer.show();
+ }
+
+ // add suggestions
+ if (foundSuggestions.length > 0 && val.length !== foundSuggestions[0].length) {
+
+ // put container in place every time, just in case
+ setSuggsetionPosition($suggestionContainer, $input);
+
+ // Add suggestions HTML to container
+ $suggestionContainer.html('');
+ $.each(foundSuggestions, function (i, text) {
+ $('')
+ .append(text)
+ .css({
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ padding: '5px'
+ })
+ .addClass('form-suggest-element')
+ .appendTo($suggestionContainer)
+ .click(function () {
+ $input.focus();
+ $input.val($(this).text());
+ $input.trigger('change');
+ onSelectSuggestion($input);
+ });
+ });
+ }
+ })
+ .unbind('keydown.validation')
+ .bind('keydown.validation', function (e) {
+ var code = (e.keyCode ? e.keyCode : e.which),
+ suggestionId,
+ $suggestionContainer,
+ $input = $(this);
+
+ if (code === 13 && $.formUtils._selectedSuggestion !== null) {
+ suggestionId = $input.valAttr('suggestion-nr');
+ $suggestionContainer = $('.jquery-form-suggestion-' + suggestionId);
+ if ($suggestionContainer.length > 0) {
+ var newText = $suggestionContainer.find('div').eq($.formUtils._selectedSuggestion).text();
+ $input.val(newText);
+ $input.trigger('change');
+ onSelectSuggestion($input);
+ e.preventDefault();
+ }
+ }
+ else {
+ suggestionId = $input.valAttr('suggestion-nr');
+ $suggestionContainer = $('.jquery-form-suggestion-' + suggestionId);
+ var $suggestions = $suggestionContainer.children();
+ if ($suggestions.length > 0 && $.inArray(code, [38, 40]) > -1) {
+ if (code === 38) { // key up
+ if ($.formUtils._selectedSuggestion === null) {
+ $.formUtils._selectedSuggestion = $suggestions.length - 1;
+ }
+ else{
+ $.formUtils._selectedSuggestion--;
+ }
+ if ($.formUtils._selectedSuggestion < 0) {
+ $.formUtils._selectedSuggestion = $suggestions.length - 1;
+ }
+ }
+ else if (code === 40) { // key down
+ if ($.formUtils._selectedSuggestion === null) {
+ $.formUtils._selectedSuggestion = 0;
+ }
+ else {
+ $.formUtils._selectedSuggestion++;
+ }
+ if ($.formUtils._selectedSuggestion > ($suggestions.length - 1)) {
+ $.formUtils._selectedSuggestion = 0;
+ }
+ }
+
+ // Scroll in suggestion window
+ var containerInnerHeight = $suggestionContainer.innerHeight(),
+ containerScrollTop = $suggestionContainer.scrollTop(),
+ suggestionHeight = $suggestionContainer.children().eq(0).outerHeight(),
+ activeSuggestionPosY = suggestionHeight * ($.formUtils._selectedSuggestion);
+
+ if (activeSuggestionPosY < containerScrollTop || activeSuggestionPosY > (containerScrollTop + containerInnerHeight)) {
+ $suggestionContainer.scrollTop(activeSuggestionPosY);
+ }
+
+ $suggestions
+ .removeClass('active-suggestion')
+ .css('background', 'none')
+ .eq($.formUtils._selectedSuggestion)
+ .addClass('active-suggestion')
+ .css(conf.activeSuggestionCSS);
+
+ e.preventDefault();
+ return false;
+ }
+ }
+ })
+ .unbind('blur.suggest')
+ .bind('blur.suggest', function () {
+ onSelectSuggestion($(this));
+ });
+
+ return $elem;
+ },
+
+ /**
+ * Error dialogs
+ *
+ * @var {Object}
+ */
+ LANG: {
+ errorTitle: 'Form submission failed!',
+ requiredField: 'This is a required field',
+ requiredFields: 'You have not answered all required fields',
+ badTime: 'You have not given a correct time',
+ badEmail: 'You have not given a correct e-mail address',
+ badTelephone: 'You have not given a correct phone number',
+ badSecurityAnswer: 'You have not given a correct answer to the security question',
+ badDate: 'You have not given a correct date',
+ lengthBadStart: 'The input value must be between ',
+ lengthBadEnd: ' characters',
+ lengthTooLongStart: 'The input value is longer than ',
+ lengthTooShortStart: 'The input value is shorter than ',
+ notConfirmed: 'Input values could not be confirmed',
+ badDomain: 'Incorrect domain value',
+ badUrl: 'The input value is not a correct URL',
+ badCustomVal: 'The input value is incorrect',
+ andSpaces: ' and spaces ',
+ badInt: 'The input value was not a correct number',
+ badSecurityNumber: 'Your social security number was incorrect',
+ badUKVatAnswer: 'Incorrect UK VAT Number',
+ badUKNin: 'Incorrect UK NIN',
+ badUKUtr: 'Incorrect UK UTR Number',
+ badStrength: 'The password isn\'t strong enough',
+ badNumberOfSelectedOptionsStart: 'You have to choose at least ',
+ badNumberOfSelectedOptionsEnd: ' answers',
+ badAlphaNumeric: 'The input value can only contain alphanumeric characters ',
+ badAlphaNumericExtra: ' and ',
+ wrongFileSize: 'The file you are trying to upload is too large (max %s)',
+ wrongFileType: 'Only files of type %s is allowed',
+ groupCheckedRangeStart: 'Please choose between ',
+ groupCheckedTooFewStart: 'Please choose at least ',
+ groupCheckedTooManyStart: 'Please choose a maximum of ',
+ groupCheckedEnd: ' item(s)',
+ badCreditCard: 'The credit card number is not correct',
+ badCVV: 'The CVV number was not correct',
+ wrongFileDim : 'Incorrect image dimensions,',
+ imageTooTall : 'the image can not be taller than',
+ imageTooWide : 'the image can not be wider than',
+ imageTooSmall : 'the image was too small',
+ min : 'min',
+ max : 'max',
+ imageRatioNotAccepted : 'Image ratio is not be accepted',
+ badBrazilTelephoneAnswer: 'The phone number entered is invalid',
+ badBrazilCEPAnswer: 'The CEP entered is invalid',
+ badBrazilCPFAnswer: 'The CPF entered is invalid',
+ badPlPesel: 'The PESEL entered is invalid',
+ badPlNip: 'The NIP entered is invalid',
+ badPlRegon: 'The REGON entered is invalid',
+ badreCaptcha: 'Please confirm that you are not a bot',
+ passwordComplexityStart: 'Password must contain at least ',
+ passwordComplexitySeparator: ', ',
+ passwordComplexityUppercaseInfo: ' uppercase letter(s)',
+ passwordComplexityLowercaseInfo: ' lowercase letter(s)',
+ passwordComplexitySpecialCharsInfo: ' special character(s)',
+ passwordComplexityNumericCharsInfo: ' numeric character(s)',
+ passwordComplexityEnd: '.'
+ }
+ });
+
+})(jQuery, window);
diff --git a/src/modules/brazil.js b/src/modules/brazil.js
new file mode 100644
index 0000000..c2caa10
--- /dev/null
+++ b/src/modules/brazil.js
@@ -0,0 +1,119 @@
+/**
+ * jQuery Form Validator Module: Brazil
+ * ------------------------------------------
+ * Created by Eduardo Cuducos
+ *
+ * This form validation module adds validators typically used on
+ * websites in the Brazil. This module adds the following validators:
+ * - cpf
+ * - cep
+ * - brphone
+ *
+ * @website http://formvalidator.net/#brazil-validators
+ * @license MIT
+ */
+(function($) {
+
+ $.formUtils.registerLoadedModule('brazil');
+
+ $.formUtils.addValidator({
+ name : 'cpf',
+ validatorFunction : function(string) {
+
+ // Based on this post from DevMedia:
+ // http://www.devmedia.com.br/validar-cpf-com-javascript/23916
+
+ // clean up the input (digits only) and set some support vars
+ var cpf = string.replace(/\D/g,'');
+ var sum1 = 0;
+ var sum2 = 0;
+ var remainder1 = 0;
+ var remainder2 = 0;
+
+ // skip special cases
+ if (cpf.length !== 11 || cpf === '00000000000') {
+ return false;
+ }
+
+ // check 1st verification digit
+ for (i = 1; i<= 9; i++) {
+ sum1 += parseInt(cpf.substring(i - 1, i)) * (11 - i);
+ }
+ remainder1 = (sum1 * 10) % 11;
+ if (remainder1 >= 10) {
+ remainder1 = 0;
+ }
+ if (remainder1 !== parseInt(cpf.substring(9, 10))) {
+ return false;
+ }
+
+ // check 2nd verification digit
+ for (i = 1; i <= 10; i++) {
+ sum2 += parseInt(cpf.substring(i - 1, i)) * (12 - i);
+ }
+ remainder2 = (sum2 * 10) % 11;
+ if (remainder2 >= 10) {
+ remainder2 = 0;
+ }
+ if (remainder2 !== parseInt(cpf.substring(10, 11))) {
+ return false;
+ }
+
+ return true;
+
+ },
+ errorMessage : '',
+ errorMessageKey: 'badBrazilCPFAnswer'
+
+ });
+
+ $.formUtils.addValidator({
+ name : 'brphone',
+ validatorFunction : function(string) {
+
+ // validates telefones such as (having X as numbers):
+ // (XX) XXXX-XXXX
+ // (XX) XXXXX-XXXX
+ // XX XXXXXXXX
+ // XX XXXXXXXXX
+ // XXXXXXXXXX
+ // XXXXXXXXXXX
+ // +XX XX XXXXX-XXXX
+ // +X XX XXXX-XXXX
+ // And so on…
+
+ if (string.match(/^(\+[\d]{1,3}[\s]{0,1}){0,1}(\(){0,1}(\d){2}(\)){0,1}(\s){0,1}(\d){4,5}([-. ]){0,1}(\d){4}$/g)) {
+ return true;
+ }
+
+ return false;
+
+ },
+ errorMessage : '',
+ errorMessageKey: 'badBrazilTelephoneAnswer'
+
+ });
+
+ $.formUtils.addValidator({
+ name : 'cep',
+ validatorFunction : function(string) {
+
+ // validates CEP such as (having X as numbers):
+ // XXXXX-XXX
+ // XXXXX.XXX
+ // XXXXX XXX
+ // XXXXXXXX
+
+ if (string.match(/^(\d){5}([-. ]){0,1}(\d){3}$/g)) {
+ return true;
+ }
+
+ return false;
+
+ },
+ errorMessage : '',
+ errorMessageKey: 'badBrazilCEPAnswer'
+
+ });
+
+})(jQuery);
diff --git a/src/modules/color.js b/src/modules/color.js
new file mode 100644
index 0000000..938dbab
--- /dev/null
+++ b/src/modules/color.js
@@ -0,0 +1,254 @@
+/**
+ * jQuery Form Validator Module: Color
+ * ------------------------------------------
+ * Created by dszymczuk
+ *
+ *
+ * This form validation module adds validators for some color formats like: hex, rgb, rgba, hsl, hsla.
+ * Also it allow to use transparent as color
+ * This module adds the following validators:
+ * - color
+ *
+ * @license MIT
+ */
+(function($) {
+
+ $.formUtils.registerLoadedModule('color');
+
+ /*
+ HELPER FUNCTIONS
+ */
+ var filterFloat = function(value) {
+ if (/^(\-|\+)?([0-9]+(\.[0-9]+)?|Infinity)$/
+ .test(value)) {
+ return Number(value);
+ }
+
+ return NaN;
+ };
+
+ var isBetween0and1 = function(value) {
+ return value > 0 && value < 1;
+ };
+
+ // workaround for PhantomJS
+ // https://github.com/ariya/phantomjs/issues/14014
+ // can't use Number.isInteger
+ var isInteger = function(value) {
+ return Math.floor(value) === value && $.isNumeric(value);
+ };
+
+ /**
+ * Check HEX format
+ */
+ $.formUtils.addValidator({
+ name: 'hex',
+ validatorFunction: function(val, $el) {
+ if ($el.valAttr('allow-transparent') === 'true' && val === 'transparent') {
+ return true;
+ }
+
+ var startWithHex = val[0] === '#';
+ if (!startWithHex) {
+ return false;
+ }
+
+ var isCorrectLength = val.length === 4 || val.length === 7;
+
+ if (isCorrectLength) {
+ var regex = /[0-9a-f]/i;
+ var valueSliced = val.slice(1).split('');
+ var isValid = true;
+ valueSliced.forEach(function(i) {
+ if (i.match(regex) === null) {
+ isValid = false;
+ }
+ });
+ return isValid;
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badHex'
+ });
+
+ /**
+ * Check RGB format
+ */
+ $.formUtils.addValidator({
+ name: 'rgb',
+ validatorFunction: function(val, $el) {
+ if ($el.valAttr('allow-transparent') === 'true' && val === 'transparent') {
+ return true;
+ }
+
+ var removedSpace = val.replace(/ /g, '');
+ var regex = /rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)/i;
+
+ if (removedSpace.match(regex)) {
+ var removeRgbCall = removedSpace.replace(/rgb/g, '');
+ var removeBrackets = removeRgbCall.replace(/\(/g, '').replace(/\)/g, '');
+ var valueSliced = removeBrackets.split(',');
+ var isValid = true;
+
+ valueSliced.forEach(function(i) {
+ var parsedInt = parseInt(i, 10);
+ if ((isInteger(parsedInt) && 0 <= parsedInt && parsedInt <= 255) === false) {
+ isValid = false;
+ }
+ });
+ return isValid;
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badRgb'
+ });
+
+ /**
+ * Check RGBA format
+ */
+ $.formUtils.addValidator({
+ name: 'rgba',
+ validatorFunction: function(val, $el) {
+ if ($el.valAttr('allow-transparent') === 'true' && val === 'transparent') {
+ return true;
+ }
+
+ var removedSpace = val.replace(/ /g, '');
+ var regex = /rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0,1]?.?[0-9]*\)/i;
+
+ if (removedSpace.match(regex)) {
+ var removeRgbaCall = removedSpace.replace(/rgba/g, '');
+ var removeBrackets = removeRgbaCall.replace(/\(/g, '').replace(/\)/g, '');
+ var valueSliced = removeBrackets.split(',');
+ var isValid = true;
+
+ valueSliced.forEach(function(i, index) {
+ var value = filterFloat(i);
+ if (isInteger(value)) {
+ var isInRange = value >= 0 && value <= 255;
+ if (!isInRange) {
+ isValid = false;
+ }
+
+ if (isValid && index === 3) {
+ isValid = value >= 0 && value < 2;
+ }
+ } else if (!isBetween0and1(i)) {
+ isValid = false;
+ }
+ });
+ return isValid;
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badRgba'
+ });
+
+ /**
+ * Check HSL format
+ */
+ $.formUtils.addValidator({
+ name: 'hsl',
+ validatorFunction: function(val, $el) {
+ if ($el.valAttr('allow-transparent') === 'true' && val === 'transparent') {
+ return true;
+ }
+
+ var removedSpace = val.replace(/ /g, '');
+ var regex = /hsl\(-?[0-9]{1,3},[0-9]{1,3}%,[0-9]{1,3}%\)/i;
+
+ if (removedSpace.match(regex)) {
+ var removeHslCall = removedSpace.replace(/hsl/g, '');
+ var removeBrackets = removeHslCall.replace(/\(/g, '').replace(/\)/g, '');
+ var valueSliced = removeBrackets.split(',');
+ var isValid = true;
+
+ valueSliced.forEach(function(i, index) {
+ var parsedInt = parseInt(i, 10);
+
+ if (isInteger(parsedInt)) {
+ if (index !== 0) {
+ var isInRange = parsedInt >= 0 && parsedInt <= 100;
+ if (!isInRange) {
+ isValid = false;
+ }
+ }
+ } else {
+ isValid = false;
+ }
+ });
+ return isValid;
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badHsl'
+ });
+
+ /**
+ * Check HSLA format
+ */
+ $.formUtils.addValidator({
+ name: 'hsla',
+ validatorFunction: function(val, $el) {
+ if ($el.valAttr('allow-transparent') === 'true' && val === 'transparent') {
+ return true;
+ }
+
+ var isInRange;
+ var removedSpace = val.replace(/ /g, '');
+ var regex = /hsla\(-?[0-9]{1,3},[0-9]{1,3}%,[0-9]{1,3}%,[0,1]?.?[0-9]*\)/i;
+
+ if (removedSpace.match(regex)) {
+ var removeHslaCall = removedSpace.replace(/hsla/g, '');
+ var removeBrackets = removeHslaCall.replace(/\(/g, '').replace(/\)/g, '');
+ var valueSliced = removeBrackets.split(',');
+ var isValid = true;
+
+ valueSliced.forEach(function(i, index) {
+ var value = filterFloat(i);
+ var parsedInt = parseInt(i, 10);
+
+ if (isInteger(value)) {
+ if (index !== 0 && index !== 3) {
+ isInRange = value >= 0 && value <= 100;
+ if (!isInRange) {
+ isValid = false;
+ }
+ }
+
+ if (isValid && index === 3) {
+ isValid = value >= 0 && value < 2;
+ }
+ } else if (isNaN(value) && isInteger(parsedInt)) {
+ isInRange = parsedInt >= 0 && parsedInt <= 100;
+ if (!isInRange) {
+ isValid = false;
+ }
+ } else {
+ value = filterFloat(Number(i).toFixed(20));
+
+ isInRange = value >= 0 && value <= 1;
+ if (!isInRange) {
+ isValid = false;
+ }
+ }
+ });
+
+ return isValid;
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badHsla'
+ });
+
+})(jQuery);
diff --git a/src/modules/date.js b/src/modules/date.js
new file mode 100644
index 0000000..19b661f
--- /dev/null
+++ b/src/modules/date.js
@@ -0,0 +1,102 @@
+/**
+ * jQuery Form Validator Module: Date
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ * Documentation and issue tracking on Github
+ *
+ * The following validators will be added by this module:
+ * - Time (HH:mmm)
+ * - Birth date
+ *
+ * @website http://formvalidator.net/#location-validators
+ * @license MIT
+ */
+(function ($) {
+
+ $.formUtils.registerLoadedModule('date');
+
+ /*
+ * Validate time hh:mm
+ */
+ $.formUtils.addValidator({
+ name: 'time',
+ validatorFunction: function (time) {
+ if (time.match(/^(\d{2}):(\d{2})$/) === null) {
+ return false;
+ } else {
+ var hours = parseInt(time.split(':')[0], 10);
+ var minutes = parseInt(time.split(':')[1], 10);
+ if (hours > 23 || minutes > 59) {
+ return false;
+ }
+ }
+ return true;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badTime'
+ });
+
+ /*
+ * Is this a valid birth date
+ */
+ $.formUtils.addValidator({
+ name: 'birthdate',
+ validatorFunction: function (val, $el, conf) {
+ var dateFormat = 'yyyy-mm-dd';
+ if ($el.valAttr('format')) {
+ dateFormat = $el.valAttr('format');
+ }
+ else if (typeof conf.dateFormat !== 'undefined') {
+ dateFormat = conf.dateFormat;
+ }
+
+ var inputDate = $.formUtils.parseDate(val, dateFormat);
+ if (!inputDate) {
+ return false;
+ }
+
+ var year = inputDate[0],
+ month = inputDate[1],
+ day = inputDate[2],
+ age = getAge(year, month, day),
+ allowedAgeRange = ($el.valAttr('age-range') || '0-124').split('-');
+
+ $el.trigger('ageCalculated', [age]);
+
+ if (allowedAgeRange.length !== 2 || !$.isNumeric(allowedAgeRange[0]) || !$.isNumeric(allowedAgeRange[1])) {
+ throw new Error('Date range format invalid');
+ }
+
+ return age >= allowedAgeRange[0] && age <= allowedAgeRange[1];
+ },
+ errorMessage: '',
+ errorMessageKey: 'badDate'
+ });
+
+ function getAge(otherDateYear, otherDateMonth, otherDateDay) {
+ var birthDate = new Date(otherDateYear, otherDateMonth, otherDateDay), now = new Date(),
+ years = now.getFullYear() - birthDate.getFullYear();
+ birthDate.setFullYear(birthDate.getFullYear() + years);
+ if (birthDate > now) {
+ years--;
+ birthDate.setFullYear(birthDate.getFullYear() - 1);
+ }
+ var days = Math.floor((now.getTime() - birthDate.getTime()) / (3600 * 24 * 1000)),
+ yearsOld = years + days / (isLeapYear(now.getFullYear()) ? 366 : 365),
+ decimals = ((yearsOld + '').split('.')[1] || '').substr(0, 3);
+
+ if (yearsOld >= 0) {
+ return Math.floor(yearsOld) + (decimals >= 915 ? 1:0);
+ } else {
+ decimals *= 10;
+ return Math.floor(yearsOld) + (decimals <= 840 ? 1:0);
+ }
+ }
+
+ function isLeapYear(year) {
+ var d = new Date(year, 1, 28);
+ d.setDate(d.getDate() + 1);
+ return d.getMonth() === 1;
+ }
+
+})(jQuery);
diff --git a/src/modules/file.js b/src/modules/file.js
new file mode 100644
index 0000000..47e03d6
--- /dev/null
+++ b/src/modules/file.js
@@ -0,0 +1,343 @@
+/**
+ * jQuery Form Validator Module: File
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * The following validators will be added by this module:
+ * - mime type
+ * - file size
+ * - file extension
+ *
+ * @todo, Use $.formUtils.asyncValidation in "dimension" validator
+ *
+ * @website http://formvalidator.net/#file-validators
+ * @license MIT
+ */
+(function($, window) {
+
+ $.formUtils.registerLoadedModule('file');
+
+ 'use strict';
+
+ var SUPPORTS_FILE_READER = typeof window.FileReader !== 'undefined',
+
+ /**
+ * @return {Array}
+ */
+ _getTypes = function($input) {
+ var allowedTypes = ($input.valAttr('allowing') || '').toLowerCase().split(/,\s*/);
+ if ($.inArray('jpg', allowedTypes) > -1 && $.inArray('jpeg', allowedTypes) === -1) {
+ allowedTypes.push('jpeg');
+ }
+ else if ($.inArray('jpeg', allowedTypes) > -1 && $.inArray('jpg', allowedTypes) === -1) {
+ allowedTypes.push('jpg');
+ }
+ return allowedTypes;
+ },
+
+ /**
+ * @param {Object} obj
+ * @param {String} key
+ * @param {String} insert
+ * @param {Object} lang
+ */
+ _generateErrorMsg = function(obj, key, insert, lang) {
+ var msg = lang[key] || '';
+ obj.errorMessageKey = ''; // only use message attached to this object
+ obj.errorMessage = msg.replace('\%s', insert);
+ },
+
+ /**
+ * @param {String} imgPath
+ * @param {Function} successCallback
+ * @param {Function} errCallback
+ * @private
+ */
+ _loadImage = function(imgPath, successCallback, errCallback) {
+ var reader = new FileReader(),
+ image = new Image();
+
+ reader.readAsDataURL(imgPath);
+
+ reader.onload = function(fileObj) {
+ image.onload = function() {
+ $(window).trigger('imageValidation', [this]);
+ successCallback(this);
+ };
+
+ image.onerror= function() {
+ errCallback();
+ };
+
+ image.src = fileObj.target.result;
+ };
+ };
+
+ /*
+ * Validate mime type (falls back on validate_extension in older browsers)
+ */
+ $.formUtils.addValidator({
+ name : 'mime',
+ validatorFunction : function(str, $input, conf, language) {
+ if( SUPPORTS_FILE_READER ) {
+ var valid = true,
+ files = $input.get(0).files || [],
+ mime = '',
+ allowedTypes = _getTypes($input);
+
+ if( files.length ) {
+ $.each(files, function(i, file) {
+ valid = false;
+ mime = file.type || file.name.substring(file.name.lastIndexOf('.') + 1);
+ $.each(allowedTypes, function(j, type) {
+ valid = mime.indexOf(type) > -1;
+ if( valid ) {
+ return false;
+ }
+ });
+ return valid;
+ });
+
+ if (!valid) {
+ $.formUtils.warn('Trying to upload a file with mime type '+mime+' which is not allowed');
+ _generateErrorMsg(this, 'wrongFileType', allowedTypes.join(', '), language);
+ }
+ }
+
+ return valid;
+
+ } else {
+ $.formUtils.warn('FileReader not supported by browser, will check file extension');
+ return $.formUtils.validators.validate_extension.validatorFunction(str, $input, conf, language);
+ }
+ },
+ errorMessage : '',
+ errorMessageKey: 'wrongFileType'
+ });
+
+ /**
+ * Validate file extension
+ */
+ $.formUtils.addValidator({
+ name : 'extension',
+ validatorFunction : function(value, $input, conf, language) {
+ var valid = true,
+ _this = this,
+ allowedTypes = _getTypes($input);
+
+ $.each($input.get(0).files || [value], function(i, file) {
+ var val = typeof file === 'string' ? file : (file.value || file.fileName || file.name),
+ ext = val.substr( val.lastIndexOf('.')+1 );
+
+ if( $.inArray(ext.toLowerCase(), allowedTypes) === -1 ) {
+ valid = false;
+ _generateErrorMsg(_this, 'wrongFileType', allowedTypes.join(', '), language);
+ return false;
+ }
+ });
+
+ return valid;
+ },
+ errorMessage : '',
+ errorMessageKey: 'wrongFileType'
+ });
+
+ /**
+ * Validate file size
+ */
+ $.formUtils.addValidator({
+ name : 'size',
+ validatorFunction : function(val, $input, conf, language) {
+ var maxSize = $input.valAttr('max-size');
+ if( !maxSize ) {
+ $.formUtils.warn('Input "'+$input.attr('name')+'" is missing data-validation-max-size attribute', true);
+ return true;
+ } else if( !SUPPORTS_FILE_READER ) {
+ return true; // no fallback available
+ }
+
+ var maxBytes = $.formUtils.convertSizeNameToBytes(maxSize),
+ valid = true;
+
+ $.each($input.get(0).files || [], function(i, file) {
+ valid = file.size <= maxBytes;
+ return valid;
+ });
+
+ if( !valid ) {
+ _generateErrorMsg(this, 'wrongFileSize', maxSize, language);
+ }
+ return valid;
+ },
+ errorMessage : '',
+ errorMessageKey: 'wrongFileSize'
+ });
+
+ /**
+ * Make this function accessible via formUtils for unit tests
+ * @param {String} sizeName
+ * @return {Number}
+ */
+ $.formUtils.convertSizeNameToBytes = function(sizeName) {
+ sizeName = sizeName.toUpperCase();
+ if( sizeName.substr(sizeName.length-1, 1) === 'M' ) {
+ return parseInt(sizeName.substr(0, sizeName.length-1), 10) * 1024 * 1024;
+ } else if( sizeName.substr(sizeName.length-2, 2) === 'MB' ) {
+ return parseInt(sizeName.substr(0, sizeName.length-2), 10) * 1024 * 1024;
+ } else if( sizeName.substr(sizeName.length-2, 2) === 'KB' ) {
+ return parseInt(sizeName.substr(0, sizeName.length-2), 10) * 1024;
+ } else if( sizeName.substr(sizeName.length-1, 1) === 'B' ) {
+ return parseInt(sizeName.substr(0, sizeName.length-1), 10);
+ } else {
+ return parseInt(sizeName, 10);
+ }
+ };
+
+ /**
+ * Attach dimension check onto formUtils only for unit testing purpose
+ * @param {HTMLImageElement} img
+ * @param {String} dimDeclaration
+ * @param {Boolean|String} Returns error message if image was invalid, false otherwise
+ */
+ $.formUtils.checkImageDimension = function(img, dimDeclaration, language) {
+ var error = false,
+ restrictedDim = {width:0, height:0},
+ getDimRestriction = function(dimDeclaration) {
+ dimDeclaration = dimDeclaration.replace('min', '').replace('max', '');
+ var chunks = dimDeclaration.split('x');
+ restrictedDim.width = chunks[0];
+ restrictedDim.height = chunks[1] ? chunks[1] : chunks[0];
+ },
+ minDeclaration = false,
+ maxDeclaration = false,
+ declarationParts = dimDeclaration.split('-');
+
+ if( declarationParts.length === 1 ) {
+ if( declarationParts[0].indexOf('min') === 0 ) {
+ minDeclaration = declarationParts[0];
+ } else {
+ maxDeclaration = declarationParts[0];
+ }
+ } else {
+ minDeclaration = declarationParts[0];
+ maxDeclaration = declarationParts[1];
+ }
+
+ if( minDeclaration ) {
+ // check min
+ getDimRestriction(minDeclaration);
+ if( img.width < restrictedDim.width || img.height < restrictedDim.height ) {
+ error = language.imageTooSmall + ' ('+language.min+' '+restrictedDim.width+'x'+restrictedDim.height+'px)';
+ }
+ }
+
+ if( !error && maxDeclaration ) {
+ // Check max
+ getDimRestriction(maxDeclaration);
+ if( img.width > restrictedDim.width || img.height > restrictedDim.height ) {
+ if( img.width > restrictedDim.width ) {
+ error = language.imageTooWide +' '+restrictedDim.width+'px';
+ } else {
+ error = language.imageTooTall +' '+restrictedDim.height+'px';
+ }
+ error += ' ('+language.max+' '+restrictedDim.width+'x'+restrictedDim.height+'px)';
+ }
+ }
+
+ return error;
+ };
+
+ /**
+ * Attach ratio validation onto formUtils only for unit testing purpose
+ * @param {HTMLImageElement} img
+ * @param {String} dimDeclaration
+ * @param {Boolean|String} Returns error message if image was invalid, false otherwise
+ */
+ $.formUtils.checkImageRatio = function(img, ratioDeclaration, language) {
+ var ratio = img.width / img.height,
+ calculateRatio = function(declaration) {
+ var dims = declaration.replace('max', '').replace('min', '').split(':');
+ return dims[0] / dims[1];
+ },
+ declarationParts = ratioDeclaration.split('-'),
+ isWithin = function(val, min, max) {
+ return val >= min && val <= max;
+ };
+
+ if ( declarationParts.length === 1 ) {
+ if ( ratio !== calculateRatio(declarationParts[0]) ) {
+ return language.imageRatioNotAccepted;
+ }
+ }
+ else if( declarationParts.length === 2 && !isWithin(ratio, calculateRatio(declarationParts[0]), calculateRatio(declarationParts[1])) ) {
+ return language.imageRatioNotAccepted;
+ }
+ return false;
+ };
+
+ /**
+ * Validate image dimension
+ */
+ $.formUtils.addAsyncValidator({
+ name : 'dimension',
+ validatorFunction : function(done, val, $input, conf, language) {
+ if (!SUPPORTS_FILE_READER) {
+ // Unable to do the validation, lacking FileReader support
+ done(true);
+ } else {
+ var file = $input.get(0).files || [],
+ thisValidator = this;
+ if ($input.attr('data-validation').indexOf('mime') === -1) {
+ alert('You should validate file type being jpg, gif or png on input ' + $input[0].name);
+ done(false);
+ } else if (file.length > 1) {
+ alert('Validating image dimensions does not support inputs allowing multiple files');
+ done(false);
+ } else if (file.length === 0) {
+ done(true);
+ } else {
+ _loadImage(file[0], function (img) {
+ var error = false;
+
+ if ($input.valAttr('dimension')) {
+ error = $.formUtils.checkImageDimension(img, $input.valAttr('dimension'), language);
+ }
+
+ if (!error && $input.valAttr('ratio')) {
+ error = $.formUtils.checkImageRatio(img, $input.valAttr('ratio'), language);
+ }
+
+ // Set validation result flag on input
+ if (error) {
+ thisValidator.errorMessage = language.wrongFileDim + ' ' + $input.valAttr('has-not-valid-dim');
+ done(false);
+ } else {
+ done(true);
+ }
+
+ }, function (err) {
+ throw err;
+ });
+ }
+ }
+ },
+ errorMessage : '',
+ errorMessageKey: '' // error message created dynamically
+ // errorMessageKey: 'wrongFileDim'
+ });
+
+ /*
+ * This event listener will remove error messages for file
+ * inputs when file changes
+ */
+ $(window).one('validatorsLoaded formValidationSetup', function(evt, $form, conf) {
+ var $inputs;
+ if( $form ) {
+ $inputs = $form.find('input[type="file"]');
+ } else {
+ $inputs = $('input[type="file"]');
+ }
+ $.formUtils.dialogs.removeInputStylingAndMessage($inputs, conf);
+ });
+
+})(jQuery, window);
diff --git a/src/modules/html5.js b/src/modules/html5.js
new file mode 100644
index 0000000..f8c66a4
--- /dev/null
+++ b/src/modules/html5.js
@@ -0,0 +1,175 @@
+/**
+ * jQuery Form Validator Module: html5
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * The following module will make this jQuery plugin serve as a
+ * html5 fallback. It makes older browsers support the following
+ * - validation when type="email"
+ * - validation when type="url"
+ * - validation when type="time"
+ * - validation when type="date"
+ * - validation when type="number" and max="" min=""
+ * - validation when pattern="REGEXP"
+ * - validation when using maxlength
+ * - Using datalist element for creating suggestions
+ * - placeholders
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function ($) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('html5');
+
+ var SUPPORTS_PLACEHOLDER = 'placeholder' in document.createElement('INPUT'),
+ SUPPORTS_DATALIST = 'options' in document.createElement('DATALIST'),
+ hasLoadedDateModule = false,
+ setupValidationUsingHTML5Attr = function ($form) {
+
+ $form.each(function () {
+ var $f = $(this),
+ $formInputs = $f.find('input,textarea,select'),
+ foundHtml5Rule = false;
+
+ $formInputs.each(function () {
+ var validation = [],
+ $input = $(this),
+ isRequired = $input.attr('required'),
+ attrs = {};
+
+ if (isRequired) {
+ validation.push('required');
+ }
+
+ switch (($input.attr('type') || '').toLowerCase()) {
+ case 'time':
+ validation.push('time');
+ if (!$.formUtils.validators.validate_date && !hasLoadedDateModule) {
+ hasLoadedDateModule = true;
+ $.formUtils.loadModules('date');
+ }
+ break;
+ case 'url':
+ validation.push('url');
+ break;
+ case 'email':
+ validation.push('email');
+ break;
+ case 'date':
+ validation.push('date');
+ break;
+ case 'number':
+ validation.push('number');
+ var max = $input.attr('max'),
+ min = $input.attr('min'),
+ step = $input.attr('step');
+ if (min || max) {
+ if (!min) {
+ min = '0';
+ }
+ if (!max) {
+ max = '9007199254740992'; // js max int
+ }
+ if (!step) {
+ step = '1'; // default value
+ }
+
+ attrs['data-validation-allowing'] = 'range[' + min + ';' + max + ']';
+ if (min.indexOf('-') === 0 || max.indexOf('-') === 0) {
+ attrs['data-validation-allowing'] += ',negative';
+ }
+ if (min.indexOf('.') > -1 || max.indexOf('.') > -1 || step.indexOf('.') > -1) {
+ attrs['data-validation-allowing'] += ',float';
+ }
+ } else {
+ attrs['data-validation-allowing'] += ',float,negative';
+ }
+ break;
+ }
+
+ if ($input.attr('pattern')) {
+ validation.push('custom');
+ attrs['data-validation-regexp'] = $input.attr('pattern');
+ }
+ if ($input.attr('maxlength')) {
+ validation.push('length');
+ attrs['data-validation-length'] = 'max' + $input.attr('maxlength');
+ }
+
+ if (!SUPPORTS_DATALIST && $input.attr('list')) {
+ var suggestions = [],
+ $list = $('#' + $input.attr('list'));
+
+ $list.find('option').each(function () {
+ suggestions.push($(this).text());
+ });
+
+ if (suggestions.length === 0) {
+ // IE fix
+ var opts = $.trim($('#' + $input.attr('list')).text()).split('\n');
+ $.each(opts, function (i, option) {
+ suggestions.push($.trim(option));
+ });
+ }
+
+ $list.remove();
+
+ $.formUtils.suggest($input, suggestions);
+ }
+
+ if (validation.length) {
+ if (!isRequired) {
+ attrs['data-validation-optional'] = 'true';
+ }
+
+ foundHtml5Rule = true;
+
+ var validationRules = ($input.attr('data-validation') || '') + ' ' + validation.join(' ');
+ $input.attr('data-validation', $.trim(validationRules));
+
+ $.each(attrs, function (attrName, attrVal) {
+ $input.attr(attrName, attrVal);
+ });
+ }
+ });
+
+ if (foundHtml5Rule) {
+ $f.trigger('html5ValidationAttrsFound');
+ }
+
+ if (!SUPPORTS_PLACEHOLDER) {
+ $formInputs.filter('input[placeholder]').each(function () {
+ this.__defaultValue = this.getAttribute('placeholder');
+ $(this)
+ .bind('focus', function () {
+ if (this.value === this.__defaultValue) {
+ this.value = '';
+ $(this).removeClass('showing-placeholder');
+ }
+ })
+ .bind('blur', function () {
+ if ($.trim(this.value) === '') {
+ this.value = this.__defaultValue;
+ $(this).addClass('showing-placeholder');
+ }
+ });
+ });
+ }
+
+ });
+ };
+
+ $.formUtils.$win.bind('validatorsLoaded formValidationSetup', function (evt, $form) {
+ if (!$form) {
+ $form = $('form');
+ }
+ setupValidationUsingHTML5Attr($form);
+ });
+
+ // Make this method available outside the module
+ $.formUtils.setupValidationUsingHTML5Attr = setupValidationUsingHTML5Attr;
+
+})(jQuery, window);
diff --git a/src/modules/jsconf.js b/src/modules/jsconf.js
new file mode 100644
index 0000000..cbc4ac7
--- /dev/null
+++ b/src/modules/jsconf.js
@@ -0,0 +1,56 @@
+/**
+ * jQuery Form Validator Module: JSconf
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * This module makes it possible to configure form validation using javascript
+ *
+ * @website http://formvalidator.net/#location-validators
+ * @license MIT
+ */
+(function($) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('jsconf');
+
+ $.setupValidation = function(conf) {
+ var $forms = $(conf.form || 'form');
+ $.each(conf.validate || conf.validation || {}, function(elemRef, attr) {
+ var $elem;
+ if ( elemRef[0] === '#' ) {
+ $elem = $(elemRef);
+ }
+ else if ( elemRef[0] === '.' ) {
+ $elem = $forms.find(elemRef);
+ }
+ else {
+ $elem = $forms.find('*[name="' +elemRef+ '"]');
+ }
+
+ $elem.attr('data-validation', attr.validation);
+
+ $.each(attr, function(name, val) {
+ if( name !== 'validation' && val !== false) {
+ if( val === true ) {
+ val = 'true';
+ }
+ if( name[0] === '_' ) {
+ name = name.substring(1);
+ if( val === false ) {
+ $elem.removeAttr(name);
+ } else {
+ $elem.attr(name, val);
+ }
+ } else {
+ $elem.valAttr(name, val);
+ }
+ }
+ });
+ });
+
+ $.validate(conf);
+
+ };
+
+})(jQuery);
diff --git a/src/modules/location.js b/src/modules/location.js
new file mode 100644
index 0000000..7f648c1
--- /dev/null
+++ b/src/modules/location.js
@@ -0,0 +1,82 @@
+/**
+ * jQuery Form Validator Module: Date
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * The following validators will be added by this module:
+ * - Country
+ * - US state
+ * - longitude and latitude
+ *
+ * @website http://formvalidator.net/#location-validators
+ * @license MIT
+ */
+(function ($) {
+
+ $.formUtils.registerLoadedModule('location');
+
+ /*
+ * Validate that country exists
+ */
+ $.formUtils.addValidator({
+ name: 'country',
+ validatorFunction: function (str) {
+ return $.inArray(str.toLowerCase(), this.countries) > -1;
+ },
+ countries: ['afghanistan', 'albania', 'algeria', 'american samoa', 'andorra', 'angola', 'anguilla', 'antarctica', 'antigua and barbuda', 'argentina', 'armenia', 'aruba', 'australia', 'austria', 'azerbaijan', 'bahamas', 'bahrain', 'bangladesh', 'barbados', 'belarus', 'belgium', 'belize', 'benin', 'bermuda', 'bhutan', 'bolivia', 'bonaire', 'bosnia and herzegovina', 'botswana', 'bouvet island', 'brazil', 'british indian ocean territory', 'brunei darussalam', 'bulgaria', 'burkina faso', 'burundi', 'cabo verde', 'cambodia', 'cameroon', 'canada', 'cayman islands', 'central african republic', 'chad', 'chile', 'china', 'christmas island', 'cocos islands', 'colombia', 'comoros', 'democratic republic of the congo', 'congo', 'cook islands', 'costa rica', 'côte d\'ivoire', 'croatia', 'cuba', 'curaçao', 'cyprus', 'czechia', 'denmark', 'djibouti', 'dominica', 'dominican republic', 'ecuador', 'egypt', 'el salvador', 'equatorial guinea', 'eritrea', 'estonia', 'ethiopia', 'falkland islands', 'faroe islands', 'fiji', 'finland', 'france', 'french guiana', 'french polynesia', 'french southern territories', 'gabon', 'gambia', 'georgia', 'germany', 'ghana', 'gibraltar', 'greece', 'greenland', 'grenada', 'guadeloupe', 'guam', 'guatemala', 'guernsey', 'guinea', 'guinea-bissau', 'guyana', 'haiti', 'heard island and mcdonald islands', 'honduras', 'hong kong', 'hungary', 'iceland', 'india', 'indonesia', 'iran', 'iraq', 'ireland', 'isle of man', 'israel', 'italy', 'jamaica', 'japan', 'jersey', 'jordan', 'kazakhstan', 'kenya', 'kiribati', 'north korea', 'south korea', 'kuwait', 'kyrgyzstan', 'laos', 'latvia', 'lebanon', 'lesotho', 'liberia', 'libya', 'liechtenstein', 'lithuania', 'luxembourg', 'macao', 'macedonia', 'madagascar', 'malawi', 'malaysia', 'maldives', 'mali', 'malta', 'marshall islands', 'martinique', 'mauritania', 'mauritius', 'mayotte', 'mexico', 'micronesia', 'moldova', 'monaco', 'mongolia', 'montenegro', 'montserrat', 'morocco', 'mozambique', 'myanmar', 'namibia', 'nauru', 'nepal', 'netherlands', 'new caledonia', 'new zealand', 'nicaragua', 'niger', 'nigeria', 'niue', 'norfolk island', 'northern mariana islands', 'norway', 'oman', 'pakistan', 'palau', 'palestine', 'panama', 'papua new guinea', 'paraguay', 'peru', 'philippines', 'pitcairn', 'poland', 'portugal', 'puerto rico', 'qatar', 'réunion', 'romania', 'russia', 'rwanda', 'saint barthélemy', 'saint helena', 'ascension and tristan da cunha', 'Ascension and tristan da cunha', 'saint kitts and nevis', 'saint lucia', 'saint martin', 'saint pierre and miquelon', 'saint vincent and the grenadines', 'samoa', 'san marino', 'sao tome and principe', 'saudi arabia', 'senegal', 'serbia', 'seychelles', 'sierra leone', 'singapore', 'sint maarten', 'slovakia', 'slovenia', 'solomon islands', 'somalia', 'south africa', 'south georgia and the south sandwich islands', 'south sudan', 'spain', 'sri lanka', 'sudan', 'suriname', 'svalbard and jan mayen', 'swaziland', 'sweden', 'switzerland', 'syria', 'taiwan', 'tajikistan', 'tanzania', 'thailand', 'timor-leste', 'togo', 'tokelau', 'tonga', 'trinidad and tobago', 'tunisia', 'turkey', 'turkmenistan', 'turks and caicos islands', 'tuvalu', 'uganda', 'ukraine', 'united arab emirates', 'united kingdom', 'united states minor outlying islands', 'united states', 'uruguay', 'uzbekistan', 'vanuatu', 'venezuela', 'vatican city', 'vietnam', 'virgin islands (british)', 'virgin islands (us)', 'wallis and futuna', 'western sahara', 'yemen', 'zambia', 'zimbabwe', 'åland islands'],
+ errorMessage: '',
+ errorMessageKey: 'badCustomVal'
+ });
+
+ /*
+ * Is this a valid federate state in the US
+ */
+ $.formUtils.addValidator({
+ name: 'federatestate',
+ validatorFunction: function (str) {
+ return $.inArray(str.toLowerCase(), this.states) > -1;
+ },
+ states: ['alabama', 'alaska', 'arizona', 'arkansas', 'california', 'colorado', 'connecticut', 'delaware', 'florida', 'georgia', 'hawaii', 'idaho', 'illinois', 'indiana', 'iowa', 'kansas', 'kentucky', 'louisiana', 'maine', 'maryland', 'district of columbia', 'massachusetts', 'michigan', 'minnesota', 'mississippi', 'missouri', 'montana', 'nebraska', 'nevada', 'new hampshire', 'new jersey', 'new mexico', 'new york', 'north carolina', 'north dakota', 'ohio', 'oklahoma', 'oregon', 'pennsylvania', 'rhode island', 'south carolina', 'south dakota', 'tennessee', 'texas', 'utah', 'vermont', 'virginia', 'washington', 'west virginia', 'wisconsin', 'wyoming'],
+ errorMessage: '',
+ errorMessageKey: 'badCustomVal'
+ });
+
+
+ $.formUtils.addValidator({
+ name: 'longlat',
+ validatorFunction: function (str) {
+ var regexp = /^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;
+ return regexp.test(str);
+ },
+ errorMessage: '',
+ errorMessageKey: 'badCustomVal'
+ });
+
+ /**
+ * @private
+ * @param {Array} listItems
+ * @return {Array}
+ */
+ var _makeSortedList = function (listItems) {
+ var newList = [];
+ $.each(listItems, function (i, value) {
+ newList.push(value.substr(0, 1).toUpperCase() + value.substr(1, value.length));
+ });
+ newList.sort();
+ return newList;
+ };
+
+ $.fn.suggestCountry = function (settings) {
+ var countries = _makeSortedList($.formUtils.validators.validate_country.countries),
+ usaIndex = $.inArray(countries, 'Usa');
+
+ countries[usaIndex] = 'USA';
+ return $.formUtils.suggest(this, countries, settings);
+ };
+
+ $.fn.suggestState = function (settings) {
+ var states = _makeSortedList($.formUtils.validators.validate_federatestate.states);
+ return $.formUtils.suggest(this, states, settings);
+ };
+
+})(jQuery);
diff --git a/src/modules/logic.js b/src/modules/logic.js
new file mode 100644
index 0000000..4f146f1
--- /dev/null
+++ b/src/modules/logic.js
@@ -0,0 +1,142 @@
+/**
+ * jQuery Form Validator Module: Logic
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * - data-validation-depends-on
+ * - data-validation-if-answered
+ *
+ * @website http://formvalidator.net/#logic
+ * @license MIT
+ */
+(function($) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('logic');
+
+ var setupValidationDependsOn = function($form, conf) {
+
+ var dependingOnBeforeValidation = function() {
+
+ var $input = $(this),
+ nameOfDependingInput = $input.valAttr('depends-on') || $input.valAttr('if-checked');
+
+ // Whether or not this input should be validated depends on if another input has a value
+ if (nameOfDependingInput) {
+
+ // Set the boolean telling us that the validation depends
+ // on another input being checked
+ var valueOfDependingInput = $.formUtils.getValue('[name="' + nameOfDependingInput + '"]', $form),
+ listWithRequiredValues = $.split($input.valAttr('depends-on-value'), false, false),
+ dependingInputIsMissingValueOrHasIncorrectValue = !valueOfDependingInput || (
+ listWithRequiredValues.length &&
+ !valueIsInList(valueOfDependingInput, listWithRequiredValues)
+ );
+
+ if (dependingInputIsMissingValueOrHasIncorrectValue) {
+ $input.valAttr('skipped', '1');
+ }
+ }
+ },
+ valueIsInList = function(value, valueList) {
+ var isInList = false,
+ lowerCaseValue = value.toLocaleLowerCase();
+
+ $.each(valueList, function(i, otherValue) {
+ if (lowerCaseValue === otherValue.toLocaleLowerCase()) {
+ isInList = true;
+ return false;
+ }
+ });
+ return isInList;
+ },
+ dependingOnValueChanged = function() {
+ var $input = $(this),
+ inputValue = $.formUtils.getValue($input),
+ requiredValueOfDependingInput = $input.valAttr('depending-value');
+ $.each(this.dependingInputs, function (i, $otherInput) {
+ var otherInputHasValue = $.formUtils.getValue($otherInput) ? true:false,
+ dependingInputIsMissingValueOrHasIncorrectValue = !inputValue || (
+ requiredValueOfDependingInput &&
+ requiredValueOfDependingInput !== inputValue
+ );
+
+ if (dependingInputIsMissingValueOrHasIncorrectValue && !otherInputHasValue) {
+ $.formUtils.dialogs.removeInputStylingAndMessage($otherInput, conf);
+ }
+ });
+ };
+
+ $form.find('[data-validation-depends-on]')
+ .off('beforeValidation', dependingOnBeforeValidation)
+ .on('beforeValidation', dependingOnBeforeValidation)
+ .each(function() {
+ // Remove validation when on depending input
+ var $dependingInput = $(this);
+ $form.find('[name="'+$dependingInput.valAttr('depends-on')+'"]').each(function() {
+ $(this)
+ .off('change', dependingOnValueChanged)
+ .on('change', dependingOnValueChanged)
+ .valAttr('depending-value', $dependingInput.valAttr('depends-on-value'));
+
+ this.dependingInputs = this.dependingInputs || [];
+ this.dependingInputs.push($dependingInput);
+ });
+ });
+
+ },
+ setupValidationTogetherWith = function($form, conf) {
+
+ var optionalBeforeValidation = function() {
+ var $input = $(this),
+ dependingInputs = $input.valAttr('optional-if-answered'),
+ dependingInputsHasValue = false,
+ thisInputHasAnswer = $.formUtils.getValue($input) ? true:false;
+
+ if (!thisInputHasAnswer) {
+ $.each($.split(dependingInputs), function(i, inputName) {
+ var $dependingInput = $form.find('[name="'+inputName+'"]');
+ dependingInputsHasValue = $.formUtils.getValue($dependingInput) ? true:false;
+ if (dependingInputsHasValue) {
+ return false;
+ }
+ });
+
+ if (dependingInputsHasValue) {
+ $input.valAttr('skipped', 1);
+ }
+ }
+ },
+ optionalInputOnChange = function() {
+ var $input = $(this),
+ dependingInputs = $input.valAttr('optional-if-answered');
+
+ $.each($.split(dependingInputs), function(i, inputName) {
+ var $dependingInput = $form.find('[name="'+inputName+'"]'),
+ dependingInputsHasValue = $.formUtils.getValue($dependingInput) ? true:false;
+ if (!dependingInputsHasValue) {
+ $.formUtils.dialogs.removeInputStylingAndMessage($dependingInput, conf);
+ }
+ });
+ };
+
+ $form.find('[data-validation-optional-if-answered]')
+ .off('beforeValidation', optionalBeforeValidation)
+ .on('beforeValidation', optionalBeforeValidation)
+ .each(function() {
+ $(this)
+ .off('change', optionalInputOnChange)
+ .on('change', optionalInputOnChange);
+ });
+ };
+
+ $.formUtils.$win.bind('validatorsLoaded formValidationSetup', function(evt, $form, conf) {
+ if( !$form ) {
+ $form = $('form');
+ }
+ setupValidationDependsOn($form, conf);
+ setupValidationTogetherWith($form, conf);
+ });
+
+})(jQuery);
diff --git a/src/modules/poland.js b/src/modules/poland.js
new file mode 100644
index 0000000..f9eb467
--- /dev/null
+++ b/src/modules/poland.js
@@ -0,0 +1,117 @@
+/**
+ * jQuery Form Validator Module: Poland
+ * ------------------------------------------
+ * Created by simivar
+ *
+ * This form validation module adds validators typically used on
+ * websites in Poland. This module adds the following validators:
+ * - plpesel
+ *
+ * @website http://formvalidator.net/#poland-validators
+ * @license MIT
+ */
+(function($) {
+
+ $.formUtils.registerLoadedModule('poland');
+
+ /**
+ * PL PESEL - polish personal identity number (in Polish identity cards) validator
+ */
+ $.formUtils.addValidator({
+ name: 'plpesel',
+ validatorFunction: function(pesel){
+ var weights = [1, 3, 7, 9, 1, 3, 7, 9, 1, 3],
+ checkSum = 0, checkDigit = 0;
+
+ if( /\d{11}/.test( pesel ) && pesel.length === 11 ){
+ for (var i = 0; i < 10; i++) {
+ checkSum += pesel[ i ] * weights[ i ];
+ }
+
+ if( checkSum % 10 !== 0 ){
+ checkDigit = 10 - (checkSum % 10);
+ }
+
+ if( parseInt( pesel.charAt( 10 ) ) === checkDigit ){
+ return true;
+ }
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badPlPesel'
+ });
+
+ /**
+ * PL NIP - polish VAT identification number validator
+ */
+ $.formUtils.addValidator({
+ name: 'plnip',
+ validatorFunction: function(nip){
+ var weights = [6, 5, 7, 2, 3, 4, 5, 6, 7],
+ checkSum = 0;
+
+ if( /\d{10}/.test( nip ) && nip.length === 10 ){
+ for (var i = 0; i < 9; i++) {
+ checkSum += nip[ i ] * weights[ i ];
+ }
+
+ if( parseInt( nip.charAt( 9 ) ) === checkSum % 11 ){
+ return true;
+ }
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badPlNip'
+ });
+
+ /**
+ * PL REGON - polish bussiness identity number validator
+ */
+ $.formUtils.addValidator({
+ name: 'plregon',
+ validatorFunction: function(regon){
+ var weightsNine = [8, 9, 2, 3, 4, 5, 6, 7],
+ weightsFourteen = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8],
+ checkSum = 0, checkDigit = 0;
+
+ if( /(\d{14}|\d{9})/.test( regon ) && ( regon.length === 9 || regon.length === 14 ) ){
+ for (var i = 0; i < 8; i++) {
+ checkSum += regon[ i ] * weightsNine[ i ];
+ }
+
+ if( checkSum % 11 !== 10 ){
+ checkDigit = checkSum % 11;
+ }
+
+ if( parseInt( regon.charAt( 8 ) ) === checkDigit ){
+ if( regon.length === 14 ){
+ checkSum = 0;
+
+ for (i = 0; i < 13; i++) {
+ checkSum += regon[ i ] * weightsFourteen[ i ];
+ }
+
+ if( checkSum % 11 !== 10 ){
+ checkDigit = checkSum % 11;
+ }
+
+ if( parseInt( regon.charAt( 13 ) ) === checkDigit ){
+ return true;
+ }
+ } else {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badPlRegon'
+ });
+
+})(jQuery);
diff --git a/src/modules/sanitize.js b/src/modules/sanitize.js
new file mode 100644
index 0000000..4934da0
--- /dev/null
+++ b/src/modules/sanitize.js
@@ -0,0 +1,223 @@
+/**
+ * jQuery Form Validator Module: sanitize
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * This module makes it possible to add sanitation functions to
+ * inputs. The functions is triggered on blur. Example:
+ *
+ *
+ *
+ * Available functions are:
+ * - uppercase
+ * - lowercase
+ * - capitalize
+ * - trim
+ * - trimLeft
+ * - trimRight
+ * - numberFormat
+ * - insertLeft
+ * - insertRight
+ * - strip
+ * - escape (replace <, >, &, ' and " with HTML entities)
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window) {
+
+ 'use strict';
+
+ $.formUtils.addSanitizer({
+ name : 'upper',
+ sanitizerFunction : function(val) {
+ return val.toLocaleUpperCase();
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'lower',
+ sanitizerFunction : function(val) {
+ return val.toLocaleLowerCase();
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'trim',
+ sanitizerFunction : function(val) {
+ return $.trim(val);
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'trimLeft',
+ sanitizerFunction : function(val) {
+ return val.replace(/^\s+/,'');
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'trimRight',
+ sanitizerFunction : function(val) {
+ return val.replace(/\s+$/,'');
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'capitalize',
+ sanitizerFunction : function(val) {
+ var words = val.split(' ');
+ $.each(words, function(i, word) {
+ words[i] = word.substr(0,1).toUpperCase() + word.substr(1, word.length);
+ });
+ return words.join(' ');
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'insert',
+ sanitizerFunction : function(val, $input, pos) {
+ var extra = ($input.attr('data-sanitize-insert-'+pos) || '').replace(/\[SPACE\]/g, ' ');
+ if ( (pos === 'left' && val.indexOf(extra) === 0) || (pos === 'right' && val.substring(val.length - extra.length) === extra)) {
+ return val;
+ }
+ return (pos === 'left' ? extra:'') + val + (pos === 'right' ? extra : '');
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'insertRight',
+ sanitizerFunction : function(val, $input) {
+ return $.formUtils.sanitizers.insert.sanitizerFunction(val, $input, 'right');
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'insertLeft',
+ sanitizerFunction : function(val, $input) {
+ return $.formUtils.sanitizers.insert.sanitizerFunction(val, $input, 'left');
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'numberFormat',
+ sanitizerFunction : function(val, $input) {
+ if (val.length === 0) {
+ return val;
+ }
+ if ( 'numeral' in window ) {
+ //If this has been previously formatted, it needs to be unformatted first before being reformatted.
+ //Else numeral will fail
+ val = numeral().unformat(val);
+ val = numeral(val).format( $input.attr('data-sanitize-number-format') );
+ }
+ else {
+ throw new ReferenceError('Using sanitation function "numberFormat" requires that you include numeral.js ' +
+ '(http://numeraljs.com/)');
+ }
+ return val;
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'strip',
+ sanitizerFunction : function(val, $input) {
+ var toRemove = $input.attr('data-sanitize-strip') || '';
+ $.split(toRemove, function(char) {
+ var regex = new RegExp($.isNumeric(char) ? char : '\\'+char, 'g');
+ val = val.replace(regex, '');
+ });
+ return val;
+ }
+ });
+
+ $.formUtils.addSanitizer({
+ name : 'escape',
+ sanitizerFunction : function(val, $input) {
+ var isEscaped = $input.valAttr('is-escaped'),
+ entities = {
+ '<' : '__%AMP%__lt;',
+ '>' : '__%AMP%__gt;',
+ '&' : '__%AMP%__amp;',
+ '\'': '__%AMP%__#8217;',
+ '"' : '__%AMP%__quot;'
+ };
+
+ if (isEscaped === 'yes') {
+ return val;
+ }
+
+ $input.valAttr('is-escaped', 'yes');
+ $input.one('keyup', function(evt) {
+ if(evt.keyCode !== 9) {
+ $input.valAttr('is-escaped', 'no');
+ }
+ });
+
+ $.each(entities, function(symbol, replacement) {
+ val = val.replace(new RegExp(symbol, 'g'), replacement);
+ });
+
+ return val.replace(new RegExp('__\%AMP\%__', 'g'), '&');
+ }
+ });
+
+ $.formUtils.registerLoadedModule('sanitize');
+
+ var inputsThatCantBeSanitized = '[type="button"], [type="submit"], [type="radio"], [type="checkbox"], [type="reset"], [type="search"]',
+ setupSanitation = function(evt, $forms, config) {
+
+ if ( !$forms ) {
+ $forms = $('form');
+ }
+ if ( !$forms.each ) {
+ $forms = $($forms);
+ }
+
+ var execSanitationCommands = function() {
+
+ var $input = $(this),
+ value = $input.val();
+ $.split($input.attr('data-sanitize'), function(command) {
+
+ var sanitizer = $.formUtils.sanitizers[command];
+
+ if (sanitizer) {
+ value = sanitizer.sanitizerFunction(value, $input, config);
+ } else {
+ throw new Error('Use of unknown sanitize command "'+command+'"');
+ }
+
+ });
+ $input
+ .val(value)
+ .trigger('keyup.validation'); // we need to re-validate in case it gets validated on blur
+ };
+
+ $forms.each(function() {
+ var $form = $(this);
+ if( config.sanitizeAll ) {
+ $form.find('input,textarea').not(inputsThatCantBeSanitized).each(function() {
+ var $input = $(this),
+ sanitation = $input.attr('data-sanitize') || '';
+ $input.attr('data-sanitize', config.sanitizeAll +' '+ sanitation);
+ });
+ }
+
+ $form.find('[data-sanitize]')
+ .unbind('blur.sanitation', execSanitationCommands)
+ .bind('blur.sanitation', execSanitationCommands);
+
+ $(function() {
+ $form.trigger('blur.sanitation');
+ });
+
+ });
+ };
+
+ $(window).on('validatorsLoaded formValidationSetup', setupSanitation);
+
+ // Only for unit testing
+ $.formUtils.setupSanitation = setupSanitation;
+
+})(jQuery, window);
diff --git a/src/modules/security.js b/src/modules/security.js
new file mode 100644
index 0000000..aa8ad1c
--- /dev/null
+++ b/src/modules/security.js
@@ -0,0 +1,606 @@
+/**
+ * jQuery Form Validator Module: Security
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * This module adds validators typically used in registration forms.
+ * This module adds the following validators:
+ * - spamcheck
+ * - confirmation
+ * - strength
+ * - backend
+ * - credit card
+ * - cvv
+ *
+ * @website http://formvalidator.net/#security-validators
+ * @license MIT
+ */
+(function ($, window) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('security');
+
+ /*
+ * Simple spam check
+ */
+ $.formUtils.addValidator({
+ name: 'spamcheck',
+ validatorFunction: function (val, $el) {
+ var attr = $el.valAttr('captcha');
+ return attr === val;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badSecurityAnswer'
+ });
+
+ /*
+ * Validate confirmation (tests that two inputs are identical; usually used for
+ * passwords)
+ */
+ $.formUtils.addValidator({
+ name: 'confirmation',
+ validatorFunction: function (value, $el, config, language, $form) {
+ var password,
+ passwordInputName = $el.valAttr('confirm') ||
+ ($el.attr('name') + '_confirmation'),
+ $passwordInput = $form.find('[name="' + passwordInputName + '"]');
+ if (!$passwordInput.length) {
+ $.formUtils.warn('Password confirmation validator: could not find an input ' +
+ 'with name "' + passwordInputName + '"', true);
+ return false;
+ }
+
+ password = $passwordInput.val();
+ if (config.validateOnBlur && !$passwordInput[0].hasValidationCallback) {
+ $passwordInput[0].hasValidationCallback = true;
+ var keyUpCallback = function () {
+ $el.validate();
+ };
+ $passwordInput.on('keyup', keyUpCallback);
+ $form.one('formValidationSetup', function () {
+ $passwordInput[0].hasValidationCallback = false;
+ $passwordInput.off('keyup', keyUpCallback);
+ });
+ }
+
+ return value === password;
+ },
+ errorMessage: '',
+ errorMessageKey: 'notConfirmed'
+ });
+
+ var creditCards = {
+ 'amex': [15, 15],
+ 'diners_club': [14, 14],
+ 'cjb': [16, 16],
+ 'laser': [16, 19],
+ 'visa': [16, 16],
+ 'mastercard': [16, 16],
+ 'maestro': [12, 19],
+ 'discover': [16, 16]
+ },
+ checkOnlyAmex = false,
+ allowsAmex = false;
+
+ /*
+ * Credit card
+ */
+ $.formUtils.addValidator({
+ name: 'creditcard',
+ validatorFunction: function (value, $el) {
+ var allowing = $.split($el.valAttr('allowing') || '');
+
+ // Setup for cvv validation
+ allowsAmex = $.inArray('amex', allowing) > -1;
+ checkOnlyAmex = allowsAmex && allowing.length === 1;
+
+ // Correct length
+ if (allowing.length > 0) {
+ var hasValidLength = false;
+ $.each(allowing, function (i, cardName) {
+ if (cardName in creditCards) {
+ if (value.length >= creditCards[cardName][0] && value.length <= creditCards[cardName][1]) {
+ hasValidLength = true;
+ return false;
+ }
+ } else {
+ $.formUtils.warn('Use of unknown credit card "' + cardName + '"', true);
+ }
+ });
+
+ if (!hasValidLength) {
+ return false;
+ }
+ }
+
+ // only numbers
+ if (value.replace(new RegExp('[0-9]', 'g'), '') !== '') {
+ return false;
+ }
+
+ // http://en.wikipedia.org/wiki/Luhn_algorithm
+ // http://www.brainjar.com/js/validation/default2.asp
+ var checkSum = 0;
+ $.each(value.split('').reverse(), function (i, digit) {
+ digit = parseInt(digit, 10);
+ if (i % 2 === 0) {
+ checkSum += digit;
+ } else {
+ digit *= 2;
+ if (digit < 10) {
+ checkSum += digit;
+ } else {
+ checkSum += digit - 9;
+ }
+ }
+ });
+ return checkSum % 10 === 0;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badCreditCard'
+ });
+
+ /*
+ * Credit card number
+ */
+ $.formUtils.addValidator({
+ name: 'cvv',
+ validatorFunction: function (val) {
+ if (val.replace(/[0-9]/g, '') === '') {
+ val = val + '';
+ if (checkOnlyAmex) {
+ return val.length === 4;
+ } else if (allowsAmex) {
+ return val.length === 3 || val.length === 4;
+ } else {
+ return val.length === 3;
+ }
+ }
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badCVV'
+ });
+
+ /*
+ * Validate password strength
+ */
+ $.formUtils.addValidator({
+ name: 'strength',
+ validatorFunction: function (val, $el) {
+ var requiredStrength = $el.valAttr('strength') || 2;
+ if (requiredStrength && requiredStrength > 3) {
+ requiredStrength = 3;
+ }
+
+ return $.formUtils.validators.validate_strength.calculatePasswordStrength(val) >= requiredStrength;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badStrength',
+
+ /**
+ * Code more or less borrowed from jQuery plugin "Password Strength Meter"
+ * written by Darren Mason (djmason9@gmail.com), myPocket technologies (www.mypocket-technologies.com)
+ * @param {String} password
+ * @return {Number}
+ */
+ calculatePasswordStrength: function (password) {
+
+ if (password.length < 4) {
+ return 0;
+ }
+
+ var score = 0;
+
+ var checkRepetition = function (pLen, str) {
+ var res = '';
+ for (var i = 0; i < str.length; i++) {
+ var repeated = true;
+
+ for (var j = 0; j < pLen && (j + i + pLen) < str.length; j++) {
+ repeated = repeated && (str.charAt(j + i) === str.charAt(j + i + pLen));
+ }
+ if (j < pLen) {
+ repeated = false;
+ }
+ if (repeated) {
+ i += pLen - 1;
+ repeated = false;
+ }
+ else {
+ res += str.charAt(i);
+ }
+ }
+ return res;
+ };
+
+ //password length
+ score += password.length * 4;
+ score += ( checkRepetition(1, password).length - password.length ) * 1;
+ score += ( checkRepetition(2, password).length - password.length ) * 1;
+ score += ( checkRepetition(3, password).length - password.length ) * 1;
+ score += ( checkRepetition(4, password).length - password.length ) * 1;
+
+ //password has 3 numbers
+ if (password.match(/(.*[0-9].*[0-9].*[0-9])/)) {
+ score += 5;
+ }
+
+ //password has 2 symbols
+ if (password.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)) {
+ score += 5;
+ }
+
+ //password has Upper and Lower chars
+ if (password.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) {
+ score += 10;
+ }
+
+ //password has number and chars
+ if (password.match(/([a-zA-Z])/) && password.match(/([0-9])/)) {
+ score += 15;
+ }
+ //
+ //password has number and symbol
+ if (password.match(/([!,@,#,$,%,^,&,*,?,_,~])/) && password.match(/([0-9])/)) {
+ score += 15;
+ }
+
+ //password has char and symbol
+ if (password.match(/([!,@,#,$,%,^,&,*,?,_,~])/) && password.match(/([a-zA-Z])/)) {
+ score += 15;
+ }
+
+ //password is just a numbers or chars
+ if (password.match(/^\w+$/) || password.match(/^\d+$/)) {
+ score -= 10;
+ }
+
+ //verifying 0 < score < 100
+ if (score < 0) {
+ score = 0;
+ }
+ if (score > 100) {
+ score = 100;
+ }
+
+ if (score < 20) {
+ return 0;
+ }
+ else if (score < 40) {
+ return 1;
+ }
+ else if (score <= 60) {
+ return 2;
+ }
+ else {
+ return 3;
+ }
+ },
+
+ strengthDisplay: function ($el, options) {
+ var config = {
+ fontSize: '12pt',
+ padding: '4px',
+ bad: 'Very bad',
+ weak: 'Weak',
+ good: 'Good',
+ strong: 'Strong'
+ };
+
+ if (options) {
+ $.extend(config, options);
+ }
+
+ $el.bind('keyup', function () {
+ var val = $(this).val(),
+ $parent = typeof config.parent === 'undefined' ? $(this).parent() : $(config.parent),
+ $displayContainer = $parent.find('.strength-meter'),
+ strength = $.formUtils.validators.validate_strength.calculatePasswordStrength(val),
+ css = {
+ background: 'pink',
+ color: '#FF0000',
+ fontWeight: 'bold',
+ border: 'red solid 1px',
+ borderWidth: '0px 0px 4px',
+ display: 'inline-block',
+ fontSize: config.fontSize,
+ padding: config.padding
+ },
+ text = config.bad;
+
+ if ($displayContainer.length === 0) {
+ $displayContainer = $('');
+ $displayContainer
+ .addClass('strength-meter')
+ .appendTo($parent);
+ }
+
+ if (!val) {
+ $displayContainer.hide();
+ } else {
+ $displayContainer.show();
+ }
+
+ if (strength === 1) {
+ text = config.weak;
+ }
+ else if (strength === 2) {
+ css.background = 'lightyellow';
+ css.borderColor = 'yellow';
+ css.color = 'goldenrod';
+ text = config.good;
+ }
+ else if (strength >= 3) {
+ css.background = 'lightgreen';
+ css.borderColor = 'darkgreen';
+ css.color = 'darkgreen';
+ text = config.strong;
+ }
+
+ $displayContainer
+ .css(css)
+ .text(text);
+ });
+ }
+ });
+
+ var requestServer = function (serverURL, $element, val, conf, callback) {
+ var reqParams = $element.valAttr('req-params') || $element.data('validation-req-params') || {},
+ inputName = $element.valAttr('param-name') || $element.attr('name'),
+ handleResponse = function (response, callback) {
+ callback(response);
+ };
+
+ if (!inputName) {
+ throw new Error('Missing input name used for http requests made by server validator');
+ }
+ if (!reqParams) {
+ reqParams = {};
+ }
+ if (typeof reqParams === 'string') {
+ reqParams = $.parseJSON(reqParams);
+ }
+ reqParams[inputName] = val;
+
+ $.ajax({
+ url: serverURL,
+ type: 'POST',
+ cache: false,
+ data: reqParams,
+ dataType: 'json',
+ error: function (error) {
+ handleResponse({valid: false, message: 'Connection failed with status: ' + error.statusText}, callback);
+ return false;
+ },
+ success: function (response) {
+ handleResponse(response, callback);
+ }
+ });
+ };
+
+ /*
+ * Server validation
+ */
+ $.formUtils.addAsyncValidator({
+ name: 'server',
+ validatorFunction: function (done, val, $input, conf, lang, $form) {
+ var serverURL = $input.valAttr('url') || conf.backendUrl || document.location.href;
+ // @todo: deprecated class names that should be removed when moving up to 3.0
+ $form.addClass('validating-server-side');
+ $input.addClass('validating-server-side');
+ requestServer(serverURL, $input, val, conf, function (response) {
+ $form.removeClass('validating-server-side');
+ $input.removeClass('validating-server-side');
+ if (response.message) {
+ $input.attr(conf.validationErrorMsgAttribute, response.message);
+ }
+ done(response.valid);
+ });
+ },
+ errorMessage: '',
+ errorMessageKey: 'badBackend'
+ });
+
+ /*
+ * Check for only letters and numbers
+ *
+ * http://www.slovo.info/testuni.htm
+ */
+ $.formUtils.addValidator({
+ name: 'letternumeric',
+ validatorFunction: function (val, $el, config, language) {
+ var patternStart = '^([a-zA-Z0-9\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC',
+ patternEnd = ']+)$',
+ additionalChars = $el.valAttr('allowing'),
+ pattern = '';
+
+ if (additionalChars) {
+ pattern = patternStart + additionalChars + patternEnd;
+ var extra = additionalChars.replace(/\\/g, '');
+ if (extra.indexOf(' ') > -1) {
+ extra = extra.replace(' ', '');
+ extra += language.andSpaces || $.formUtils.LANG.andSpaces;
+ }
+ this.errorMessage = language.badAlphaNumeric + language.badAlphaNumericExtra + extra;
+ } else {
+ pattern = patternStart + patternEnd;
+ this.errorMessage = language.badAlphaNumeric;
+ }
+
+ return new RegExp(pattern).test(val);
+ },
+ errorMessage: '',
+ errorMessageKey: 'requiredFields'
+ });
+
+ /*
+ * Check password content depending on following parameters:
+ * data-validation-require-uc-letter,
+ * data-validation-require-lc-letter,
+ * data-validation-require-special-char,
+ * data-validation-require-numeral
+ */
+ $.formUtils.addValidator({
+ name : 'complexity',
+ validatorFunction : function(value, $input, config, language) {
+ var numRequiredUppercaseChars = $input.valAttr('require-uc-letter') || '0',
+ numRequiredLowercaseChars = $input.valAttr('require-lc-letter') || '0',
+ numRequiredSpecialChars = $input.valAttr('require-special-char') || '0',
+ numRequiredNumericChars = $input.valAttr('require-numeral') || '0',
+ numRequiredCharsTotal = $input.valAttr('require-length') || '0',
+ subValidators = {
+ 'uc-letter': {
+ pattern: '^(?=(?:.*[A-Z]){'+numRequiredUppercaseChars+',}).+',
+ numRequired: numRequiredUppercaseChars,
+ dialogEnd: language.passwordComplexityUppercaseInfo
+ },
+ 'lc-letter': {
+ pattern: '^(?=(?:.*[a-z]){'+numRequiredLowercaseChars+',}).+',
+ numRequired: numRequiredLowercaseChars,
+ dialogEnd: language.passwordComplexityLowercaseInfo
+ },
+ 'special-char': {
+ pattern: '^(?=(?:.*(_|[!"#$%&\'()*+\\\\,-./:;<=>?@[\\]^_`{|}~])){'+numRequiredSpecialChars+',}).+',
+ numRequired: numRequiredSpecialChars,
+ dialogEnd: language.passwordComplexitySpecialCharsInfo
+ },
+ 'numeral': {
+ pattern: '^(?=(?:.*\\d){'+numRequiredNumericChars+',}).+',
+ numRequired: numRequiredNumericChars,
+ dialogEnd: language.passwordComplexityNumericCharsInfo
+ },
+ 'length': {
+ callback: function(val) {
+ return val.length >= numRequiredCharsTotal;
+ },
+ numRequired: numRequiredCharsTotal,
+ dialogEnd: language.lengthBadEnd
+ }
+ },
+ errorMessage = '';
+
+ $.each(subValidators, function(name, subValidator) {
+ var numRequired = parseInt(subValidator.numRequired, 10);
+ if (numRequired) {
+ var regexp = new RegExp(subValidator.pattern),
+ valid = false;
+
+ if (subValidator.callback) {
+ valid = subValidator.callback(value);
+ } else {
+ valid = regexp.test(value);
+ }
+
+ if (!valid) {
+ if (errorMessage === '') {
+ errorMessage = language.passwordComplexityStart;
+ }
+ errorMessage += language.passwordComplexitySeparator + numRequired + subValidator.dialogEnd;
+ $input.trigger('complexityRequirementValidation', [false, name]);
+ } else {
+ $input.trigger('complexityRequirementValidation', [true, name]);
+ }
+ }
+ });
+ if (errorMessage) {
+ this.errorMessage = errorMessage + language.passwordComplexityEnd;
+ return false;
+ } else {
+ return true;
+ }
+ },
+ errorMessage : '',
+ errorMessageKey: ''
+ });
+
+ /*
+ * Google reCaptcha 2
+ */
+ $.formUtils.addValidator({
+ name: 'recaptcha',
+ validatorFunction: function (val, $el) {
+ return grecaptcha.getResponse($el.valAttr('recaptcha-widget-id')) !== '';
+ },
+ errorMessage: '',
+ errorMessageKey: 'badreCaptcha'
+ });
+
+ $.fn.displayPasswordStrength = function (conf) {
+ new $.formUtils.validators.validate_strength.strengthDisplay(this, conf);
+ return this;
+ };
+
+ var setupGooglereCaptcha = function (evt, $forms, config) {
+ if (!$forms) {
+ $forms = $('form');
+ }
+ if (typeof grecaptcha !== 'undefined' && !$.formUtils.hasLoadedGrecaptcha) {
+ throw new Error('reCaptcha API can not be loaded by hand, delete reCaptcha API snippet.');
+ } else if (!$.formUtils.hasLoadedGrecaptcha && $('[data-validation~="recaptcha"]', $forms).length) {
+ $.formUtils.hasLoadedGrecaptcha = true;
+
+ var src = '//www.google.com/recaptcha/api.js?onload=reCaptchaLoaded&render=explicit' + (config.lang ? '&hl=' + config.lang : '');
+ var script = document.createElement('script');
+ script.type = 'text/javascript';
+ script.async = true;
+ script.defer = true;
+ script.src = src;
+ document.getElementsByTagName('body')[0].appendChild(script);
+ }
+ };
+
+ window.reCaptchaLoaded = function ($forms) {
+ if (!$forms || typeof $forms !== 'object' || !$forms.length) {
+ $forms = $('form');
+ }
+
+ $forms.each(function () {
+ var $form = $(this),
+ config = $form.get(0).validationConfig || $form.context.validationConfig || false;
+
+ if (config) {
+ $('[data-validation~="recaptcha"]', $form).each(function () {
+ var $input = $(this),
+ div = document.createElement('DIV'),
+ siteKey = config.reCaptchaSiteKey || $input.valAttr('recaptcha-sitekey'),
+ theme = config.reCaptchaTheme || $input.valAttr('recaptcha-theme') || 'light',
+ size = config.reCaptchaSize || $input.valAttr('recaptcha-size') || 'normal',
+ type = config.reCaptchaType || $input.valAttr('recaptcha-type') || 'image';
+
+ if (!siteKey) {
+ throw new Error('Google reCaptcha site key is required.');
+ }
+
+ var widgetId = grecaptcha.render(div, {
+ sitekey: siteKey,
+ theme: theme,
+ size: size,
+ type: type,
+ callback: function (result) {
+ $form.find('[data-validation~="recaptcha"]')
+ .trigger('validation', (result && result !== ''));
+
+ },
+ 'expired-callback': function() {
+ $form.find('[data-validation~="recaptcha"]').trigger('validation', false);
+ }
+ });
+ $input
+ .valAttr('recaptcha-widget-id', widgetId)
+ .hide()
+ .on('beforeValidation', function (evt) {
+ // prevent validator from skipping this input because its hidden
+ evt.stopImmediatePropagation();
+ })
+ .parent()
+ .append(div);
+ });
+ }
+ });
+ };
+
+ $(window).on('validatorsLoaded formValidationSetup', setupGooglereCaptcha);
+
+})(jQuery, window);
diff --git a/src/modules/sepa.js b/src/modules/sepa.js
new file mode 100644
index 0000000..9bb25be
--- /dev/null
+++ b/src/modules/sepa.js
@@ -0,0 +1,199 @@
+// jQuery Form Validator Module: SEPA
+// Author: PispalanIT, Joni Saarinen
+//
+// Code based on https://github.com/arhs/iban.js/blob/master/iban.js
+
+(function($) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('sepa');
+
+ var ibanCountryList = [
+ ['AD', 24, 'F04F04A12'],
+ ['AE', 23, 'F03F16'],
+ ['AL', 28, 'F08A16'],
+ ['AT', 20, 'F05F11'],
+ ['AZ', 28, 'U04A20'],
+ ['BA', 20, 'F03F03F08F02'],
+ ['BE', 16, 'F03F07F02'],
+ ['BG', 22, 'U04F04F02A08'],
+ ['BH', 22, 'U04A14'],
+ ['BR', 29, 'F08F05F10U01A01'],
+ ['CH', 21, 'F05A12'],
+ ['CR', 21, 'F03F14'],
+ ['CY', 28, 'F03F05A16'],
+ ['CZ', 24, 'F04F06F10'],
+ ['DE', 22, 'F08F10'],
+ ['DK', 18, 'F04F09F01'],
+ ['DO', 28, 'U04F20'],
+ ['EE', 20, 'F02F02F11F01'],
+ ['ES', 24, 'F04F04F01F01F10'],
+ ['FI', 18, 'F06F07F01'],
+ ['FO', 18, 'F04F09F01'],
+ ['FR', 27, 'F05F05A11F02'],
+ ['GB', 22, 'U04F06F08'],
+ ['GE', 22, 'U02F16'],
+ ['GI', 23, 'U04A15'],
+ ['GL', 18, 'F04F09F01'],
+ ['GR', 27, 'F03F04A16'],
+ ['GT', 28, 'A04A20'],
+ ['HR', 21, 'F07F10'],
+ ['HU', 28, 'F03F04F01F15F01'],
+ ['IE', 22, 'U04F06F08'],
+ ['IL', 23, 'F03F03F13'],
+ ['IS', 26, 'F04F02F06F10'],
+ ['IT', 27, 'U01F05F05A12'],
+ ['KW', 30, 'U04A22'],
+ ['KZ', 20, 'F03A13'],
+ ['LB', 28, 'F04A20'],
+ ['LC', 32, 'U04F24'],
+ ['LI', 21, 'F05A12'],
+ ['LT', 20, 'F05F11'],
+ ['LU', 20, 'F03A13'],
+ ['LV', 21, 'U04A13'],
+ ['MC', 27, 'F05F05A11F02'],
+ ['MD', 24, 'U02A18'],
+ ['ME', 22, 'F03F13F02'],
+ ['MK', 19, 'F03A10F02'],
+ ['MR', 27, 'F05F05F11F02'],
+ ['MT', 31, 'U04F05A18'],
+ ['MU', 30, 'U04F02F02F12F03U03'],
+ ['NL', 18, 'U04F10'],
+ ['NO', 15, 'F04F06F01'],
+ ['PK', 24, 'U04A16'],
+ ['PL', 28, 'F08F16'],
+ ['PS', 29, 'U04A21'],
+ ['PT', 25, 'F04F04F11F02'],
+ ['RO', 24, 'U04A16'],
+ ['RS', 22, 'F03F13F02'],
+ ['SA', 24, 'F02A18'],
+ ['SE', 24, 'F03F16F01'],
+ ['SI', 19, 'F05F08F02'],
+ ['SK', 24, 'F04F06F10'],
+ ['SM', 27, 'U01F05F05A12'],
+ ['ST', 25, 'F08F11F02'],
+ ['TL', 23, 'F03F14F02'],
+ ['TN', 24, 'F02F03F13F02'],
+ ['TR', 26, 'F05F01A16'],
+ ['VG', 24, 'U04F16'],
+ ['XK', 20, 'F04F10F02'],
+ ['AO', 25, 'F21'],
+ ['BF', 27, 'F23'],
+ ['BI', 16, 'F12'],
+ ['BJ', 28, 'F24'],
+ ['CI', 28, 'U01F23'],
+ ['CM', 27, 'F23'],
+ ['CV', 25, 'F21'],
+ ['DZ', 24, 'F20'],
+ ['IR', 26, 'F22'],
+ ['JO', 30, 'A04F22'],
+ ['MG', 27, 'F23'],
+ ['ML', 28, 'U01F23'],
+ ['MZ', 25, 'F21'],
+ ['QA', 29, 'U04A21'],
+ ['SN', 28, 'U01F23'],
+ ['UA', 29, 'F25']
+ ];
+
+ var generalValidatorFunction = function (sepa) {
+ sepa = sepa.replace(/\s+/g, '');
+ sepa = sepa.substr(4) + sepa.substr(0,4);
+
+ sepa = sepa.split('').map(function(n){
+ var code = n.charCodeAt(0);
+ if (code >= 'A'.charCodeAt(0) && code <= 'Z'.charCodeAt(0)){
+ //A = 10, B = 11, ... Z = 35
+ return code - 'A'.charCodeAt(0) + 10;
+ } else {
+ return n;
+ }
+ }).join('');
+
+ var remainder = sepa;
+ var block;
+
+ while (remainder.length > 2) {
+ block = remainder.slice(0, 9);
+ remainder = (parseInt(block, 10) % 97).toString() + remainder.slice(block.length);
+ }
+
+ if (parseInt(remainder, 10) % 97 === 1){
+ return true;
+ } else {
+ return false;
+ }
+ };
+
+ var countryIBAN = function(sepa) {
+ sepa = sepa.toUpperCase();
+ sepa = sepa.replace(/\s+/g, '');
+
+ var countryCode = sepa.slice(0,2);
+ var i = 0;
+ var structure = '';
+
+ for (i = 0; i < ibanCountryList.length; ++i){
+ if (ibanCountryList[i][0] === countryCode){
+ structure = ibanCountryList[i][2];
+ break;
+ }
+ }
+
+ if (structure === ''){
+ return false;
+ }
+
+ var regex = structure.match(/(.{3})/g).map(function(block){
+
+ // parse each structure block (1-char + 2-digits)
+ var format;
+ var pattern = block.slice(0, 1);
+ var repeats = parseInt(block.slice(1), 10);
+
+ switch (pattern){
+ case 'A': format = '0-9A-Za-z'; break;
+ case 'B': format = '0-9A-Z'; break;
+ case 'C': format = 'A-Za-z'; break;
+ case 'F': format = '0-9'; break;
+ case 'L': format = 'a-z'; break;
+ case 'U': format = 'A-Z'; break;
+ case 'W': format = '0-9a-z'; break;
+ }
+
+ return '([' + format + ']{' + repeats + '})';
+ });
+
+ var regextest = new RegExp('^' + regex.join('') + '$');
+
+ return sepa.length === ibanCountryList[i][1] && regextest.test(sepa.slice(4));
+ };
+
+
+ $.formUtils.addValidator({
+ name: 'sepa',
+ validatorFunction: generalValidatorFunction,
+ errorMessage: '',
+ errorMessageKey:'badSepa'
+ });
+
+ $.formUtils.addValidator({
+ name: 'iban',
+ validatorFunction: function(sepa) {
+ return countryIBAN(sepa) && generalValidatorFunction(sepa);
+ },
+ errorMessage: '',
+ errorMessageKey:'badIban'
+ });
+
+ $.formUtils.addValidator({
+ name: 'bic',
+ validatorFunction: function(bic) {
+ var regextest = new RegExp('^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$');
+ return regextest.test(bic);
+ },
+ errorMessage: '',
+ errorMessageKey:'badBic'
+ });
+
+})(jQuery);
diff --git a/src/modules/sweden.js b/src/modules/sweden.js
new file mode 100644
index 0000000..5cf387c
--- /dev/null
+++ b/src/modules/sweden.js
@@ -0,0 +1,219 @@
+/**
+ * jQuery Form Validator Module: Security
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * This form validation module adds validators typically used on swedish
+ * websites. This module adds the following validators:
+ * - validate_swesec (Social security number)
+ * - validate_swemobile
+ * - validate_validate_municipality
+ * - validate_county
+ * - validate_swephone
+ *
+ * @website http://formvalidator.net/#swedish-validators
+ * @license MIT
+ */
+(function ($, window) {
+
+ $.formUtils.registerLoadedModule('sweden');
+
+
+ /*
+ * Validate swedish social security number yyyymmddXXXX
+ */
+ $.formUtils.addValidator({
+ name: 'swesec',
+ validatorFunction: function (securityNumber, $input) {
+
+ var year, month, day, ssnParts;
+
+ if ($input.valAttr('use-hyphen')) {
+ ssnParts = securityNumber.split('-');
+ if (ssnParts.length !== 2) {
+ return false;
+ }
+ securityNumber = ssnParts.join('');
+ }
+
+ if (!securityNumber.match(/^(\d{4})(\d{2})(\d{2})(\d{4})$/)) {
+ return false;
+ }
+
+ year = RegExp.$1;
+ month = $.formUtils.parseDateInt(RegExp.$2);
+ day = $.formUtils.parseDateInt(RegExp.$3);
+
+ var ssnGender = ( parseInt((RegExp.$4).substring(2, 3)) % 2 ) === 0 ? 'female' : 'male';
+ $input.trigger('genderDerived', [ssnGender]);
+
+ // todo: remove when moving to version 3.0
+ window.ssnGender = ssnGender;
+
+ var months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
+ if (year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {
+ months[1] = 29;
+ }
+ if (month < 1 || month > 12 || day < 1 || day > months[month - 1]) {
+ return false;
+ }
+
+ securityNumber = securityNumber.substring(2, securityNumber.length);
+ var check = '';
+ for (var i = 0; i < securityNumber.length; i++) {
+ check += ((((i + 1) % 2) + 1) * securityNumber.substring(i, i + 1));
+ }
+ var checksum = 0;
+ for (i = 0; i < check.length; i++) {
+ checksum += parseInt(check.substring(i, i + 1), 10);
+ }
+
+ return checksum % 10 === 0;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badSecurityNumber'
+ });
+
+ $.formUtils.addValidator({
+ name: 'swecounty',
+ validatorFunction: function (str) {
+ str = str.toLowerCase();
+ if ($.inArray(str, this.counties) === -1) {
+ if (str.substr(-3).toLocaleLowerCase() !== 'län') {
+ return $.inArray(str + 's län', this.counties) > -1;
+ }
+
+ return false;
+ }
+ else {
+ return true;
+ }
+ },
+ errorMessage: '',
+ errorMessageKey: 'badCustomVal',
+ counties: ['stockholms län',
+ 'uppsala län',
+ 'södermanlands län',
+ 'östergötlands län',
+ 'jönköpings län',
+ 'kronobergs län',
+ 'kalmar län',
+ 'gotlands län',
+ 'blekinge län',
+ 'skåne län',
+ 'hallands län',
+ 'västra götalands län',
+ 'värmlands län',
+ 'örebro län',
+ 'västmanlands län',
+ 'dalarnas län',
+ 'gävleborgs län',
+ 'västernorrlands län',
+ 'jämtlands län',
+ 'västerbottens län',
+ 'norrbottens län']
+ });
+
+ $.formUtils.addValidator({
+ name: 'swemunicipality',
+ validatorFunction: function (str) {
+ str = str.toLowerCase();
+ if ($.inArray(str, this.municipalities) === -1) {
+
+ // First check (dont return)
+ if (str.substr(-8) === 's kommun') {
+ if ($.inArray(str.substr(0, str.length - 8), this.municipalities) > -1) {
+ return true;
+ }
+ }
+
+ // Second check
+ if (str.substr(-7) === ' kommun') {
+ return $.inArray(str.substr(0, str.length - 7), this.municipalities) > -1;
+ }
+
+ return false;
+ }
+ else {
+ return true;
+ }
+ },
+ errorMessage: '',
+ errorMessageKey: 'badCustomVal',
+ municipalities: ['ale', 'alingsås', 'alvesta', 'aneby', 'arboga', 'arjeplog', 'arvidsjaur', 'arvika', 'askersund', 'avesta', 'bengtsfors', 'berg', 'bjurholm', 'bjuv', 'boden', 'bollebygd', 'bollnäs', 'borgholm', 'borlänge', 'borås', 'botkyrka', 'boxholm', 'bromölla', 'bräcke', 'burlöv', 'båstad', 'dals-ed', 'danderyd', 'degerfors', 'dorotea', 'eda', 'ekerö', 'eksjö', 'emmaboda', 'enköpings', 'eskilstuna', 'eslövs', 'essunga', 'fagersta', 'falkenberg', 'falköping', 'falu', 'filipstad', 'finspång', 'flen', 'forshaga', 'färgelanda', 'gagnef', 'gislaved', 'gnesta', 'gnosjö', 'gotland', 'grum', 'grästorp', 'gullspång', 'gällivare', 'gävle', 'göteborg', 'götene', 'habo', 'hagfor', 'hallsberg', 'hallstahammar', 'halmstad', 'hammarö', 'haninge', 'haparanda', 'heby', 'hedemora', 'helsingborg', 'herrljunga', 'hjo', 'hofor', 'huddinge', 'hudiksvall', 'hultsfred', 'hylte', 'håbo', 'hällefor', 'härjedalen', 'härnösand', 'härryda', 'hässleholm', 'höganäs', 'högsby', 'hörby', 'höör', 'jokkmokk', 'järfälla', 'jönköping', 'kalix', 'kalmar', 'karlsborg', 'karlshamn', 'karlskoga', 'karlskrona', 'karlstad', 'katrineholm', 'kil', 'kinda', 'kiruna', 'klippan', 'knivsta', 'kramfors', 'kristianstad', 'kristinehamn', 'krokoms', 'kumla', 'kungsbacka', 'kungsör', 'kungälv', 'kävlinge', 'köping', 'laholm', 'landskrona', 'laxå', 'lekeberg', 'leksand', 'lerum', 'lessebo', 'lidingö', 'lidköping', 'lilla edets', 'lindesbergs', 'linköpings', 'ljungby', 'ljusdals', 'ljusnarsbergs', 'lomma', 'ludvika', 'luleå', 'lunds', 'lycksele', 'lysekil', 'malmö', 'malung-sälen', 'malå', 'mariestad', 'marks', 'markaryd', 'mellerud', 'mjölby', 'mora', 'motala', 'mullsjö', 'munkedal', 'munkfors', 'mölndal', 'mönsterås', 'mörbylånga', 'nacka', 'nora', 'norberg', 'nordanstig', 'nordmaling', 'norrköping', 'norrtälje', 'norsjö', 'nybro', 'nykvarn', 'nyköping', 'nynäshamn', 'nässjö', 'ockelbo', 'olofström', 'orsa', 'orust', 'osby', 'oskarshamn', 'ovanåker', 'oxelösund', 'pajala', 'partille', 'perstorp', 'piteå', 'ragunda', 'robertsfors', 'ronneby', 'rättvik', 'sala', 'salem', 'sandviken', 'sigtuna', 'simrishamn', 'sjöbo', 'skara', 'skellefteå', 'skinnskatteberg', 'skurup', 'skövde', 'smedjebacken', 'sollefteå', 'sollentuna', 'solna', 'sorsele', 'sotenäs', 'staffanstorp', 'stenungsund', 'stockholm', 'storfors', 'storuman', 'strängnäs', 'strömstad', 'strömsund', 'sundbyberg', 'sundsvall', 'sunne', 'surahammar', 'svalöv', 'svedala', 'svenljunga', 'säffle', 'säter', 'sävsjö', 'söderhamns', 'söderköping', 'södertälje', 'sölvesborg', 'tanum', 'tibro', 'tidaholm', 'tierp', 'timrå', 'tingsryd', 'tjörn', 'tomelilla', 'torsby', 'torså', 'tranemo', 'tranå', 'trelleborg', 'trollhättan', 'trosa', 'tyresö', 'täby', 'töreboda', 'uddevalla', 'ulricehamns', 'umeå', 'upplands väsby', 'upplands-bro', 'uppsala', 'uppvidinge', 'vadstena', 'vaggeryd', 'valdemarsvik', 'vallentuna', 'vansbro', 'vara', 'varberg', 'vaxholm', 'vellinge', 'vetlanda', 'vilhelmina', 'vimmerby', 'vindeln', 'vingåker', 'vårgårda', 'vänersborg', 'vännäs', 'värmdö', 'värnamo', 'västervik', 'västerås', 'växjö', 'ydre', 'ystad', 'åmål', 'ånge', 'åre', 'årjäng', 'åsele', 'åstorp', 'åtvidaberg', 'älmhult', 'älvdalen', 'älvkarleby', 'älvsbyn', 'ängelholm', 'öckerö', 'ödeshög', 'örebro', 'örkelljunga', 'örnsköldsvik', 'östersund', 'österåker', 'östhammar', 'östra göinge', 'överkalix', 'övertorneå']
+ });
+
+
+ /*
+ * Validate phone number, at least 7 digits only one hyphen and plus allowed
+ */
+ $.formUtils.addValidator({
+ name: 'swephone',
+ validatorFunction: function (tele) {
+ var numPlus = tele.match(/\+/g);
+ var numHifen = tele.match(/-/g);
+
+ if ((numPlus !== null && numPlus.length > 1) || (numHifen !== null && numHifen.length > 1)) {
+ return false;
+ }
+ if (numPlus !== null && tele.indexOf('+') !== 0) {
+ return false;
+ }
+
+ tele = tele.replace(/([-|\+])/g, '');
+ return tele.length > 8 && tele.match(/[^0-9]/g) === null;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badTelephone'
+ });
+
+
+ /*
+ * Validate that string is a swedish telephone number
+ */
+ $.formUtils.addValidator({
+ name: 'swemobile',
+ validatorFunction: function (number) {
+ if (!$.formUtils.validators.validate_swephone.validatorFunction(number)) {
+ return false;
+ }
+
+ number = number.replace(/[^0-9]/g, '');
+ var begin = number.substring(0, 3);
+
+ if (number.length !== 10 && begin !== '467') {
+ return false;
+ } else if (number.length !== 11 && begin === '467') {
+ return false;
+ }
+ return (/07[0-9{1}]/).test(begin) || begin === '467';
+ },
+ errorMessage: '',
+ errorMessageKey: 'badTelephone'
+ });
+
+ /**
+ * @private
+ * @param {Array} listItems
+ * @return {Array}
+ */
+ var _makeSortedList = function (listItems) {
+ var newList = [];
+ $.each(listItems, function (i, v) {
+ newList.push(v.substr(0, 1).toUpperCase() + v.substr(1, v.length));
+ });
+ newList.sort();
+ return newList;
+ };
+
+ $.fn.suggestSwedishCounty = function (settings) {
+ var counties = _makeSortedList($.formUtils.validators.validate_swecounty.counties);
+ return $.formUtils.suggest(this, counties, settings);
+ };
+
+ $.fn.suggestSwedishMunicipality = function (settings) {
+ var municipalities = _makeSortedList($.formUtils.validators.validate_swemunicipality.municipalities);
+ return $.formUtils.suggest(this, municipalities, settings);
+ };
+
+})(jQuery, window);
diff --git a/src/modules/toggleDisabled.js b/src/modules/toggleDisabled.js
new file mode 100644
index 0000000..7aaceef
--- /dev/null
+++ b/src/modules/toggleDisabled.js
@@ -0,0 +1,119 @@
+/**
+ * jQuery Form Validator Module: Toggle Disabled
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * This module will take care of disabling/enabling submit buttons
+ * in forms, depending on if the inputs of the form is valid or not.
+ *
+ * @website http://formvalidator.net/
+ * @license MIT
+ */
+(function($, window, undefined) {
+
+ 'use strict';
+
+ $.formUtils.registerLoadedModule('toggleDisabled');
+
+ // Function that can enable/disable form
+ var toggleFormState = function($form, state) {
+ if( state === 'disabled' ) {
+ $form.find('*[type="submit"]')
+ .addClass('disabled')
+ .attr('disabled', 'disabled');
+ } else {
+ $form.find('*[type="submit"]')
+ .removeClass('disabled')
+ .removeAttr('disabled');
+ }
+ },
+ isCheckingIfFormValid = false;
+
+ $.formUtils.$win.bind('validatorsLoaded formValidationSetup', function(evt, $forms, conf) {
+
+ var $formsToDisable = conf.disabledFormFilter ? $forms.filter(conf.disabledFormFilter) : $forms,
+ showErrorDialogs = conf.showErrorDialogs === undefined || conf.showErrorDialogs,
+ afterValidationCallback = function(evt, result, evtContext) {
+ var $this = $(this);
+ if (evtContext && evtContext.indexOf('blur') > -1) {
+ $this.unbind('afterValidation', afterValidationCallback);
+ } else {
+ if (result.isValid) {
+ $this.unbind('afterValidation', afterValidationCallback);
+ } else if (!$this.valAttr('have-been-blurred')) {
+ result.shouldChangeDisplay = false;
+ }
+ }
+ };
+
+ // Toggle form state depending on if it has only valid inputs or not.
+ $formsToDisable
+ .addClass(showErrorDialogs ? 'disabled-with-errors' : 'disabled-without-errors')
+ .on('reset', function() {
+ toggleFormState($(this), 'disabled');
+ })
+ .find('*[data-validation]')
+ .valAttr('event','keyup change')
+ .on('validation', function(evt, valid) {
+ if (!isCheckingIfFormValid) {
+ isCheckingIfFormValid = true;
+ var $form = $(this).closest('form');
+ if(valid && peekIfFormIsSuccessfullyValidated($form, this, conf)) {
+ toggleFormState($form, 'enabled');
+ } else {
+ toggleFormState($form, 'disabled');
+ }
+ isCheckingIfFormValid = false;
+ }
+ })
+ .on('afterValidation', afterValidationCallback)
+ .on('blur', function() {
+ $(this).valAttr('have-been-blurred', 1);
+ })
+ .each(function() {
+ var $input = $(this),
+ validationRules = $input.attr('data-validation');
+ if (validationRules.indexOf('checkbox_group') > -1) {
+ $input.closest('form').find('input[name="'+$input.attr('name')+'"]').each(function() {
+ $(this).on('change', function() {
+ $input.validate();
+ });
+ });
+ }
+ });
+
+ // Notice! Async validator can't be validated onkeyup
+ $formsToDisable.find('[data-validation-async]').valAttr('event', 'change');
+
+ // Make all inputs validated on keyup, require validateOnEvent in validation config
+ toggleFormState($formsToDisable, 'disabled');
+
+ $formsToDisable.validateOnEvent(conf.language, conf);
+
+ })
+ .on('validationErrorDisplay', function(evt, $input, $elem) {
+ if ( $input.closest('form').hasClass('disabled-without-errors') ) {
+ $elem.hide();
+ }
+ });
+
+ // We want to peek at the form to check if all is valid, we don't want to trigger
+ // the validators since that seems to cause unwanted side effects, that's hard to foresee
+ function peekIfFormIsSuccessfullyValidated($form, excludeInputElement, config) {
+ var allValid = true;
+ $form.find('[data-validation]').each(function() {
+ if (this !== excludeInputElement) {
+ var $elem = $(this),
+ hasSuccessfullyValidated = $elem.hasClass(config.successElementClass),
+ isOptional = $elem.valAttr('optional') === 'true',
+ isInvalid = $elem.hasClass(config.errorElementClass);
+ if (isInvalid || (!hasSuccessfullyValidated && !isOptional)) {
+ allValid = false;
+ return false;
+ }
+ }
+ });
+ return allValid;
+ }
+
+})(jQuery, window);
diff --git a/src/modules/uk.js b/src/modules/uk.js
new file mode 100644
index 0000000..8eea8f7
--- /dev/null
+++ b/src/modules/uk.js
@@ -0,0 +1,143 @@
+/**
+ * jQuery Form Validator Module: UK
+ * ------------------------------------------
+ * Created by Victor Jonsson
+ *
+ * This form validation module adds validators typically used on
+ * websites in the UK. This module adds the following validators:
+ * - ukvatnumber
+ * - ukutr
+ * - uknin
+ *
+ * @website http://formvalidator.net/#uk-validators
+ * @license MIT
+ */
+(function($) {
+
+ 'use strict';
+
+
+ $.formUtils.registerLoadedModule('uk');
+
+ /**
+ * UK VAT Validator
+ */
+ $.formUtils.addValidator({
+ name : 'ukvatnumber',
+ validatorFunction : function(number) {
+
+ // Code Adapted from http://www.codingforums.com/showthread.php?t=211967
+ // TODO: Extra Checking for other VAT Numbers (Other countries and UK Government/Health Authorities)
+
+ number = number.replace(/[^0-9]/g, '');
+
+ //Check Length
+ if(number.length < 9) {
+ return false;
+ }
+
+ var valid = false;
+
+ var VATsplit = [];
+ VATsplit = number.split('');
+
+ var checkDigits = Number(VATsplit[7] + VATsplit[8]); // two final digits as a number
+
+ var firstDigit = VATsplit[0];
+ var secondDigit = VATsplit[1];
+ if ((firstDigit === 0) && (secondDigit > 0)) {
+ return false;
+ }
+
+ var total = 0;
+ for (var i = 0; i < 7; i++) { // first 7 digits
+ total += VATsplit[i]* (8-i); // sum weighted cumulative total
+ }
+
+ var c = 0;
+ var j = 0;
+
+ for (var m = 8; m >= 2; m--) {
+ c += VATsplit[j] * m;
+ j++;
+ }
+
+ // Traditional Algorithm for VAT numbers issued before 2010
+
+ while (total > 0) {
+ total -= 97; // deduct 97 repeatedly until total is negative
+ }
+ total = Math.abs(total); // make positive
+
+ if (checkDigits === total) {
+ valid = true;
+ }
+
+ // If not valid try the new method (introduced November 2009) by subtracting 55 from the mod 97 check digit if we can - else add 42
+
+ if (!valid) {
+ total = total%97; // modulus 97
+
+ if (total >= 55) {
+ total = total - 55;
+ } else {
+ total = total + 42;
+ }
+
+ if (total === checkDigits) {
+ valid = true;
+ }
+ }
+
+ return valid;
+ },
+ errorMessage : '',
+ errorMessageKey: 'badUKVatAnswer'
+});
+
+ /**
+ * UK Unique Taxpayer Reference Validator
+ */
+ $.formUtils.addValidator({
+ name: 'ukutr',
+ validatorFunction: function (utr)
+ {
+ var weights = [0, 6, 7, 8, 9, 10, 5, 4, 3, 2],
+ checkDigits = [2, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1],
+ checkSum = 0;
+
+ if (/\d{10}/.test(utr) && utr.length === 10)
+ {
+ for (var i = 0; i < 10; i++) {
+ checkSum += utr[ i ] * weights[ i ];
+ }
+
+ if (parseInt(utr.charAt(0)) === checkDigits[checkSum % 11])
+ {
+ return true;
+ }
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badUkUtr'
+ });
+
+ /**
+ * UK National Insurance number Validator
+ */
+ $.formUtils.addValidator({
+ name: 'uknin',
+ validatorFunction: function(val){
+ if( /^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)(?:[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z])(?:\s*\d\s*){6}([A-D]|\s)$/i.test( val ) ){
+ return true;
+ }
+
+ return false;
+ },
+ errorMessage: '',
+ errorMessageKey: 'badUkNin'
+ });
+
+})(jQuery);
diff --git a/src/theme-default.css b/src/theme-default.css
new file mode 100644
index 0000000..f0c5e5b
--- /dev/null
+++ b/src/theme-default.css
@@ -0,0 +1,110 @@
+/**
+ * Default CSS theme for jQuery-Form-Validator.
+ * @author Victor Jonsson
+ */
+
+
+/* Input element having an invalid value */
+select.error,
+input.error {
+ border-color: #b94a48;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAYAAAA/mJfHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAYSmlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjarVllVBV/t94TJ6hDdx26pLu7QboVOHRzODQYoIAICmKggoKCiogKBiklJqKIKKhYhIgoKgaKinI/gP7f9733frhr3d+HWc888+y9n73XrJk18wMQFqDR6XEoB0B8QgrD3daC6uvnTyW9ABSEgAJrQJUWmkw3d3V1gv95IQBfRwEBALivTKPT4+D/tjjDwpNDARBXAAgJSw6NB0AuAu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Dpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE0IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDxwaG90b3Nob3A6VGV4dExheWVycz4KICAgICAgICAgICAgPHJkZjpCYWc+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8cGhvdG9zaG9wOkxheWVyTmFtZT7DlzwvcGhvdG9zaG9wOkxheWVyTmFtZT4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllclRleHQ+w5c8L3Bob3Rvc2hvcDpMYXllclRleHQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllck5hbWU+YTwvcGhvdG9zaG9wOkxheWVyTmFtZT4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllclRleHQ+YTwvcGhvdG9zaG9wOkxheWVyVGV4dD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkJhZz4KICAgICAgICAgPC9waG90b3Nob3A6VGV4dExheWVycz4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPkRpc3BsYXk8L3Bob3Rvc2hvcDpJQ0NQcm9maWxlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTk8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTc8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pmkb7KYAAAAgY0hSTQAAbZgAAHOOAAD6zAAAhPoAAHmBAAD9EwAAMG0AABIpDR4mTgAAAOZJREFUeNrMlL0NwyAQhZ+jLJAVkE4M4BVMR50RvIIzAivYI6S+zh4hHgAhZYWM4DTnCCFsoshFnkQBB9/9impZFhylEw5UFsaaatbUbj1iTR1ruhRhrKkGMALoWVOXsY8AHIAHa1KlyO4AVq+ONbkE1MhWAejjh+cMbBDPqzqJQAGoM3c/qnLdlPRcod7G+jAVYQJs0zT2QKXRmADMufMcaC9NJR1VW46sD6YI2wC9og7HkV+tD6/SaKQgIytWk9Y0B5tTkPVhljqZnbubNevFs7E+PBNbI9HfrA/DV6Pxn7/Gr3oPAAwLXEdIhTGuAAAAAElFTkSuQmCC');
+ background-position: right 5px center;
+ background-repeat: no-repeat;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+}
+
+/* Input element having a valid value */
+select.valid,
+input.valid {
+ border-color: #468847;
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAgVBMVEUAAABetV5buFtcuFxcuVxdu11cuFxbuFtcuFxcuFxbtltcuFxbtltetl5cuFxct1xduV1fuF9cuFxcuFxbultcuFxduF1gtWBduV1cuFxcuVxcuFxcuFxcuFxet15dt11cuFxcuFxbt1teuF5duV1euF5cuVxcuFxcuFxcuFwAAADG3XcxAAAAKXRSTlMAJrDPRSnn1OjCKvM4MamLFivp8jvI1xgs6jpL++w5UvrxUU83RMe6MlhBCPsAAAABYktHRACIBR1IAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AwTFzUBkZPjhwAAAHBJREFUGNNjYCAJMDIxsyDzWdk0NdmR+RyampqcCD4XiM/Nw8DLxy8A4gsKAfnCIgwMopqaYuIMDBIwPgOzJkhEQhLElwIplZYBMmWFQXw5iGHyCppgoCgHM14JLKLIg7BQGSiiqILsRFU1dQ3iPQgAPhMLEPHXqSUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTYtMTItMTlUMjM6NTM6MDErMDE6MDCbiS6WAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE2LTEyLTE5VDIzOjUzOjAxKzAxOjAw6tSWKgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=');
+ background-position: right 5px center;
+ background-repeat: no-repeat;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
+}
+
+/* File inputs with invalid value */
+input[type="file"].error {
+ color: #b94a48;
+ background: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+/* File inputs with valid value */
+input[type="file"].valid {
+ color: #468847;
+ background: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+/* Element showing an inline error message */
+.form-error {
+ display: block;
+ color: #b94a48;
+ margin-top: 5px;
+ margin-bottom: 10px;
+ line-height: 140%;
+}
+
+/* Element showing the help text declared in data-validation-help */
+span.help {
+ color: #999;
+ font-size: 90%;
+}
+
+/* Here you can style the look of the input while server being
+ requested when using data-validation="server" */
+select.async-validation,
+input.async-validation,
+select.validating-server-side, /* deprecated */
+input.validating-server-side /* deprecated */ {
+ opacity: 0.5;
+ background-image: url('data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAAKAAEALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQACgACACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQACgADACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosB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kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQACgAKACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQACgALACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==');
+ background-position: right 5px center;
+ background-repeat: no-repeat;
+ background-color: #FFF;
+}
+
+/* Here you can style the entire form while server being
+ requested when using data-validation="server" */
+form.async-validation,
+form.validating-server-side /* deprecated */ {
+
+}
+
+/* Container for error messages when having configuration
+ parameter "errorMessagePosition" set to "top" */
+div.form-error {
+ background-color: #f2dede;
+ padding: 15px;
+ margin-bottom: 20px;
+ border: #b94a48 1px solid;
+ border-radius: 4px;
+}
+
+/* Title in top of the error message container */
+div.form-error strong {
+ font-weight: bold;
+ display: block;
+ margin: 0;
+ padding: 0 0 10px;
+}
+
+/* Typography styling in the error message container */
+div.form-error strong,
+div.form-error ul li {
+ line-height: 140%;
+ color: #b94a48;
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
+ font-size: 14px;
+}
+
+div.form-error ul,
+div.form-error ul li {
+ background: none;
+}
diff --git a/style.css b/style.css
deleted file mode 100644
index 17d83ac..0000000
--- a/style.css
+++ /dev/null
@@ -1,128 +0,0 @@
-* {
- margin: 0;
- padding: 0;
- font-family: "Lucida Grande", Lucida, sans-serif;
- color: #444;
-}
-
-body {
- padding: 20px;
- background: #F2F2F2;
- font-size: 14px;
-}
-
-p {
- padding: 0 10px 20px;
- line-height: 180%;
-}
-
-h1 {
- font-size: 28px;
- margin-bottom: 20px;
-}
-
-div.section, code, h2 {
- -moz-border-radius: 12px;
- -webkit-border-radius: 12px;
- background: #FFF;
- padding: 15px 10px 10px;
- max-width: 600px;
- margin-bottom: 20px;
- -moz-border-radius-topleft: 0;
- -moz-border-radius-topright: 0;
- -webkit-border-top-left-radius: 0;
- -webkit-border-top-right-radius: 0;
-}
-
-code {
- display: block;
- font-family: "Courier New", Courier, serif;
- background: #E2E2E2;
- color: black;
-}
-
-h2 {
- -moz-border-radius: 0px;
- -webkit-border-radius: 0px;
- -moz-border-radius-topleft: 12px;
- -moz-border-radius-topright: 12px;
- -webkit-border-top-left-radius: 12px;
- -webkit-border-top-right-radius: 12px;
- margin-bottom: 0px;
- background: #CCC;
- font-size: 14px;
- padding-top: 10px;
-}
-
-textarea {
- width: 90%;
-}
-
-input, textarea {
- font-size: 14px;
- border: #CCC solid 1px;
- border-color:#CCC; /* important for validator to find default color */
- padding: 5px;
- background: white;
- -moz-border-radius: 4px;
- -webkit-border-radius: 4px;
- -moz-box-shadow: inset 0 0 5px #EEE;
- -webkit-box-shadow: inset 0 0 5px #EEE;
- box-shadow: inset 0 0 5px #EEE;
- color: #666;
- width: 70%;
-}
-
-input[type=checkbox], input[type=radio] {
- width:auto;
-}
-
-input[type=submit] {
- background: #f0f8ff;
- font-weight: bold;
- color: #3e8888;
- width: 130px;
- cursor: pointer;
-}
-
-.jquery_form_error_message {
- margin: 5px 0 20px;
- padding: 10px;
- background: pink;
- -moz-border-radius: 12px;
- -webkit-border-radius: 12px;
-}
-
-.error {
- background: pink;
-}
-
-span.chars_left,
-span.jquery_form_error_message {
- background: #f2f2f2;
- padding: 0 2px;
- font-weight: normal;
- font-size: 90%;
- color: #666;
-}
-
-span.jquery_form_error_message {
- color: red;
- display: block;
- background: none;
- margin: 0;
- padding: 0;
-}
-
-em {
- background: lightyellow;
- font-size: 90%;
- color: #81815c;
- padding: 0 1px;
-}
-
-.jquery_form_help {
- color:#999;
- font-family: Georgia, "Times New Roman", serif;
- margin-left: 4px;
-}
\ No newline at end of file
diff --git a/test/bootstrap3.html b/test/bootstrap3.html
new file mode 100644
index 0000000..f724db1
--- /dev/null
+++ b/test/bootstrap3.html
@@ -0,0 +1,224 @@
+
+
+
+
+ Bootstrap 3 Compatibility Test
+
+
+
+
+
Not Bootstrap form
+
+
+
Basic form
+
+
+
Inline form
+
+
+
Horizontal form
+
+
+
+
+
+
+
+
diff --git a/test/form.html b/test/form.html
new file mode 100644
index 0000000..c642d69
--- /dev/null
+++ b/test/form.html
@@ -0,0 +1,518 @@
+
+
+
+
+ Form Test
+
+
+
+
+
+
+