├── .coveralls.yml ├── .gitignore ├── .travis.yml ├── Gruntfile.js ├── README.md ├── bfh-colorpicker.jquery.json ├── bfh-country.jquery.json ├── bfh-currency.jquery.json ├── bfh-datepicker.jquery.json ├── bfh-font.jquery.json ├── bfh-fontsize.jquery.json ├── bfh-googlefont.jquery.json ├── bfh-language.jquery.json ├── bfh-number.jquery.json ├── bfh-phone.jquery.json ├── bfh-select.jquery.json ├── bfh-slider.jquery.json ├── bfh-state.jquery.json ├── bfh-timepicker.jquery.json ├── bfh-timezone.jquery.json ├── bower.json ├── composer.json ├── dist ├── css │ ├── bootstrap-formhelpers.css │ └── bootstrap-formhelpers.min.css ├── img │ ├── bootstrap-formhelpers-countries.flags-LICENSE.txt │ ├── bootstrap-formhelpers-countries.flags.png │ ├── bootstrap-formhelpers-currencies.flags.png │ └── bootstrap-formhelpers-googlefonts.png └── js │ ├── bootstrap-formhelpers.js │ └── bootstrap-formhelpers.min.js ├── examples.html ├── img ├── bootstrap-formhelpers-countries.flags-LICENSE.txt ├── bootstrap-formhelpers-countries.flags.png ├── bootstrap-formhelpers-currencies.flags.png └── bootstrap-formhelpers-googlefonts.png ├── index.html ├── js ├── .jshintrc ├── bootstrap-formhelpers-colorpicker.js ├── bootstrap-formhelpers-countries.js ├── bootstrap-formhelpers-currencies.js ├── bootstrap-formhelpers-datepicker.js ├── bootstrap-formhelpers-fonts.js ├── bootstrap-formhelpers-fontsizes.js ├── bootstrap-formhelpers-googlefonts.js ├── bootstrap-formhelpers-languages.js ├── bootstrap-formhelpers-number.js ├── bootstrap-formhelpers-phone.js ├── bootstrap-formhelpers-selectbox.js ├── bootstrap-formhelpers-slider.js ├── bootstrap-formhelpers-states.js ├── bootstrap-formhelpers-timepicker.js ├── bootstrap-formhelpers-timezones.js ├── lang │ ├── ar │ │ └── bootstrap-formhelpers-countries.ar.js │ ├── de_DE │ │ └── bootstrap-formhelpers-countries.de_DE.js │ ├── en_US │ │ ├── bootstrap-formhelpers-countries.en_US.js │ │ ├── bootstrap-formhelpers-currencies.en_US.js │ │ ├── bootstrap-formhelpers-datepicker.en_US.js │ │ ├── bootstrap-formhelpers-fonts.en_US.js │ │ ├── bootstrap-formhelpers-fontsizes.en_US.js │ │ ├── bootstrap-formhelpers-googlefonts.en_US.js │ │ ├── bootstrap-formhelpers-languages.en_US.js │ │ ├── bootstrap-formhelpers-phone.en_US.js │ │ ├── bootstrap-formhelpers-states.en_US.js │ │ ├── bootstrap-formhelpers-timepicker.en_US.js │ │ └── bootstrap-formhelpers-timezones.en_US.js │ ├── es_ES │ │ ├── bootstrap-formhelpers-countries.es_ES.js │ │ └── bootstrap-formhelpers-datepicker.es_ES.js │ ├── es_US │ │ └── bootstrap-formhelpers-datepicker.es_US.js │ ├── fr_CA │ │ └── bootstrap-formhelpers-countries.fr_CA.js │ ├── fr_FR │ │ └── bootstrap-formhelpers-countries.fr_FR.js │ ├── it_IT │ │ └── bootstrap-formhelpers-countries.it_IT.js │ ├── pt_BR │ │ └── bootstrap-formhelpers-countries.pt_BR.js │ ├── ru_RU │ │ ├── bootstrap-formhelpers-countries.ru_RU.js │ │ └── bootstrap-formhelpers-datepicker.ru_RU.js │ ├── zh_CN │ │ ├── bootstrap-formhelpers-countries.zh_CN.js │ │ └── bootstrap-formhelpers-timezones.zh_CN.js │ └── zh_TW │ │ └── bootstrap-formhelpers-countries.zh_TW.js └── tests │ ├── fixture.js │ ├── index.html │ ├── unit │ ├── bootstrap-formhelpers-colorpicker.js │ ├── bootstrap-formhelpers-countries.js │ ├── bootstrap-formhelpers-currencies.js │ ├── bootstrap-formhelpers-datepicker.js │ ├── bootstrap-formhelpers-fonts.js │ ├── bootstrap-formhelpers-fontsizes.js │ ├── bootstrap-formhelpers-googlefonts.js │ ├── bootstrap-formhelpers-languages.js │ ├── bootstrap-formhelpers-number.js │ ├── bootstrap-formhelpers-phone.js │ ├── bootstrap-formhelpers-selectbox.js │ ├── bootstrap-formhelpers-slider.js │ ├── bootstrap-formhelpers-states.js │ ├── bootstrap-formhelpers-timepicker.js │ └── bootstrap-formhelpers-timezones.js │ └── vendor │ ├── css │ ├── bootstrap-3.0.0.min.css │ └── qunit-1.12.0.css │ ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff │ └── js │ ├── bootstrap-3.0.0.min.js │ ├── jquery-1.10.2.js │ └── qunit-1.12.0.js ├── karma.conf.js ├── less ├── bootstrap-formhelpers-colorpicker.less ├── bootstrap-formhelpers-datepicker.less ├── bootstrap-formhelpers-flags.less ├── bootstrap-formhelpers-googlefonts.less ├── bootstrap-formhelpers-mixins.less ├── bootstrap-formhelpers-number.less ├── bootstrap-formhelpers-selectbox.less ├── bootstrap-formhelpers-slider.less ├── bootstrap-formhelpers-timepicker.less ├── bootstrap-formhelpers-variables.less └── bootstrap-formhelpers.less ├── package-lock.json └── package.json /.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: TdGiaWg5Yf8V3dgRpmsf8wDfAIAjbjyfd -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | nbproject/* 3 | node_modules 4 | coverage 5 | dev-select.html 6 | dev-countries.html 7 | dev-datepicker.html 8 | dev-timepicker.html 9 | dev-timezone.html 10 | dev-currencies.html 11 | dev-slider.html 12 | dev-colorpicker.html 13 | dev-phone.html 14 | dev-number.html 15 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | before_script: 5 | - npm install -g grunt-cli 6 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | /* jshint node: true */ 2 | 3 | module.exports = function(grunt) { 4 | 'use strict'; 5 | 6 | // Project configuration. 7 | grunt.initConfig({ 8 | 9 | // Metadata. 10 | pkg: grunt.file.readJSON('package.json'), 11 | banner: '/**\n' + 12 | '* <%= pkg.name %>.js v<%= pkg.version %> by @vincentlamanna\n' + 13 | '* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + 14 | '* <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' + 15 | '*/\n', 16 | jqueryCheck: 'if (!jQuery) { throw new Error(\"Bootstrap Form Helpers requires jQuery\"); }\n\n', 17 | 18 | // Task configuration. 19 | clean: { 20 | dist: ['dist'] 21 | }, 22 | 23 | jshint: { 24 | options: { 25 | jshintrc: 'js/.jshintrc' 26 | }, 27 | gruntfile: { 28 | src: 'Gruntfile.js' 29 | }, 30 | src: { 31 | src: [ 32 | 'js/lang/*/*.js', 33 | 'js/*.js' 34 | ] 35 | }, 36 | test: { 37 | src: [ 38 | 'js/tests/unit/*.js' 39 | ] 40 | } 41 | }, 42 | 43 | concat: { 44 | options: { 45 | banner: '<%= banner %><%= jqueryCheck %>', 46 | stripBanners: false 47 | }, 48 | bootstrapformhelpers: { 49 | src: [ 50 | 'js/lang/en_US/*.js', 51 | 'js/*.js' 52 | ], 53 | dest: 'dist/js/<%= pkg.name %>.js' 54 | } 55 | }, 56 | 57 | uglify: { 58 | options: { 59 | banner: '<%= banner %>' 60 | }, 61 | bootstrapformhelpers: { 62 | src: ['<%= concat.bootstrapformhelpers.dest %>'], 63 | dest: 'dist/js/<%= pkg.name %>.min.js' 64 | } 65 | }, 66 | 67 | recess: { 68 | options: { 69 | compile: true, 70 | banner: '<%= banner %>' 71 | }, 72 | bootstrap: { 73 | src: ['less/bootstrap-formhelpers.less'], 74 | dest: 'dist/css/<%= pkg.name %>.css' 75 | }, 76 | min: { 77 | options: { 78 | compress: true 79 | }, 80 | src: ['less/bootstrap-formhelpers.less'], 81 | dest: 'dist/css/<%= pkg.name %>.min.css' 82 | } 83 | }, 84 | 85 | copy: { 86 | img: { 87 | expand: true, 88 | src: ['img/*'], 89 | dest: 'dist/' 90 | } 91 | }, 92 | 93 | karma: { 94 | test: { 95 | configFile: 'karma.conf.js' 96 | } 97 | }, 98 | 99 | coveralls: { 100 | options: { 101 | coverage_dir: 'coverage' 102 | } 103 | }, 104 | 105 | watch: { 106 | src: { 107 | files: '<%= jshint.src.src %>', 108 | tasks: ['jshint:src', 'qunit'] 109 | }, 110 | test: { 111 | files: '<%= jshint.test.src %>', 112 | tasks: ['jshint:test', 'qunit'] 113 | }, 114 | recess: { 115 | files: 'less/*.less', 116 | tasks: ['recess'] 117 | } 118 | } 119 | }); 120 | 121 | 122 | // These plugins provide necessary tasks. 123 | grunt.loadNpmTasks('grunt-contrib-clean'); 124 | grunt.loadNpmTasks('grunt-contrib-concat'); 125 | grunt.loadNpmTasks('grunt-contrib-copy'); 126 | grunt.loadNpmTasks('grunt-contrib-jshint'); 127 | grunt.loadNpmTasks('grunt-contrib-qunit'); 128 | grunt.loadNpmTasks('grunt-contrib-uglify'); 129 | grunt.loadNpmTasks('grunt-contrib-watch'); 130 | grunt.loadNpmTasks('grunt-recess'); 131 | grunt.loadNpmTasks('grunt-karma'); 132 | grunt.loadNpmTasks('grunt-karma-coveralls'); 133 | 134 | var testSubtasks = ['dist-css', 'jshint', 'karma']; 135 | // Only push to coveralls under Travis 136 | if (process.env.TRAVIS) { 137 | if ((process.env.TRAVIS_REPO_SLUG === 'vlamanna/BootstrapFormHelpers' && process.env.TRAVIS_PULL_REQUEST === 'false')) { 138 | testSubtasks.push('coveralls'); 139 | } 140 | } 141 | grunt.registerTask('test', testSubtasks); 142 | 143 | // JS distribution task. 144 | grunt.registerTask('dist-js', ['concat', 'uglify']); 145 | 146 | // CSS distribution task. 147 | grunt.registerTask('dist-css', ['recess']); 148 | 149 | // Img distribution task. 150 | grunt.registerTask('dist-img', ['copy']); 151 | 152 | // Full distribution task. 153 | grunt.registerTask('dist', ['clean', 'dist-css', 'dist-img', 'dist-js']); 154 | 155 | // Default task. 156 | grunt.registerTask('default', ['test', 'dist']); 157 | }; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BootstrapFormHelpers 2 | ==================== 3 | http://bootstrapformhelpers.com 4 | 5 | BootstrapFormHelpers is a set of javascript to help you create user friendly forms, created and maintained by [Vincent Lamanna](http://twitter.com/vincentlamanna). 6 | [![endorse](http://api.coderwall.com/vlamanna/endorsecount.png)](http://coderwall.com/vlamanna) 7 | 8 | 9 | [![Build Status](https://travis-ci.org/vlamanna/BootstrapFormHelpers.png?branch=master)](https://travis-ci.org/vlamanna/BootstrapFormHelpers) 10 | 11 | [![Dependency Status](https://gemnasium.com/vlamanna/BootstrapFormHelpers.png)](https://gemnasium.com/vlamanna/BootstrapFormHelpers) 12 | 13 | [![Code Climate](https://codeclimate.com/repos/52843de889af7e5235035103/badges/47cfbe2b2dbfbf1cdf3d/gpa.png)](https://codeclimate.com/repos/52843de889af7e5235035103/feed) 14 | 15 | [![Coverage Status](https://coveralls.io/repos/vlamanna/BootstrapFormHelpers/badge.png)](https://coveralls.io/r/vlamanna/BootstrapFormHelpers) 16 | 17 | 18 | Quick start 19 | ----------- 20 | 21 | Clone the repo, `git clone git://github.com/vlamanna/BootstrapFormHelpers.git`, or [download the latest release](https://github.com/vlamanna/BootstrapFormHelpers/zipball/master). 22 | 23 | 24 | 25 | Bug tracker 26 | ----------- 27 | 28 | [![Stories in Ready](https://badge.waffle.io/vlamanna/BootstrapFormHelpers.png)](http://waffle.io/vlamanna/BootstrapFormHelpers) 29 | 30 | Have a bug? Please create an issue here on GitHub that conforms with [necolas's guidelines](https://github.com/necolas/issue-guidelines). 31 | 32 | https://github.com/vlamanna/BootstrapFormHelpers/issues 33 | 34 | 35 | 36 | Authors 37 | ------- 38 | 39 | **Vincent Lamanna** 40 | 41 | + http://twitter.com/vincentlamanna 42 | + http://github.com/vlamanna 43 | 44 | 45 | 46 | Copyright and license 47 | --------------------- 48 | 49 | Copyright 2012 Vincent Lamanna, Inc. 50 | 51 | Licensed under the Apache License, Version 2.0 (the "License"); 52 | you may not use this work except in compliance with the License. 53 | You may obtain a copy of the License in the LICENSE file, or at: 54 | 55 | http://www.apache.org/licenses/LICENSE-2.0 56 | 57 | Unless required by applicable law or agreed to in writing, software 58 | distributed under the License is distributed on an "AS IS" BASIS, 59 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 60 | See the License for the specific language governing permissions and 61 | limitations under the License. 62 | -------------------------------------------------------------------------------- /bfh-colorpicker.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-colorpicker", 3 | "title": "Bootstrap Form Helpers Color Picker", 4 | "description": "Color Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "colorpicker", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/colorpicker/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-country.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-country", 3 | "title": "Bootstrap Form Helpers Country Picker", 4 | "description": "Country Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "country", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/country/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-currency.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-currency", 3 | "title": "Bootstrap Form Helpers Currency Picker", 4 | "description": "Currency Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "currency", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/currency/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-datepicker.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-datepicker", 3 | "title": "Bootstrap Form Helpers Date Picker", 4 | "description": "Date Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "datepicker", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/datepicker/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-font.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-font", 3 | "title": "Bootstrap Form Helpers Font Picker", 4 | "description": "Font Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "font", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/font/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-fontsize.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-fontsize", 3 | "title": "Bootstrap Form Helpers Font Size Picker", 4 | "description": "Font Size Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "fontsize", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/fontsize/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-googlefont.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-googlefont", 3 | "title": "Bootstrap Form Helpers Google Font Picker", 4 | "description": "Google Font Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "googlefont", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/googlefont/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-language.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-language", 3 | "title": "Bootstrap Form Helpers Language Picker", 4 | "description": "Language Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "language", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/language/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-number.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-number", 3 | "title": "Bootstrap Form Helpers Number Input", 4 | "description": "Number Input jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "number", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/number/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-phone.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-phone", 3 | "title": "Bootstrap Form Helpers Phone Input", 4 | "description": "Phone Input jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "phone", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/phone/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-select.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-select", 3 | "title": "Bootstrap Form Helpers Select", 4 | "description": "Select jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "select", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/select/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-slider.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-slider", 3 | "title": "Bootstrap Form Helpers Slider", 4 | "description": "Slider jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "slider", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/slider/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-state.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-state", 3 | "title": "Bootstrap Form Helpers State Picker", 4 | "description": "State Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "state", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/state/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-timepicker.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-timepicker", 3 | "title": "Bootstrap Form Helpers Time Picker", 4 | "description": "Time Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "timepicker", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/timepicker/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bfh-timezone.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bfh-timezone", 3 | "title": "Bootstrap Form Helpers Timezone Picker", 4 | "description": "Timezone Picker jQuery plugin for Bootstrap.", 5 | "keywords": [ 6 | "ui", 7 | "jquery", 8 | "form", 9 | "input", 10 | "timezone", 11 | "bootstrap" 12 | ], 13 | "version": "2.3.0", 14 | "author": { 15 | "name": "Vincent Lamanna", 16 | "url": "http://vincentlamanna.com" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache License v2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "bugs": "https://github.com/vlamanna/BootstrapFormHelpers/issues", 25 | "homepage": "http://bootstrapformhelpers.com", 26 | "docs": "http://bootstrapformhelpers.com/timezone/", 27 | "download": "https://github.com/vlamanna/BootstrapFormHelpers/archive/master.zip", 28 | "dependencies": { 29 | "jquery": ">=1.7" 30 | } 31 | } -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-formhelpers", 3 | "version": "2.3.0", 4 | "homepage": "http://bootstrapformhelpers.com", 5 | "authors": [ 6 | "Vincent Lamanna " 7 | ], 8 | "description": "A collection of jQuery plugins for Bootstrap.", 9 | "dependencies": { 10 | "bootstrap": "3.0.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vlamanna/bootstrapformhelpers", 3 | "description": "A collection of jQuery plugins for Bootstrap.", 4 | "homepage": "http://bootstrapformhelpers.com", 5 | "version": "2.3.0", 6 | "authors": [ 7 | { 8 | "name": "Vincent Lamanna", 9 | "email": "v@cakemail.com" 10 | } 11 | ], 12 | "support": { 13 | "issues": "https://github.com/vlamanna/BootstrapFormHelpers/issues" 14 | }, 15 | "repositories": [ 16 | { 17 | "type": "package", 18 | "package": { 19 | "name": "jquery/jquery", 20 | "version": "1.10.2", 21 | "dist": { 22 | "url": "http://code.jquery.com/jquery-1.10.2.min.js", 23 | "type": "file" 24 | } 25 | } 26 | } 27 | ], 28 | "require": { 29 | "jquery/jquery": "1.10.*", 30 | "twitter/bootstrap": "3.0.*" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dist/img/bootstrap-formhelpers-countries.flags-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Go Squared Ltd. http://www.gosquared.com/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /dist/img/bootstrap-formhelpers-countries.flags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/dist/img/bootstrap-formhelpers-countries.flags.png -------------------------------------------------------------------------------- /dist/img/bootstrap-formhelpers-currencies.flags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/dist/img/bootstrap-formhelpers-currencies.flags.png -------------------------------------------------------------------------------- /dist/img/bootstrap-formhelpers-googlefonts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/dist/img/bootstrap-formhelpers-googlefonts.png -------------------------------------------------------------------------------- /examples.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bootstrap Form Helpers Basic Template 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
22 |
23 |
24 |

Bootstrap Form Helpers Examples

25 |
26 |

Time Picker

27 |
28 |
29 | 30 |
31 |

Select

32 |
33 |
Option 1
34 |
Option 2
35 |
Option 3
36 |
Option 4
37 |
Option 5
38 |
Option 6
39 |
Option 7
40 |
Option 8
41 |
Option 9
42 |
Option 10
43 |
Option 11
44 |
Option 12
45 |
Option 13
46 |
Option 14
47 |
Option 15
48 |
49 |
50 |

Color Picker

51 |
52 |
53 |
54 |

Date Picker

55 |
56 |
57 |
58 |

Time Picker

59 |
60 |
61 |
62 |

Slider

63 |
64 |
65 |
66 |

Phone Input

67 |
68 | 69 |
70 |
71 |

Number Input

72 |
73 | 74 |
75 |
76 |

Country Picker

77 |
78 | 79 |
80 |
81 |

State Picker

82 |
83 |
84 |
85 |

Currency Picker

86 |
87 | 88 |
89 |
90 |

Language Picker

91 |
92 | 93 |
94 |
95 |

Timezone Picker

96 |
97 | 98 |
99 |
100 |

Google Font Picker

101 |
102 | 103 |
104 |
105 |

Font Picker

106 |
107 | 108 |
109 |
110 |

Font Size Picker

111 |
112 | 113 |
114 |
115 |
116 |
117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 132 | 133 | -------------------------------------------------------------------------------- /img/bootstrap-formhelpers-countries.flags-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Go Squared Ltd. http://www.gosquared.com/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /img/bootstrap-formhelpers-countries.flags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/img/bootstrap-formhelpers-countries.flags.png -------------------------------------------------------------------------------- /img/bootstrap-formhelpers-currencies.flags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/img/bootstrap-formhelpers-currencies.flags.png -------------------------------------------------------------------------------- /img/bootstrap-formhelpers-googlefonts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/img/bootstrap-formhelpers-googlefonts.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bootstrap Form Helpers Basic Template 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 |
22 |
23 |
24 |

Bootstrap Form Helpers Basic Template

25 |
26 |
27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /js/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | // JSHint Default Configuration File (as on JSHint website) 3 | // See http://jshint.com/docs/ for more details 4 | 5 | "maxerr" : 50, // {int} Maximum error before stopping 6 | 7 | // Enforcing 8 | "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) 9 | "camelcase" : false, // true: Identifiers must be in camelCase 10 | "curly" : true, // true: Require {} for every new block or scope 11 | "eqeqeq" : true, // true: Require triple equals (===) for comparison 12 | "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() 13 | "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` 14 | "indent" : 2, // {int} Number of spaces to use for indentation 15 | "latedef" : true, // true: Require variables/functions to be defined before being used 16 | "newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()` 17 | "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` 18 | "noempty" : true, // true: Prohibit use of empty blocks 19 | "nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment) 20 | "plusplus" : true, // true: Prohibit use of `++` & `--` 21 | "quotmark" : "single", // Quotation mark consistency: 22 | // false : do nothing (default) 23 | // true : ensure whatever is used is consistent 24 | // "single" : require single quotes 25 | // "double" : require double quotes 26 | "undef" : false, // true: Require all non-global variables to be declared (prevents global leaks) 27 | "unused" : false, // true: Require all defined variables be used 28 | "strict" : true, // true: Requires all functions run in ES5 Strict Mode 29 | "trailing" : true, // true: Prohibit trailing whitespaces 30 | "maxparams" : 4, // {int} Max number of formal params allowed per function 31 | "maxdepth" : 5, // {int} Max depth of nested blocks (within functions) 32 | "maxstatements" : false, // {int} Max number statements per function 33 | "maxcomplexity" : false, // {int} Max cyclomatic complexity per function 34 | "maxlen" : false, // {int} Max number of characters per line 35 | 36 | // Relaxing 37 | "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) 38 | "boss" : false, // true: Tolerate assignments where comparisons would be expected 39 | "debug" : false, // true: Allow debugger statements e.g. browser breakpoints. 40 | "eqnull" : false, // true: Tolerate use of `== null` 41 | "es5" : false, // true: Allow ES5 syntax (ex: getters and setters) 42 | "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`) 43 | "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) 44 | // (ex: `for each`, multiple try/catch, function expression…) 45 | "evil" : false, // true: Tolerate use of `eval` and `new Function()` 46 | "expr" : true, // true: Tolerate `ExpressionStatement` as Programs 47 | "funcscope" : false, // true: Tolerate defining variables inside control statements" 48 | "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict') 49 | "iterator" : false, // true: Tolerate using the `__iterator__` property 50 | "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block 51 | "laxbreak" : false, // true: Tolerate possibly unsafe line breakings 52 | "laxcomma" : false, // true: Tolerate comma-first style coding 53 | "loopfunc" : false, // true: Tolerate functions being defined in loops 54 | "multistr" : false, // true: Tolerate multi-line strings 55 | "proto" : false, // true: Tolerate using the `__proto__` property 56 | "scripturl" : false, // true: Tolerate script-targeted URLs 57 | "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment 58 | "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` 59 | "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation 60 | "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` 61 | "validthis" : false, // true: Tolerate using this in a non-constructor function 62 | 63 | // Environments 64 | "browser" : true, // Web Browser (window, document, etc) 65 | "couch" : false, // CouchDB 66 | "devel" : true, // Development/debugging (alert, confirm, etc) 67 | "dojo" : false, // Dojo Toolkit 68 | "jquery" : false, // jQuery 69 | "mootools" : false, // MooTools 70 | "node" : false, // Node.js 71 | "nonstandard" : false, // Widely adopted globals (escape, unescape, etc) 72 | "prototypejs" : false, // Prototype and Scriptaculous 73 | "rhino" : false, // Rhino 74 | "worker" : false, // Web Workers 75 | "wsh" : false, // Windows Scripting Host 76 | "yui" : false, // Yahoo User Interface 77 | 78 | // Legacy 79 | "nomen" : false, // true: Prohibit dangling `_` in variables 80 | "onevar" : false, // true: Allow only one `var` statement per function 81 | "passfail" : false, // true: Stop on first error 82 | "white" : false, // true: Check against strict whitespace and indentation rules 83 | 84 | // Custom Globals 85 | "globals" : {} // additional predefined global variables 86 | } 87 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-countries.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | +function ($) { 21 | 22 | 'use strict'; 23 | 24 | 25 | /* COUNTRIES CLASS DEFINITION 26 | * ====================== */ 27 | 28 | var BFHCountries = function (element, options) { 29 | this.options = $.extend({}, $.fn.bfhcountries.defaults, options); 30 | this.$element = $(element); 31 | 32 | if (this.$element.is('select')) { 33 | this.addCountries(); 34 | } 35 | 36 | if (this.$element.hasClass('bfh-selectbox')) { 37 | this.addBootstrapCountries(); 38 | } 39 | 40 | if (this.$element.is('span')) { 41 | this.displayCountry(); 42 | } 43 | }; 44 | 45 | BFHCountries.prototype = { 46 | 47 | constructor: BFHCountries, 48 | 49 | getCountries: function() { 50 | var country, 51 | countries; 52 | 53 | if (this.options.available) { 54 | if (typeof this.options.available === 'string') { 55 | countries = []; 56 | 57 | this.options.available = this.options.available.split(','); 58 | 59 | for (country in BFHCountriesList) { 60 | if (BFHCountriesList.hasOwnProperty(country)) { 61 | if ($.inArray(country, this.options.available) >= 0) { 62 | countries[country] = BFHCountriesList[country]; 63 | } 64 | } 65 | } 66 | } else { 67 | countries = this.options.available; 68 | } 69 | 70 | return countries; 71 | } else { 72 | return BFHCountriesList; 73 | } 74 | }, 75 | 76 | addCountries: function () { 77 | var value, 78 | country, 79 | countries; 80 | 81 | value = this.options.country; 82 | countries = this.getCountries(); 83 | 84 | this.$element.html(''); 85 | 86 | if (this.options.blank === true) { 87 | this.$element.append(''); 88 | } 89 | 90 | for (country in countries) { 91 | if (countries.hasOwnProperty(country)) { 92 | this.$element.append(''); 93 | } 94 | } 95 | 96 | this.$element.val(value); 97 | }, 98 | 99 | addBootstrapCountries: function() { 100 | var $input, 101 | $toggle, 102 | $options, 103 | value, 104 | country, 105 | countries; 106 | 107 | value = this.options.country; 108 | $input = this.$element.find('input[type="hidden"]'); 109 | $toggle = this.$element.find('.bfh-selectbox-option'); 110 | $options = this.$element.find('[role=option]'); 111 | countries = this.getCountries(); 112 | 113 | $options.html(''); 114 | 115 | if (this.options.blank === true) { 116 | $options.append('
  • '); 117 | } 118 | 119 | for (country in countries) { 120 | if (countries.hasOwnProperty(country)) { 121 | if (this.options.flags === true) { 122 | $options.append('
  • ' + countries[country] + '
  • '); 123 | } else { 124 | $options.append('
  • ' + countries[country] + '
  • '); 125 | } 126 | } 127 | } 128 | 129 | this.$element.val(value); 130 | }, 131 | 132 | displayCountry: function () { 133 | var value; 134 | 135 | value = this.options.country; 136 | 137 | if (this.options.flags === true) { 138 | this.$element.html(' ' + BFHCountriesList[value]); 139 | } else { 140 | this.$element.html(BFHCountriesList[value]); 141 | } 142 | } 143 | 144 | }; 145 | 146 | 147 | /* COUNTRY PLUGIN DEFINITION 148 | * ======================= */ 149 | 150 | var old = $.fn.bfhcountries; 151 | 152 | $.fn.bfhcountries = function (option) { 153 | return this.each(function () { 154 | var $this, 155 | data, 156 | options; 157 | 158 | $this = $(this); 159 | data = $this.data('bfhcountries'); 160 | options = typeof option === 'object' && option; 161 | 162 | if (!data) { 163 | $this.data('bfhcountries', (data = new BFHCountries(this, options))); 164 | } 165 | if (typeof option === 'string') { 166 | data[option].call($this); 167 | } 168 | }); 169 | }; 170 | 171 | $.fn.bfhcountries.Constructor = BFHCountries; 172 | 173 | $.fn.bfhcountries.defaults = { 174 | country: '', 175 | available: '', 176 | flags: false, 177 | blank: true 178 | }; 179 | 180 | 181 | /* COUNTRY NO CONFLICT 182 | * ========================== */ 183 | 184 | $.fn.bfhcountries.noConflict = function () { 185 | $.fn.bfhcountries = old; 186 | return this; 187 | }; 188 | 189 | 190 | /* COUNTRY DATA-API 191 | * ============== */ 192 | 193 | $(document).ready( function () { 194 | $('form select.bfh-countries, span.bfh-countries, div.bfh-countries').each(function () { 195 | var $countries; 196 | 197 | $countries = $(this); 198 | 199 | if ($countries.hasClass('bfh-selectbox')) { 200 | $countries.bfhselectbox($countries.data()); 201 | } 202 | $countries.bfhcountries($countries.data()); 203 | }); 204 | }); 205 | 206 | }(window.jQuery); 207 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-currencies.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-currencies.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2013 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | +function ($) { 21 | 22 | 'use strict'; 23 | 24 | 25 | /* COUNTRIES CLASS DEFINITION 26 | * ====================== */ 27 | 28 | var BFHCurrencies = function (element, options) { 29 | this.options = $.extend({}, $.fn.bfhcurrencies.defaults, options); 30 | this.$element = $(element); 31 | 32 | if (this.$element.is('select')) { 33 | this.addCurrencies(); 34 | } 35 | 36 | if (this.$element.hasClass('bfh-selectbox')) { 37 | this.addBootstrapCurrencies(); 38 | } 39 | 40 | if (this.$element.is('span')) { 41 | this.displayCurrency(); 42 | } 43 | }; 44 | 45 | BFHCurrencies.prototype = { 46 | 47 | constructor: BFHCurrencies, 48 | 49 | getCurrencies: function () { 50 | var currency, 51 | currencies; 52 | 53 | if (this.options.available) { 54 | currencies = []; 55 | 56 | this.options.available = this.options.available.split(','); 57 | 58 | for (currency in BFHCurrenciesList) { 59 | if (BFHCurrenciesList.hasOwnProperty(currency)) { 60 | if ($.inArray(currency, this.options.available) >= 0) { 61 | currencies[currency] = BFHCurrenciesList[currency]; 62 | } 63 | } 64 | } 65 | 66 | return currencies; 67 | } else { 68 | return BFHCurrenciesList; 69 | } 70 | }, 71 | 72 | addCurrencies: function () { 73 | var value, 74 | currency, 75 | currencies; 76 | 77 | value = this.options.currency; 78 | currencies = this.getCurrencies(); 79 | 80 | this.$element.html(''); 81 | 82 | if (this.options.blank === true) { 83 | this.$element.append(''); 84 | } 85 | 86 | for (currency in currencies) { 87 | if (currencies.hasOwnProperty(currency)) { 88 | this.$element.append(''); 89 | } 90 | } 91 | 92 | this.$element.val(value); 93 | }, 94 | 95 | 96 | addBootstrapCurrencies: function() { 97 | var $input, 98 | $toggle, 99 | $options, 100 | value, 101 | currency, 102 | currencies, 103 | flag; 104 | 105 | value = this.options.currency; 106 | $input = this.$element.find('input[type="hidden"]'); 107 | $toggle = this.$element.find('.bfh-selectbox-option'); 108 | $options = this.$element.find('[role=option]'); 109 | currencies = this.getCurrencies(); 110 | 111 | $options.html(''); 112 | 113 | if (this.options.blank === true) { 114 | $options.append('
  • '); 115 | } 116 | 117 | for (currency in currencies) { 118 | if (currencies.hasOwnProperty(currency)) { 119 | if (this.options.flags === true) { 120 | if (currencies[currency].currencyflag) { 121 | flag = currencies[currency].currencyflag; 122 | } else { 123 | flag = currency.substr(0,2); 124 | } 125 | $options.append('
  • ' + currencies[currency].label + '
  • '); 126 | } else { 127 | $options.append('
  • ' + currencies[currency].label + '
  • '); 128 | } 129 | } 130 | } 131 | 132 | this.$element.val(value); 133 | }, 134 | 135 | displayCurrency: function () { 136 | var value, 137 | flag; 138 | 139 | value = this.options.currency; 140 | 141 | if (this.options.flags === true) { 142 | if (BFHCurrenciesList[value].currencyflag) { 143 | flag = BFHCurrenciesList[value].currencyflag; 144 | } else { 145 | flag = value.substr(0,2); 146 | } 147 | this.$element.html(' ' + BFHCurrenciesList[value].label); 148 | } else { 149 | this.$element.html(BFHCurrenciesList[value].label); 150 | } 151 | } 152 | 153 | }; 154 | 155 | 156 | /* CURRENCY PLUGIN DEFINITION 157 | * ======================= */ 158 | 159 | var old = $.fn.bfhcurrencies; 160 | 161 | $.fn.bfhcurrencies = function (option) { 162 | return this.each(function () { 163 | var $this, 164 | data, 165 | options; 166 | 167 | $this = $(this); 168 | data = $this.data('bfhcurrencies'); 169 | options = typeof option === 'object' && option; 170 | 171 | if (!data) { 172 | $this.data('bfhcurrencies', (data = new BFHCurrencies(this, options))); 173 | } 174 | if (typeof option === 'string') { 175 | data[option].call($this); 176 | } 177 | }); 178 | }; 179 | 180 | $.fn.bfhcurrencies.Constructor = BFHCurrencies; 181 | 182 | $.fn.bfhcurrencies.defaults = { 183 | currency: '', 184 | available: '', 185 | flags: false, 186 | blank: true 187 | }; 188 | 189 | 190 | /* CURRENCY NO CONFLICT 191 | * ========================== */ 192 | 193 | $.fn.bfhcurrencies.noConflict = function () { 194 | $.fn.bfhcurrencies = old; 195 | return this; 196 | }; 197 | 198 | 199 | /* CURRENCY DATA-API 200 | * ============== */ 201 | 202 | $(document).ready( function () { 203 | $('form select.bfh-currencies, span.bfh-currencies, div.bfh-currencies').each(function () { 204 | var $currencies; 205 | 206 | $currencies = $(this); 207 | 208 | if ($currencies.hasClass('bfh-selectbox')) { 209 | $currencies.bfhselectbox($currencies.data()); 210 | } 211 | $currencies.bfhcurrencies($currencies.data()); 212 | }); 213 | }); 214 | 215 | 216 | }(window.jQuery); 217 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-fonts.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-fonts.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * contributed by Aaron Collegeman, Squidoo, 2012 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ========================================================== */ 20 | 21 | +function ($) { 22 | 23 | 'use strict'; 24 | 25 | 26 | /* FONTS CLASS DEFINITION 27 | * ====================== */ 28 | 29 | var BFHFonts = function (element, options) { 30 | this.options = $.extend({}, $.fn.bfhfonts.defaults, options); 31 | this.$element = $(element); 32 | 33 | if (this.$element.is('select')) { 34 | this.addFonts(); 35 | } 36 | 37 | if (this.$element.hasClass('bfh-selectbox')) { 38 | this.addBootstrapFonts(); 39 | } 40 | }; 41 | 42 | BFHFonts.prototype = { 43 | 44 | constructor: BFHFonts, 45 | 46 | getFonts: function() { 47 | var font, 48 | fonts; 49 | 50 | if (this.options.available) { 51 | fonts = []; 52 | 53 | this.options.available = this.options.available.split(','); 54 | 55 | for (font in BFHFontsList) { 56 | if (BFHFontsList.hasOwnProperty(font)) { 57 | if ($.inArray(font, this.options.available) >= 0) { 58 | fonts[font] = BFHFontsList[font]; 59 | } 60 | } 61 | } 62 | 63 | return fonts; 64 | } else { 65 | return BFHFontsList; 66 | } 67 | }, 68 | 69 | addFonts: function () { 70 | var value, 71 | font, 72 | fonts; 73 | 74 | value = this.options.font; 75 | fonts = this.getFonts(); 76 | 77 | this.$element.html(''); 78 | 79 | if (this.options.blank === true) { 80 | this.$element.append(''); 81 | } 82 | 83 | for (font in fonts) { 84 | if (fonts.hasOwnProperty(font)) { 85 | this.$element.append(''); 86 | } 87 | } 88 | 89 | this.$element.val(value); 90 | }, 91 | 92 | addBootstrapFonts: function() { 93 | var $input, 94 | $toggle, 95 | $options, 96 | value, 97 | font, 98 | fonts; 99 | 100 | value = this.options.font; 101 | $input = this.$element.find('input[type="hidden"]'); 102 | $toggle = this.$element.find('.bfh-selectbox-option'); 103 | $options = this.$element.find('[role=option]'); 104 | fonts = this.getFonts(); 105 | 106 | $options.html(''); 107 | 108 | if (this.options.blank === true) { 109 | $options.append('
  • '); 110 | } 111 | 112 | for (font in fonts) { 113 | if (fonts.hasOwnProperty(font)) { 114 | $options.append('
  • ' + font + '
  • '); 115 | } 116 | } 117 | 118 | this.$element.val(value); 119 | } 120 | 121 | }; 122 | 123 | 124 | /* FONTS PLUGIN DEFINITION 125 | * ======================= */ 126 | 127 | var old = $.fn.bfhfonts; 128 | 129 | $.fn.bfhfonts = function (option) { 130 | return this.each(function () { 131 | var $this, 132 | data, 133 | options; 134 | 135 | $this = $(this); 136 | data = $this.data('bfhfonts'); 137 | options = typeof option === 'object' && option; 138 | 139 | if (!data) { 140 | $this.data('bfhfonts', (data = new BFHFonts(this, options))); 141 | } 142 | if (typeof option === 'string') { 143 | data[option].call($this); 144 | } 145 | }); 146 | }; 147 | 148 | $.fn.bfhfonts.Constructor = BFHFonts; 149 | 150 | $.fn.bfhfonts.defaults = { 151 | font: '', 152 | available: '', 153 | blank: true 154 | }; 155 | 156 | 157 | /* FONTS NO CONFLICT 158 | * ========================== */ 159 | 160 | $.fn.bfhfonts.noConflict = function () { 161 | $.fn.bfhfonts = old; 162 | return this; 163 | }; 164 | 165 | 166 | /* FONTS DATA-API 167 | * ============== */ 168 | 169 | $(document).ready( function () { 170 | $('form select.bfh-fonts, span.bfh-fonts, div.bfh-fonts').each(function () { 171 | var $fonts; 172 | 173 | $fonts = $(this); 174 | 175 | if ($fonts.hasClass('bfh-selectbox')) { 176 | $fonts.bfhselectbox($fonts.data()); 177 | } 178 | $fonts.bfhfonts($fonts.data()); 179 | }); 180 | }); 181 | 182 | }(window.jQuery); 183 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-fontsizes.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-fontsizes.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * contributed by Aaron Collegeman, Squidoo, 2012 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ========================================================== */ 20 | 21 | +function ($) { 22 | 23 | 'use strict'; 24 | 25 | 26 | /* FONTSIZES CLASS DEFINITION 27 | * ====================== */ 28 | 29 | var BFHFontSizes = function (element, options) { 30 | this.options = $.extend({}, $.fn.bfhfontsizes.defaults, options); 31 | this.$element = $(element); 32 | 33 | if (this.$element.is('select')) { 34 | this.addFontSizes(); 35 | } 36 | 37 | if (this.$element.hasClass('bfh-selectbox')) { 38 | this.addBootstrapFontSizes(); 39 | } 40 | }; 41 | 42 | BFHFontSizes.prototype = { 43 | 44 | constructor: BFHFontSizes, 45 | 46 | getFontsizes: function() { 47 | var fontsize, 48 | fontsizes; 49 | 50 | if (this.options.available) { 51 | fontsizes = []; 52 | 53 | this.options.available = this.options.available.split(','); 54 | 55 | for (fontsize in BFHFontSizesList) { 56 | if (BFHFontSizesList.hasOwnProperty(fontsize)) { 57 | if ($.inArray(fontsize, this.options.available) >= 0) { 58 | fontsizes[fontsize] = BFHFontSizesList[fontsize]; 59 | } 60 | } 61 | } 62 | 63 | return fontsizes; 64 | } else { 65 | return BFHFontSizesList; 66 | } 67 | }, 68 | 69 | addFontSizes: function () { 70 | var value, 71 | fontsize, 72 | fontsizes; 73 | 74 | value = this.options.fontsize; 75 | fontsizes = this.getFontsizes(); 76 | 77 | this.$element.html(''); 78 | 79 | if (this.options.blank === true) { 80 | this.$element.append(''); 81 | } 82 | 83 | for (fontsize in fontsizes) { 84 | if (fontsizes.hasOwnProperty(fontsize)) { 85 | this.$element.append(''); 86 | } 87 | } 88 | 89 | this.$element.val(value); 90 | }, 91 | 92 | addBootstrapFontSizes: function() { 93 | var $input, 94 | $toggle, 95 | $options, 96 | value, 97 | fontsize, 98 | fontsizes; 99 | 100 | value = this.options.fontsize; 101 | $input = this.$element.find('input[type="hidden"]'); 102 | $toggle = this.$element.find('.bfh-selectbox-option'); 103 | $options = this.$element.find('[role=option]'); 104 | fontsizes = this.getFontsizes(); 105 | 106 | $options.html(''); 107 | 108 | if (this.options.blank === true) { 109 | $options.append('
  • '); 110 | } 111 | 112 | for (fontsize in fontsizes) { 113 | if (fontsizes.hasOwnProperty(fontsize)) { 114 | $options.append('
  • ' + fontsizes[fontsize] + '
  • '); 115 | } 116 | } 117 | 118 | this.$element.val(value); 119 | } 120 | 121 | }; 122 | 123 | 124 | /* FONTSIZES PLUGIN DEFINITION 125 | * ======================= */ 126 | 127 | var old = $.fn.bfhfontsizes; 128 | 129 | $.fn.bfhfontsizes = function (option) { 130 | return this.each(function () { 131 | var $this, 132 | data, 133 | options; 134 | 135 | $this = $(this); 136 | data = $this.data('bfhfontsizes'); 137 | options = typeof option === 'object' && option; 138 | 139 | if (!data) { 140 | $this.data('bfhfontsizes', (data = new BFHFontSizes(this, options))); 141 | } 142 | if (typeof option === 'string') { 143 | data[option].call($this); 144 | } 145 | }); 146 | }; 147 | 148 | $.fn.bfhfontsizes.Constructor = BFHFontSizes; 149 | 150 | $.fn.bfhfontsizes.defaults = { 151 | fontsize: '', 152 | available: '', 153 | blank: true 154 | }; 155 | 156 | 157 | /* FONTSIZES NO CONFLICT 158 | * ========================== */ 159 | 160 | $.fn.bfhfontsizes.noConflict = function () { 161 | $.fn.bfhfontsizes = old; 162 | return this; 163 | }; 164 | 165 | 166 | /* FONTSIZES DATA-API 167 | * ============== */ 168 | 169 | $(document).ready( function () { 170 | $('form select.bfh-fontsizes, span.bfh-fontsizes, div.bfh-fontsizes').each(function () { 171 | var $fontSizes; 172 | 173 | $fontSizes = $(this); 174 | 175 | if ($fontSizes.hasClass('bfh-selectbox')) { 176 | $fontSizes.bfhselectbox($fontSizes.data()); 177 | } 178 | $fontSizes.bfhfontsizes($fontSizes.data()); 179 | }); 180 | }); 181 | 182 | }(window.jQuery); 183 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-googlefonts.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-googlefonts.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * contributed by Aaron Collegeman, Squidoo, 2012 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * ========================================================== */ 20 | 21 | +function ($) { 22 | 23 | 'use strict'; 24 | 25 | 26 | /* GOOGLE FONTS CLASS DEFINITION 27 | * ====================== */ 28 | 29 | var BFHGoogleFonts = function (element, options) { 30 | this.options = $.extend({}, $.fn.bfhgooglefonts.defaults, options); 31 | this.$element = $(element); 32 | 33 | if (this.$element.is('select')) { 34 | this.addFonts(); 35 | } 36 | 37 | if (this.$element.hasClass('bfh-selectbox')) { 38 | this.addBootstrapFonts(); 39 | } 40 | }; 41 | 42 | BFHGoogleFonts.prototype = { 43 | 44 | constructor: BFHGoogleFonts, 45 | 46 | getFonts: function() { 47 | var font, 48 | fonts; 49 | 50 | fonts = []; 51 | 52 | if (this.options.subset) { 53 | for (font in BFHGoogleFontsList.items) { 54 | if (BFHGoogleFontsList.items.hasOwnProperty(font)) { 55 | if ($.inArray(this.options.subset, BFHGoogleFontsList.items[font].subsets) >= 0) { 56 | fonts[BFHGoogleFontsList.items[font].family] = { 57 | 'info': BFHGoogleFontsList.items[font], 58 | 'index': parseInt(font, 10) 59 | }; 60 | } 61 | } 62 | } 63 | } else if (this.options.available) { 64 | this.options.available = this.options.available.split(','); 65 | 66 | for (font in BFHGoogleFontsList.items) { 67 | if (BFHGoogleFontsList.items.hasOwnProperty(font)) { 68 | if ($.inArray(BFHGoogleFontsList.items[font].family, this.options.available) >= 0) { 69 | fonts[BFHGoogleFontsList.items[font].family] = { 70 | 'info': BFHGoogleFontsList.items[font], 71 | 'index': parseInt(font, 10) 72 | }; 73 | } 74 | } 75 | } 76 | } else { 77 | for (font in BFHGoogleFontsList.items) { 78 | if (BFHGoogleFontsList.items.hasOwnProperty(font)) { 79 | fonts[BFHGoogleFontsList.items[font].family] = { 80 | 'info': BFHGoogleFontsList.items[font], 81 | 'index': parseInt(font, 10) 82 | }; 83 | } 84 | } 85 | } 86 | 87 | return fonts; 88 | }, 89 | 90 | addFonts: function () { 91 | var value, 92 | font, 93 | fonts; 94 | 95 | value = this.options.font; 96 | fonts = this.getFonts(); 97 | 98 | this.$element.html(''); 99 | 100 | if (this.options.blank === true) { 101 | this.$element.append(''); 102 | } 103 | 104 | for (font in fonts) { 105 | if (fonts.hasOwnProperty(font)) { 106 | this.$element.append(''); 107 | } 108 | } 109 | 110 | this.$element.val(value); 111 | }, 112 | 113 | addBootstrapFonts: function() { 114 | var $input, 115 | $toggle, 116 | $options, 117 | value, 118 | font, 119 | fonts; 120 | 121 | value = this.options.font; 122 | $input = this.$element.find('input[type="hidden"]'); 123 | $toggle = this.$element.find('.bfh-selectbox-option'); 124 | $options = this.$element.find('[role=option]'); 125 | fonts = this.getFonts(); 126 | 127 | $options.html(''); 128 | 129 | if (this.options.blank === true) { 130 | $options.append('
  • '); 131 | } 132 | 133 | for (font in fonts) { 134 | if (fonts.hasOwnProperty(font)) { 135 | $options.append('
  • ' + fonts[font].info.family + '
  • '); 136 | } 137 | } 138 | 139 | this.$element.val(value); 140 | } 141 | 142 | }; 143 | 144 | 145 | /* GOOGLE FONTS PLUGIN DEFINITION 146 | * ======================= */ 147 | 148 | var old = $.fn.bfhgooglefonts; 149 | 150 | $.fn.bfhgooglefonts = function (option) { 151 | return this.each(function () { 152 | var $this, 153 | data, 154 | options; 155 | 156 | $this = $(this); 157 | data = $this.data('bfhgooglefonts'); 158 | options = typeof option === 'object' && option; 159 | 160 | if (!data) { 161 | $this.data('bfhgooglefonts', (data = new BFHGoogleFonts(this, options))); 162 | } 163 | if (typeof option === 'string') { 164 | data[option].call($this); 165 | } 166 | }); 167 | }; 168 | 169 | $.fn.bfhgooglefonts.Constructor = BFHGoogleFonts; 170 | 171 | $.fn.bfhgooglefonts.defaults = { 172 | font: '', 173 | available: '', 174 | subset: '', 175 | blank: true 176 | }; 177 | 178 | 179 | /* GOOGLE FONTS NO CONFLICT 180 | * ========================== */ 181 | 182 | $.fn.bfhgooglefonts.noConflict = function () { 183 | $.fn.bfhgooglefonts = old; 184 | return this; 185 | }; 186 | 187 | 188 | /* GOOGLE FONTS DATA-API 189 | * ============== */ 190 | 191 | $(document).ready( function () { 192 | $('form select.bfh-googlefonts, span.bfh-googlefonts, div.bfh-googlefonts').each(function () { 193 | var $googleFonts; 194 | 195 | $googleFonts = $(this); 196 | 197 | if ($googleFonts.hasClass('bfh-selectbox')) { 198 | $googleFonts.bfhselectbox($googleFonts.data()); 199 | } 200 | $googleFonts.bfhgooglefonts($googleFonts.data()); 201 | }); 202 | }); 203 | 204 | }(window.jQuery); 205 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-slider.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-slider.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | +function ($) { 21 | 22 | 'use strict'; 23 | 24 | 25 | /* BFHSLIDER CLASS DEFINITION 26 | * ========================= */ 27 | 28 | var BFHSlider = function (element, options) { 29 | this.options = $.extend({}, $.fn.bfhslider.defaults, options); 30 | this.$element = $(element); 31 | 32 | this.initSlider(); 33 | }; 34 | 35 | BFHSlider.prototype = { 36 | 37 | constructor: BFHSlider, 38 | 39 | initSlider: function() { 40 | if (this.options.value === '') { 41 | this.options.value = this.options.min; 42 | } 43 | 44 | this.$element.html( 45 | '' + 46 | '
    ' 47 | ); 48 | 49 | this.$element.find('input[type="hidden"]').val(this.options.value); 50 | this.updateHandle(this.options.value); 51 | 52 | this.$element 53 | .on('mousedown.bfhslider.data-api', BFHSlider.prototype.mouseDown); 54 | }, 55 | 56 | updateHandle: function(val) { 57 | var positionX, 58 | width, 59 | left, 60 | span; 61 | 62 | span = this.options.max - this.options.min; 63 | width = this.$element.width(); 64 | left = this.$element.position().left; 65 | 66 | positionX = Math.round((val - this.options.min) * (width - 20) / span + left); 67 | 68 | this.$element.find('.bfh-slider-handle').css('left', positionX + 'px'); 69 | this.$element.find('.bfh-slider-value').text(val); 70 | }, 71 | 72 | updateVal: function(positionX) { 73 | var width, 74 | left, 75 | right, 76 | val, 77 | span; 78 | 79 | span = this.options.max - this.options.min; 80 | width = this.$element.width(); 81 | left = this.$element.offset().left; 82 | right = left + width; 83 | 84 | if (positionX < left) { 85 | positionX = left; 86 | } 87 | 88 | if (positionX + 20 > right) { 89 | positionX = right; 90 | } 91 | 92 | val = (positionX - left) / width; 93 | val = Math.ceil(val * span + this.options.min); 94 | 95 | if (val === this.$element.val()) { 96 | return true; 97 | } 98 | 99 | this.$element.val(val); 100 | 101 | this.$element.trigger('change.bfhslider'); 102 | }, 103 | 104 | mouseDown: function() { 105 | var $this; 106 | 107 | $this = $(this); 108 | 109 | if ($this.is('.disabled') || $this.attr('disabled') !== undefined) { 110 | return true; 111 | } 112 | 113 | $(document) 114 | .on('mousemove.bfhslider.data-api', {slider: $this}, BFHSlider.prototype.mouseMove) 115 | .one('mouseup.bfhslider.data-api touchend.bfhslider.data-api', {slider: $this}, BFHSlider.prototype.mouseUp); 116 | }, 117 | 118 | mouseMove: function(e) { 119 | var $this; 120 | 121 | $this = e.data.slider; 122 | 123 | $this.data('bfhslider').updateVal(e.pageX); 124 | }, 125 | 126 | mouseUp: function(e) { 127 | var $this; 128 | 129 | $this = e.data.slider; 130 | 131 | $this.data('bfhslider').updateVal(e.pageX); 132 | 133 | $(document).off('mousemove.bfhslider.data-api touchmove.bfhslider.data-api'); 134 | } 135 | }; 136 | 137 | 138 | /* SLIDER PLUGIN DEFINITION 139 | * ========================== */ 140 | 141 | var old = $.fn.bfhslider; 142 | 143 | $.fn.bfhslider = function (option) { 144 | return this.each(function () { 145 | var $this, 146 | data, 147 | options; 148 | 149 | $this = $(this); 150 | data = $this.data('bfhslider'); 151 | options = typeof option === 'object' && option; 152 | this.type = 'bfhslider'; 153 | 154 | if (!data) { 155 | $this.data('bfhslider', (data = new BFHSlider(this, options))); 156 | } 157 | if (typeof option === 'string') { 158 | data[option].call($this); 159 | } 160 | }); 161 | }; 162 | 163 | $.fn.bfhslider.Constructor = BFHSlider; 164 | 165 | $.fn.bfhslider.defaults = { 166 | name: '', 167 | value: '', 168 | min: 0, 169 | max: 100 170 | }; 171 | 172 | 173 | /* SLIDER NO CONFLICT 174 | * ========================== */ 175 | 176 | $.fn.bfhslider.noConflict = function () { 177 | $.fn.bfhslider = old; 178 | return this; 179 | }; 180 | 181 | 182 | /* SLIDER VALHOOKS 183 | * ========================== */ 184 | 185 | var origHook; 186 | if ($.valHooks.div){ 187 | origHook = $.valHooks.div; 188 | } 189 | $.valHooks.div = { 190 | get: function(el) { 191 | if ($(el).hasClass('bfh-slider')) { 192 | return $(el).find('input[type="hidden"]').val(); 193 | } else if (origHook) { 194 | return origHook.get(el); 195 | } 196 | }, 197 | set: function(el, val) { 198 | if ($(el).hasClass('bfh-slider')) { 199 | $(el).find('input[type="hidden"]').val(val); 200 | $(el).data('bfhslider').updateHandle(val); 201 | } else if (origHook) { 202 | return origHook.set(el,val); 203 | } 204 | } 205 | }; 206 | 207 | 208 | /* SLIDER DATA-API 209 | * ============== */ 210 | 211 | $(document).ready( function () { 212 | $('div.bfh-slider').each(function () { 213 | var $slider; 214 | 215 | $slider = $(this); 216 | 217 | $slider.bfhslider($slider.data()); 218 | }); 219 | }); 220 | 221 | }(window.jQuery); 222 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-states.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-states.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | +function ($) { 21 | 22 | 'use strict'; 23 | 24 | 25 | /* STATES CLASS DEFINITION 26 | * ====================== */ 27 | 28 | var BFHStates = function (element, options) { 29 | this.options = $.extend({}, $.fn.bfhstates.defaults, options); 30 | this.$element = $(element); 31 | 32 | if (this.$element.is('select')) { 33 | this.addStates(); 34 | } 35 | 36 | if (this.$element.hasClass('bfh-selectbox')) { 37 | this.addBootstrapStates(); 38 | } 39 | 40 | if (this.$element.is('span')) { 41 | this.displayState(); 42 | } 43 | }; 44 | 45 | BFHStates.prototype = { 46 | 47 | constructor: BFHStates, 48 | 49 | addStates: function () { 50 | var country, 51 | $country; 52 | 53 | country = this.options.country; 54 | 55 | if (country !== '') { 56 | $country = $(document).find('#' + country); 57 | 58 | if ($country.length !== 0) { 59 | country = $country.val(); 60 | $country.on('change', {state: this}, this.changeCountry); 61 | } 62 | } 63 | 64 | this.loadStates(country); 65 | }, 66 | 67 | loadStates: function (country) { 68 | var value, 69 | state; 70 | 71 | value = this.options.state; 72 | 73 | this.$element.html(''); 74 | 75 | if (this.options.blank === true) { 76 | this.$element.append(''); 77 | } 78 | 79 | for (state in BFHStatesList[country]) { 80 | if (BFHStatesList[country].hasOwnProperty(state)) { 81 | this.$element.append(''); 82 | } 83 | } 84 | 85 | this.$element.val(value); 86 | }, 87 | 88 | changeCountry: function (e) { 89 | var $this, 90 | $state, 91 | country; 92 | 93 | $this = $(this); 94 | $state = e.data.state; 95 | country = $this.val(); 96 | 97 | $state.loadStates(country); 98 | }, 99 | 100 | addBootstrapStates: function() { 101 | var country, 102 | $country; 103 | 104 | country = this.options.country; 105 | 106 | if (country !== '') { 107 | $country = $(document).find('#' + country); 108 | 109 | if ($country.length !== 0) { 110 | country = $country.find('input[type="hidden"]').val(); 111 | $country.on('change.bfhselectbox', {state: this}, this.changeBootstrapCountry); 112 | } 113 | } 114 | 115 | this.loadBootstrapStates(country); 116 | }, 117 | 118 | loadBootstrapStates: function(country) { 119 | var $input, 120 | $toggle, 121 | $options, 122 | stateCode, 123 | stateName, 124 | state; 125 | 126 | stateCode = this.options.state; 127 | stateName = ''; 128 | $input = this.$element.find('input[type="hidden"]'); 129 | $toggle = this.$element.find('.bfh-selectbox-option'); 130 | $options = this.$element.find('[role=option]'); 131 | 132 | $options.html(''); 133 | 134 | if (this.options.blank === true) { 135 | $options.append('
  • '); 136 | } 137 | 138 | for (state in BFHStatesList[country]) { 139 | if (BFHStatesList[country].hasOwnProperty(state)) { 140 | $options.append('
  • ' + BFHStatesList[country][state].name + '
  • '); 141 | 142 | if (BFHStatesList[country][state].code === stateCode) { 143 | stateName = BFHStatesList[country][state].name; 144 | } 145 | } 146 | } 147 | 148 | this.$element.val(stateCode); 149 | }, 150 | 151 | changeBootstrapCountry: function (e) { 152 | var $this, 153 | $state, 154 | country; 155 | 156 | $this = $(this); 157 | $state = e.data.state; 158 | country = $this.val(); 159 | 160 | $state.loadBootstrapStates(country); 161 | }, 162 | 163 | displayState: function () { 164 | var country, 165 | stateCode, 166 | stateName, 167 | state; 168 | 169 | country = this.options.country; 170 | stateCode = this.options.state; 171 | stateName = ''; 172 | 173 | for (state in BFHStatesList[country]) { 174 | if (BFHStatesList[country].hasOwnProperty(state)) { 175 | if (BFHStatesList[country][state].code === stateCode) { 176 | stateName = BFHStatesList[country][state].name; 177 | break; 178 | } 179 | } 180 | } 181 | this.$element.html(stateName); 182 | } 183 | 184 | }; 185 | 186 | 187 | /* STATES PLUGIN DEFINITION 188 | * ======================= */ 189 | 190 | var old = $.fn.bfhstates; 191 | 192 | $.fn.bfhstates = function (option) { 193 | return this.each(function () { 194 | var $this, 195 | data, 196 | options; 197 | 198 | $this = $(this); 199 | data = $this.data('bfhstates'); 200 | options = typeof option === 'object' && option; 201 | 202 | if (!data) { 203 | $this.data('bfhstates', (data = new BFHStates(this, options))); 204 | } 205 | if (typeof option === 'string') { 206 | data[option].call($this); 207 | } 208 | }); 209 | }; 210 | 211 | $.fn.bfhstates.Constructor = BFHStates; 212 | 213 | $.fn.bfhstates.defaults = { 214 | country: '', 215 | state: '', 216 | blank: true 217 | }; 218 | 219 | 220 | /* STATES NO CONFLICT 221 | * ========================== */ 222 | 223 | $.fn.bfhstates.noConflict = function () { 224 | $.fn.bfhstates = old; 225 | return this; 226 | }; 227 | 228 | 229 | /* STATES DATA-API 230 | * ============== */ 231 | 232 | $(document).ready( function () { 233 | $('form select.bfh-states, span.bfh-states, div.bfh-states').each(function () { 234 | var $states; 235 | 236 | $states = $(this); 237 | 238 | if ($states.hasClass('bfh-selectbox')) { 239 | $states.bfhselectbox($states.data()); 240 | } 241 | $states.bfhstates($states.data()); 242 | }); 243 | }); 244 | 245 | }(window.jQuery); 246 | -------------------------------------------------------------------------------- /js/bootstrap-formhelpers-timezones.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-timezones.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | +function ($) { 21 | 22 | 'use strict'; 23 | 24 | 25 | /* TIMEZONES CLASS DEFINITION 26 | * ====================== */ 27 | 28 | var BFHTimezones = function (element, options) { 29 | this.options = $.extend({}, $.fn.bfhtimezones.defaults, options); 30 | this.$element = $(element); 31 | 32 | if (this.$element.is('select')) { 33 | this.addTimezones(); 34 | } 35 | 36 | if (this.$element.hasClass('bfh-selectbox')) { 37 | this.addBootstrapTimezones(); 38 | } 39 | }; 40 | 41 | BFHTimezones.prototype = { 42 | 43 | constructor: BFHTimezones, 44 | 45 | addTimezones: function () { 46 | var country, 47 | $country; 48 | 49 | country = this.options.country; 50 | 51 | if (country !== '') { 52 | $country = $(document).find('#' + country); 53 | 54 | if ($country.length !== 0) { 55 | country = $country.val(); 56 | $country.on('change', {timezone: this}, this.changeCountry); 57 | } 58 | } 59 | 60 | this.loadTimezones(country); 61 | }, 62 | 63 | loadTimezones: function (country) { 64 | var value, 65 | timezone; 66 | 67 | value = this.options.timezone; 68 | 69 | this.$element.html(''); 70 | 71 | if (this.options.blank === true) { 72 | this.$element.append(''); 73 | } 74 | 75 | for (timezone in BFHTimezonesList[country]) { 76 | if (BFHTimezonesList[country].hasOwnProperty(timezone)) { 77 | this.$element.append(''); 78 | } 79 | } 80 | 81 | this.$element.val(value); 82 | }, 83 | 84 | changeCountry: function (e) { 85 | var $this, 86 | $timezone, 87 | country; 88 | 89 | $this = $(this); 90 | $timezone = e.data.timezone; 91 | country = $this.val(); 92 | 93 | $timezone.loadTimezones(country); 94 | }, 95 | 96 | addBootstrapTimezones: function() { 97 | var country, 98 | $country; 99 | 100 | country = this.options.country; 101 | 102 | if (country !== '') { 103 | $country = $(document).find('#' + country); 104 | 105 | if ($country.length !== 0) { 106 | country = $country.find('input[type="hidden"]').val(); 107 | $country.on('change.bfhselectbox', {timezone: this}, this.changeBootstrapCountry); 108 | } 109 | } 110 | 111 | this.loadBootstrapTimezones(country); 112 | }, 113 | 114 | loadBootstrapTimezones: function(country) { 115 | var $input, 116 | $toggle, 117 | $options, 118 | value, 119 | timezone; 120 | 121 | value = this.options.timezone; 122 | $input = this.$element.find('input[type="hidden"]'); 123 | $toggle = this.$element.find('.bfh-selectbox-option'); 124 | $options = this.$element.find('[role=option]'); 125 | 126 | $options.html(''); 127 | 128 | if (this.options.blank === true) { 129 | $options.append('
  • '); 130 | } 131 | 132 | for (timezone in BFHTimezonesList[country]) { 133 | if (BFHTimezonesList[country].hasOwnProperty(timezone)) { 134 | $options.append('
  • ' + BFHTimezonesList[country][timezone] + '
  • '); 135 | } 136 | } 137 | 138 | this.$element.val(value); 139 | }, 140 | 141 | changeBootstrapCountry: function (e) { 142 | var $this, 143 | $timezone, 144 | country; 145 | 146 | $this = $(this); 147 | $timezone = e.data.timezone; 148 | country = $this.val(); 149 | 150 | $timezone.loadBootstrapTimezones(country); 151 | } 152 | 153 | }; 154 | 155 | 156 | /* TIMEZONES PLUGIN DEFINITION 157 | * ======================= */ 158 | 159 | var old = $.fn.bfhtimezones; 160 | 161 | $.fn.bfhtimezones = function (option) { 162 | return this.each(function () { 163 | var $this, 164 | data, 165 | options; 166 | 167 | $this = $(this); 168 | data = $this.data('bfhtimezones'); 169 | options = typeof option === 'object' && option; 170 | 171 | if (!data) { 172 | $this.data('bfhtimezones', (data = new BFHTimezones(this, options))); 173 | } 174 | if (typeof option === 'string') { 175 | data[option].call($this); 176 | } 177 | }); 178 | }; 179 | 180 | $.fn.bfhtimezones.Constructor = BFHTimezones; 181 | 182 | $.fn.bfhtimezones.defaults = { 183 | country: '', 184 | timezone: '', 185 | blank: true 186 | }; 187 | 188 | 189 | /* TIMEZONES NO CONFLICT 190 | * ========================== */ 191 | 192 | $.fn.bfhtimezones.noConflict = function () { 193 | $.fn.bfhtimezones = old; 194 | return this; 195 | }; 196 | 197 | 198 | /* TIMEZONES DATA-API 199 | * ============== */ 200 | 201 | $(document).ready( function () { 202 | $('form select.bfh-timezones, div.bfh-timezones').each(function () { 203 | var $timezones; 204 | 205 | $timezones = $(this); 206 | 207 | if ($timezones.hasClass('bfh-selectbox')) { 208 | $timezones.bfhselectbox($timezones.data()); 209 | } 210 | $timezones.bfhtimezones($timezones.data()); 211 | }); 212 | }); 213 | 214 | }(window.jQuery); 215 | -------------------------------------------------------------------------------- /js/lang/ar/bootstrap-formhelpers-countries.ar.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.ar.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AZ' : 'أذربيجان', 22 | 'TF' : 'أراض فرنسية جنوبية', 23 | 'AM' : 'أرمينيا', 24 | 'AW' : 'أروبا', 25 | 'AU' : 'أستراليا', 26 | 'AF' : 'أفغانستان', 27 | 'AL' : 'ألبانيا', 28 | 'DE' : 'ألمانيا', 29 | 'AQ' : 'أنتاركتيكا', 30 | 'AG' : 'أنتيغا وباربودا', 31 | 'AI' : 'أنجويلا', 32 | 'AD' : 'أندورا', 33 | 'AO' : 'أنغولا', 34 | 'UZ' : 'أوزبكستان', 35 | 'UG' : 'أوغندا', 36 | 'UA' : 'أوكرانيا', 37 | 'IS' : 'أيسلندا', 38 | 'ET' : 'إثيوبيا', 39 | 'ER' : 'إرتريا', 40 | 'ES' : 'إسبانيا', 41 | 'EE' : 'إستونيا', 42 | 'IL' : 'إسرائيل', 43 | 'IO' : 'إقليم المحيط الهندي البريطاني', 44 | 'ID' : 'إندونسيا', 45 | 'IR' : 'إيران', 46 | 'IT' : 'إيطاليا', 47 | 'AR' : 'الأرجنتين', 48 | 'JO' : 'الأردن', 49 | 'UY' : 'الأوروغواي', 50 | 'EC' : 'الإكوادور', 51 | 'AE' : 'الإمارات', 52 | 'PY' : 'الباراغواي', 53 | 'BH' : 'البحرين', 54 | 'BR' : 'البرازيل', 55 | 'PT' : 'البرتغال', 56 | 'BS' : 'البهاما', 57 | 'BA' : 'البوسنة والهرسك', 58 | 'PE' : 'البيرو', 59 | 'CZ' : 'التشيك', 60 | 'ME' : 'الجبل الأسود', 61 | 'DZ' : 'الجزائر', 62 | 'VG' : 'الجزر العذراء البريطانية', 63 | 'EH' : 'الجمهورية العربية الصحراوية الديمقراطية', 64 | 'DK' : 'الدانمارك', 65 | 'CV' : 'الرأس الأخضر', 66 | 'SA' : 'السعودية', 67 | 'SV' : 'السلفادور', 68 | 'SN' : 'السنغال', 69 | 'SD' : 'السودان', 70 | 'SE' : 'السويد', 71 | 'SO' : 'الصومال', 72 | 'CN' : 'الصين', 73 | 'IQ' : 'العراق', 74 | 'GA' : 'الغابون', 75 | 'VA' : 'الفاتيكان', 76 | 'PH' : 'الفلبين', 77 | 'CM' : 'الكاميرون', 78 | 'KW' : 'الكويت', 79 | 'MV' : 'المالديف', 80 | 'HU' : 'المجر', 81 | 'MA' : 'المغرب', 82 | 'MX' : 'المكسيك', 83 | 'GB' : 'المملكة المتحدة', 84 | 'NO' : 'النرويج', 85 | 'AT' : 'النمسا', 86 | 'NP' : 'النيبال', 87 | 'NE' : 'النيجر', 88 | 'IN' : 'الهند', 89 | 'US' : 'الولايات المتحدة', 90 | 'JP' : 'اليابان', 91 | 'YE' : 'اليمن', 92 | 'GR' : 'اليونان', 93 | 'PG' : 'بابوا غينيا الجديدة', 94 | 'BB' : 'باربادوس', 95 | 'PK' : 'باكستان', 96 | 'PW' : 'بالاو', 97 | 'BN' : 'بروناي', 98 | 'BE' : 'بلجيكا', 99 | 'BG' : 'بلغاريا', 100 | 'BZ' : 'بليز', 101 | 'BD' : 'بنغلاديش', 102 | 'PA' : 'بنما', 103 | 'BJ' : 'بنين', 104 | 'BT' : 'بوتان', 105 | 'BW' : 'بوتسوانا', 106 | 'PR' : 'بورتوريكو', 107 | 'BF' : 'بوركينا فاسو', 108 | 'MM' : 'بورما', 109 | 'BI' : 'بوروندي', 110 | 'PL' : 'بولندا', 111 | 'BO' : 'بوليفيا', 112 | 'PF' : 'بولينزيا الفرنسية', 113 | 'TH' : 'تايلند', 114 | 'TW' : 'تايوان', 115 | 'TM' : 'تركمنستان', 116 | 'TR' : 'تركيا', 117 | 'TT' : 'ترينيداد وتوباغو', 118 | 'TD' : 'تشاد', 119 | 'CL' : 'تشيلي', 120 | 'TZ' : 'تنزانيا', 121 | 'TG' : 'توغو', 122 | 'TV' : 'توفالو', 123 | 'TK' : 'توكلو', 124 | 'TO' : 'تونجا', 125 | 'TN' : 'تونس', 126 | 'TP' : 'تيمور الشرقية', 127 | 'JM' : 'جاميكا', 128 | 'GI' : 'جبل طارق', 129 | 'GL' : 'جرينلاند', 130 | 'AN' : 'جزر الأنتيل الهولندية', 131 | 'VI' : 'جزر العذراء الأمريكية', 132 | 'KM' : 'جزر القمر', 133 | 'UM' : 'جزر الولايات المتحدة الهامشية', 134 | 'BM' : 'جزر برمودا', 135 | 'PN' : 'جزر بيتكيرن', 136 | 'TC' : 'جزر توركس وكايكوس', 137 | 'SB' : 'جزر سليمان', 138 | 'FO' : 'جزر فارو', 139 | 'FK' : 'جزر فوكلاند', 140 | 'KY' : 'جزر كايمان', 141 | 'CK' : 'جزر كوك', 142 | 'CC' : 'جزر كوكس', 143 | 'MH' : 'جزر مارشال', 144 | 'MP' : 'جزر ماريانا الشمالية', 145 | 'BV' : 'جزيرة بوفيه', 146 | 'CX' : 'جزيرة عيد الميلاد', 147 | 'HM' : 'جزيرة هيرد وجزر ماكدونالد', 148 | 'CF' : 'جمهورية أفريقيا الوسطى', 149 | 'IE' : 'جمهورية أيرلندا', 150 | 'DO' : 'جمهورية الدومنيكان', 151 | 'CD' : 'جمهورية الكونغو الديمقراطية', 152 | 'RS' : 'جمهورية صربيا', 153 | 'MK' : 'جمهورية مقدونيا', 154 | 'ZA' : 'جنوب أفريقيا', 155 | 'GP' : 'جوادلوب', 156 | 'GE' : 'جورجيا', 157 | 'GS' : 'جورجيا الجنوبية وجزر ساندويتش الجنوبية', 158 | 'DJ' : 'جيبوتي', 159 | 'DM' : 'دومينيكا', 160 | 'RW' : 'رواندا', 161 | 'RU' : 'روسيا', 162 | 'BY' : 'روسيا البيضاء', 163 | 'RO' : 'رومانيا', 164 | 'RE' : 'ريونيون', 165 | 'ZM' : 'زامبيا', 166 | 'ZW' : 'زمبابوي', 167 | 'CI' : 'ساحل العاج', 168 | 'WS' : 'ساموا', 169 | 'AS' : 'ساموا الأمريكية', 170 | 'PM' : 'سان بيار وميكلون', 171 | 'SM' : 'سان مارينو', 172 | 'VC' : 'سانت فنسينت والجرينادينز', 173 | 'KN' : 'سانت كيتس ونيفيس', 174 | 'LC' : 'سانت لوسيا', 175 | 'SH' : 'سانت هيلينا', 176 | 'ST' : 'ساو تومي وبرينسيب', 177 | 'LK' : 'سريلانكا', 178 | 'SK' : 'سلوفاكيا', 179 | 'SI' : 'سلوفينيا', 180 | 'SG' : 'سنغافورا', 181 | 'SZ' : 'سوازيلند', 182 | 'SJ' : 'سوالبارد و یان ماین', 183 | 'SY' : 'سوريا', 184 | 'SR' : 'سورينام', 185 | 'CH' : 'سويسرا', 186 | 'SL' : 'سيراليون', 187 | 'SC' : 'سيشيل', 188 | 'TJ' : 'طاجيكستان', 189 | 'OM' : 'عمان', 190 | 'GM' : 'غامبيا', 191 | 'GH' : 'غانا', 192 | 'GD' : 'غرينادا', 193 | 'GT' : 'غواتيمالا', 194 | 'GU' : 'غوام', 195 | 'GY' : 'غويانا', 196 | 'GF' : 'غويانا الفرنسية', 197 | 'GN' : 'غينيا', 198 | 'GQ' : 'غينيا الاستوائية', 199 | 'GW' : 'غينيا بيساو', 200 | 'VU' : 'فانواتو', 201 | 'FR' : 'فرنسا', 202 | 'PS' : 'فلسطين', 203 | 'VE' : 'فنزويلا', 204 | 'FI' : 'فنلندا', 205 | 'VN' : 'فيتنام', 206 | 'FJ' : 'فيجي', 207 | 'CY' : 'قبرص', 208 | 'KG' : 'قرغيزستان', 209 | 'QA' : 'قطر', 210 | 'KZ' : 'كازاخستان', 211 | 'NC' : 'كاليدونيا الجديدة', 212 | 'HR' : 'كرواتيا', 213 | 'KH' : 'كمبوديا', 214 | 'CA' : 'كندا', 215 | 'CU' : 'كوبا', 216 | 'KR' : 'كوريا الجنوبية', 217 | 'KP' : 'كوريا الشمالية', 218 | 'CR' : 'كوستاريكا', 219 | 'CO' : 'كولومبيا', 220 | 'KI' : 'كيريباس', 221 | 'KE' : 'كينيا', 222 | 'LV' : 'لاتفيا', 223 | 'LA' : 'لاوس', 224 | 'LB' : 'لبنان', 225 | 'LU' : 'لوكسمبورغ', 226 | 'LY' : 'ليبيا', 227 | 'LR' : 'ليبيريا', 228 | 'LT' : 'ليتوانيا', 229 | 'LI' : 'ليختنشتاين', 230 | 'LS' : 'ليسوتو', 231 | 'MQ' : 'مارتينيك', 232 | 'MO' : 'ماكاو', 233 | 'MT' : 'مالطا', 234 | 'ML' : 'مالي', 235 | 'MY' : 'ماليزيا', 236 | 'YT' : 'مايوت', 237 | 'MG' : 'مدغشقر', 238 | 'EG' : 'مصر', 239 | 'MW' : 'ملاوي', 240 | 'MN' : 'منغوليا', 241 | 'MR' : 'موريتانيا', 242 | 'MU' : 'موريشيوس', 243 | 'MZ' : 'موزمبيق', 244 | 'MD' : 'مولدافيا', 245 | 'MC' : 'موناكو', 246 | 'MS' : 'مونتسرات', 247 | 'NA' : 'ناميبيا', 248 | 'NR' : 'ناورو', 249 | 'NF' : 'نورفولك', 250 | 'NG' : 'نيجيريا', 251 | 'NI' : 'نيكاراجوا', 252 | 'NZ' : 'نيوزيلندا', 253 | 'NU' : 'نييوي', 254 | 'HT' : 'هايتي', 255 | 'HN' : 'هندوراس', 256 | 'NL' : 'هولندا', 257 | 'HK' : 'هونغ كونغ', 258 | 'WF' : 'والس وفوتونا', 259 | 'FM' : 'ولايات ميكرونيسيا المتحدة' 260 | }; 261 | -------------------------------------------------------------------------------- /js/lang/de_DE/bootstrap-formhelpers-countries.de_DE.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.de_DE.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AF': 'Afghanistan', 22 | 'EG': 'Ägypten', 23 | 'AX': 'Aland', 24 | 'AL': 'Albanien', 25 | 'DZ': 'Algerien', 26 | 'AS': 'Amerikanisch-Samoa', 27 | 'VI': 'Amerikanische Jungferninseln', 28 | 'AD': 'Andorra', 29 | 'AO': 'Angola', 30 | 'AI': 'Anguilla', 31 | 'AQ': 'Antarktis', 32 | 'AG': 'Antigua und Barbuda', 33 | 'GQ': 'Äquatorialguinea', 34 | 'AR': 'Argentinien', 35 | 'AM': 'Armenien', 36 | 'AW': 'Aruba', 37 | 'AC': 'Ascension', 38 | 'AZ': 'Aserbaidschan', 39 | 'ET': 'Äthiopien', 40 | 'AU': 'Australien', 41 | 'BS': 'Bahamas', 42 | 'BH': 'Bahrain', 43 | 'BD': 'Bangladesch', 44 | 'BB': 'Barbados', 45 | 'BE': 'Belgien', 46 | 'BZ': 'Belize', 47 | 'BJ': 'Benin', 48 | 'BM': 'Bermuda', 49 | 'BT': 'Bhutan', 50 | 'BO': 'Bolivien', 51 | 'BA': 'Bosnien und Herzegowina', 52 | 'BW': 'Botswana', 53 | 'BV': 'Bouvetinsel', 54 | 'BR': 'Brasilien', 55 | 'BN': 'Brunei', 56 | 'BG': 'Bulgarien', 57 | 'BF': 'Burkina Faso', 58 | 'BI': 'Burundi', 59 | 'CL': 'Chile', 60 | 'CN': 'China', 61 | 'CK': 'Cookinseln', 62 | 'CR': 'Costa Rica', 63 | 'CI': 'Cote d\'Ivoire', 64 | 'DK': 'Dänemark', 65 | 'DE': 'Deutschland', 66 | 'DG': 'Diego Garcia', 67 | 'DM': 'Dominica', 68 | 'DO': 'Dominikanische Republik', 69 | 'DJ': 'Dschibuti', 70 | 'EC': 'Ecuador', 71 | 'SV': 'El Salvador', 72 | 'ER': 'Eritrea', 73 | 'EE': 'Estland', 74 | 'EU': 'Europäische Union', 75 | 'FK': 'Falklandinseln', 76 | 'FO': 'Färöer', 77 | 'FJ': 'Fidschi', 78 | 'FI': 'Finnland', 79 | 'FR': 'Frankreich', 80 | 'GF': 'Französisch-Guayana', 81 | 'PF': 'Französisch-Polynesien', 82 | 'GA': 'Gabun', 83 | 'GM': 'Gambia', 84 | 'GE': 'Georgien', 85 | 'GH': 'Ghana', 86 | 'GI': 'Gibraltar', 87 | 'GD': 'Grenada', 88 | 'GR': 'Griechenland', 89 | 'GL': 'Grönland', 90 | 'GB': 'Großbritannien', 91 | 'CP': 'Guadeloupe', 92 | 'GU': 'Guam', 93 | 'GT': 'Guatemala', 94 | 'GG': 'Guernsey', 95 | 'GN': 'Guinea', 96 | 'GW': 'Guinea-Bissau', 97 | 'GY': 'Guyana', 98 | 'HT': 'Haiti', 99 | 'HM': 'Heard und McDonaldinseln', 100 | 'HN': 'Honduras', 101 | 'HK': 'Hongkong', 102 | 'IN': 'Indien', 103 | 'ID': 'Indonesien', 104 | 'IQ': 'Irak', 105 | 'IR': 'Iran', 106 | 'IE': 'Irland', 107 | 'IS': 'Island', 108 | 'IL': 'Israel', 109 | 'IT': 'Italien', 110 | 'JM': 'Jamaika', 111 | 'JP': 'Japan', 112 | 'YE': 'Jemen', 113 | 'JE': 'Jersey', 114 | 'JO': 'Jordanien', 115 | 'KY': 'Kaimaninseln', 116 | 'KH': 'Kambodscha', 117 | 'CM': 'Kamerun', 118 | 'CA': 'Kanada', 119 | 'IC': 'Kanarische Inseln', 120 | 'CV': 'Kap Verde', 121 | 'KZ': 'Kasachstan', 122 | 'QA': 'Katar', 123 | 'KE': 'Kenia', 124 | 'KG': 'Kirgisistan', 125 | 'KI': 'Kiribati', 126 | 'CC': 'Kokosinseln', 127 | 'CO': 'Kolumbien', 128 | 'KM': 'Komoren', 129 | 'CG': 'Kongo', 130 | 'HR': 'Kroatien', 131 | 'CU': 'Kuba', 132 | 'KW': 'Kuwait', 133 | 'LA': 'Laos', 134 | 'LS': 'Lesotho', 135 | 'LV': 'Lettland', 136 | 'LB': 'Libanon', 137 | 'LR': 'Liberia', 138 | 'LY': 'Libyen', 139 | 'LI': 'Liechtenstein', 140 | 'LT': 'Litauen', 141 | 'LU': 'Luxemburg', 142 | 'MO': 'Macao', 143 | 'MG': 'Madagaskar', 144 | 'MW': 'Malawi', 145 | 'MY': 'Malaysia', 146 | 'MV': 'Malediven', 147 | 'ML': 'Mali', 148 | 'MT': 'Malta', 149 | 'MA': 'Marokko', 150 | 'MH': 'Marshallinseln', 151 | 'MQ': 'Martinique', 152 | 'MR': 'Mauretanien', 153 | 'MU': 'Mauritius', 154 | 'YT': 'Mayotte', 155 | 'MK': 'Mazedonien', 156 | 'MX': 'Mexiko', 157 | 'FM': 'Mikronesien', 158 | 'MD': 'Moldawien', 159 | 'MC': 'Monaco', 160 | 'MN': 'Mongolei', 161 | 'MS': 'Montserrat', 162 | 'MZ': 'Mosambik', 163 | 'MM': 'Myanmar', 164 | 'NA': 'Namibia', 165 | 'NR': 'Nauru', 166 | 'NP': 'Nepal', 167 | 'NC': 'Neukaledonien', 168 | 'NZ': 'Neuseeland', 169 | 'NT': 'Neutrale Zone', 170 | 'NI': 'Nicaragua', 171 | 'NL': 'Niederlande', 172 | 'AN': 'Niederländische Antillen', 173 | 'NE': 'Niger', 174 | 'NG': 'Nigeria', 175 | 'NU': 'Niue', 176 | 'KP': 'Nordkorea', 177 | 'MP': 'Nördliche Marianen', 178 | 'NF': 'Norfolkinsel', 179 | 'NO': 'Norwegen', 180 | 'OM': 'Oman', 181 | 'AT': 'Österreich', 182 | 'PK': 'Pakistan', 183 | 'PS': 'Palästina', 184 | 'PW': 'Palau', 185 | 'PA': 'Panama', 186 | 'PG': 'Papua-Neuguinea', 187 | 'PY': 'Paraguay', 188 | 'PE': 'Peru', 189 | 'PH': 'Philippinen', 190 | 'PN': 'Pitcairninseln', 191 | 'PL': 'Polen', 192 | 'PT': 'Portugal', 193 | 'PR': 'Puerto Rico', 194 | 'RE': 'Réunion', 195 | 'RW': 'Ruanda', 196 | 'RO': 'Rumänien', 197 | 'RU': 'Russische Föderation', 198 | 'SB': 'Salomonen', 199 | 'ZM': 'Sambia', 200 | 'WS': 'Samoa', 201 | 'SM': 'San Marino', 202 | 'ST': 'São Tomé und Príncipe', 203 | 'SA': 'Saudi-Arabien', 204 | 'SE': 'Schweden', 205 | 'CH': 'Schweiz', 206 | 'SN': 'Senegal', 207 | 'CS': 'Serbien und Montenegro', 208 | 'SC': 'Seychellen', 209 | 'SL': 'Sierra Leone', 210 | 'ZW': 'Simbabwe', 211 | 'SG': 'Singapur', 212 | 'SK': 'Slowakei', 213 | 'SI': 'Slowenien', 214 | 'SO': 'Somalia', 215 | 'ES': 'Spanien', 216 | 'LK': 'Sri Lanka', 217 | 'SH': 'St. Helena', 218 | 'KN': 'St. Kitts und Nevis', 219 | 'LC': 'St. Lucia', 220 | 'PM': 'St. Pierre und Miquelon', 221 | 'VC': 'St. Vincent/Grenadinen (GB)', 222 | 'ZA': 'Südafrika, Republik', 223 | 'SD': 'Sudan', 224 | 'KR': 'Südkorea', 225 | 'SR': 'Suriname', 226 | 'SJ': 'Svalbard und Jan Mayen', 227 | 'SZ': 'Swasiland', 228 | 'SY': 'Syrien', 229 | 'TJ': 'Tadschikistan', 230 | 'TW': 'Taiwan', 231 | 'TZ': 'Tansania', 232 | 'TH': 'Thailand', 233 | 'TL': 'Timor-Leste', 234 | 'TG': 'Togo', 235 | 'TK': 'Tokelau', 236 | 'TO': 'Tonga', 237 | 'TT': 'Trinidad und Tobago', 238 | 'TA': 'Tristan da Cunha', 239 | 'TD': 'Tschad', 240 | 'CZ': 'Tschechische Republik', 241 | 'TN': 'Tunesien', 242 | 'TR': 'Türkei', 243 | 'TM': 'Turkmenistan', 244 | 'TC': 'Turks- und Caicosinseln', 245 | 'TV': 'Tuvalu', 246 | 'UG': 'Uganda', 247 | 'UA': 'Ukraine', 248 | 'HU': 'Ungarn', 249 | 'UY': 'Uruguay', 250 | 'UZ': 'Usbekistan', 251 | 'VU': 'Vanuatu', 252 | 'VA': 'Vatikanstadt', 253 | 'VE': 'Venezuela', 254 | 'AE': 'Vereinigte Arabische Emirate', 255 | 'US': 'Vereinigte Staaten von Amerika', 256 | 'VN': 'Vietnam', 257 | 'WF': 'Wallis und Futuna', 258 | 'CX': 'Weihnachtsinsel', 259 | 'BY': 'Weißrussland', 260 | 'EH': 'Westsahara', 261 | 'CF': 'Zentralafrikanische Republik', 262 | 'CY': 'Zypern' 263 | }; 264 | -------------------------------------------------------------------------------- /js/lang/en_US/bootstrap-formhelpers-datepicker.en_US.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-datepicker.en_US.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHMonthsList = [ 21 | 'January', 22 | 'February', 23 | 'March', 24 | 'April', 25 | 'May', 26 | 'June', 27 | 'July', 28 | 'August', 29 | 'September', 30 | 'October', 31 | 'November', 32 | 'December' 33 | ]; 34 | 35 | var BFHDaysList = [ 36 | 'SUN', 37 | 'MON', 38 | 'TUE', 39 | 'WED', 40 | 'THU', 41 | 'FRI', 42 | 'SAT' 43 | ]; 44 | 45 | var BFHDayOfWeekStart = 0; 46 | -------------------------------------------------------------------------------- /js/lang/en_US/bootstrap-formhelpers-fonts.en_US.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-fonts.en_US.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License") 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHFontsList = { 21 | 'Andale Mono': '"Andale Mono", AndaleMono, monospace', 22 | 'Arial': 'Arial, "Helvetica Neue", Helvetica, sans-serif', 23 | 'Arial Black': '"Arial Black", "Arial Bold", Gadget, sans-serif', 24 | 'Arial Narrow': '"Arial Narrow", Arial, sans-serif', 25 | 'Arial Rounded MT Bold': '"Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif', 26 | 'Avant Garde': '"Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif', 27 | 'Baskerville': 'Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif', 28 | 'Big Caslon': '"Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif', 29 | 'Bodoni MT': '"Bodoni MT", Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif', 30 | 'Book Antiqua': '"Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif', 31 | 'Brush Script MT': '"Brush Script MT", cursive', 32 | 'Calibri': 'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif', 33 | 'Calisto MT': '"Calisto MT", "Bookman Old Style", Bookman, "Goudy Old Style", Garamond, "Hoefler Text", "Bitstream Charter", Georgia, serif', 34 | 'Cambrio': 'Cambria, Georgia, serif', 35 | 'Candara': 'Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif', 36 | 'Century Gothic': '"Century Gothic", CenturyGothic, AppleGothic, sans-serif', 37 | 'Consolas': 'Consolas, monaco, monospace', 38 | 'Copperplate': 'Copperplate, "Copperplate Gothic Light", fantasy', 39 | 'Courier New': '"Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace', 40 | 'Didot': 'Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif', 41 | 'Franklin Gothic Medium': '"Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif', 42 | 'Futura': 'Futura, "Trebuchet MS", Arial, sans-serif', 43 | 'Garamond': 'Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif', 44 | 'Geneva': 'Geneva, Tahoma, Verdana, sans-serif', 45 | 'Georgia': 'Georgia, Times, "Times New Roman", serif', 46 | 'Gill Sans': '"Gill Sans", "Gill Sans MT", Calibri, sans-serif', 47 | 'Goudy Old Style': '"Goudy Old Style", Garamond, "Big Caslon", "Times New Roman", serif', 48 | 'Helvetica': '"Helvetica Neue", Helvetica, Arial, sans-serif', 49 | 'Hoefler Text': '"Hoefler Text", "Baskerville old face", Garamond, "Times New Roman", serif', 50 | 'Impact': 'Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans serif', 51 | 'Lucida Bright': '"Lucida Bright", Georgia, serif', 52 | 'Lucida Console': '"Lucida Console", "Lucida Sans Typewriter", Monaco, "Bitstream Vera Sans Mono", monospace', 53 | 'Lucida Sans Typewriter': '"Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace', 54 | 'Lucida Grande': '"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif', 55 | 'Monaco': 'Monaco, Consolas, "Lucida Console", monospace', 56 | 'Optima': 'Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif', 57 | 'Palatino': 'Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif', 58 | 'Papyrus': 'Papyrus, fantasy', 59 | 'Perpetua': 'Perpetua, Baskerville, "Big Caslon", "Palatino Linotype", Palatino, "URW Palladio L", "Nimbus Roman No9 L", serif', 60 | 'Rockwell': 'Rockwell, "Courier Bold", Courier, Georgia, Times, "Times New Roman", serif', 61 | 'Rockwell Extra Bold': '"Rockwell Extra Bold", "Rockwell Bold", monospace', 62 | 'Segoe UI': '"Segoe UI", Frutiger, "Frutiger Linotype', 63 | 'Tahoma': 'Tahoma, Verdana, Segoe, sans-serif', 64 | 'Times New Roman': 'TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif', 65 | 'Trebuchet MS': '"Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif', 66 | 'Verdana': 'Verdana, Geneva, sans-serif' 67 | }; 68 | -------------------------------------------------------------------------------- /js/lang/en_US/bootstrap-formhelpers-fontsizes.en_US.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-fontsizes.en_US.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License") 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHFontSizesList = { 21 | '8': '8px', 22 | '9': '9px', 23 | '10': '10px', 24 | '11': '11px', 25 | '12': '12px', 26 | '14': '14px', 27 | '16': '16px', 28 | '18': '18px', 29 | '20': '20px', 30 | '24': '24px', 31 | '28': '28px', 32 | '36': '36px', 33 | '48': '48px' 34 | }; 35 | -------------------------------------------------------------------------------- /js/lang/en_US/bootstrap-formhelpers-languages.en_US.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-languages.en_US.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHLanguagesList = { 21 | 'om': 'Afaan Oromoo', 22 | 'aa': 'Afaraf', 23 | 'af': 'Afrikaans', 24 | 'ak': 'Akan', 25 | 'an': 'aragonés', 26 | 'ig': 'Asụsụ Igbo', 27 | 'gn': 'Avañe\'ẽ', 28 | 'ae': 'avesta', 29 | 'ay': 'aymar aru', 30 | 'az': 'azərbaycan dili', 31 | 'id': 'Bahasa Indonesia', 32 | 'ms': 'bahasa Melayu', 33 | 'bm': 'bamanankan', 34 | 'jv': 'basa Jawa', 35 | 'su': 'Basa Sunda', 36 | 'bi': 'Bislama', 37 | 'bs': 'bosanski jezik', 38 | 'br': 'brezhoneg', 39 | 'ca': 'català', 40 | 'ch': 'Chamoru', 41 | 'ny': 'chiCheŵa', 42 | 'sn': 'chiShona', 43 | 'co': 'corsu', 44 | 'cy': 'Cymraeg', 45 | 'da': 'dansk', 46 | 'se': 'Davvisámegiella', 47 | 'de': 'Deutsch', 48 | 'nv': 'Diné bizaad', 49 | 'et': 'eesti', 50 | 'na': 'Ekakairũ Naoero', 51 | 'en': 'English', 52 | 'es': 'español', 53 | 'eo': 'Esperanto', 54 | 'eu': 'euskara', 55 | 'ee': 'Eʋegbe', 56 | 'to': 'faka Tonga', 57 | 'mg': 'fiteny malagasy', 58 | 'fr': 'français', 59 | 'fy': 'Frysk', 60 | 'ff': 'Fulfulde', 61 | 'fo': 'føroyskt', 62 | 'ga': 'Gaeilge', 63 | 'gv': 'Gaelg', 64 | 'sm': 'gagana fa\'a Samoa', 65 | 'gl': 'galego', 66 | 'sq': 'gjuha shqipe', 67 | 'gd': 'Gàidhlig', 68 | 'ki': 'Gĩkũyũ', 69 | 'ha': 'Hausa', 70 | 'ho': 'Hiri Motu', 71 | 'hr': 'hrvatski jezik', 72 | 'io': 'Ido', 73 | 'rw': 'Ikinyarwanda', 74 | 'rn': 'Ikirundi', 75 | 'ia': 'Interlingua', 76 | 'nd': 'isiNdebele', 77 | 'nr': 'isiNdebele', 78 | 'xh': 'isiXhosa', 79 | 'zu': 'isiZulu', 80 | 'it': 'italiano', 81 | 'ik': 'Iñupiaq', 82 | 'pl': 'polski', 83 | 'mh': 'Kajin M̧ajeļ', 84 | 'kl': 'kalaallisut', 85 | 'kr': 'Kanuri', 86 | 'kw': 'Kernewek', 87 | 'kg': 'KiKongo', 88 | 'sw': 'Kiswahili', 89 | 'ht': 'Kreyòl ayisyen', 90 | 'kj': 'Kuanyama', 91 | 'ku': 'Kurdî', 92 | 'la': 'latine', 93 | 'lv': 'latviešu valoda', 94 | 'lt': 'lietuvių kalba', 95 | 'ro': 'limba română', 96 | 'li': 'Limburgs', 97 | 'ln': 'Lingála', 98 | 'lg': 'Luganda', 99 | 'lb': 'Lëtzebuergesch', 100 | 'hu': 'magyar', 101 | 'mt': 'Malti', 102 | 'nl': 'Nederlands', 103 | 'no': 'Norsk', 104 | 'nb': 'Norsk bokmål', 105 | 'nn': 'Norsk nynorsk', 106 | 'uz': 'O\'zbek', 107 | 'oc': 'occitan', 108 | 'ie': 'Interlingue', 109 | 'hz': 'Otjiherero', 110 | 'ng': 'Owambo', 111 | 'pt': 'português', 112 | 'ty': 'Reo Tahiti', 113 | 'rm': 'rumantsch grischun', 114 | 'qu': 'Runa Simi', 115 | 'sc': 'sardu', 116 | 'za': 'Saɯ cueŋƅ', 117 | 'st': 'Sesotho', 118 | 'tn': 'Setswana', 119 | 'ss': 'SiSwati', 120 | 'sl': 'slovenski jezik', 121 | 'sk': 'slovenčina', 122 | 'so': 'Soomaaliga', 123 | 'fi': 'suomi', 124 | 'sv': 'Svenska', 125 | 'mi': 'te reo Māori', 126 | 'vi': 'Tiếng Việt', 127 | 'lu': 'Tshiluba', 128 | 've': 'Tshivenḓa', 129 | 'tw': 'Twi', 130 | 'tk': 'Türkmen', 131 | 'tr': 'Türkçe', 132 | 'ug': 'Uyƣurqə', 133 | 'vo': 'Volapük', 134 | 'fj': 'vosa Vakaviti', 135 | 'wa': 'walon', 136 | 'tl': 'Wikang Tagalog', 137 | 'wo': 'Wollof', 138 | 'ts': 'Xitsonga', 139 | 'yo': 'Yorùbá', 140 | 'sg': 'yângâ tî sängö', 141 | 'is': 'Íslenska', 142 | 'cs': 'čeština', 143 | 'el': 'ελληνικά', 144 | 'av': 'авар мацӀ', 145 | 'ab': 'аҧсуа бызшәа', 146 | 'ba': 'башҡорт теле', 147 | 'be': 'беларуская мова', 148 | 'bg': 'български език', 149 | 'os': 'ирон æвзаг', 150 | 'kv': 'коми кыв', 151 | 'ky': 'Кыргызча', 152 | 'mk': 'македонски јазик', 153 | 'mn': 'монгол', 154 | 'ce': 'нохчийн мотт', 155 | 'ru': 'Русский язык', 156 | 'sr': 'српски језик', 157 | 'tt': 'татар теле', 158 | 'tg': 'тоҷикӣ', 159 | 'uk': 'українська мова', 160 | 'cv': 'чӑваш чӗлхи', 161 | 'cu': 'ѩзыкъ словѣньскъ', 162 | 'kk': 'қазақ тілі', 163 | 'hy': 'Հայերեն', 164 | 'yi': 'ייִדיש', 165 | 'he': 'עברית', 166 | 'ur': 'اردو', 167 | 'ar': 'العربية', 168 | 'fa': 'فارسی', 169 | 'ps': 'پښتو', 170 | 'ks': 'कश्मीरी', 171 | 'ne': 'नेपाली', 172 | 'pi': 'पाऴि', 173 | 'bh': 'भोजपुरी', 174 | 'mr': 'मराठी', 175 | 'sa': 'संस्कृतम्', 176 | 'sd': 'सिन्धी', 177 | 'hi': 'हिन्दी', 178 | 'as': 'অসমীয়া', 179 | 'bn': 'বাংলা', 180 | 'pa': 'ਪੰਜਾਬੀ', 181 | 'gu': 'ગુજરાતી', 182 | 'or': 'ଓଡ଼ିଆ', 183 | 'ta': 'தமிழ்', 184 | 'te': 'తెలుగు', 185 | 'kn': 'ಕನ್ನಡ', 186 | 'ml': 'മലയാളം', 187 | 'si': 'සිංහල', 188 | 'th': 'ไทย', 189 | 'lo': 'ພາສາລາວ', 190 | 'bo': 'བོད་ཡིག', 191 | 'dz': 'རྫོང་ཁ', 192 | 'my': 'ဗမာစာ', 193 | 'ka': 'ქართული', 194 | 'ti': 'ትግርኛ', 195 | 'am': 'አማርኛ', 196 | 'iu': 'ᐃᓄᒃᑎᑐᑦ', 197 | 'oj': 'ᐊᓂᔑᓈᐯᒧᐎᓐ', 198 | 'cr': 'ᓀᐦᐃᔭᐍᐏᐣ', 199 | 'km': 'ខ្មែរ', 200 | 'zh': '中文 (Zhōngwén)', 201 | 'ja': '日本語 (にほんご)', 202 | 'ii': 'ꆈꌠ꒿ Nuosuhxop', 203 | 'ko': '한국어 (韓國語)' 204 | }; 205 | -------------------------------------------------------------------------------- /js/lang/en_US/bootstrap-formhelpers-timepicker.en_US.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-timepicker.en_US.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHTimePickerDelimiter = ':'; 21 | 22 | var BFHTimePickerModes = { 23 | 'am': 'AM', 24 | 'pm': 'PM' 25 | }; -------------------------------------------------------------------------------- /js/lang/es_ES/bootstrap-formhelpers-datepicker.es_ES.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-datepicker.es_ES.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHMonthsList = [ 21 | 'Enero', 22 | 'Febrero', 23 | 'Marzo', 24 | 'Abril', 25 | 'Mayo', 26 | 'Junio', 27 | 'Julio', 28 | 'Agosto', 29 | 'Septiembre', 30 | 'Octubre', 31 | 'Noviembre', 32 | 'Diciembre' 33 | ]; 34 | 35 | var BFHDaysList = [ 36 | 'DOM', 37 | 'LUN', 38 | 'MAR', 39 | 'MIE', 40 | 'JUE', 41 | 'VIE', 42 | 'SAB' 43 | ]; 44 | 45 | var BFHDayOfWeekStart = 1; 46 | -------------------------------------------------------------------------------- /js/lang/es_US/bootstrap-formhelpers-datepicker.es_US.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-datepicker.es_US.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHMonthsList = [ 21 | 'Enero', 22 | 'Febrero', 23 | 'Marzo', 24 | 'Abril', 25 | 'Mayo', 26 | 'Junio', 27 | 'Julio', 28 | 'Agosto', 29 | 'Septiembre', 30 | 'Octubre', 31 | 'Noviembre', 32 | 'Diciembre' 33 | ]; 34 | 35 | var BFHDaysList = [ 36 | 'DOM', 37 | 'LUN', 38 | 'MAR', 39 | 'MIE', 40 | 'JUE', 41 | 'VIE', 42 | 'SAB' 43 | ]; 44 | 45 | var BFHDayOfWeekStart = 0; 46 | -------------------------------------------------------------------------------- /js/lang/fr_CA/bootstrap-formhelpers-countries.fr_CA.js: -------------------------------------------------------------------------------- 1 | var BFHCountriesList = { 2 | 'AF': 'Afghanistan', 3 | 'ZA': 'Afrique du Sud', 4 | 'AL': 'Albanie', 5 | 'DZ': 'Algérie', 6 | 'DE': 'Allemagne', 7 | 'AD': 'Andorre', 8 | 'AO': 'Angola', 9 | 'AI': 'Anguilla', 10 | 'AQ': 'Antarctique', 11 | 'AG': 'Antigua-et-Barbuda', 12 | 'AN': 'Antilles néerlandaises', 13 | 'SA': 'Arabie saoudite', 14 | 'AR': 'Argentine', 15 | 'AM': 'Arménie', 16 | 'AW': 'Aruba', 17 | 'AU': 'Australie', 18 | 'AT': 'Autriche', 19 | 'AZ': 'Azerbaïdjan', 20 | 'BS': 'Bahamas', 21 | 'BH': 'Bahreïn', 22 | 'BD': 'Bangladesh', 23 | 'BB': 'Barbade', 24 | 'BY': 'Bélarus', 25 | 'BE': 'Belgique', 26 | 'BZ': 'Belize', 27 | 'BJ': 'Bénin', 28 | 'BM': 'Bermudes', 29 | 'BT': 'Bhoutan', 30 | 'BO': 'Bolivie', 31 | 'BA': 'Bosnie-Herzégovine', 32 | 'BW': 'Botswana', 33 | 'BR': 'Brésil', 34 | 'BN': 'Brunéi Darussalam', 35 | 'BG': 'Bulgarie', 36 | 'BF': 'Burkina Faso', 37 | 'BI': 'Burundi', 38 | 'KH': 'Cambodge', 39 | 'CM': 'Cameroun', 40 | 'CA': 'Canada', 41 | 'CV': 'Cap-Vert', 42 | 'CL': 'Chili', 43 | 'CN': 'Chine', 44 | 'CY': 'Chypre', 45 | 'CO': 'Colombie', 46 | 'KM': 'Comores', 47 | 'CG': 'Congo-Brazzaville', 48 | 'CD': 'Congo-Kinshasa', 49 | 'KP': 'Corée du Nord', 50 | 'KR': 'Corée du Sud', 51 | 'CR': 'Costa Rica', 52 | 'CI': 'Côte d’Ivoire', 53 | 'HR': 'Croatie', 54 | 'CU': 'Cuba', 55 | 'DK': 'Danemark', 56 | 'DJ': 'Djibouti', 57 | 'DM': 'Dominique', 58 | 'EG': 'Égypte', 59 | 'SV': 'El Salvador', 60 | 'AE': 'Émirats arabes unis', 61 | 'EC': 'Équateur', 62 | 'ER': 'Érythrée', 63 | 'ES': 'Espagne', 64 | 'EE': 'Estonie', 65 | 'VA': 'État de la Cité du Vatican', 66 | 'US': 'États-Unis', 67 | 'ET': 'Éthiopie', 68 | 'FJ': 'Fidji', 69 | 'FI': 'Finlande', 70 | 'FR': 'France', 71 | 'FX': 'France métropolitaine', 72 | 'GA': 'Gabon', 73 | 'GM': 'Gambie', 74 | 'GE': 'Géorgie', 75 | 'GS': 'Géorgie du Sud et les îles Sandwich du Sud', 76 | 'GH': 'Ghana', 77 | 'GI': 'Gibraltar', 78 | 'GR': 'Grèce', 79 | 'GD': 'Grenade', 80 | 'GL': 'Groenland', 81 | 'GP': 'Guadeloupe', 82 | 'GU': 'Guam', 83 | 'GT': 'Guatemala', 84 | 'GN': 'Guinée', 85 | 'GW': 'Guinée-Bissau', 86 | 'GQ': 'Guinée équatoriale', 87 | 'GY': 'Guyana', 88 | 'GF': 'Guyane', 89 | 'HT': 'Haïti', 90 | 'HN': 'Honduras', 91 | 'HU': 'Hongrie', 92 | 'BV': 'Île Bouvet', 93 | 'CX': 'Île Christmas', 94 | 'NF': 'Île Norfolk', 95 | 'KY': 'Îles Caïmans', 96 | 'CC': 'Îles Cocos', 97 | 'CK': 'Îles Cook', 98 | 'FO': 'Îles Féroé', 99 | 'HM': 'Îles Heard-et-MacDonald', 100 | 'FK': 'Îles Malouines', 101 | 'MP': 'Îles Mariannes du Nord', 102 | 'MH': 'Îles Marshall', 103 | 'UM': 'Îles mineures éloignées des États-Unis', 104 | 'SB': 'Îles Salomon', 105 | 'TC': 'Îles Turks et Caïques', 106 | 'VG': 'Îles Vierges britanniques', 107 | 'VI': 'Îles Vierges des États-Unis', 108 | 'IN': 'Inde', 109 | 'ID': 'Indonésie', 110 | 'IQ': 'Irak', 111 | 'IR': 'Iran', 112 | 'IE': 'Irlande', 113 | 'IS': 'Islande', 114 | 'IL': 'Israël', 115 | 'IT': 'Italie', 116 | 'JM': 'Jamaïque', 117 | 'JP': 'Japon', 118 | 'JO': 'Jordanie', 119 | 'KZ': 'Kazakhstan', 120 | 'KE': 'Kenya', 121 | 'KG': 'Kirghizistan', 122 | 'KI': 'Kiribati', 123 | 'KW': 'Koweït', 124 | 'LA': 'Laos', 125 | 'LS': 'Lesotho', 126 | 'LV': 'Lettonie', 127 | 'LB': 'Liban', 128 | 'LR': 'Libéria', 129 | 'LY': 'Libye', 130 | 'LI': 'Liechtenstein', 131 | 'LT': 'Lituanie', 132 | 'LU': 'Luxembourg', 133 | 'MK': 'Macédoine', 134 | 'MG': 'Madagascar', 135 | 'MY': 'Malaisie', 136 | 'MW': 'Malawi', 137 | 'MV': 'Maldives', 138 | 'ML': 'Mali', 139 | 'MT': 'Malte', 140 | 'MA': 'Maroc', 141 | 'MQ': 'Martinique', 142 | 'MU': 'Maurice', 143 | 'MR': 'Mauritanie', 144 | 'YT': 'Mayotte', 145 | 'MX': 'Mexique', 146 | 'FM': 'Micronésie', 147 | 'MD': 'Moldavie', 148 | 'MC': 'Monaco', 149 | 'MN': 'Mongolie', 150 | 'ME': 'Monténégro', 151 | 'MS': 'Montserrat', 152 | 'MZ': 'Mozambique', 153 | 'MM': 'Myanmar', 154 | 'NA': 'Namibie', 155 | 'NR': 'Nauru', 156 | 'NI': 'Nicaragua', 157 | 'NE': 'Niger', 158 | 'NG': 'Nigéria', 159 | 'NU': 'Niue', 160 | 'NO': 'Norvège', 161 | 'NC': 'Nouvelle-Calédonie', 162 | 'NZ': 'Nouvelle-Zélande', 163 | 'NP': 'Népal', 164 | 'OM': 'Oman', 165 | 'UG': 'Ouganda', 166 | 'UZ': 'Ouzbékistan', 167 | 'PK': 'Pakistan', 168 | 'PS': 'Palestine', 169 | 'PW': 'Palaos', 170 | 'PA': 'Panama', 171 | 'PG': 'Papouasie-Nouvelle-Guinée', 172 | 'PY': 'Paraguay', 173 | 'NL': 'Pays-Bas', 174 | 'PE': 'Pérou', 175 | 'PH': 'Philippines', 176 | 'PN': 'Pitcairn', 177 | 'PL': 'Pologne', 178 | 'PF': 'Polynésie française', 179 | 'PR': 'Porto Rico', 180 | 'PT': 'Portugal', 181 | 'QA': 'Qatar', 182 | 'HK': 'R.A.S. chinoise de Hong Kong', 183 | 'MO': 'R.A.S. chinoise de Macao', 184 | 'CF': 'République centrafricaine', 185 | 'DO': 'République dominicaine', 186 | 'CZ': 'République tchèque', 187 | 'RE': 'La Réunion', 188 | 'RO': 'Roumanie', 189 | 'GB': 'Royaume-Uni', 190 | 'RU': 'Russie', 191 | 'RW': 'Rwanda', 192 | 'EH': 'Sahara occidental', 193 | 'KN': 'Saint-Kitts-et-Nevis', 194 | 'SM': 'Saint-Marin', 195 | 'PM': 'Saint-Pierre-et-Miquelon', 196 | 'VC': 'Saint-Vincent-et-les Grenadines', 197 | 'SH': 'Sainte-Hélène', 198 | 'LC': 'Sainte-Lucie', 199 | 'WS': 'Samoa', 200 | 'AS': 'Samoa américaines', 201 | 'ST': 'Sao Tomé-et-Principe', 202 | 'SN': 'Sénégal', 203 | 'RS': 'Serbie', 204 | 'SC': 'Seychelles', 205 | 'SL': 'Sierra Leone', 206 | 'SG': 'Singapour', 207 | 'SK': 'Slovaquie', 208 | 'SI': 'Slovénie', 209 | 'SO': 'Somalie', 210 | 'SD': 'Soudan', 211 | 'LK': 'Sri Lanka', 212 | 'SE': 'Suède', 213 | 'CH': 'Suisse', 214 | 'SR': 'Suriname', 215 | 'SJ': 'Svalbard et île Jan Mayen', 216 | 'SZ': 'Swaziland', 217 | 'SY': 'Syrie', 218 | 'TJ': 'Tadjikistan', 219 | 'TW': 'Taïwan', 220 | 'TZ': 'Tanzanie', 221 | 'TD': 'Tchad', 222 | 'TF': 'Terres australes et antarctiques françaises', 223 | 'IO': 'Territoire britannique de l\'océan Indien', 224 | 'TH': 'Thaïlande', 225 | 'TP': 'Timor oriental', 226 | 'TG': 'Togo', 227 | 'TK': 'Tokelau', 228 | 'TO': 'Tonga', 229 | 'TT': 'Trinité-et-Tobago', 230 | 'TN': 'Tunisie', 231 | 'TM': 'Turkménistan', 232 | 'TR': 'Turquie', 233 | 'TV': 'Tuvalu', 234 | 'UA': 'Ukraine', 235 | 'UY': 'Uruguay', 236 | 'VU': 'Vanuatu', 237 | 'VE': 'Venezuela', 238 | 'VN': 'Vietnam', 239 | 'WF': 'Wallis-et-Futuna', 240 | 'YE': 'Yémen', 241 | 'ZM': 'Zambie', 242 | 'ZW': 'Zimbabwe' 243 | }; 244 | -------------------------------------------------------------------------------- /js/lang/fr_FR/bootstrap-formhelpers-countries.fr_FR.js: -------------------------------------------------------------------------------- 1 | var BFHCountriesList = { 2 | 'AF': 'Afghanistan', 3 | 'ZA': 'Afrique du Sud', 4 | 'AL': 'Albanie', 5 | 'DZ': 'Algérie', 6 | 'DE': 'Allemagne', 7 | 'AD': 'Andorre', 8 | 'AO': 'Angola', 9 | 'AI': 'Anguilla', 10 | 'AQ': 'Antarctique', 11 | 'AG': 'Antigua-et-Barbuda', 12 | 'AN': 'Antilles néerlandaises', 13 | 'SA': 'Arabie saoudite', 14 | 'AR': 'Argentine', 15 | 'AM': 'Arménie', 16 | 'AW': 'Aruba', 17 | 'AU': 'Australie', 18 | 'AT': 'Autriche', 19 | 'AZ': 'Azerbaïdjan', 20 | 'BS': 'Bahamas', 21 | 'BH': 'Bahreïn', 22 | 'BD': 'Bangladesh', 23 | 'BB': 'Barbade', 24 | 'BY': 'Bélarus', 25 | 'BE': 'Belgique', 26 | 'BZ': 'Belize', 27 | 'BJ': 'Bénin', 28 | 'BM': 'Bermudes', 29 | 'BT': 'Bhoutan', 30 | 'BO': 'Bolivie', 31 | 'BA': 'Bosnie-Herzégovine', 32 | 'BW': 'Botswana', 33 | 'BR': 'Brésil', 34 | 'BN': 'Brunéi Darussalam', 35 | 'BG': 'Bulgarie', 36 | 'BF': 'Burkina Faso', 37 | 'BI': 'Burundi', 38 | 'KH': 'Cambodge', 39 | 'CM': 'Cameroun', 40 | 'CA': 'Canada', 41 | 'CV': 'Cap-Vert', 42 | 'CL': 'Chili', 43 | 'CN': 'Chine', 44 | 'CY': 'Chypre', 45 | 'CO': 'Colombie', 46 | 'KM': 'Comores', 47 | 'CG': 'Congo-Brazzaville', 48 | 'CD': 'Congo-Kinshasa', 49 | 'KP': 'Corée du Nord', 50 | 'KR': 'Corée du Sud', 51 | 'CR': 'Costa Rica', 52 | 'CI': 'Côte d’Ivoire', 53 | 'HR': 'Croatie', 54 | 'CU': 'Cuba', 55 | 'DK': 'Danemark', 56 | 'DJ': 'Djibouti', 57 | 'DM': 'Dominique', 58 | 'EG': 'Égypte', 59 | 'SV': 'El Salvador', 60 | 'AE': 'Émirats arabes unis', 61 | 'EC': 'Équateur', 62 | 'ER': 'Érythrée', 63 | 'ES': 'Espagne', 64 | 'EE': 'Estonie', 65 | 'VA': 'État de la Cité du Vatican', 66 | 'US': 'États-Unis', 67 | 'ET': 'Éthiopie', 68 | 'FJ': 'Fidji', 69 | 'FI': 'Finlande', 70 | 'FR': 'France', 71 | 'FX': 'France métropolitaine', 72 | 'GA': 'Gabon', 73 | 'GM': 'Gambie', 74 | 'GE': 'Géorgie', 75 | 'GS': 'Géorgie du Sud et les îles Sandwich du Sud', 76 | 'GH': 'Ghana', 77 | 'GI': 'Gibraltar', 78 | 'GR': 'Grèce', 79 | 'GD': 'Grenade', 80 | 'GL': 'Groenland', 81 | 'GP': 'Guadeloupe', 82 | 'GU': 'Guam', 83 | 'GT': 'Guatemala', 84 | 'GN': 'Guinée', 85 | 'GW': 'Guinée-Bissau', 86 | 'GQ': 'Guinée équatoriale', 87 | 'GY': 'Guyana', 88 | 'GF': 'Guyane', 89 | 'HT': 'Haïti', 90 | 'HN': 'Honduras', 91 | 'HU': 'Hongrie', 92 | 'BV': 'Île Bouvet', 93 | 'CX': 'Île Christmas', 94 | 'NF': 'Île Norfolk', 95 | 'KY': 'Îles Caïmans', 96 | 'CC': 'Îles Cocos', 97 | 'CK': 'Îles Cook', 98 | 'FO': 'Îles Féroé', 99 | 'HM': 'Îles Heard-et-MacDonald', 100 | 'FK': 'Îles Malouines', 101 | 'MP': 'Îles Mariannes du Nord', 102 | 'MH': 'Îles Marshall', 103 | 'UM': 'Îles mineures éloignées des États-Unis', 104 | 'SB': 'Îles Salomon', 105 | 'TC': 'Îles Turks et Caïques', 106 | 'VG': 'Îles Vierges britanniques', 107 | 'VI': 'Îles Vierges des États-Unis', 108 | 'IN': 'Inde', 109 | 'ID': 'Indonésie', 110 | 'IQ': 'Irak', 111 | 'IR': 'Iran', 112 | 'IE': 'Irlande', 113 | 'IS': 'Islande', 114 | 'IL': 'Israël', 115 | 'IT': 'Italie', 116 | 'JM': 'Jamaïque', 117 | 'JP': 'Japon', 118 | 'JO': 'Jordanie', 119 | 'KZ': 'Kazakhstan', 120 | 'KE': 'Kenya', 121 | 'KG': 'Kirghizistan', 122 | 'KI': 'Kiribati', 123 | 'KW': 'Koweït', 124 | 'LA': 'Laos', 125 | 'LS': 'Lesotho', 126 | 'LV': 'Lettonie', 127 | 'LB': 'Liban', 128 | 'LR': 'Libéria', 129 | 'LY': 'Libye', 130 | 'LI': 'Liechtenstein', 131 | 'LT': 'Lituanie', 132 | 'LU': 'Luxembourg', 133 | 'MK': 'Macédoine', 134 | 'MG': 'Madagascar', 135 | 'MY': 'Malaisie', 136 | 'MW': 'Malawi', 137 | 'MV': 'Maldives', 138 | 'ML': 'Mali', 139 | 'MT': 'Malte', 140 | 'MA': 'Maroc', 141 | 'MQ': 'Martinique', 142 | 'MU': 'Maurice', 143 | 'MR': 'Mauritanie', 144 | 'YT': 'Mayotte', 145 | 'MX': 'Mexique', 146 | 'FM': 'Micronésie', 147 | 'MD': 'Moldavie', 148 | 'MC': 'Monaco', 149 | 'MN': 'Mongolie', 150 | 'ME': 'Monténégro', 151 | 'MS': 'Montserrat', 152 | 'MZ': 'Mozambique', 153 | 'MM': 'Myanmar', 154 | 'NA': 'Namibie', 155 | 'NR': 'Nauru', 156 | 'NI': 'Nicaragua', 157 | 'NE': 'Niger', 158 | 'NG': 'Nigéria', 159 | 'NU': 'Niue', 160 | 'NO': 'Norvège', 161 | 'NC': 'Nouvelle-Calédonie', 162 | 'NZ': 'Nouvelle-Zélande', 163 | 'NP': 'Népal', 164 | 'OM': 'Oman', 165 | 'UG': 'Ouganda', 166 | 'UZ': 'Ouzbékistan', 167 | 'PK': 'Pakistan', 168 | 'PS': 'Palestine', 169 | 'PW': 'Palaos', 170 | 'PA': 'Panama', 171 | 'PG': 'Papouasie-Nouvelle-Guinée', 172 | 'PY': 'Paraguay', 173 | 'NL': 'Pays-Bas', 174 | 'PE': 'Pérou', 175 | 'PH': 'Philippines', 176 | 'PN': 'Pitcairn', 177 | 'PL': 'Pologne', 178 | 'PF': 'Polynésie française', 179 | 'PR': 'Porto Rico', 180 | 'PT': 'Portugal', 181 | 'QA': 'Qatar', 182 | 'HK': 'R.A.S. chinoise de Hong Kong', 183 | 'MO': 'R.A.S. chinoise de Macao', 184 | 'CF': 'République centrafricaine', 185 | 'DO': 'République dominicaine', 186 | 'CZ': 'République tchèque', 187 | 'RE': 'La Réunion', 188 | 'RO': 'Roumanie', 189 | 'GB': 'Royaume-Uni', 190 | 'RU': 'Russie', 191 | 'RW': 'Rwanda', 192 | 'EH': 'Sahara occidental', 193 | 'KN': 'Saint-Kitts-et-Nevis', 194 | 'SM': 'Saint-Marin', 195 | 'PM': 'Saint-Pierre-et-Miquelon', 196 | 'VC': 'Saint-Vincent-et-les Grenadines', 197 | 'SH': 'Sainte-Hélène', 198 | 'LC': 'Sainte-Lucie', 199 | 'WS': 'Samoa', 200 | 'AS': 'Samoa américaines', 201 | 'ST': 'Sao Tomé-et-Principe', 202 | 'SN': 'Sénégal', 203 | 'RS': 'Serbie', 204 | 'SC': 'Seychelles', 205 | 'SL': 'Sierra Leone', 206 | 'SG': 'Singapour', 207 | 'SK': 'Slovaquie', 208 | 'SI': 'Slovénie', 209 | 'SO': 'Somalie', 210 | 'SD': 'Soudan', 211 | 'LK': 'Sri Lanka', 212 | 'SE': 'Suède', 213 | 'CH': 'Suisse', 214 | 'SR': 'Suriname', 215 | 'SJ': 'Svalbard et île Jan Mayen', 216 | 'SZ': 'Swaziland', 217 | 'SY': 'Syrie', 218 | 'TJ': 'Tadjikistan', 219 | 'TW': 'Taïwan', 220 | 'TZ': 'Tanzanie', 221 | 'TD': 'Tchad', 222 | 'TF': 'Terres australes et antarctiques françaises', 223 | 'IO': 'Territoire britannique de l\'océan Indien', 224 | 'TH': 'Thaïlande', 225 | 'TP': 'Timor oriental', 226 | 'TG': 'Togo', 227 | 'TK': 'Tokelau', 228 | 'TO': 'Tonga', 229 | 'TT': 'Trinité-et-Tobago', 230 | 'TN': 'Tunisie', 231 | 'TM': 'Turkménistan', 232 | 'TR': 'Turquie', 233 | 'TV': 'Tuvalu', 234 | 'UA': 'Ukraine', 235 | 'UY': 'Uruguay', 236 | 'VU': 'Vanuatu', 237 | 'VE': 'Venezuela', 238 | 'VN': 'Vietnam', 239 | 'WF': 'Wallis-et-Futuna', 240 | 'YE': 'Yémen', 241 | 'ZM': 'Zambie', 242 | 'ZW': 'Zimbabwe' 243 | }; 244 | -------------------------------------------------------------------------------- /js/lang/it_IT/bootstrap-formhelpers-countries.it_IT.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.it_IT.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AF': 'Afghanistan', 22 | 'AL': 'Albania', 23 | 'DZ': 'Algeria', 24 | 'AS': 'Samoa Americane', 25 | 'AD': 'Andorra', 26 | 'AO': 'Angola', 27 | 'AI': 'Anguilla', 28 | 'AQ': 'Antartide' , 29 | 'AG': 'Antigua e Barbuda' , 30 | 'AR': 'Argentina' , 31 | 'AM': 'Armenia' , 32 | 'AW': 'Aruba' , 33 | 'AU': 'Australia' , 34 | 'AT': 'Austria' , 35 | 'AZ': 'Azerbaijan' , 36 | 'BH': 'Bahrain' , 37 | 'BD': 'Bangladesh', 38 | 'BB': 'Barbados' , 39 | 'BY': 'Bielorussia', 40 | 'BE': 'Belgio', 41 | 'BZ': 'Belize', 42 | 'BJ': 'Benin', 43 | 'BM': 'Bermuda', 44 | 'BT': 'Bhutan', 45 | 'BO': 'Bolivia', 46 | 'BA': 'Bosnia Erzegovina', 47 | 'BW': 'Botswana', 48 | 'BV': 'Isola Bouvet', 49 | 'BR': 'Brasile', 50 | 'IO': 'Territorio britannico dell\'Oceano Indiano', 51 | 'VG': 'Isole Vergini', 52 | 'BN': 'Brunei', 53 | 'BG': 'Bulgaria', 54 | 'BF': 'Burkina Faso', 55 | 'BI': 'Burundi', 56 | 'CI': 'Costa d\'Avorio', 57 | 'KH': 'Cambogia', 58 | 'CM': 'Camerun', 59 | 'CA': 'Canada', 60 | 'CV': 'Capo Verde', 61 | 'KY': 'Isole Cayman', 62 | 'CF': 'Centrafica', 63 | 'TD': 'Ciad', 64 | 'CL': 'Cile', 65 | 'CN': 'Cina', 66 | 'CX': 'Isola Christmas', 67 | 'CC': 'Isole Cocos', 68 | 'CO': 'Colombia', 69 | 'KM': 'Comore', 70 | 'CG': 'Congo', 71 | 'CK': 'Isole Cook', 72 | 'CR': 'Costa Rica', 73 | 'HR': 'Croazia', 74 | 'CU': 'Cuba', 75 | 'CY': 'Cipro', 76 | 'CZ': 'Repubblica Ceca', 77 | 'CD': 'Congo', 78 | 'DK': 'Danimarca', 79 | 'DJ': 'Gibuti', 80 | 'DM': 'Dominica', 81 | 'DO': 'Repubblica Dominicana', 82 | 'TP': 'Timor Oriental', 83 | 'EC': 'Ecuador', 84 | 'EG': 'Egitto', 85 | 'SV': 'El Salvador', 86 | 'GQ': 'Guinea Equatoriale', 87 | 'ER': 'Eritrea', 88 | 'EE': 'Estonia', 89 | 'ET': 'Ethiopia', 90 | 'FO': 'Isole Faroe', 91 | 'FK': 'Isole Falkland', 92 | 'FJ': 'Isole Fiji', 93 | 'FI': 'Finlandia', 94 | 'MK': 'Macedonia', 95 | 'FR': 'Francia', 96 | 'FX': 'Francia, Metropolitan', 97 | 'GF': 'Guyana Francese', 98 | 'PF': 'Polinesia Francese', 99 | 'TF': 'French Southern Territories', 100 | 'GA': 'Gabon', 101 | 'GE': 'Georgia', 102 | 'DE': 'Germania', 103 | 'GH': 'Ghana', 104 | 'GI': 'Gibilterra', 105 | 'GR': 'Grecia', 106 | 'GL': 'Groenlandia', 107 | 'GD': 'Grenada', 108 | 'GP': 'Guadeloupa', 109 | 'GU': 'Guam', 110 | 'GT': 'Guatemala', 111 | 'GN': 'Guinea', 112 | 'GW': 'Guinea Bissau', 113 | 'GY': 'Guyana', 114 | 'HT': 'Haiti', 115 | 'HM': 'Isole Heard e McDonald', 116 | 'HN': 'Honduras', 117 | 'HK': 'Hong Kong', 118 | 'HU': 'Ungheria', 119 | 'IS': 'Islanda', 120 | 'IN': 'India', 121 | 'ID': 'Indonesia', 122 | 'IR': 'Iran', 123 | 'IQ': 'Iraq', 124 | 'IE': 'Irlanda', 125 | 'IL': 'Israele', 126 | 'IT': 'Italia', 127 | 'JM': 'Giamaica', 128 | 'JP': 'Giappone', 129 | 'JO': 'Giordania', 130 | 'KZ': 'Kazakhstan', 131 | 'KE': 'Kenya', 132 | 'KI': 'Kiribati', 133 | 'KW': 'Kuwait', 134 | 'KG': 'Kyrgyzstan', 135 | 'LA': 'Laos', 136 | 'LV': 'Lettonia', 137 | 'LB': 'Libano', 138 | 'LS': 'Lesotho', 139 | 'LR': 'Liberia', 140 | 'LY': 'Libia', 141 | 'LI': 'Liechtenstein', 142 | 'LT': 'Lituania', 143 | 'LU': 'Lussemburgo', 144 | 'MO': 'Macao', 145 | 'MG': 'Madagascar', 146 | 'MW': 'Malawi', 147 | 'MY': 'Malesia', 148 | 'MV': 'Maldives', 149 | 'ML': 'Mali', 150 | 'MT': 'Malta', 151 | 'MH': 'Isole Marshall', 152 | 'MQ': 'Martinica', 153 | 'MR': 'Mauritania', 154 | 'MU': 'Mauritius', 155 | 'YT': 'Mayotte', 156 | 'MX': 'Messico', 157 | 'FM': 'Micronesia', 158 | 'MD': 'Moldova', 159 | 'MC': 'Monaco', 160 | 'MN': 'Mongolia', 161 | 'ME': 'Montenegro', 162 | 'MS': 'Montserrat', 163 | 'MA': 'Morocco', 164 | 'MZ': 'Mozambico', 165 | 'MM': 'Myanmar', 166 | 'NA': 'Namibia', 167 | 'NR': 'Nauru', 168 | 'NP': 'Nepal', 169 | 'NL': 'Paesi Bassi', 170 | 'AN': 'Antille Olandesi', 171 | 'NC': 'Nuova Caledonia', 172 | 'NZ': 'Nuova Zelanda', 173 | 'NI': 'Nicaragua', 174 | 'NE': 'Niger', 175 | 'NG': 'Nigeria', 176 | 'NU': 'Niue', 177 | 'NF': 'Isola Norfolk', 178 | 'KP': 'Korea del Nord', 179 | 'MP': 'Isole Marianne Settentrionali', 180 | 'NO': 'Norvegia', 181 | 'OM': 'Oman', 182 | 'PK': 'Pakistan', 183 | 'PW': 'Palau', 184 | 'PS': 'Palestina', 185 | 'PA': 'Panama', 186 | 'PG': 'Papua Nuova Guinea', 187 | 'PY': 'Paraguay', 188 | 'PE': 'Peru', 189 | 'PH': 'Filippine', 190 | 'PN': 'Isole Pitcairn', 191 | 'PL': 'Polonia', 192 | 'PT': 'Portogallo', 193 | 'PR': 'Puerto Rico', 194 | 'QA': 'Qatar', 195 | 'RE': 'Reunion', 196 | 'RO': 'Romania', 197 | 'RU': 'Russia', 198 | 'RW': 'Ruanda', 199 | 'ST': 'Sao Tomé e Principe', 200 | 'SH': 'Sant\'Elena', 201 | 'PM': 'Saint Pierre e Miquelon', 202 | 'KN': 'Sst. Kitts and Nevis', 203 | 'LC': 'St. Lucia', 204 | 'VC': 'St. Vincent', 205 | 'WS': 'Samoa Occidentali', 206 | 'SM': 'San Marino', 207 | 'SA': 'Arabia Saudita', 208 | 'SN': 'Senegal', 209 | 'RS': 'Serbia', 210 | 'SC': 'Seychelles', 211 | 'SL': 'Sierra Leone', 212 | 'SG': 'Singapore', 213 | 'SK': 'Slovacchia', 214 | 'SI': 'Slovenia', 215 | 'SB': 'Salomone', 216 | 'SO': 'Somalia', 217 | 'ZA': 'Sudafrica', 218 | 'GS': 'Georgia del Sud e Isole Sandwich meridionali', 219 | 'KR': 'Korea del Sud', 220 | 'ES': 'Spagna', 221 | 'LK': 'Sri Lanka', 222 | 'SD': 'Sudan', 223 | 'SR': 'Suriname', 224 | 'SJ': 'Svalbard e Jan Mayen', 225 | 'SZ': 'Swaziland', 226 | 'SE': 'Svezia', 227 | 'CH': 'Svizzera', 228 | 'SY': 'Siria', 229 | 'TW': 'Taiwan', 230 | 'TJ': 'Tajikistan', 231 | 'TZ': 'Tanzania', 232 | 'TH': 'Thailandia', 233 | 'BS': 'Bahamas', 234 | 'GM': 'Gambia', 235 | 'TG': 'Togo', 236 | 'TK': 'Tokelau', 237 | 'TO': 'Tonga', 238 | 'TT': 'Trinidad e Tobago', 239 | 'TN': 'Tunisia', 240 | 'TR': 'Turchia', 241 | 'TM': 'Turkmenistan', 242 | 'TC': 'Isole Turks e Caicos', 243 | 'TV': 'Tuvalu', 244 | 'VI': 'Isole Vergini Statunitensi', 245 | 'UG': 'Uganda', 246 | 'UA': 'Ucraina', 247 | 'AE': 'Emirati Arabi Uniti', 248 | 'GB': 'Regno Unito', 249 | 'US': 'Stati Uniti', 250 | 'UM': 'United States Minor Outlying Islands', 251 | 'UY': 'Uruguay', 252 | 'UZ': 'Uzbekistan', 253 | 'VU': 'Vanuatu', 254 | 'VA': 'Città del Vaticano', 255 | 'VE': 'Venezuela', 256 | 'VN': 'Vietnam', 257 | 'WF': 'Wallis e Futuna', 258 | 'EH': 'Sahara Occidentale', 259 | 'YE': 'Yemen', 260 | 'ZM': 'Zambia', 261 | 'ZW': 'Zimbabwe' 262 | }; 263 | -------------------------------------------------------------------------------- /js/lang/pt_BR/bootstrap-formhelpers-countries.pt_BR.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.pt_BR.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AF': 'Afeganistão', 22 | 'AL': 'Albânia', 23 | 'DZ': 'Argélia', 24 | 'AS': 'Samoa Americana', 25 | 'AD': 'Andorra', 26 | 'AO': 'Angola', 27 | 'AI': 'Anguila', 28 | 'AQ': 'Antártica' , 29 | 'AG': 'Antigua and Barbuda' , 30 | 'AR': 'Argentina' , 31 | 'AM': 'Armênia' , 32 | 'AW': 'Aruba' , 33 | 'AU': 'Austrália' , 34 | 'AT': 'Áustria' , 35 | 'AZ': 'Azerbaijão' , 36 | 'BH': 'Bahrein' , 37 | 'BD': 'Bangladesh', 38 | 'BB': 'Barbados' , 39 | 'BY': 'Bielorrússia (Belarus)', 40 | 'BE': 'Bélgica', 41 | 'BZ': 'Belize', 42 | 'BJ': 'Benin', 43 | 'BM': 'Bermuda', 44 | 'BT': 'Butão', 45 | 'BO': 'Bolívia', 46 | 'BA': 'Bósnia Herzegóvina', 47 | 'BW': 'Botsuana', 48 | 'BV': 'Ilha Bouvet', 49 | 'BR': 'Brasil', 50 | 'IO': 'Território Britânico do Oceano Índico', 51 | 'VG': 'Ilhas Virgens Britânicas', 52 | 'BN': 'Brunei', 53 | 'BG': 'Bulgária', 54 | 'BF': 'Burkina-Fasso', 55 | 'BI': 'Burundi', 56 | 'CI': 'Costa do Marfim', 57 | 'KH': 'Camboja', 58 | 'CM': 'Camarões', 59 | 'CA': 'Canadá', 60 | 'CV': 'Cabo Verde', 61 | 'KY': 'Ilhas Cayman', 62 | 'CF': 'Rep. Centro-Africana', 63 | 'TD': 'Chade', 64 | 'CL': 'Chile', 65 | 'CN': 'China', 66 | 'CX': 'Ilha Christmas', 67 | 'CC': 'Ilhas Cocos (Keeling)', 68 | 'CO': 'Colômbia', 69 | 'KM': 'Comores', 70 | 'CG': 'Congo', 71 | 'CK': 'Ilhas Cook', 72 | 'CR': 'Costa Rica', 73 | 'HR': 'Croácia', 74 | 'CU': 'Cuba', 75 | 'CY': 'Chipre', 76 | 'CZ': 'República Tcheca', 77 | 'CD': 'República Democrática do Congo ou Zaire', 78 | 'DK': 'Dinamarca', 79 | 'DJ': 'Djibuti', 80 | 'DM': 'Dominica', 81 | 'DO': 'Rep. Dominicana', 82 | 'TP': 'East Timor', 83 | 'EC': 'Equador', 84 | 'EG': 'Egito', 85 | 'SV': 'El Salvador', 86 | 'GQ': 'Guiné Equatorial', 87 | 'ER': 'Eritréia', 88 | 'EE': 'Estônia', 89 | 'ET': 'Etiópia', 90 | 'FO': 'Ilhas Feroe', 91 | 'FK': 'Ilhas Malvinas', 92 | 'FJ': 'Fiji', 93 | 'FI': 'Finlândia', 94 | 'MK': 'Macedônia', 95 | 'FR': 'França', 96 | 'FX': 'França Metropolitana', 97 | 'GF': 'Guiana Francesa', 98 | 'PF': 'Polinésia Francesa', 99 | 'TF': 'Terras Austrais e Antárticas Francesas', 100 | 'GA': 'Gabão', 101 | 'GE': 'Geórgia', 102 | 'DE': 'Alemanha', 103 | 'GH': 'Gana', 104 | 'GI': 'Gibraltar', 105 | 'GR': 'Grécia', 106 | 'GL': 'Groenlândia (Dinamarca)', 107 | 'GD': 'Granada', 108 | 'GP': 'Guadalupe', 109 | 'GU': 'Guam', 110 | 'GT': 'Guatemala', 111 | 'GN': 'Guiné', 112 | 'GW': 'Guiné Bissau', 113 | 'GY': 'Guiana', 114 | 'HT': 'Haiti', 115 | 'HM': 'Ilha Heard e Ilhas McDonald', 116 | 'HN': 'Honduras', 117 | 'HK': 'Hong Kong', 118 | 'HU': 'Hungria', 119 | 'IS': 'Islândia', 120 | 'IN': 'Índia', 121 | 'ID': 'Indonésia', 122 | 'IR': 'Irã', 123 | 'IQ': 'Iraque', 124 | 'IE': 'Irlanda', 125 | 'IL': 'Israel', 126 | 'IT': 'Itália', 127 | 'JM': 'Jamaica', 128 | 'JP': 'Japão', 129 | 'JO': 'Jordânia', 130 | 'KZ': 'Cazaquistão', 131 | 'KE': 'Quênia', 132 | 'KI': 'Kiribati', 133 | 'KW': 'Kuweit', 134 | 'KG': 'Quirguistão', 135 | 'LA': 'Laos', 136 | 'LV': 'Letônia', 137 | 'LB': 'Líbano', 138 | 'LS': 'Lesoto', 139 | 'LR': 'Libéria', 140 | 'LY': 'Líbia', 141 | 'LI': 'Liechtenstein', 142 | 'LT': 'Lituânia', 143 | 'LU': 'Luxemburgo', 144 | 'MO': 'Macau', 145 | 'MG': 'Madagascar', 146 | 'MW': 'Malauí', 147 | 'MY': 'Malásia', 148 | 'MV': 'Maldivas', 149 | 'ML': 'Mali', 150 | 'MT': 'Malta', 151 | 'MH': 'Ilhas Marshall', 152 | 'MQ': 'Martinica', 153 | 'MR': 'Mauritânia', 154 | 'MU': 'Maurício', 155 | 'YT': 'Mayotte', 156 | 'MX': 'México', 157 | 'FM': 'Micronésia', 158 | 'MD': 'Moldávia', 159 | 'MC': 'Mônaco', 160 | 'MN': 'Mongólia', 161 | 'ME': 'Montenegro', 162 | 'MS': 'Montserrat', 163 | 'MA': 'Marrocos', 164 | 'MZ': 'Moçambique', 165 | 'MM': 'Mianmar', 166 | 'NA': 'Namíbia', 167 | 'NR': 'Nauru', 168 | 'NP': 'Nepal', 169 | 'NL': 'Holanda', 170 | 'AN': 'Antilhas Neerlandesas', 171 | 'NC': 'Nova Caledónia', 172 | 'NZ': 'Nova Zelândia', 173 | 'NI': 'Nicarágua', 174 | 'NE': 'Níger', 175 | 'NG': 'Nigéria', 176 | 'NU': 'Niue', 177 | 'NF': 'Ilha Norfolk', 178 | 'KP': 'Coréia do Norte', 179 | 'MP': 'Marianas Setentrionais', 180 | 'NO': 'Noruega', 181 | 'OM': 'Omã', 182 | 'PK': 'Paquistão', 183 | 'PW': 'Palau', 184 | 'PS': 'Palestina', 185 | 'PA': 'Panamá', 186 | 'PG': 'Papua Nova Guiné', 187 | 'PY': 'Paraguai', 188 | 'PE': 'Peru', 189 | 'PH': 'Filipinas', 190 | 'PN': 'Ilhas Pitcairn', 191 | 'PL': 'Polônia', 192 | 'PT': 'Portugal', 193 | 'PR': 'Porto Rico', 194 | 'QA': 'Catar', 195 | 'RE': 'Reunion', 196 | 'RO': 'Romênia', 197 | 'RU': 'Rússia', 198 | 'RW': 'Ruanda', 199 | 'ST': 'São Tomé e Príncipe', 200 | 'SH': 'Santa Helena', 201 | 'PM': 'Saint-Pierre e Miquelon', 202 | 'KN': 'São Cristóvão e Névis', 203 | 'LC': 'Santa Lúcia', 204 | 'VC': 'São Vicente e Granadinas', 205 | 'WS': 'Samoa', 206 | 'SM': 'San Marino', 207 | 'SA': 'Arábia Saudita', 208 | 'SN': 'Senegal', 209 | 'RS': 'Sérvia', 210 | 'SC': 'Seicheles', 211 | 'SL': 'Serra Leoa', 212 | 'SG': 'Singapura', 213 | 'SK': 'Eslováquia', 214 | 'SI': 'Eslovênia', 215 | 'SB': 'Ilhas Salomão', 216 | 'SO': 'Somália', 217 | 'ZA': 'África do Sul', 218 | 'GS': 'Ilhas Geórgia do Sul e Sandwich do Sul', 219 | 'KR': 'Coréia do Sul', 220 | 'ES': 'Espanha', 221 | 'LK': 'Sri Lanka', 222 | 'SD': 'Sudão', 223 | 'SR': 'Suriname', 224 | 'SJ': 'Svalbard e Jan Mayen', 225 | 'SZ': 'Suazilândia', 226 | 'SE': 'Suécia', 227 | 'CH': 'Suíça', 228 | 'SY': 'Síria', 229 | 'TW': 'Taiwan', 230 | 'TJ': 'Tadjiquistão', 231 | 'TZ': 'Tanzânia', 232 | 'TH': 'Tailândia', 233 | 'BS': 'Bahamas', 234 | 'GM': 'Gâmbia', 235 | 'TG': 'Togo', 236 | 'TK': 'Tokelau', 237 | 'TO': 'Tonga', 238 | 'TT': 'Trinidad e Tobago', 239 | 'TN': 'Tunísia', 240 | 'TR': 'Turquia', 241 | 'TM': 'Turcomenistão', 242 | 'TC': 'Turks e Caicos', 243 | 'TV': 'Tuvalu', 244 | 'VI': 'Ilhas Virgens Americanas', 245 | 'UG': 'Uganda', 246 | 'UA': 'Ucrânia', 247 | 'AE': 'Emirados Árabes Unidos', 248 | 'GB': 'Reino Unido', 249 | 'US': 'Estados Unidos', 250 | 'UM': 'Ilhas Menores Distantes dos Estados Unidos', 251 | 'UY': 'Uruguai', 252 | 'UZ': 'Uzbequistão', 253 | 'VU': 'Vanuatu', 254 | 'VA': 'Vaticano', 255 | 'VE': 'Venezuela', 256 | 'VN': 'Vietnã', 257 | 'WF': 'Wallis e Futuna', 258 | 'EH': 'Saara Ocidental', 259 | 'YE': 'Iêmen', 260 | 'ZM': 'Zâmbia', 261 | 'ZW': 'Zimbábue' 262 | }; 263 | -------------------------------------------------------------------------------- /js/lang/ru_RU/bootstrap-formhelpers-countries.ru_RU.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.ru_RU.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2014 Egor Zaitcev 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AU': 'Австралия', 22 | 'AT': 'Австрия', 23 | 'AZ': 'Азербайджан', 24 | 'AL': 'Албания', 25 | 'DZ': 'Алжир', 26 | 'VI': 'Американские Виргинские острова', 27 | 'AS': 'Американское Самоа', 28 | 'AI': 'Ангилья', 29 | 'AO': 'Ангола', 30 | 'AD': 'Андорра', 31 | 'AQ': 'Антарктика', 32 | 'AG': 'Антигуа и Барбуда', 33 | 'AR': 'Аргентина', 34 | 'AM': 'Армения', 35 | 'AW': 'Аруба', 36 | 'AF': 'Афганистан', 37 | 'BS': 'Багамы', 38 | 'BD': 'Бангладеш', 39 | 'BB': 'Барбадос', 40 | 'BH': 'Бахрейн', 41 | 'BZ': 'Белиз', 42 | 'BY': 'Белоруссия', 43 | 'BE': 'Бельгия', 44 | 'BJ': 'Бенин', 45 | 'BM': 'Бермуды', 46 | 'BG': 'Болгария', 47 | 'BO': 'Боливия', 48 | 'BA': 'Босния и Герцеговина', 49 | 'BW': 'Ботсвана', 50 | 'BR': 'Бразилия', 51 | 'IO': 'Британская территория в Индийском океане', 52 | 'VG': 'Британские Виргинские острова', 53 | 'BN': 'Бруней', 54 | 'BF': 'Буркина-Фасо', 55 | 'BI': 'Бурунди', 56 | 'BT': 'Бутан', 57 | 'VU': 'Вануату', 58 | 'VA': 'Ватикан', 59 | 'GB': 'Великобритания', 60 | 'HU': 'Венгрия', 61 | 'VE': 'Венесуэла', 62 | 'UM': 'Внешние малые острова (США)', 63 | 'TP': 'Восточный Тимор', 64 | 'VN': 'Вьетнам', 65 | 'GA': 'Габон', 66 | 'HT': 'Гаити', 67 | 'GY': 'Гайана', 68 | 'GM': 'Гамбия', 69 | 'GH': 'Гана', 70 | 'GP': 'Гваделупа', 71 | 'GT': 'Гватемала', 72 | 'GF': 'Гвиана', 73 | 'GW': 'Гвинея-Бисау', 74 | 'GN': 'Гвинея', 75 | 'DE': 'Германия', 76 | 'GI': 'Гибралтар', 77 | 'HN': 'Гондурас', 78 | 'HK': 'Гонконг', 79 | 'PS': 'Государство Палестина', 80 | 'GD': 'Гренада', 81 | 'GL': 'Гренландия', 82 | 'GR': 'Греция', 83 | 'GE': 'Грузия', 84 | 'GU': 'Гуам', 85 | 'DK': 'Дания', 86 | 'DJ': 'Джибути', 87 | 'DM': 'Доминика', 88 | 'DO': 'Доминиканская Республика', 89 | 'CD': 'ДР Конго', 90 | 'EG': 'Египет', 91 | 'ZM': 'Замбия', 92 | 'EH': 'Западная Сахара', 93 | 'ZW': 'Зимбабве', 94 | 'IL': 'Израиль', 95 | 'IN': 'Индия', 96 | 'ID': 'Индонезия', 97 | 'JO': 'Иордания', 98 | 'IQ': 'Ирак', 99 | 'IR': 'Иран', 100 | 'IE': 'Ирландия', 101 | 'IS': 'Исландия', 102 | 'ES': 'Испания', 103 | 'IT': 'Италия', 104 | 'YE': 'Йемен', 105 | 'CV': 'Кабо-Верде', 106 | 'KZ': 'Казахстан', 107 | 'KY': 'Каймановы острова', 108 | 'KH': 'Камбоджа', 109 | 'CM': 'Камерун', 110 | 'CA': 'Канада', 111 | 'QA': 'Катар', 112 | 'KE': 'Кения', 113 | 'CY': 'Кипр', 114 | 'KG': 'Киргизия', 115 | 'KI': 'Кирибати', 116 | 'TW': 'Китайская Республика', 117 | 'KP': 'КНДР', 118 | 'CN': 'КНР', 119 | 'CC': 'Кокосовые острова', 120 | 'CO': 'Колумбия', 121 | 'KM': 'Коморы', 122 | 'CR': 'Коста-Рика', 123 | 'CI': 'Кот-д\'Ивуар', 124 | 'CU': 'Куба', 125 | 'KW': 'Кувейт', 126 | 'LA': 'Лаос', 127 | 'LV': 'Латвия', 128 | 'LS': 'Лесото', 129 | 'LR': 'Либерия', 130 | 'LB': 'Ливан', 131 | 'LY': 'Ливия', 132 | 'LT': 'Литва', 133 | 'LI': 'Лихтенштейн', 134 | 'LU': 'Люксембург', 135 | 'MU': 'Маврикий', 136 | 'MR': 'Мавритания', 137 | 'MG': 'Мадагаскар', 138 | 'YT': 'Майотта', 139 | 'MO': 'Макао', 140 | 'MK': 'Македония', 141 | 'MW': 'Малави', 142 | 'MY': 'Малайзия', 143 | 'ML': 'Мали', 144 | 'MV': 'Мальдивы', 145 | 'MT': 'Мальта', 146 | 'MA': 'Марокко', 147 | 'MQ': 'Мартиника', 148 | 'MH': 'Маршалловы Острова', 149 | 'MX': 'Мексика', 150 | 'FM': 'Микронезия', 151 | 'MZ': 'Мозамбик', 152 | 'MD': 'Молдавия', 153 | 'MC': 'Монако', 154 | 'MN': 'Монголия', 155 | 'MS': 'Монтсеррат', 156 | 'MM': 'Мьянма', 157 | 'NA': 'Намибия', 158 | 'NR': 'Науру', 159 | 'NP': 'Непал', 160 | 'NE': 'Нигер', 161 | 'NG': 'Нигерия', 162 | 'NL': 'Нидерланды', 163 | 'NI': 'Никарагуа', 164 | 'NU': 'Ниуэ', 165 | 'NZ': 'Новая Зеландия', 166 | 'NC': 'Новая Каледония', 167 | 'NO': 'Норвегия', 168 | 'AE': 'ОАЭ', 169 | 'OM': 'Оман', 170 | 'BV': 'Остров Буве', 171 | 'NF': 'Остров Норфолк', 172 | 'CX': 'Остров Рождества', 173 | 'CK': 'Острова Кука', 174 | 'PN': 'Острова Питкэрн', 175 | 'SH': 'Острова Святой Елены, Вознесения и Тристан-да-Кунья', 176 | 'PK': 'Пакистан', 177 | 'PW': 'Палау', 178 | 'PA': 'Панама', 179 | 'PG': 'Папуа — Новая Гвинея', 180 | 'PY': 'Парагвай', 181 | 'PE': 'Перу', 182 | 'PL': 'Польша', 183 | 'PT': 'Португалия', 184 | 'PR': 'Пуэрто-Рико', 185 | 'CG': 'Республика Конго', 186 | 'KR': 'Республика Корея', 187 | 'RE': 'Реюньон', 188 | 'RU': 'Россия', 189 | 'RW': 'Руанда', 190 | 'RO': 'Румыния', 191 | 'SV': 'Сальвадор', 192 | 'WS': 'Самоа', 193 | 'SM': 'Сан-Марино', 194 | 'ST': 'Сан-Томе и Принсипи', 195 | 'SA': 'Саудовская Аравия', 196 | 'SZ': 'Свазиленд', 197 | 'MP': 'Северные Марианские острова', 198 | 'SC': 'Сейшельские Острова', 199 | 'PM': 'Сен-Пьер и Микелон', 200 | 'SN': 'Сенегал', 201 | 'VC': 'Сент-Винсент и Гренадины', 202 | 'KN': 'Сент-Китс и Невис', 203 | 'LC': 'Сент-Люсия', 204 | 'RS': 'Сербия', 205 | 'SG': 'Сингапур', 206 | 'SY': 'Сирия', 207 | 'SK': 'Словакия', 208 | 'SI': 'Словения', 209 | 'SB': 'Соломоновы Острова', 210 | 'SO': 'Сомали', 211 | 'SD': 'Судан', 212 | 'SR': 'Суринам', 213 | 'US': 'США', 214 | 'SL': 'Сьерра-Леоне', 215 | 'TJ': 'Таджикистан', 216 | 'TH': 'Таиланд', 217 | 'TZ': 'Танзания', 218 | 'TC': 'Тёркс и Кайкос', 219 | 'TG': 'Того', 220 | 'TK': 'Токелау', 221 | 'TO': 'Тонга', 222 | 'TT': 'Тринидад и Тобаго', 223 | 'TV': 'Тувалу', 224 | 'TN': 'Тунис', 225 | 'TM': 'Туркмения', 226 | 'TR': 'Турция', 227 | 'UG': 'Уганда', 228 | 'UZ': 'Узбекистан', 229 | 'UA': 'Украина', 230 | 'WF': 'Уоллис и Футуна', 231 | 'UY': 'Уругвай', 232 | 'FO': 'Фарерские острова', 233 | 'FJ': 'Фиджи', 234 | 'PH': 'Филиппины', 235 | 'FI': 'Финляндия', 236 | 'FK': 'Фолклендские острова', 237 | 'FR': 'Франция', 238 | 'PF': 'Французская Полинезия', 239 | 'TF': 'Французские Южные и Антарктические Территории', 240 | 'HM': 'Херд и Макдональд', 241 | 'HR': 'Хорватия', 242 | 'CF': 'ЦАР', 243 | 'TD': 'Чад', 244 | 'ME': 'Черногория', 245 | 'CZ': 'Чехия', 246 | 'CL': 'Чили', 247 | 'CH': 'Швейцария', 248 | 'SE': 'Швеция', 249 | 'SJ': 'Шпицберген и Ян-Майен', 250 | 'LK': 'Шри-Ланка', 251 | 'EC': 'Эквадор', 252 | 'GQ': 'Экваториальная Гвинея', 253 | 'ER': 'Эритрея', 254 | 'EE': 'Эстония', 255 | 'ET': 'Эфиопия', 256 | 'ZA': 'ЮАР', 257 | 'GS': 'Южная Георгия и Южные Сандвичевы острова', 258 | 'JM': 'Ямайка', 259 | 'JP': 'Япония' 260 | }; 261 | -------------------------------------------------------------------------------- /js/lang/ru_RU/bootstrap-formhelpers-datepicker.ru_RU.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-datepicker.ru_RU.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2013 Yuri Mihaqlov 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHMonthsList = [ 21 | 'Январь', 22 |   'Февраль', 23 |   'Март', 24 |   'Апрель', 25 |   'Май', 26 |   'Июнь', 27 |   'Июль', 28 |   'Август', 29 |   'Сентябрь', 30 |   'Октябрь', 31 |   'Ноябрь', 32 |   'Декабрь' 33 | ]; 34 | 35 | var BFHDaysList = [ 36 | 'ВС', 37 | 'ПН', 38 | 'ВТ', 39 | 'СР', 40 | 'ЧТ', 41 | 'ПТ', 42 | 'СБ' 43 | ]; 44 | 45 | var BFHDayOfWeekStart = 1; 46 | -------------------------------------------------------------------------------- /js/lang/zh_CN/bootstrap-formhelpers-countries.zh_CN.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.zh_CN.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AF': '阿富汗', 22 | 'AL': '阿尔巴尼亚', 23 | 'DZ': '阿尔及利亚', 24 | 'AS': '美属萨摩亚', 25 | 'AD': '安道尔共和国', 26 | 'AO': '安哥拉', 27 | 'AI': '安圭拉岛', 28 | 'AQ': '南极洲' , 29 | 'AG': '安提瓜和巴布达' , 30 | 'AR': '阿根廷' , 31 | 'AM': '亚美尼亚' , 32 | 'AW': '阿鲁巴' , 33 | 'AU': '澳大利亚' , 34 | 'AT': '奥地利' , 35 | 'AZ': '阿塞拜疆' , 36 | 'BH': '巴林' , 37 | 'BD': '孟加拉国', 38 | 'BB': '巴巴多斯' , 39 | 'BY': '白俄罗斯', 40 | 'BE': '比利时', 41 | 'BZ': '伯利兹', 42 | 'BJ': '贝宁', 43 | 'BM': '百慕大群岛', 44 | 'BT': '不丹', 45 | 'BO': '玻利维亚', 46 | 'BA': '波黑', 47 | 'BW': '博茨瓦纳', 48 | 'BV': '布韦岛', 49 | 'BR': '巴西', 50 | 'IO': '英属印度洋领地', 51 | 'VG': '英属维尔京群岛', 52 | 'BN': '文莱', 53 | 'BG': '保加利亚', 54 | 'BF': '布基纳法索', 55 | 'BI': '布隆迪', 56 | 'CI': '科特迪瓦', 57 | 'KH': '柬埔寨', 58 | 'CM': '喀麦隆', 59 | 'CA': '加拿大', 60 | 'CV': '佛得角', 61 | 'KY': '开曼群岛', 62 | 'CF': '中非共和国', 63 | 'TD': '乍得', 64 | 'CL': '智利', 65 | 'CN': '中国', 66 | 'CX': '圣诞岛', 67 | 'CC': '科科斯群岛', 68 | 'CO': '哥伦比亚', 69 | 'KM': '科摩罗', 70 | 'CG': '刚果', 71 | 'CK': '库克群岛', 72 | 'CR': '哥斯达黎加', 73 | 'HR': '克罗地亚', 74 | 'CU': '古巴', 75 | 'CY': '塞浦路斯', 76 | 'CZ': '捷克', 77 | 'CD': '刚果(金)', 78 | 'DK': '丹麦', 79 | 'DJ': '吉布提', 80 | 'DM': '多米尼克', 81 | 'DO': '多米尼加共和国', 82 | 'TP': '东帝汶', 83 | 'EC': '厄瓜多尔', 84 | 'EG': '埃及', 85 | 'SV': '萨尔瓦多', 86 | 'GQ': '赤道几内亚', 87 | 'ER': '厄立特里亚', 88 | 'EE': '爱沙尼亚', 89 | 'ET': '埃塞俄比亚', 90 | 'FO': '法罗群岛', 91 | 'FK': '马尔维纳斯群岛(福克兰)', 92 | 'FJ': '斐济', 93 | 'FI': '芬兰', 94 | 'MK': '马其顿', 95 | 'FR': '法国', 96 | 'FX': '法国的本土部分', 97 | 'GF': '法属圭亚那', 98 | 'PF': '法属波利尼西亚', 99 | 'TF': '法属南部领地', 100 | 'GA': '加蓬', 101 | 'GE': '格鲁吉亚', 102 | 'DE': '德国', 103 | 'GH': '加纳', 104 | 'GI': '直布罗陀', 105 | 'GR': '希腊', 106 | 'GL': '格陵兰', 107 | 'GD': '格林纳达', 108 | 'GP': '瓜德罗普', 109 | 'GU': '关岛', 110 | 'GT': '危地马拉', 111 | 'GN': '几内亚', 112 | 'GW': '几内亚比绍', 113 | 'GY': '圭亚那', 114 | 'HT': '海地', 115 | 'HM': '赫德岛和麦克唐纳群岛', 116 | 'HN': '洪都拉斯', 117 | 'HK': '香港', 118 | 'HU': '匈牙利', 119 | 'IS': '冰岛', 120 | 'IN': '印度', 121 | 'ID': '印度尼西亚', 122 | 'IR': '伊朗', 123 | 'IQ': '伊拉克', 124 | 'IE': '爱尔兰', 125 | 'IL': '以色列', 126 | 'IT': '意大利', 127 | 'JM': '牙买加', 128 | 'JP': '日本', 129 | 'JO': '约旦', 130 | 'KZ': '哈萨克斯坦', 131 | 'KE': '肯尼亚', 132 | 'KI': '基里巴斯', 133 | 'KW': '科威特', 134 | 'KG': '吉尔吉斯坦', 135 | 'LA': '老挝', 136 | 'LV': '拉脱维亚', 137 | 'LB': '黎巴嫩', 138 | 'LS': '莱索托', 139 | 'LR': '利比里亚', 140 | 'LY': '利比亚', 141 | 'LI': '列支敦士登', 142 | 'LT': '立陶宛', 143 | 'LU': '卢森堡', 144 | 'MO': '澳门', 145 | 'MG': '马达加斯加', 146 | 'MW': '马拉维', 147 | 'MY': '马来西亚', 148 | 'MV': '马尔代夫', 149 | 'ML': '马里', 150 | 'MT': '马耳他', 151 | 'MH': '马绍尔群岛', 152 | 'MQ': '马提尼克', 153 | 'MR': '毛里塔尼亚', 154 | 'MU': '毛里求斯', 155 | 'YT': '马约特', 156 | 'MX': '墨西哥', 157 | 'FM': '密克罗尼西亚联邦', 158 | 'MD': '摩尔多瓦', 159 | 'MC': '摩纳哥', 160 | 'MN': '蒙古', 161 | 'ME': '黑山', 162 | 'MS': '蒙特塞拉特岛', 163 | 'MA': '摩洛哥', 164 | 'MZ': '莫桑比克', 165 | 'MM': '缅甸', 166 | 'NA': '纳米比亚', 167 | 'NR': '瑙鲁', 168 | 'NP': '尼泊尔', 169 | 'NL': '荷兰', 170 | 'AN': '荷属安的列斯', 171 | 'NC': '新喀里多尼亚', 172 | 'NZ': '新西兰', 173 | 'NI': '尼加拉瓜', 174 | 'NE': '尼日尔', 175 | 'NG': '尼日利亚', 176 | 'NU': '纽埃', 177 | 'NF': '诺福克岛', 178 | 'KP': '朝鲜', 179 | 'MP': '北马里亚纳群岛', 180 | 'NO': '挪威', 181 | 'OM': '阿曼', 182 | 'PK': '巴基斯坦', 183 | 'PW': '帕劳', 184 | 'PS': '巴勒斯坦', 185 | 'PA': '巴拿马', 186 | 'PG': '巴布亚新几内亚', 187 | 'PY': '巴拉圭', 188 | 'PE': '秘鲁', 189 | 'PH': '菲律宾', 190 | 'PN': '皮特凯恩群岛', 191 | 'PL': '波兰', 192 | 'PT': '葡萄牙', 193 | 'PR': '波多黎各', 194 | 'QA': '卡塔尔', 195 | 'RE': '留尼旺', 196 | 'RO': '罗马尼亚', 197 | 'RU': '俄罗斯', 198 | 'RW': '卢旺达', 199 | 'ST': '圣多美和普林西比', 200 | 'SH': '圣赫勒拿', 201 | 'PM': '圣皮埃尔和密克隆', 202 | 'KN': '圣基茨和尼维斯', 203 | 'LC': '圣卢西亚', 204 | 'VC': '圣文森特岛', 205 | 'WS': '萨摩亚', 206 | 'SM': '圣马力诺', 207 | 'SA': '沙特阿拉伯', 208 | 'SN': '塞内加尔', 209 | 'RS': '塞尔维亚', 210 | 'SC': '塞舌尔', 211 | 'SL': '塞拉利昂', 212 | 'SG': '新加坡', 213 | 'SK': '斯洛伐克', 214 | 'SI': '斯洛文尼亚', 215 | 'SB': '所罗门群岛', 216 | 'SO': '索马里', 217 | 'ZA': '南非', 218 | 'GS': '南乔治亚岛和南桑威奇群岛', 219 | 'KR': '韩国', 220 | 'ES': '西班牙', 221 | 'LK': '斯里兰卡', 222 | 'SD': '苏丹', 223 | 'SR': '苏里南', 224 | 'SJ': '斯瓦尔巴群岛和扬马延岛', 225 | 'SZ': '斯威士兰', 226 | 'SE': '瑞典', 227 | 'CH': '瑞士', 228 | 'SY': '叙利亚', 229 | 'TW': '台湾省', 230 | 'TJ': '塔吉克斯坦', 231 | 'TZ': '坦桑尼亚', 232 | 'TH': '泰国', 233 | 'BS': '巴哈马', 234 | 'GM': '冈比亚', 235 | 'TG': '多哥', 236 | 'TK': '托克劳', 237 | 'TO': '汤加', 238 | 'TT': '特立尼达和多巴哥', 239 | 'TN': '突尼斯', 240 | 'TR': '土耳其', 241 | 'TM': '土库曼斯坦', 242 | 'TC': '特克斯和凯科斯群岛', 243 | 'TV': '图瓦卢', 244 | 'VI': '美属维尔京群岛', 245 | 'UG': '乌干达', 246 | 'UA': '乌克兰', 247 | 'AE': '阿拉伯联合酋长国', 248 | 'GB': '英国', 249 | 'US': '美国', 250 | 'UM': '美国本土外小岛屿', 251 | 'UY': '乌拉圭', 252 | 'UZ': '乌兹别克斯坦', 253 | 'VU': '瓦努阿图', 254 | 'VA': '梵蒂冈', 255 | 'VE': '委内瑞拉', 256 | 'VN': '越南', 257 | 'WF': '瓦利斯和富图纳', 258 | 'EH': '西撒哈拉', 259 | 'YE': '也门', 260 | 'ZM': '赞比亚', 261 | 'ZW': '津巴布韦' 262 | }; 263 | -------------------------------------------------------------------------------- /js/lang/zh_TW/bootstrap-formhelpers-countries.zh_TW.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-formhelpers-countries.zh_TW.js 3 | * https://github.com/vlamanna/BootstrapFormHelpers 4 | * ========================================================== 5 | * Copyright 2012 Vincent Lamanna 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | var BFHCountriesList = { 21 | 'AF': '阿富汗', 22 | 'AL': '阿爾巴尼亞', 23 | 'DZ': '阿爾及利亞', 24 | 'AS': '美屬薩摩亞', 25 | 'AD': '安道爾', 26 | 'AO': '安哥拉', 27 | 'AI': '安圭拉', 28 | 'AQ': '南極洲' , 29 | 'AG': '安提瓜和巴布達' , 30 | 'AR': '阿根廷' , 31 | 'AM': '亞美尼亞' , 32 | 'AW': '阿魯巴' , 33 | 'AU': '澳洲' , 34 | 'AT': '奧地利' , 35 | 'AZ': '亞塞拜然' , 36 | 'BH': '巴林' , 37 | 'BD': '孟加拉', 38 | 'BB': '巴貝多' , 39 | 'BY': '白俄羅斯', 40 | 'BE': '比利時', 41 | 'BZ': '貝里斯', 42 | 'BJ': '貝南', 43 | 'BM': '百慕達', 44 | 'BT': '不丹', 45 | 'BO': '玻利維亞', 46 | 'BA': '波赫', 47 | 'BW': '波札那', 48 | 'BV': '布威島', 49 | 'BR': '巴西', 50 | 'IO': '英屬印度洋地區', 51 | 'VG': '英屬維爾京群島', 52 | 'BN': '汶萊', 53 | 'BG': '保加利亞', 54 | 'BF': '布吉納法索', 55 | 'BI': '蒲隆地', 56 | 'CI': '象牙海岸', 57 | 'KH': '柬埔寨', 58 | 'CM': '喀麥隆', 59 | 'CA': '加拿大', 60 | 'CV': '維德角', 61 | 'KY': '開曼群島', 62 | 'CF': '中非', 63 | 'TD': '查德', 64 | 'CL': '智利', 65 | 'CN': '中國', 66 | 'CX': '聖誕島', 67 | 'CC': '可可斯群島', 68 | 'CO': '哥倫比亞', 69 | 'KM': '葛摩', 70 | 'CG': '剛果', 71 | 'CK': '庫克群島', 72 | 'CR': '哥斯大黎加', 73 | 'HR': '克羅地亞', 74 | 'CU': '古巴', 75 | 'CY': '塞普勒斯', 76 | 'CZ': '捷克', 77 | 'CD': '民主剛果', 78 | 'DK': '丹麥', 79 | 'DJ': '吉布地', 80 | 'DM': '多米尼克', 81 | 'DO': '多明尼加', 82 | 'TP': '東帝汶', 83 | 'EC': '厄瓜多', 84 | 'EG': '埃及', 85 | 'SV': '薩爾瓦多', 86 | 'GQ': '赤道幾內亞', 87 | 'ER': '厄立垂亞', 88 | 'EE': '愛沙尼亞', 89 | 'ET': '衣索比亞', 90 | 'FO': '法羅群島', 91 | 'FK': '福克蘭群島', 92 | 'FJ': '斐濟', 93 | 'FI': '芬蘭', 94 | 'MK': '馬其頓', 95 | 'FR': '法國', 96 | 'FX': '法国的本土部分', 97 | 'GF': '法屬圭亞那', 98 | 'PF': '法屬玻里尼西亞', 99 | 'TF': '法屬南部屬地', 100 | 'GA': '加彭', 101 | 'GE': '喬治亞', 102 | 'DE': '德國', 103 | 'GH': '迦納', 104 | 'GI': '直布羅陀', 105 | 'GR': '希臘', 106 | 'GL': '格陵蘭', 107 | 'GD': '格瑞那達', 108 | 'GP': '瓜德魯普島', 109 | 'GU': '關島', 110 | 'GT': '瓜地馬拉', 111 | 'GN': '幾內亞', 112 | 'GW': '幾內亞比索', 113 | 'GY': '蓋亞那', 114 | 'HT': '海地', 115 | 'HM': '赫德及麥當勞群島', 116 | 'HN': '洪都拉斯', 117 | 'HK': '香港', 118 | 'HU': '匈牙利', 119 | 'IS': '冰島', 120 | 'IN': '印度', 121 | 'ID': '印尼', 122 | 'IR': '伊朗', 123 | 'IQ': '伊拉克', 124 | 'IE': '愛爾蘭', 125 | 'IL': '以色列', 126 | 'IT': '義大利', 127 | 'JM': '牙買加', 128 | 'JP': '日本', 129 | 'JO': '約旦', 130 | 'KZ': '哈薩克', 131 | 'KE': '肯亞', 132 | 'KI': '吉里巴斯', 133 | 'KW': '科威特', 134 | 'KG': '吉爾吉斯', 135 | 'LA': '寮國', 136 | 'LV': '拉脫維亞', 137 | 'LB': '黎巴嫩', 138 | 'LS': '賴索托', 139 | 'LR': '賴比瑞亞', 140 | 'LY': '利比亞', 141 | 'LI': '列支敦斯登', 142 | 'LT': '立陶宛', 143 | 'LU': '盧森堡', 144 | 'MO': '澳門', 145 | 'MG': '馬達加斯加', 146 | 'MW': '馬拉威', 147 | 'MY': '馬來西亞', 148 | 'MV': '馬爾地夫', 149 | 'ML': '馬利', 150 | 'MT': '馬耳他', 151 | 'MH': '馬紹爾群島', 152 | 'MQ': '法屬馬丁尼克', 153 | 'MR': '茅利塔尼亞', 154 | 'MU': '模里西斯', 155 | 'YT': '美亞特', 156 | 'MX': '墨西哥', 157 | 'FM': '密克羅尼西亞聯邦', 158 | 'MD': '摩爾多瓦', 159 | 'MC': '摩納哥', 160 | 'MN': '蒙古', 161 | 'ME': '蒙特內哥羅', 162 | 'MS': '蒙塞拉特島', 163 | 'MA': '摩洛哥', 164 | 'MZ': '莫三比克', 165 | 'MM': '緬甸', 166 | 'NA': '奈米比亞', 167 | 'NR': '諾魯', 168 | 'NP': '尼泊爾', 169 | 'NL': '荷蘭', 170 | 'AN': '荷屬安的列斯', 171 | 'NC': '新喀里多尼亞島', 172 | 'NZ': '紐西蘭', 173 | 'NI': '尼加拉瓜', 174 | 'NE': '尼日', 175 | 'NG': '奈及利亞', 176 | 'NU': '紐埃', 177 | 'NF': '諾福克島', 178 | 'KP': '北韓', 179 | 'MP': '北馬里亞納群島', 180 | 'NO': '挪威', 181 | 'OM': '阿曼', 182 | 'PK': '巴基斯坦', 183 | 'PW': '帛琉', 184 | 'PS': '巴勒斯坦', 185 | 'PA': '巴拿馬', 186 | 'PG': '巴布亞新幾內亞', 187 | 'PY': '巴拉圭', 188 | 'PE': '秘魯', 189 | 'PH': '菲律賓', 190 | 'PN': '皮特康島', 191 | 'PL': '波蘭', 192 | 'PT': '葡萄牙', 193 | 'PR': '波多黎各', 194 | 'QA': '卡達', 195 | 'RE': '留尼旺', 196 | 'RO': '羅馬尼亞', 197 | 'RU': '俄羅斯', 198 | 'RW': '盧安達', 199 | 'ST': '聖多美普林西比', 200 | 'SH': '聖赫勒拿島', 201 | 'PM': '聖皮耶與密克隆群島', 202 | 'KN': '聖克里斯多福及尼維斯', 203 | 'LC': '聖露西亞', 204 | 'VC': '聖文森及格瑞那丁', 205 | 'WS': '薩摩亞', 206 | 'SM': '聖馬利諾', 207 | 'SA': '沙烏地阿拉伯', 208 | 'SN': '塞內加爾', 209 | 'RS': '塞爾維亞', 210 | 'SC': '塞席爾', 211 | 'SL': '獅子山', 212 | 'SG': '新加坡', 213 | 'SK': '斯洛伐克', 214 | 'SI': '斯洛維尼亞', 215 | 'SB': '所羅門群島', 216 | 'SO': '索馬利亞', 217 | 'ZA': '南非', 218 | 'GS': '南喬治亞與南三明治群島', 219 | 'KR': '韓國', 220 | 'ES': '西班牙', 221 | 'LK': '斯里蘭卡', 222 | 'SD': '蘇丹', 223 | 'SR': '蘇利南', 224 | 'SJ': '斯瓦巴及尖棉島', 225 | 'SZ': '史瓦濟蘭', 226 | 'SE': '瑞典', 227 | 'CH': '瑞士', 228 | 'SY': '敘利亞', 229 | 'TW': '臺灣', 230 | 'TJ': '塔吉克', 231 | 'TZ': '坦尚尼亞', 232 | 'TH': '泰國', 233 | 'BS': '巴哈馬', 234 | 'GM': '甘比亞', 235 | 'TG': '多哥', 236 | 'TK': '托克勞群島', 237 | 'TO': '東加', 238 | 'TT': '千里達及托巴哥', 239 | 'TN': '突尼西亞', 240 | 'TR': '土耳其', 241 | 'TM': '土庫曼', 242 | 'TC': '土克斯及開科斯群島', 243 | 'TV': '吐瓦鲁', 244 | 'VI': '美屬維爾京群島', 245 | 'UG': '烏干達', 246 | 'UA': '烏克蘭', 247 | 'AE': '阿聯', 248 | 'GB': '英國', 249 | 'US': '美國', 250 | 'UM': '美國邊疆小島', 251 | 'UY': '烏拉圭', 252 | 'UZ': '烏茲別克', 253 | 'VU': '萬那杜', 254 | 'VA': '梵蒂岡', 255 | 'VE': '委內瑞拉', 256 | 'VN': '越南', 257 | 'WF': '沃里斯與伏塔那島', 258 | 'EH': '西撒哈拉', 259 | 'YE': '葉門', 260 | 'ZM': '尚比亞', 261 | 'ZW': '辛巴威' 262 | }; 263 | -------------------------------------------------------------------------------- /js/tests/fixture.js: -------------------------------------------------------------------------------- 1 | $(document).ready( function () { 2 | $(document).find('body').append('
    '); 3 | }); -------------------------------------------------------------------------------- /js/tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bootstrap Form Helpers Test Suite 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 |
    63 |
    64 | 65 | 66 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-formhelpers-colorpicker.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | 'use strict'; 4 | 5 | module('bootstrap-formhelpers-colorpicker'); 6 | 7 | test('should provide no conflict', function () { 8 | var bfhcolorpicker; 9 | 10 | bfhcolorpicker = $.fn.bfhcolorpicker.noConflict(); 11 | ok(!$.fn.bfhcolorpicker, 'bfhcolorpicker was set back to undefined (org value)'); 12 | $.fn.bfhcolorpicker = bfhcolorpicker; 13 | }); 14 | 15 | test('should be defined on jquery object', function () { 16 | ok($(document.body).bfhcolorpicker, 'bfhcolorpicker method is defined'); 17 | }); 18 | 19 | test('should return element', function () { 20 | var el; 21 | 22 | el = $('
    '); 23 | ok(el.bfhcolorpicker()[0] === el[0], 'same element returned'); 24 | }); 25 | 26 | test('should not open colorpicker if target is disabled', function () { 27 | var colorpickerHTML = '
    ' + 28 | '
    ', 29 | colorpicker = $(colorpickerHTML).bfhcolorpicker(); 30 | 31 | colorpicker.find('[data-toggle="bfh-colorpicker"]').click(); 32 | 33 | ok(!colorpicker.hasClass('open'), 'open class added on click'); 34 | }); 35 | 36 | test('should not open colorpicker if target is disabled', function () { 37 | var colorpickerHTML = '
    ' + 38 | '
    ', 39 | colorpicker = $(colorpickerHTML).bfhcolorpicker(); 40 | 41 | colorpicker.find('[data-toggle="bfh-colorpicker"]').click(); 42 | 43 | ok(!colorpicker.hasClass('open'), 'open class added on click'); 44 | }); 45 | 46 | test('should add class open to colorpicker if clicked', function () { 47 | var colorpickerHTML = '
    ' + 48 | '
    ', 49 | colorpicker = $(colorpickerHTML).bfhcolorpicker(); 50 | 51 | colorpicker.find('[data-toggle="bfh-colorpicker"]').click(); 52 | 53 | ok(colorpicker.hasClass('open'), 'open class added on click'); 54 | }); 55 | 56 | test('should add and remove class open to colorpicker if toggled', function () { 57 | var colorpickerHTML = '
    ' + 58 | '
    ', 59 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture'); 60 | 61 | colorpicker.bfhcolorpicker('toggle'); 62 | ok(colorpicker.hasClass('open'), 'open class added on toggle'); 63 | 64 | colorpicker.bfhcolorpicker('toggle'); 65 | ok(!colorpicker.hasClass('open'), 'open class removed on toggle'); 66 | 67 | colorpicker.remove(); 68 | }); 69 | 70 | test('should remove open class if body clicked', function () { 71 | var colorpickerHTML = '
    ' + 72 | '
    ', 73 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture').bfhcolorpicker(); 74 | 75 | colorpicker.find('[data-toggle="bfh-colorpicker"]').click(); 76 | 77 | ok(colorpicker.hasClass('open'), 'open class added on click'); 78 | $('body').click(); 79 | ok(!colorpicker.hasClass('open'), 'open class removed'); 80 | 81 | colorpicker.remove(); 82 | }); 83 | 84 | test('should remove open class if body clicked, with multiple colorpickers', function () { 85 | var colorpickerHTML = '
    ' + 86 | '
    ' + 87 | '
    ' + 88 | '
    ', 89 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture'), 90 | first = colorpicker.first().bfhcolorpicker(), 91 | last = colorpicker.last().bfhcolorpicker(); 92 | 93 | ok(colorpicker.length === 2, 'Should be two colorpickers'); 94 | 95 | first.find('[data-toggle="bfh-colorpicker"]').click(); 96 | ok(first.hasClass('open'), 'open class added on click'); 97 | ok($('#qunit-fixture .open').length === 1, 'only one object is open'); 98 | $('body').click(); 99 | ok($('#qunit-fixture .open').length === 0, 'open class removed'); 100 | 101 | last.find('[data-toggle="bfh-colorpicker"]').click(); 102 | ok(last.hasClass('open'), 'open class added on click'); 103 | ok($('#qunit-fixture .open').length === 1, 'only one object is open'); 104 | $('body').click(); 105 | ok($('#qunit-fixture .open').length === 0, 'open class removed'); 106 | 107 | $('#qunit-fixture').html(''); 108 | }); 109 | 110 | test('should have name after init', function () { 111 | var colorpickerHTML = '
    ' + 112 | '
    ', 113 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture').bfhcolorpicker({name: 'colorpicker1'}); 114 | 115 | ok(colorpicker.find('input[type=text]').attr('name') === 'colorpicker1', 'name is colorpicker1'); 116 | colorpicker.remove(); 117 | }); 118 | 119 | test('should have value after init', function () { 120 | var colorpickerHTML = '
    ' + 121 | '
    ', 122 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture').bfhcolorpicker({color: '#FF0000'}); 123 | 124 | ok(colorpicker.val() === '#FF0000', 'value is #FF0000'); 125 | ok(colorpicker.find('input[type=text]').val() === '#FF0000', 'value is #FF0000'); 126 | ok(colorpicker.find('.bfh-colorpicker-icon').css('background-color') === 'rgb(255, 0, 0)', 'value is #FF0000'); 127 | colorpicker.remove(); 128 | }); 129 | 130 | test('should fire show and hide event', function () { 131 | var colorpickerHTML = '
    ' + 132 | '
    ', 133 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture').bfhcolorpicker(); 134 | 135 | stop(); 136 | 137 | colorpicker 138 | .bind('show.bfhcolorpicker', function () { 139 | ok(true, 'show was called'); 140 | }) 141 | .bind('hide.bfhcolorpicker', function () { 142 | ok(true, 'hide was called'); 143 | start(); 144 | }); 145 | 146 | colorpicker.find('[data-toggle="bfh-colorpicker"]').click(); 147 | $(document.body).click(); 148 | 149 | colorpicker.remove(); 150 | }); 151 | 152 | test('should fire shown and hidden event', function () { 153 | var colorpickerHTML = '
    ' + 154 | '
    ', 155 | colorpicker = $(colorpickerHTML).appendTo('#qunit-fixture').bfhcolorpicker(); 156 | 157 | stop(); 158 | 159 | colorpicker 160 | .bind('shown.bfhcolorpicker', function () { 161 | ok(true, 'shown was called'); 162 | }) 163 | .bind('hidden.bfhcolorpicker', function () { 164 | ok(true, 'hidden was called'); 165 | start(); 166 | }); 167 | 168 | colorpicker.find('[data-toggle="bfh-colorpicker"]').click(); 169 | $(document.body).click(); 170 | 171 | colorpicker.remove(); 172 | }); 173 | 174 | }); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-formhelpers-fonts.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | 'use strict'; 4 | 5 | module('bootstrap-formhelpers-fonts'); 6 | 7 | test('should provide no conflict', function () { 8 | var bfhfonts; 9 | 10 | bfhfonts = $.fn.bfhfonts.noConflict(); 11 | ok(!$.fn.bfhfonts, 'bfhfonts was set back to undefined (org value)'); 12 | $.fn.bfhfonts = bfhfonts; 13 | }); 14 | 15 | test('should be defined on jquery object', function () { 16 | ok($(document.body).bfhfonts, 'bfhfonts method is defined'); 17 | }); 18 | 19 | test('should return element', function () { 20 | var el; 21 | 22 | el = $('
    '); 23 | ok(el.bfhfonts()[0] === el[0], 'same element returned'); 24 | }); 25 | 26 | test('should fill select with a list of fonts', function() { 27 | var fontsHTML = '', 28 | fonts = $(fontsHTML).bfhfonts(); 29 | 30 | ok(fonts.find('option').size() === 47, 'correct number of elements shown'); 31 | ok(fonts.find('option:selected').text() === '', 'correct option selected'); 32 | ok(fonts.val() === '', 'correct element value'); 33 | ok(fonts.find('option[value="Arial"]').text() === 'Arial', 'valid font shown'); 34 | }); 35 | 36 | test('should fill select with a list of fonts with preselected font', function() { 37 | var fontsHTML = '', 38 | fonts = $(fontsHTML).bfhfonts({font: 'Arial'}); 39 | 40 | ok(fonts.find('option').size() === 47, 'correct number of elements shown'); 41 | ok(fonts.find('option:selected').text() === 'Arial', 'correct option selected'); 42 | ok(fonts.val() === 'Arial', 'correct element value'); 43 | ok(fonts.find('option[value="Arial"]').text() === 'Arial', 'valid font shown'); 44 | }); 45 | 46 | test('should fill select with predefined list of fonts', function() { 47 | var fontsHTML = '', 48 | fonts = $(fontsHTML).bfhfonts({available: 'Arial,Calibri,Helvetica'}); 49 | 50 | ok(fonts.find('option').size() === 4, 'correct number of elements shown'); 51 | ok(fonts.find('option:selected').text() === '', 'correct option selected'); 52 | ok(fonts.val() === '', 'correct element value'); 53 | ok(fonts.find('option[value="Arial"]').text() === 'Arial', 'valid font shown'); 54 | }); 55 | 56 | test('should fill select with a list of fonts without a blank option', function() { 57 | var fontsHTML = '', 58 | fonts = $(fontsHTML).bfhfonts({font: 'Arial', blank: false}); 59 | 60 | ok(fonts.find('option').size() === 46, 'correct number of elements shown'); 61 | ok(fonts.find('option:selected').text() === 'Arial', 'correct option selected'); 62 | ok(fonts.val() === 'Arial', 'correct element value'); 63 | ok(fonts.find('option[value="Arial"]').text() === 'Arial', 'valid font shown'); 64 | }); 65 | 66 | test('should fill bfhselectbox with a list of fonts', function() { 67 | var fontsHTML = '
    ' + 68 | '
    ', 69 | fonts = $(fontsHTML).bfhselectbox().bfhfonts(); 70 | 71 | ok(fonts.find('.bfh-selectbox-options > div > ul > li').size() === 47, 'correct number of elements shown'); 72 | ok(fonts.find('.bfh-selectbox-option').html() === '', 'correct option selected'); 73 | ok(fonts.val() === '', 'correct element value'); 74 | ok(fonts.find('.bfh-selectbox-options > div > ul > li > a[data-option="Arial"]').html() === 'Arial', 'valid font shown'); 75 | }); 76 | 77 | test('should fill bfhselectbox with a list of fonts with preselected font', function() { 78 | var fontsHTML = '
    ' + 79 | '
    ', 80 | fonts = $(fontsHTML).bfhselectbox().bfhfonts({font: 'Arial'}); 81 | 82 | ok(fonts.find('.bfh-selectbox-options > div > ul > li').size() === 47, 'correct number of elements shown'); 83 | ok(fonts.find('.bfh-selectbox-option').html() === 'Arial', 'correct option selected'); 84 | ok(fonts.val() === 'Arial', 'correct element value'); 85 | ok(fonts.find('.bfh-selectbox-options > div > ul > li > a[data-option="Arial"]').html() === 'Arial', 'valid font shown'); 86 | }); 87 | 88 | test('should fill bfhselectbox with predefined list of fonts', function() { 89 | var fontsHTML = '
    ' + 90 | '
    ', 91 | fonts = $(fontsHTML).bfhselectbox().bfhfonts({available: 'Arial,Calibri,Helvetica'}); 92 | 93 | ok(fonts.find('.bfh-selectbox-options > div > ul > li').size() === 4, 'correct number of elements shown'); 94 | ok(fonts.find('.bfh-selectbox-option').html() === '', 'correct option selected'); 95 | ok(fonts.val() === '', 'correct element value'); 96 | ok(fonts.find('.bfh-selectbox-options > div > ul > li > a[data-option="Arial"]').html() === 'Arial', 'valid font shown'); 97 | }); 98 | 99 | test('should fill bfhselectbox with a list of fonts without a blank option', function() { 100 | var fontsHTML = '
    ' + 101 | '
    ', 102 | fonts = $(fontsHTML).bfhselectbox().bfhfonts({font: 'Arial', blank: false}); 103 | 104 | ok(fonts.find('.bfh-selectbox-options > div > ul > li').size() === 46, 'correct number of elements shown'); 105 | ok(fonts.find('.bfh-selectbox-option').html() === 'Arial', 'correct option selected'); 106 | ok(fonts.val() === 'Arial', 'correct element value'); 107 | ok(fonts.find('.bfh-selectbox-options > div > ul > li > a[data-option="Arial"]').html() === 'Arial', 'valid font shown'); 108 | }); 109 | 110 | test('in bfhselectbox should have value after selecting a font', function() { 111 | var fontsHTML = '
    ' + 112 | '
    ', 113 | fonts = $(fontsHTML).appendTo('#qunit-fixture').bfhselectbox().bfhfonts(); 114 | 115 | fonts.find('.bfh-selectbox-options > div > ul > li > a[data-option="Arial"]').click(); 116 | ok(fonts.find('.bfh-selectbox-option').html() === 'Arial', 'correct option selected'); 117 | ok(fonts.val() === 'Arial', 'correct element value'); 118 | 119 | fonts.remove(); 120 | }); 121 | 122 | }); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-formhelpers-fontsizes.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | 'use strict'; 4 | 5 | module('bootstrap-formhelpers-fontsizes'); 6 | 7 | test('should provide no conflict', function () { 8 | var bfhfontsizes; 9 | 10 | bfhfontsizes = $.fn.bfhfontsizes.noConflict(); 11 | ok(!$.fn.bfhfontsizes, 'bfhfontsizes was set back to undefined (org value)'); 12 | $.fn.bfhfontsizes = bfhfontsizes; 13 | }); 14 | 15 | test('should be defined on jquery object', function () { 16 | ok($(document.body).bfhfontsizes, 'bfhfontsizes method is defined'); 17 | }); 18 | 19 | test('should return element', function () { 20 | var el; 21 | 22 | el = $('
    '); 23 | ok(el.bfhfontsizes()[0] === el[0], 'same element returned'); 24 | }); 25 | 26 | test('should fill select with a list of fonts', function() { 27 | var fontsizesHTML = '', 28 | fontsizes = $(fontsizesHTML).bfhfontsizes(); 29 | 30 | ok(fontsizes.find('option').size() === 14, 'correct number of elements shown'); 31 | ok(fontsizes.find('option:selected').text() === '', 'correct option selected'); 32 | ok(fontsizes.val() === '', 'correct element value'); 33 | ok(fontsizes.find('option[value="12"]').text() === '12px', 'valid font shown'); 34 | }); 35 | 36 | test('should fill select with a list of fonts with preselected font', function() { 37 | var fontsizesHTML = '', 38 | fontsizes = $(fontsizesHTML).bfhfontsizes({fontsize: '12'}); 39 | 40 | ok(fontsizes.find('option').size() === 14, 'correct number of elements shown'); 41 | ok(fontsizes.find('option:selected').text() === '12px', 'correct option selected'); 42 | ok(fontsizes.val() === '12', 'correct element value'); 43 | ok(fontsizes.find('option[value="12"]').text() === '12px', 'valid font shown'); 44 | }); 45 | 46 | test('should fill select with predefined list of fonts', function() { 47 | var fontsizesHTML = '', 48 | fontsizes = $(fontsizesHTML).bfhfontsizes({available: '12,14,16'}); 49 | 50 | ok(fontsizes.find('option').size() === 4, 'correct number of elements shown'); 51 | ok(fontsizes.find('option:selected').text() === '', 'correct option selected'); 52 | ok(fontsizes.val() === '', 'correct element value'); 53 | ok(fontsizes.find('option[value="12"]').text() === '12px', 'valid font shown'); 54 | }); 55 | 56 | test('should fill select with a list of fonts without a blank option', function() { 57 | var fontsizesHTML = '', 58 | fontsizes = $(fontsizesHTML).bfhfontsizes({fontsize: '12', blank: false}); 59 | 60 | ok(fontsizes.find('option').size() === 13, 'correct number of elements shown'); 61 | ok(fontsizes.find('option:selected').text() === '12px', 'correct option selected'); 62 | ok(fontsizes.val() === '12', 'correct element value'); 63 | ok(fontsizes.find('option[value="12"]').text() === '12px', 'valid font shown'); 64 | }); 65 | 66 | test('should fill bfhselectbox with a list of fonts', function() { 67 | var fontsizesHTML = '
    ' + 68 | '
    ', 69 | fontsizes = $(fontsizesHTML).bfhselectbox().bfhfontsizes(); 70 | 71 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li').size() === 14, 'correct number of elements shown'); 72 | ok(fontsizes.find('.bfh-selectbox-option').html() === '', 'correct option selected'); 73 | ok(fontsizes.val() === '', 'correct element value'); 74 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li > a[data-option="12"]').html() === '12px', 'valid font shown'); 75 | }); 76 | 77 | test('should fill bfhselectbox with a list of fonts with preselected font', function() { 78 | var fontsizesHTML = '
    ' + 79 | '
    ', 80 | fontsizes = $(fontsizesHTML).bfhselectbox().bfhfontsizes({fontsize: '12'}); 81 | 82 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li').size() === 14, 'correct number of elements shown'); 83 | ok(fontsizes.find('.bfh-selectbox-option').html() === '12px', 'correct option selected'); 84 | ok(fontsizes.val() === '12', 'correct element value'); 85 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li > a[data-option="12"]').html() === '12px', 'valid font shown'); 86 | }); 87 | 88 | test('should fill bfhselectbox with predefined list of fonts', function() { 89 | var fontsizesHTML = '
    ' + 90 | '
    ', 91 | fontsizes = $(fontsizesHTML).bfhselectbox().bfhfontsizes({available: '12,14,16'}); 92 | 93 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li').size() === 4, 'correct number of elements shown'); 94 | ok(fontsizes.find('.bfh-selectbox-option').html() === '', 'correct option selected'); 95 | ok(fontsizes.val() === '', 'correct element value'); 96 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li > a[data-option="12"]').html() === '12px', 'valid font shown'); 97 | }); 98 | 99 | test('should fill bfhselectbox with a list of fonts without a blank option', function() { 100 | var fontsizesHTML = '
    ' + 101 | '
    ', 102 | fontsizes = $(fontsizesHTML).bfhselectbox().bfhfontsizes({fontsize: '12', blank: false}); 103 | 104 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li').size() === 13, 'correct number of elements shown'); 105 | ok(fontsizes.find('.bfh-selectbox-option').html() === '12px', 'correct option selected'); 106 | ok(fontsizes.val() === '12', 'correct element value'); 107 | ok(fontsizes.find('.bfh-selectbox-options > div > ul > li > a[data-option="12"]').html() === '12px', 'valid font shown'); 108 | }); 109 | 110 | test('in bfhselectbox should have value after selecting a font', function() { 111 | var fontsizesHTML = '
    ' + 112 | '
    ', 113 | fontsizes = $(fontsizesHTML).appendTo('#qunit-fixture').bfhselectbox().bfhfontsizes(); 114 | 115 | fontsizes.find('.bfh-selectbox-options > div > ul > li > a[data-option="12"]').click(); 116 | ok(fontsizes.find('.bfh-selectbox-option').html() === '12px', 'correct option selected'); 117 | ok(fontsizes.val() === '12', 'correct element value'); 118 | 119 | fontsizes.remove(); 120 | }); 121 | 122 | }); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-formhelpers-phone.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | 'use strict'; 4 | 5 | module('bootstrap-formhelpers-phone'); 6 | 7 | test('should provide no conflict', function () { 8 | var bfhphone; 9 | 10 | bfhphone = $.fn.bfhphone.noConflict(); 11 | ok(!$.fn.bfhphone, 'bfhphone was set back to undefined (org value)'); 12 | $.fn.bfhphone = bfhphone; 13 | }); 14 | 15 | test('should be defined on jquery object', function () { 16 | ok($(document.body).bfhphone, 'bfhphone method is defined'); 17 | }); 18 | 19 | test('should return element', function () { 20 | var el; 21 | 22 | el = $('
    '); 23 | ok(el.bfhphone()[0] === el[0], 'same element returned'); 24 | }); 25 | 26 | test('should display formatted phone number', function() { 27 | var phoneHTML = '', 28 | phone = $(phoneHTML).bfhphone({format: '+1 (ddd) ddd-dddd', number: '5555555555'}); 29 | 30 | ok(phone.html() === '+1 (555) 555-5555', 'phone number is correctly formatted'); 31 | }); 32 | 33 | test('should display formatted phone number from a country', function() { 34 | var phoneHTML = '', 35 | phone = $(phoneHTML).bfhphone({country: 'US', number: '5555555555'}); 36 | 37 | ok(phone.html() === '+1 (555) 555-5555', 'phone number is correctly formatted'); 38 | }); 39 | 40 | test('should display input with formatted phone number', function() { 41 | var phoneHTML = '', 42 | phone = $(phoneHTML).bfhphone({format: '+1 (ddd) ddd-dddd'}); 43 | 44 | ok(phone.val() === '+1 ', 'phone number is correctly formatted'); 45 | }); 46 | 47 | test('should display input with formatted phone number with predefined number', function() { 48 | var phoneHTML = '', 49 | phone = $(phoneHTML).bfhphone({format: '+1 (ddd) ddd-dddd'}); 50 | 51 | ok(phone.val() === '+1 (555) 555-5555', 'phone number is correctly formatted'); 52 | }); 53 | 54 | test('should display input with formatted phone number from a country', function() { 55 | var phoneHTML = '', 56 | phone = $(phoneHTML).bfhphone({country: 'US'}); 57 | 58 | ok(phone.val() === '+1 (555) 555-5555', 'phone number is correctly formatted'); 59 | }); 60 | 61 | test('should display input with formatted phone number and work with bfhcountries', function() { 62 | var phoneHTML = '
    ' + 63 | '' + 64 | '' + 65 | '' + 66 | '' + 67 | '' + 68 | '
    ' + 69 | '
    ' + 70 | '
      ' + 71 | '
    ' + 72 | '
    ' + 73 | '
    ' + 74 | '
    ' + 75 | '', 76 | phone = $(phoneHTML).appendTo('#qunit-fixture'), 77 | first = phone.first().bfhcountries({country: 'US'}), 78 | last = phone.last().bfhphone({country: 'countries'}); 79 | 80 | ok(last.val() === '+1 (555) 555-5555', 'phone number is correctly formatted'); 81 | 82 | first.val('GB').change(); 83 | 84 | ok(last.val() === '+44 (555) 5555 555', 'phone number is correctly formatted'); 85 | 86 | $('#qunit-fixture').html(''); 87 | }); 88 | 89 | test('in bfhphone should have formatted number after changing value', function() { 90 | var phoneHTML = '', 91 | phone = $(phoneHTML).appendTo('#qunit-fixture').bfhphone({format: '+1 (ddd) ddd-dddd'}); 92 | 93 | phone.val('5555555555').keyup(); 94 | 95 | ok(phone.val() === '+1 (555) 555-5555', 'phone number is correctly formatted'); 96 | 97 | phone.remove(); 98 | }); 99 | 100 | }); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-formhelpers-slider.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | 'use strict'; 4 | 5 | module('bootstrap-formhelpers-slider'); 6 | 7 | test('should provide no conflict', function () { 8 | var bfhslider; 9 | 10 | bfhslider = $.fn.bfhslider.noConflict(); 11 | ok(!$.fn.bfhslider, 'bfhslider was set back to undefined (org value)'); 12 | $.fn.bfhslider = bfhslider; 13 | }); 14 | 15 | test('should be defined on jquery object', function () { 16 | ok($(document.body).bfhslider, 'bfhslider method is defined'); 17 | }); 18 | 19 | test('should return element', function () { 20 | var el; 21 | 22 | el = $('
    '); 23 | ok(el.bfhslider()[0] === el[0], 'same element returned'); 24 | }); 25 | 26 | test('should have name after init', function () { 27 | var sliderHTML = '
    ' + 28 | '
    ', 29 | slider = $(sliderHTML).appendTo('#qunit-fixture').bfhslider({name: 'slider1'}); 30 | 31 | ok(slider.find('input[type=hidden]').attr('name') === 'slider1', 'name is slider1'); 32 | slider.remove(); 33 | }); 34 | 35 | test('should have value after init', function () { 36 | var sliderHTML = '
    ' + 37 | '
    ', 38 | slider = $(sliderHTML).appendTo('#qunit-fixture').bfhslider({value: '2'}); 39 | 40 | ok(slider.val() === '2', 'value is 2'); 41 | ok(slider.find('.bfh-slider-value').text() === '2', 'value is 2'); 42 | ok(slider.find('input[type=hidden]').val() === '2', 'value is 2'); 43 | slider.remove(); 44 | }); 45 | 46 | test('should have value after init with min', function () { 47 | var sliderHTML = '
    ' + 48 | '
    ', 49 | slider = $(sliderHTML).appendTo('#qunit-fixture').bfhslider({min: '2'}); 50 | 51 | ok(slider.val() === '2', 'value is 2'); 52 | ok(slider.find('.bfh-slider-value').text() === '2', 'value is 2'); 53 | ok(slider.find('input[type=hidden]').val() === '2', 'value is 2'); 54 | slider.remove(); 55 | }); 56 | 57 | }); -------------------------------------------------------------------------------- /js/tests/vendor/css/qunit-1.12.0.css: -------------------------------------------------------------------------------- 1 | /** 2 | * QUnit v1.12.0 - A JavaScript Unit Testing Framework 3 | * 4 | * http://qunitjs.com 5 | * 6 | * Copyright 2012 jQuery Foundation and other contributors 7 | * Released under the MIT license. 8 | * http://jquery.org/license 9 | */ 10 | 11 | /** Font Family and Sizes */ 12 | 13 | #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult { 14 | font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; 15 | } 16 | 17 | #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; } 18 | #qunit-tests { font-size: smaller; } 19 | 20 | 21 | /** Resets */ 22 | 23 | #qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter { 24 | margin: 0; 25 | padding: 0; 26 | } 27 | 28 | 29 | /** Header */ 30 | 31 | #qunit-header { 32 | padding: 0.5em 0 0.5em 1em; 33 | 34 | color: #8699a4; 35 | background-color: #0d3349; 36 | 37 | font-size: 1.5em; 38 | line-height: 1em; 39 | font-weight: normal; 40 | 41 | border-radius: 5px 5px 0 0; 42 | -moz-border-radius: 5px 5px 0 0; 43 | -webkit-border-top-right-radius: 5px; 44 | -webkit-border-top-left-radius: 5px; 45 | } 46 | 47 | #qunit-header a { 48 | text-decoration: none; 49 | color: #c2ccd1; 50 | } 51 | 52 | #qunit-header a:hover, 53 | #qunit-header a:focus { 54 | color: #fff; 55 | } 56 | 57 | #qunit-testrunner-toolbar label { 58 | display: inline-block; 59 | padding: 0 .5em 0 .1em; 60 | } 61 | 62 | #qunit-banner { 63 | height: 5px; 64 | } 65 | 66 | #qunit-testrunner-toolbar { 67 | padding: 0.5em 0 0.5em 2em; 68 | color: #5E740B; 69 | background-color: #eee; 70 | overflow: hidden; 71 | } 72 | 73 | #qunit-userAgent { 74 | padding: 0.5em 0 0.5em 2.5em; 75 | background-color: #2b81af; 76 | color: #fff; 77 | text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; 78 | } 79 | 80 | #qunit-modulefilter-container { 81 | float: right; 82 | } 83 | 84 | /** Tests: Pass/Fail */ 85 | 86 | #qunit-tests { 87 | list-style-position: inside; 88 | } 89 | 90 | #qunit-tests li { 91 | padding: 0.4em 0.5em 0.4em 2.5em; 92 | border-bottom: 1px solid #fff; 93 | list-style-position: inside; 94 | } 95 | 96 | #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running { 97 | display: none; 98 | } 99 | 100 | #qunit-tests li strong { 101 | cursor: pointer; 102 | } 103 | 104 | #qunit-tests li a { 105 | padding: 0.5em; 106 | color: #c2ccd1; 107 | text-decoration: none; 108 | } 109 | #qunit-tests li a:hover, 110 | #qunit-tests li a:focus { 111 | color: #000; 112 | } 113 | 114 | #qunit-tests li .runtime { 115 | float: right; 116 | font-size: smaller; 117 | } 118 | 119 | .qunit-assert-list { 120 | margin-top: 0.5em; 121 | padding: 0.5em; 122 | 123 | background-color: #fff; 124 | 125 | border-radius: 5px; 126 | -moz-border-radius: 5px; 127 | -webkit-border-radius: 5px; 128 | } 129 | 130 | .qunit-collapsed { 131 | display: none; 132 | } 133 | 134 | #qunit-tests table { 135 | border-collapse: collapse; 136 | margin-top: .2em; 137 | } 138 | 139 | #qunit-tests th { 140 | text-align: right; 141 | vertical-align: top; 142 | padding: 0 .5em 0 0; 143 | } 144 | 145 | #qunit-tests td { 146 | vertical-align: top; 147 | } 148 | 149 | #qunit-tests pre { 150 | margin: 0; 151 | white-space: pre-wrap; 152 | word-wrap: break-word; 153 | } 154 | 155 | #qunit-tests del { 156 | background-color: #e0f2be; 157 | color: #374e0c; 158 | text-decoration: none; 159 | } 160 | 161 | #qunit-tests ins { 162 | background-color: #ffcaca; 163 | color: #500; 164 | text-decoration: none; 165 | } 166 | 167 | /*** Test Counts */ 168 | 169 | #qunit-tests b.counts { color: black; } 170 | #qunit-tests b.passed { color: #5E740B; } 171 | #qunit-tests b.failed { color: #710909; } 172 | 173 | #qunit-tests li li { 174 | padding: 5px; 175 | background-color: #fff; 176 | border-bottom: none; 177 | list-style-position: inside; 178 | } 179 | 180 | /*** Passing Styles */ 181 | 182 | #qunit-tests li li.pass { 183 | color: #3c510c; 184 | background-color: #fff; 185 | border-left: 10px solid #C6E746; 186 | } 187 | 188 | #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; } 189 | #qunit-tests .pass .test-name { color: #366097; } 190 | 191 | #qunit-tests .pass .test-actual, 192 | #qunit-tests .pass .test-expected { color: #999999; } 193 | 194 | #qunit-banner.qunit-pass { background-color: #C6E746; } 195 | 196 | /*** Failing Styles */ 197 | 198 | #qunit-tests li li.fail { 199 | color: #710909; 200 | background-color: #fff; 201 | border-left: 10px solid #EE5757; 202 | white-space: pre; 203 | } 204 | 205 | #qunit-tests > li:last-child { 206 | border-radius: 0 0 5px 5px; 207 | -moz-border-radius: 0 0 5px 5px; 208 | -webkit-border-bottom-right-radius: 5px; 209 | -webkit-border-bottom-left-radius: 5px; 210 | } 211 | 212 | #qunit-tests .fail { color: #000000; background-color: #EE5757; } 213 | #qunit-tests .fail .test-name, 214 | #qunit-tests .fail .module-name { color: #000000; } 215 | 216 | #qunit-tests .fail .test-actual { color: #EE5757; } 217 | #qunit-tests .fail .test-expected { color: green; } 218 | 219 | #qunit-banner.qunit-fail { background-color: #EE5757; } 220 | 221 | 222 | /** Result */ 223 | 224 | #qunit-testresult { 225 | padding: 0.5em 0.5em 0.5em 2.5em; 226 | 227 | color: #2b81af; 228 | background-color: #D2E0E6; 229 | 230 | border-bottom: 1px solid white; 231 | } 232 | #qunit-testresult .module-name { 233 | font-weight: bold; 234 | } 235 | 236 | /** Fixture */ 237 | 238 | #qunit-fixture { 239 | position: absolute; 240 | top: -10000px; 241 | left: -10000px; 242 | width: 1000px; 243 | height: 1000px; 244 | } -------------------------------------------------------------------------------- /js/tests/vendor/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/js/tests/vendor/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /js/tests/vendor/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/js/tests/vendor/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /js/tests/vendor/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winmarkltd/BootstrapFormHelpers/d6770e09f6ce674631bed10b3f3672f11edc4278/js/tests/vendor/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = function(config) { 2 | config.set({ 3 | basePath: '', 4 | autoWatch: true, 5 | frameworks: ['qunit'], 6 | files: [ 7 | 'js/tests/vendor/js/jquery-1.10.2.js', 8 | 'js/tests/fixture.js', 9 | 'js/tests/vendor/js/bootstrap-3.0.0.min.js', 10 | 'js/lang/en_US/*.js', 11 | 'js/*.js', 12 | 'js/tests/unit/*.js' 13 | ], 14 | browsers: ['PhantomJS'], 15 | 16 | reporters: ['progress', 'coverage'], 17 | preprocessors: { 'js/*.js': ['coverage'] }, 18 | 19 | singleRun: true, 20 | 21 | coverageReporter: { 22 | type: "lcov", 23 | dir: "coverage/" 24 | } 25 | }); 26 | }; -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-colorpicker.less: -------------------------------------------------------------------------------- 1 | // 2 | // Color Picker 3 | // -------------------------------------------------- 4 | 5 | .bfh-colorpicker-popover { 6 | position: absolute; 7 | top: 100%; 8 | left: 0; 9 | z-index: @zindex-colorpicker; 10 | display: none; 11 | float: left; 12 | min-width: @colorpicker-width-base - 80; 13 | background-color: @colorpicker-bg; 14 | border: 1px solid @colorpicker-fallback-border; // IE8 fallback 15 | border: 1px solid @colorpicker-border; 16 | border-radius: @border-radius-base; 17 | .box-shadow(0 6px 12px rgba(0,0,0,.175)); 18 | background-clip: padding-box; 19 | padding: 20px; 20 | cursor: default; 21 | 22 | > canvas { 23 | width: 384px; 24 | height: 256px; 25 | } 26 | } 27 | 28 | .bfh-colorpicker { 29 | position: relative; 30 | } 31 | 32 | .bfh-colorpicker-toggle { 33 | *margin-bottom: -3px; 34 | 35 | > input[readonly] { 36 | cursor: inherit; 37 | background-color: inherit; 38 | } 39 | 40 | .bfh-colorpicker-icon { 41 | width: 16px; 42 | height: 16px; 43 | display: block; 44 | } 45 | } 46 | 47 | .open > .bfh-colorpicker-popover { 48 | display: block; 49 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-datepicker.less: -------------------------------------------------------------------------------- 1 | // 2 | // Date Picker 3 | // -------------------------------------------------- 4 | 5 | .bfh-datepicker-calendar { 6 | position: absolute; 7 | top: 100%; 8 | left: 0; 9 | z-index: @zindex-datepicker; 10 | display: none; 11 | float: left; 12 | min-width: @datepicker-width-base - 80; 13 | 14 | > table.calendar { 15 | width: @datepicker-width-base; 16 | background: @datepicker-bg; 17 | 18 | .months-header { 19 | > th { 20 | text-align: center; 21 | font-size: @font-size-small; 22 | 23 | &.month > span { 24 | width: @datepicker-month-width-base; 25 | display: inline-block; 26 | } 27 | 28 | &.year > span { 29 | width: @datepicker-year-width-base; 30 | display: inline-block; 31 | } 32 | } 33 | } 34 | 35 | .days-header > th { 36 | text-align: center; 37 | font-size: @font-size-xsmall; 38 | line-height: @font-size-xsmall + 1; 39 | width: @datepicker-day-width-base; 40 | } 41 | 42 | > tbody > tr > td { 43 | text-align: center; 44 | font-size: @font-size-xsmall; 45 | line-height: @font-size-xsmall + 1; 46 | width: @datepicker-day-width-base; 47 | 48 | &.today { 49 | color: @datepicker-today-color; 50 | background-color: @datepicker-today-bg; 51 | } 52 | 53 | &.off { 54 | color: @datepicker-disabled-color; 55 | } 56 | 57 | &:not(.off):hover { 58 | cursor: pointer; 59 | color: @datepicker-hover-color; 60 | background-color: @datepicker-hover-bg; 61 | } 62 | } 63 | } 64 | } 65 | 66 | .bfh-datepicker { 67 | position: relative; 68 | } 69 | 70 | .bfh-datepicker-toggle { 71 | *margin-bottom: -3px; 72 | 73 | > input[readonly] { 74 | cursor: inherit; 75 | background-color: inherit; 76 | } 77 | } 78 | 79 | .open > .bfh-datepicker-calendar { 80 | display: block; 81 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-googlefonts.less: -------------------------------------------------------------------------------- 1 | // 2 | // Google Fonts 3 | // -------------------------------------------------- 4 | 5 | .bfh-googlefonts .bfh-selectbox-options { 6 | a { 7 | height: 30px; 8 | width: 230px; 9 | text-indent: -9999px; 10 | background-image: url(../img/bootstrap-formhelpers-googlefonts.png); 11 | 12 | &:focus { 13 | background-repeat: no-repeat; 14 | filter: none; 15 | background-color: transparent; 16 | outline: none; 17 | } 18 | } 19 | } 20 | 21 | .bfh-googlefonts .bfh-selectbox-options .active > a, 22 | .bfh-googlefonts .bfh-selectbox-options .active > a:hover { 23 | background-image: url(../img/bootstrap-formhelpers-googlefonts.png); 24 | background-repeat: no-repeat; 25 | filter: none; 26 | background-color: transparent; 27 | outline: none; 28 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-mixins.less: -------------------------------------------------------------------------------- 1 | // 2 | // Mixins 3 | // -------------------------------------------------- 4 | 5 | // CSS3 PROPERTIES 6 | // -------------------------------------------------- 7 | 8 | // Drop shadows 9 | .box-shadow(@shadow) { 10 | -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1 11 | box-shadow: @shadow; 12 | } 13 | 14 | // COMPONENT MIXINS 15 | // -------------------------------------------------- 16 | 17 | // Horizontal dividers 18 | // ------------------------- 19 | // Dividers (basically an hr) within dropdowns and nav lists 20 | .nav-divider(@color: #e5e5e5) { 21 | height: 1px; 22 | margin: ((@line-height-computed / 2) - 1) 0; 23 | overflow: hidden; 24 | background-color: @color; 25 | } 26 | 27 | // GRADIENTS 28 | // -------------------------------------------------- 29 | 30 | // Reset filters for IE 31 | // 32 | // When you need to remove a gradient background, do not forget to use this to reset 33 | // the IE filter for IE9 and below. 34 | .reset-filter() { 35 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 36 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-number.less: -------------------------------------------------------------------------------- 1 | // 2 | // Number 3 | // -------------------------------------------------- 4 | 5 | .input-group > .bfh-number { 6 | border-right: 0; 7 | } 8 | 9 | .input-group > .bfh-number-btn:hover { 10 | background-color: @number-button-hover-bg; 11 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-selectbox.less: -------------------------------------------------------------------------------- 1 | // 2 | // Select box 3 | // -------------------------------------------------- 4 | 5 | .bfh-selectbox { 6 | position: relative; 7 | 8 | .bfh-selectbox-toggle { 9 | display: inline-block; 10 | text-decoration: none; 11 | padding: 6px 24px 6px 12px; 12 | 13 | &:focus { 14 | outline: 0; 15 | } 16 | 17 | .bfh-selectbox-option { 18 | display: inline-block; 19 | float: left; 20 | height: 20px; 21 | overflow: hidden; 22 | width: 100%; 23 | text-overflow:ellipsis; 24 | } 25 | 26 | .selectbox-caret { 27 | float: right; 28 | margin-top: 8px; 29 | margin-left: -10px; 30 | margin-right: -16px; 31 | } 32 | } 33 | 34 | .bfh-selectbox-options { 35 | position: absolute; 36 | top: 100%; 37 | left: 0; 38 | z-index: @zindex-select; 39 | display: none; // none by default, but block on "open" of the menu 40 | float: left; 41 | min-width: 90px; 42 | padding: 5px 0; 43 | margin: -1px 0 0; // override default ul 44 | font-size: @font-size-base; 45 | background-color: @select-bg; 46 | border: 1px solid @select-fallback-border; // IE8 fallback 47 | border: 1px solid @select-border; 48 | border-radius: @border-radius-base; 49 | .box-shadow(0 6px 12px rgba(0,0,0,.175)); 50 | background-clip: padding-box; 51 | 52 | // Aligns the select box to right 53 | &.pull-right { 54 | right: 0; 55 | left: auto; 56 | } 57 | 58 | // Dividers (basically an hr) within the select box 59 | .divider { 60 | .nav-divider(@select-divider-bg); 61 | } 62 | 63 | .bfh-selectbox-filter-container { 64 | width: 100%; 65 | padding: 5px; 66 | } 67 | 68 | ul { 69 | list-style: none; 70 | max-height: @select-height-base; 71 | overflow-x: hidden; 72 | overflow-y: auto; 73 | margin: 5px 0 0 0; 74 | max-width: 500px; 75 | padding: 0; 76 | 77 | li > a { 78 | display: block; 79 | padding: 3px 20px; 80 | clear: both; 81 | font-weight: normal; 82 | line-height: @line-height-base; 83 | color: @select-link-color; 84 | white-space: nowrap; 85 | min-height: 26px; 86 | text-overflow:ellipsis; 87 | width: 100%; 88 | overflow-x: hidden; 89 | 90 | &:hover, 91 | &:focus { 92 | text-decoration: none; 93 | color: @select-link-hover-color; 94 | background-color: @select-link-hover-bg; 95 | } 96 | } 97 | 98 | .bfh-selectbox-options-header { 99 | display: block; 100 | padding: 3px 20px; 101 | font-size: @font-size-small; 102 | line-height: @line-height-base; 103 | color: @select-header-color; 104 | } 105 | 106 | .disabled > a { 107 | color: @select-link-disabled-color; 108 | 109 | &:hover, 110 | &:focus { 111 | color: @select-link-disabled-color; 112 | text-decoration: none; 113 | background-color: transparent; 114 | background-image: none; // Remove CSS gradient 115 | .reset-filter(); 116 | cursor: not-allowed; 117 | } 118 | } 119 | } 120 | } 121 | 122 | &.open { 123 | > .bfh-selectbox-options { 124 | display: block; 125 | } 126 | 127 | a { 128 | outline: 0; 129 | } 130 | } 131 | } 132 | 133 | .pull-right > .bfh-selectbox-options { 134 | right: 0; 135 | left: auto; 136 | } 137 | 138 | // Allow for select box to go bottom up 139 | // 140 | // Just add .bfh-selectbox-up after the standard .bfh-selectbox class and you're set, bro. 141 | .bfh-selectbox-up, 142 | .navbar-fixed-bottom .bfh-selectbox { 143 | // Reverse the caret 144 | .caret { 145 | border-top: 0 dotted; 146 | border-bottom: 4px solid @select-caret-color; 147 | content: ""; 148 | } 149 | // Different positioning for bottom up menu 150 | .bfh-selectbox-options { 151 | top: auto; 152 | bottom: 100%; 153 | margin-bottom: 1px; 154 | } 155 | } 156 | 157 | // Component alignment 158 | // 159 | // Reiterate per navbar.less and the modified component alignment there. 160 | 161 | @media (min-width: @grid-float-breakpoint) { 162 | .navbar-right { 163 | .bfh-selectbox-options { 164 | .pull-right > .bfh-selectbox-options(); 165 | } 166 | } 167 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-slider.less: -------------------------------------------------------------------------------- 1 | // 2 | // Slider 3 | // -------------------------------------------------- 4 | 5 | .bfh-slider { 6 | background-color: @slider-bg; 7 | height: 20px; 8 | margin-top: 8px; 9 | margin-bottom: 23px; 10 | -moz-user-select: none; 11 | -khtml-user-select: none; 12 | -webkit-user-select: none; 13 | -o-user-select: none; 14 | border-radius: @border-radius-base; 15 | border: 1px solid @slider-fallback-border; // IE8 fallback 16 | border: 1px solid @slider-border; 17 | 18 | > .bfh-slider-handle { 19 | position: absolute; 20 | width: 20px; 21 | height: 34px; 22 | background: @slider-handle-bg; 23 | border: 1px solid @slider-fallback-border; // IE8 fallback 24 | border: 1px solid @slider-border; 25 | border-radius: @border-radius-base; 26 | margin-top: -7px; 27 | cursor: col-resize; 28 | 29 | > .bfh-slider-value { 30 | margin-top: 5px; 31 | position: absolute; 32 | width: 48px; 33 | text-align: center; 34 | border: 1px solid @slider-fallback-border; // IE8 fallback 35 | border: 1px solid @slider-border; 36 | border-radius: @border-radius-base; 37 | height: 20px; 38 | line-height: 20px; 39 | cursor: col-resize; 40 | background-color: @slider-bg; 41 | margin-left: -15px; 42 | 43 | .disabled { 44 | color: @slider-disabled-color; 45 | } 46 | } 47 | } 48 | 49 | &.disabled .bfh-slider-value { 50 | color: @slider-disabled-color; 51 | } 52 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-timepicker.less: -------------------------------------------------------------------------------- 1 | // 2 | // Time Picker 3 | // -------------------------------------------------- 4 | 5 | .bfh-timepicker-popover { 6 | position: absolute; 7 | top: 100%; 8 | left: 0; 9 | z-index: @zindex-timepicker; 10 | display: none; 11 | float: left; 12 | min-width: @timepicker-width-base - 80; 13 | background-color: @timepicker-bg; 14 | border: 1px solid @timepicker-fallback-border; // IE8 fallback 15 | border: 1px solid @timepicker-border; 16 | border-radius: @border-radius-base; 17 | .box-shadow(0 6px 12px rgba(0,0,0,.175)); 18 | background-clip: padding-box; 19 | 20 | > table { 21 | width: @timepicker-width-base; 22 | margin: 0; 23 | 24 | > tbody > tr > td { 25 | text-align: center; 26 | border: 0; 27 | 28 | &.separator { 29 | line-height: 28px; 30 | font-weight: bold; 31 | font-size: 20px; 32 | } 33 | 34 | > div > input { 35 | text-align: center; 36 | width: 42px !important; 37 | } 38 | } 39 | } 40 | } 41 | 42 | .bfh-timepicker { 43 | position: relative; 44 | } 45 | 46 | .bfh-timepicker-toggle { 47 | *margin-bottom: -3px; 48 | 49 | > input[readonly] { 50 | cursor: inherit; 51 | background-color: inherit; 52 | } 53 | } 54 | 55 | .open > .bfh-timepicker-popover { 56 | display: block; 57 | } -------------------------------------------------------------------------------- /less/bootstrap-formhelpers-variables.less: -------------------------------------------------------------------------------- 1 | // 2 | // Variables 3 | // -------------------------------------------------- 4 | 5 | // Media queries breakpoints 6 | @screen-sm: 768px; 7 | @screen-sm-min: @screen-sm; 8 | 9 | // Grid system 10 | @grid-float-breakpoint: @screen-sm-min; 11 | 12 | // Base Variables 13 | @font-size-base: 14px; 14 | @font-size-small: ceil(@font-size-base * 0.85); // ~12px 15 | @font-size-xsmall: ceil(@font-size-base * 0.75); // ~11px 16 | @border-radius-base: 4px; 17 | @caret-width-base: 4px; 18 | @line-height-base: 1.428571429; // 20/14 19 | @line-height-computed: floor(@font-size-base * @line-height-base); // ~20px 20 | @input-small: 90px; 21 | @input-medium: 150px; 22 | @input-large: 210px; 23 | 24 | // Brand Colours 25 | @brand-primary: #428bca; 26 | 27 | // Base Colours 28 | @gray-dark: lighten(#000, 20%); // #333 29 | @gray-light: lighten(#000, 60%); // #999 30 | @gray-lighter: lighten(#000, 80%); 31 | @component-active-color: #fff; 32 | @component-active-bg: @brand-primary; 33 | @component-hover-color: darken(@gray-dark, 5%); 34 | @component-hover-bg: #f5f5f5; 35 | 36 | // Select Box Variables 37 | @select-bg: #fff; 38 | @select-border: rgba(0,0,0,.15); 39 | @select-fallback-border: #ccc; 40 | @select-caret-color: #000; 41 | @select-divider-bg: #e5e5e5; 42 | @select-link-color: @gray-dark; 43 | @select-link-hover-color: @component-hover-color; 44 | @select-link-hover-bg: @component-hover-bg; 45 | @select-link-active-color: @component-active-color; 46 | @select-link-active-bg: @component-active-bg; 47 | @select-link-disabled-color: @gray-light; 48 | @select-header-color: @gray-light; 49 | @select-width-base: 240px; 50 | @select-height-base: 200px; 51 | 52 | // Date Picker Variables 53 | @datepicker-bg: #fff; 54 | @datepicker-width-base: 376px; 55 | @datepicker-month-width-base: 100px; 56 | @datepicker-year-width-base: 50px; 57 | @datepicker-day-width-base: 30px; 58 | @datepicker-hover-color: @component-hover-color; 59 | @datepicker-hover-bg: @component-hover-bg; 60 | @datepicker-today-color: @component-active-color; 61 | @datepicker-today-bg: @component-active-bg; 62 | @datepicker-disabled-color: @gray-light; 63 | 64 | // Time Picker Variables 65 | @timepicker-bg: #fff; 66 | @timepicker-border: rgba(0,0,0,.15); 67 | @timepicker-fallback-border: #ccc; 68 | @timepicker-width-base: 180px; 69 | 70 | // Color Picker Variables 71 | @colorpicker-bg: #fff; 72 | @colorpicker-border: rgba(0,0,0,.15); 73 | @colorpicker-fallback-border: #ccc; 74 | @colorpicker-width-base: 180px; 75 | 76 | // Slider Variables 77 | @slider-bg: #fff; 78 | @slider-border: rgba(0,0,0,.15); 79 | @slider-fallback-border: #ccc; 80 | @slider-handle-bg: #efefef; 81 | @slider-disabled-color: @gray-light; 82 | 83 | // Number Variables 84 | @number-button-hover-bg: @gray-lighter; 85 | 86 | // Z-Indexes 87 | @zindex-select: 1000; 88 | @zindex-datepicker: 1000; 89 | @zindex-timepicker: 1000; 90 | @zindex-colorpicker: 1000; -------------------------------------------------------------------------------- /less/bootstrap-formhelpers.less: -------------------------------------------------------------------------------- 1 | // Core variables and mixins 2 | @import "bootstrap-formhelpers-variables.less"; 3 | @import "bootstrap-formhelpers-mixins.less"; 4 | 5 | // Icons 6 | @import "bootstrap-formhelpers-flags.less"; 7 | 8 | // Components 9 | @import "bootstrap-formhelpers-selectbox.less"; 10 | @import "bootstrap-formhelpers-googlefonts.less"; 11 | @import "bootstrap-formhelpers-datepicker.less"; 12 | @import "bootstrap-formhelpers-timepicker.less"; 13 | @import "bootstrap-formhelpers-slider.less"; 14 | @import "bootstrap-formhelpers-colorpicker.less"; 15 | @import "bootstrap-formhelpers-number.less"; 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-formhelpers", 3 | "description": "A collection of jQuery plugins for Bootstrap.", 4 | "version": "2.3.0", 5 | "keywords": [ 6 | "bootstrap", 7 | "css" 8 | ], 9 | "homepage": "http://boostrapformhelpers.com", 10 | "author": "Vincent Lamanna", 11 | "scripts": { 12 | "test": "grunt test" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/vlamanna/BootstrapFormHelpers.git" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "Apache-2.0", 21 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 22 | } 23 | ], 24 | "devDependencies": { 25 | "grunt": "~0.4.1", 26 | "grunt-contrib-clean": "~0.5.0", 27 | "grunt-contrib-concat": "~0.3.0", 28 | "grunt-contrib-copy": "~0.4.1", 29 | "grunt-contrib-jshint": "~0.7.0", 30 | "grunt-contrib-qunit": "~0.3.0", 31 | "grunt-contrib-uglify": "~0.2.4", 32 | "grunt-contrib-watch": "~0.5.3", 33 | "grunt-recess": "~0.5.0", 34 | "grunt-karma": "~0.6.2", 35 | "karma": "~0.10.2", 36 | "karma-qunit": "~0.1.1", 37 | "karma-coverage": "~0.1.0", 38 | "coveralls": "~2.5.0", 39 | "grunt-karma-coveralls": "~2.0.2" 40 | } 41 | } 42 | --------------------------------------------------------------------------------