├── .gitignore ├── .jshintrc ├── CONTRIBUTING.md ├── Gruntfile.js ├── LICENSE-MIT ├── README.md ├── bower.json ├── composer.json ├── dist ├── i18n │ ├── jquery-ui-timepicker-addon-i18n.js │ ├── jquery-ui-timepicker-addon-i18n.min.js │ ├── jquery-ui-timepicker-af.js │ ├── jquery-ui-timepicker-am.js │ ├── jquery-ui-timepicker-bg.js │ ├── jquery-ui-timepicker-ca.js │ ├── jquery-ui-timepicker-cs.js │ ├── jquery-ui-timepicker-da.js │ ├── jquery-ui-timepicker-de.js │ ├── jquery-ui-timepicker-el.js │ ├── jquery-ui-timepicker-es.js │ ├── jquery-ui-timepicker-et.js │ ├── jquery-ui-timepicker-eu.js │ ├── jquery-ui-timepicker-fa.js │ ├── jquery-ui-timepicker-fi.js │ ├── jquery-ui-timepicker-fr.js │ ├── jquery-ui-timepicker-gl.js │ ├── jquery-ui-timepicker-he.js │ ├── jquery-ui-timepicker-hr.js │ ├── jquery-ui-timepicker-hu.js │ ├── jquery-ui-timepicker-id.js │ ├── jquery-ui-timepicker-it.js │ ├── jquery-ui-timepicker-ja.js │ ├── jquery-ui-timepicker-ko.js │ ├── jquery-ui-timepicker-lt.js │ ├── jquery-ui-timepicker-lv.js │ ├── jquery-ui-timepicker-mk.js │ ├── jquery-ui-timepicker-nl.js │ ├── jquery-ui-timepicker-no.js │ ├── jquery-ui-timepicker-pl.js │ ├── jquery-ui-timepicker-pt-BR.js │ ├── jquery-ui-timepicker-pt.js │ ├── jquery-ui-timepicker-ro.js │ ├── jquery-ui-timepicker-ru.js │ ├── jquery-ui-timepicker-sk.js │ ├── jquery-ui-timepicker-sl.js │ ├── jquery-ui-timepicker-sq.js │ ├── jquery-ui-timepicker-sr-RS.js │ ├── jquery-ui-timepicker-sr-YU.js │ ├── jquery-ui-timepicker-sv.js │ ├── jquery-ui-timepicker-th.js │ ├── jquery-ui-timepicker-tr.js │ ├── jquery-ui-timepicker-uk.js │ ├── jquery-ui-timepicker-vi.js │ ├── jquery-ui-timepicker-zh-CN.js │ └── jquery-ui-timepicker-zh-TW.js ├── index.html ├── jquery-ui-sliderAccess.js ├── jquery-ui-timepicker-addon.css ├── jquery-ui-timepicker-addon.js ├── jquery-ui-timepicker-addon.min.css └── jquery-ui-timepicker-addon.min.js ├── jquery-ui-timepicker-addon.json ├── lib ├── jasmine-1.3.1 │ ├── MIT.LICENSE │ ├── jasmine-html.js │ ├── jasmine.css │ └── jasmine.js └── jasmine-jquery.js ├── package.json ├── src ├── .jshintrc ├── docs │ ├── examples.html │ ├── footer.html │ ├── formatting.html │ ├── header.html │ ├── i18n.html │ ├── intro.html │ └── options.html ├── i18n │ ├── jquery-ui-timepicker-af.js │ ├── jquery-ui-timepicker-am.js │ ├── jquery-ui-timepicker-bg.js │ ├── jquery-ui-timepicker-ca.js │ ├── jquery-ui-timepicker-cs.js │ ├── jquery-ui-timepicker-da.js │ ├── jquery-ui-timepicker-de.js │ ├── jquery-ui-timepicker-el.js │ ├── jquery-ui-timepicker-es.js │ ├── jquery-ui-timepicker-et.js │ ├── jquery-ui-timepicker-eu.js │ ├── jquery-ui-timepicker-fa.js │ ├── jquery-ui-timepicker-fi.js │ ├── jquery-ui-timepicker-fr.js │ ├── jquery-ui-timepicker-gl.js │ ├── jquery-ui-timepicker-he.js │ ├── jquery-ui-timepicker-hr.js │ ├── jquery-ui-timepicker-hu.js │ ├── jquery-ui-timepicker-id.js │ ├── jquery-ui-timepicker-it.js │ ├── jquery-ui-timepicker-ja.js │ ├── jquery-ui-timepicker-ko.js │ ├── jquery-ui-timepicker-lt.js │ ├── jquery-ui-timepicker-lv.js │ ├── jquery-ui-timepicker-mk.js │ ├── jquery-ui-timepicker-nl.js │ ├── jquery-ui-timepicker-no.js │ ├── jquery-ui-timepicker-pl.js │ ├── jquery-ui-timepicker-pt-BR.js │ ├── jquery-ui-timepicker-pt.js │ ├── jquery-ui-timepicker-ro.js │ ├── jquery-ui-timepicker-ru.js │ ├── jquery-ui-timepicker-sk.js │ ├── jquery-ui-timepicker-sl.js │ ├── jquery-ui-timepicker-sq.js │ ├── jquery-ui-timepicker-sr-RS.js │ ├── jquery-ui-timepicker-sr-YU.js │ ├── jquery-ui-timepicker-sv.js │ ├── jquery-ui-timepicker-th.js │ ├── jquery-ui-timepicker-tr.js │ ├── jquery-ui-timepicker-uk.js │ ├── jquery-ui-timepicker-vi.js │ ├── jquery-ui-timepicker-zh-CN.js │ └── jquery-ui-timepicker-zh-TW.js ├── jquery-ui-sliderAccess.js ├── jquery-ui-timepicker-addon.css └── jquery-ui-timepicker-addon.js └── test ├── .jshintrc ├── SpecRunner.html └── jquery-ui-timepicker-addon_spec.js /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | *.iml 3 | .idea 4 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "node": true 14 | } 15 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | ## Important notes 4 | Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory! 5 | 6 | ### Code style 7 | Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already (tabs).** 8 | 9 | ### PhantomJS 10 | While Grunt can run the included unit tests via [PhantomJS](http://phantomjs.org/), this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers. 11 | 12 | ## Modifying the code 13 | First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed. 14 | 15 | Test that Grunt's CLI is installed by running `grunt --version`. If the command isn't found, run `npm install -g grunt-cli`. For more information about installing Grunt, see the [getting started guide](http://gruntjs.com/getting-started). 16 | 17 | 1. Fork and clone the repo. 18 | 1. Run `npm install` to install all dependencies (including Grunt). 19 | 1. Run `grunt` to grunt this project. 20 | 21 | Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any changes, to ensure that nothing is broken. 22 | 23 | ## Submitting pull requests 24 | 25 | 1. Create a new branch, please don't work in your `master` branch directly. Please pull from the `dev` branch. 26 | 1. Add failing tests for the change you want to make. Run `grunt` to see the tests fail. 27 | 1. Fix stuff. 28 | 1. Run `grunt` to see if the tests pass. Repeat steps 2-4 until done. 29 | 1. Open `test/*.html` unit test file(s) in actual browser to ensure tests pass everywhere. 30 | 1. Update the documentation to reflect any changes. 31 | 1. Push to your fork and submit a pull request (back to the `dev` branch). 32 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(grunt) { 4 | 5 | // Project configuration. 6 | grunt.initConfig({ 7 | // Metadata. 8 | pkg: grunt.file.readJSON('jquery-ui-timepicker-addon.json'), 9 | banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + 10 | //'<%= grunt.template.today("yyyy-mm-dd") %>\n' + 11 | '<%= pkg.modified %>\n' + 12 | '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + 13 | '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + 14 | ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n', 15 | // Task configuration. 16 | clean: { 17 | files: ['dist'] 18 | }, 19 | copy: { 20 | dist: { 21 | files: [ 22 | //{ src: 'src/index.html', dest: 'dist/index.html' }, 23 | { src: 'src/<%= pkg.name %>.css', dest: 'dist/<%= pkg.name %>.css' }, 24 | { src: 'src/jquery-ui-sliderAccess.js', dest: 'dist/jquery-ui-sliderAccess.js' }, 25 | { src: 'src/i18n/jquery-ui-timepicker-*.js', dest: 'dist/i18n/', expand:true, flatten: true } 26 | ] 27 | } 28 | }, 29 | concat: { 30 | dist: { 31 | options: { 32 | banner: '<%= banner %>', 33 | stripBanners: true 34 | }, 35 | src: ['src/<%= pkg.name %>.js'], 36 | dest: 'dist/<%= pkg.name %>.js' 37 | }, 38 | docs: { 39 | src: [ 40 | 'src/docs/header.html', 41 | 'src/docs/intro.html', 42 | 'src/docs/options.html', 43 | 'src/docs/formatting.html', 44 | 'src/docs/i18n.html', 45 | 'src/docs/examples.html', 46 | 'src/docs/footer.html' 47 | ], 48 | dest: 'dist/index.html' 49 | }, 50 | i18n: { 51 | options: { 52 | //stripBanners: true, 53 | banner: '<%=banner %>\n(function($){\n\n', 54 | footer: '\n})(jQuery);\n', 55 | process: function(src, filepath){ 56 | return '// source: '+ filepath + '\n' + 57 | src.replace(/\(function\s*\(\$\)\s*\{/g, '') 58 | .replace(/\}\)\(jQuery\)\;/g, '') 59 | .replace(/\$\.timepicker\.setDefaults\(\$\.timepicker\.regional\[[a-z\-\'\"]+\]\)\;/gi, '') 60 | .trim() +'\n'; 61 | } 62 | }, 63 | src: [ 'src/i18n/jquery-ui-timepicker-*.js' ], 64 | dest: 'dist/i18n/<%=pkg.name %>-i18n.js' 65 | } 66 | }, 67 | uglify: { 68 | options: { 69 | banner: '<%= banner %>' 70 | }, 71 | dist: { 72 | src: '<%= concat.dist.dest %>', 73 | dest: 'dist/<%= pkg.name %>.min.js' 74 | }, 75 | i18n: { 76 | src: 'dist/i18n/<%=pkg.name %>-i18n.js', 77 | dest: 'dist/i18n/<%=pkg.name %>-i18n.min.js' 78 | } 79 | }, 80 | cssmin: { 81 | options: { 82 | banner: '<%= banner %>' 83 | }, 84 | dist: { 85 | src: 'dist/<%= pkg.name %>.css', 86 | dest: 'dist/<%= pkg.name %>.min.css' 87 | } 88 | }, 89 | replace: { 90 | dist: { 91 | options: { 92 | variables: { 93 | version: '<%= pkg.version %>', 94 | timestamp: '<%= pkg.modified %>' 95 | }, 96 | prefix: '@@' 97 | }, 98 | files: [ 99 | { src: 'dist/<%= pkg.name %>.js', dest: 'dist/<%= pkg.name %>.js' }, 100 | { src: 'dist/<%= pkg.name %>.css', dest: 'dist/<%= pkg.name %>.css' }, 101 | { src: 'dist/index.html', dest: 'dist/index.html' } 102 | ] 103 | } 104 | }, 105 | jasmine: { 106 | src: 'src/<%= pkg.name %>.js', 107 | options: { 108 | specs: 'test/*_spec.js', 109 | vendor: [ 110 | 'http://code.jquery.com/jquery-1.11.1.min.js', 111 | 'http://code.jquery.com/ui/1.11.1/jquery-ui.min.js', 112 | 'http://github.com/searls/jasmine-fixture/releases/1.0.5/1737/jasmine-fixture.js' 113 | ] 114 | } 115 | }, 116 | jshint: { 117 | gruntfile: { 118 | options: { 119 | jshintrc: '.jshintrc' 120 | }, 121 | src: 'Gruntfile.js' 122 | }, 123 | src: { 124 | options: { 125 | jshintrc: 'src/.jshintrc' 126 | }, 127 | src: ['src/**/*.js'] 128 | }, 129 | test: { 130 | options: { 131 | jshintrc: 'test/.jshintrc' 132 | }, 133 | src: ['test/**/*.js'] 134 | } 135 | }, 136 | watch: { 137 | gruntfile: { 138 | files: '<%= jshint.gruntfile.src %>', 139 | tasks: ['jshint:gruntfile'] 140 | }, 141 | src: { 142 | files: 'src/**',//'<%= jshint.src.src %>', 143 | tasks: ['jshint:src', 'jasmine', 'clean', 'copy', 'concat', 'replace', 'uglify', 'cssmin'] 144 | //tasks: ['jshint:src', 'jasmine'] 145 | }, 146 | test: { 147 | files: '<%= jshint.test.src %>', 148 | tasks: ['jshint:test', 'jasmine'] 149 | } 150 | } 151 | }); 152 | 153 | // These plugins provide necessary tasks. 154 | grunt.loadNpmTasks('grunt-contrib-clean'); 155 | grunt.loadNpmTasks('grunt-contrib-concat'); 156 | grunt.loadNpmTasks('grunt-contrib-copy'); 157 | grunt.loadNpmTasks('grunt-replace'); 158 | grunt.loadNpmTasks('grunt-contrib-uglify'); 159 | grunt.loadNpmTasks('grunt-contrib-cssmin'); 160 | grunt.loadNpmTasks('grunt-contrib-jasmine'); 161 | grunt.loadNpmTasks('grunt-contrib-jshint'); 162 | grunt.loadNpmTasks('grunt-contrib-watch'); 163 | 164 | // Default task. 165 | grunt.registerTask('default', ['clean', 'copy', 'concat', 'replace', 'uglify', 'cssmin']); 166 | 167 | // Test task. 168 | grunt.registerTask('test', ['jshint', 'jasmine']); 169 | 170 | }; 171 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Trent Richardson 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | jQuery Timepicker Addon 2 | ======================= 3 | 4 | About 5 | ----- 6 | 7 | **This project is no longer actively maintained.** Unfortuantely, I no longer work with jQuery and jQueryUI on new projects. jQuery Timepicker Addon served as the timepicker of choice for many years when there weren't many available. I'm thankful of the opportunity to contribute to the community, and thankful to everyone who contributed along the way. These days there are many great alternatives depending on the environment you're developing in. If you need a timepicker with no dependencies check out [flatpickr](https://flatpickr.js.org/). 8 | 9 | Best wishes, 10 | Trent Richardson 11 | 12 | - Author: [Trent Richardson](http://trentrichardson.com) 13 | - Documentation: [http://trentrichardson.com/examples/timepicker/](http://trentrichardson.com/examples/timepicker/) 14 | - Twitter: [@practicalweb](http://twitter.com/practicalweb) 15 | 16 | Use 17 | --- 18 | I recommend getting the eBook [Handling Time](https://sellfy.com/p/8gxZ) as it has a lot of example code to get started. The quick and dirty: 19 | 20 | - To use this plugin you must include jQuery (1.6+) and jQuery UI with datepicker (and optionally slider). 21 | - Include timepicker-addon script and css located in the `dist` directory or from a CDN: 22 | * [http://cdnjs.com/libraries/jquery-ui-timepicker-addon](http://cdnjs.com/libraries/jquery-ui-timepicker-addon) 23 | * [http://www.jsdelivr.com/#!jquery.ui.timepicker.addon](http://www.jsdelivr.com/#!jquery.ui.timepicker.addon) 24 | - now use timepicker with `$('#selector').datetimepicker()` or `$('#selector').timepicker()`. 25 | 26 | There is also a [Bower](http://bower.io/) package named `jqueryui-timepicker-addon`. Beware there are other similar package names that point to forks which may not be current. 27 | 28 | Rails with Bower 29 | ----------------- 30 | If you happen to use Rails with the [bower](gem "bower-rails", "~> 0.8.3") gem, here it is to use it easily : 31 | #### Bowerfile 32 | ```asset "jqueryui-timepicker-addon", "1.5.6"``` 33 | 34 | #### application.js 35 | ```javascript 36 | //= require jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon 37 | //= require jqueryui-timepicker-addon/dist/i18n/jquery-ui-timepicker-fr 38 | ``` 39 | 40 | #### application.css.scss 41 | ```scss 42 | @import "jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.css"; 43 | ``` 44 | 45 | Contributing Code - Please Read! 46 | -------------------------------- 47 | - All code contributions and bug reports are much appreciated. 48 | - Please be sure to apply your fixes to the "dev" branch. 49 | - Also note tabs are appreciated over spaces. 50 | - Please read the [CONTRIBUTING.md][contributingmd] for more on using Grunt to produce builds. 51 | 52 | [contributingmd]: CONTRIBUTING.md 53 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jqueryui-timepicker-addon", 3 | "repository": { 4 | "type": "git", 5 | "url": "git://github.com/trentrichardson/jQuery-Timepicker-Addon.git" 6 | }, 7 | "main": ["dist/jquery-ui-timepicker-addon.js", "dist/jquery-ui-timepicker-addon.css"], 8 | "ignore": [ 9 | "/CONTRIBUTING.md", 10 | "/Gruntfile.js", 11 | "/README.md", 12 | "/composer.json", 13 | "/jquery-ui-timepicker-addon.json", 14 | "/lib", 15 | "/package.json", 16 | "/src", 17 | "/test" 18 | ], 19 | "dependencies": { 20 | } 21 | } -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "trentrichardson/jquery-timepicker-addon", 3 | "description": "Adds a timepicker to jQueryUI Datepicker.", 4 | "type": "component", 5 | "homepage": "http://trentrichardson.com/examples/timepicker/", 6 | "license": [ 7 | "MIT" 8 | ], 9 | "require": { 10 | "robloach/component-installer": "*", 11 | "components/jqueryui": "~1.10.2" 12 | }, 13 | "extra": { 14 | "component": { 15 | "name": "jquery-timepicker-addon", 16 | "scripts": [ 17 | "dist/jquery-ui-sliderAccess.js", 18 | "dist/jquery-ui-timepicker-addon.js", 19 | "dist/i18n/**" 20 | ], 21 | "styles": [ 22 | "dist/jquery-ui-timepicker-addon.css" 23 | ] 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-addon-i18n.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20 2 | * http://trentrichardson.com/examples/timepicker 3 | * Copyright (c) 2016 Trent Richardson; Licensed MIT */ 4 | !function(a){a.timepicker.regional.af={timeOnlyTitle:"Kies Tyd",timeText:"Tyd ",hourText:"Ure ",minuteText:"Minute",secondText:"Sekondes",millisecText:"Millisekondes",microsecText:"Mikrosekondes",timezoneText:"Tydsone",currentText:"Huidige Tyd",closeText:"Klaar",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.am={timeOnlyTitle:"Ընտրեք ժամանակը",timeText:"Ժամանակը",hourText:"Ժամ",minuteText:"Րոպե",secondText:"Վարկյան",millisecText:"Միլիվարկյան",microsecText:"Միկրովարկյան",timezoneText:"Ժամային գոտին",currentText:"Այժմ",closeText:"Փակել",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.bg={timeOnlyTitle:"Изберете време",timeText:"Време",hourText:"Час",minuteText:"Минути",secondText:"Секунди",millisecText:"Милисекунди",microsecText:"Микросекунди",timezoneText:"Часови пояс",currentText:"Сега",closeText:"Затвори",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.ca={timeOnlyTitle:"Escollir una hora",timeText:"Hora",hourText:"Hores",minuteText:"Minuts",secondText:"Segons",millisecText:"Milisegons",microsecText:"Microsegons",timezoneText:"Fus horari",currentText:"Ara",closeText:"Tancar",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.cs={timeOnlyTitle:"Vyberte čas",timeText:"Čas",hourText:"Hodiny",minuteText:"Minuty",secondText:"Vteřiny",millisecText:"Milisekundy",microsecText:"Mikrosekundy",timezoneText:"Časové pásmo",currentText:"Nyní",closeText:"Zavřít",timeFormat:"HH:mm",timeSuffix:"",amNames:["dop.","AM","A"],pmNames:["odp.","PM","P"],isRTL:!1},a.timepicker.regional.da={timeOnlyTitle:"Vælg tid",timeText:"Tid",hourText:"Time",minuteText:"Minut",secondText:"Sekund",millisecText:"Millisekund",microsecText:"Mikrosekund",timezoneText:"Tidszone",currentText:"Nu",closeText:"Luk",timeFormat:"HH:mm",timeSuffix:"",amNames:["am","AM","A"],pmNames:["pm","PM","P"],isRTL:!1},a.timepicker.regional.de={timeOnlyTitle:"Zeit wählen",timeText:"Zeit",hourText:"Stunde",minuteText:"Minute",secondText:"Sekunde",millisecText:"Millisekunde",microsecText:"Mikrosekunde",timezoneText:"Zeitzone",currentText:"Jetzt",closeText:"Fertig",timeFormat:"HH:mm",timeSuffix:"",amNames:["vorm.","AM","A"],pmNames:["nachm.","PM","P"],isRTL:!1},a.timepicker.regional.el={timeOnlyTitle:"Επιλογή ώρας",timeText:"Ώρα",hourText:"Ώρες",minuteText:"Λεπτά",secondText:"Δευτερόλεπτα",millisecText:"Χιλιοστοδευτερόλεπτα",microsecText:"Μικροδευτερόλεπτα",timezoneText:"Ζώνη ώρας",currentText:"Τώρα",closeText:"Κλείσιμο",timeFormat:"HH:mm",timeSuffix:"",amNames:["π.μ.","AM","A"],pmNames:["μ.μ.","PM","P"],isRTL:!1},a.timepicker.regional.es={timeOnlyTitle:"Elegir una hora",timeText:"Hora",hourText:"Horas",minuteText:"Minutos",secondText:"Segundos",millisecText:"Milisegundos",microsecText:"Microsegundos",timezoneText:"Uso horario",currentText:"Hoy",closeText:"Cerrar",timeFormat:"HH:mm",timeSuffix:"",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},a.timepicker.regional.et={timeOnlyTitle:"Vali aeg",timeText:"Aeg",hourText:"Tund",minuteText:"Minut",secondText:"Sekund",millisecText:"Millisekundis",microsecText:"Mikrosekundis",timezoneText:"Ajavöönd",currentText:"Praegu",closeText:"Valmis",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.eu={timeOnlyTitle:"Aukeratu ordua",timeText:"Ordua",hourText:"Orduak",minuteText:"Minutuak",secondText:"Segundoak",millisecText:"Milisegundoak",microsecText:"Mikrosegundoak",timezoneText:"Ordu-eremua",currentText:"Orain",closeText:"Itxi",timeFormat:"HH:mm",timeSuffix:"",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},a.timepicker.regional.fa={timeOnlyTitle:"انتخاب زمان",timeText:"زمان",hourText:"ساعت",minuteText:"دقیقه",secondText:"ثانیه",millisecText:"میلی ثانیه",microsecText:"میکرو ثانیه",timezoneText:"منطقه زمانی",currentText:"الان",closeText:"انتخاب",timeFormat:"HH:mm",timeSuffix:"",amNames:["قبل ظهر","AM","A"],pmNames:["بعد ظهر","PM","P"],isRTL:!0},a.timepicker.regional.fi={timeOnlyTitle:"Valitse aika",timeText:"Aika",hourText:"Tunti",minuteText:"Minuutti",secondText:"Sekunti",millisecText:"Millisekunnin",microsecText:"Mikrosekuntia",timezoneText:"Aikavyöhyke",currentText:"Nyt",closeText:"Sulje",timeFormat:"HH:mm",timeSuffix:"",amNames:["ap.","AM","A"],pmNames:["ip.","PM","P"],isRTL:!1},a.timepicker.regional.fr={timeOnlyTitle:"Choisir une heure",timeText:"Heure",hourText:"Heures",minuteText:"Minutes",secondText:"Secondes",millisecText:"Millisecondes",microsecText:"Microsecondes",timezoneText:"Fuseau horaire",currentText:"Maintenant",closeText:"Terminé",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.gl={timeOnlyTitle:"Elixir unha hora",timeText:"Hora",hourText:"Horas",minuteText:"Minutos",secondText:"Segundos",millisecText:"Milisegundos",microsecText:"Microssegundos",timezoneText:"Fuso horario",currentText:"Agora",closeText:"Pechar",timeFormat:"HH:mm",timeSuffix:"",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},a.timepicker.regional.he={timeOnlyTitle:"בחירת זמן",timeText:"שעה",hourText:"שעות",minuteText:"דקות",secondText:"שניות",millisecText:"אלפית השנייה",microsecText:"מיקרו",timezoneText:"אזור זמן",currentText:"עכשיו",closeText:"סגור",timeFormat:"HH:mm",timeSuffix:"",amNames:['לפנה"צ',"AM","A"],pmNames:['אחה"צ',"PM","P"],isRTL:!0},a.timepicker.regional.hr={timeOnlyTitle:"Odaberi vrijeme",timeText:"Vrijeme",hourText:"Sati",minuteText:"Minute",secondText:"Sekunde",millisecText:"Milisekunde",microsecText:"Mikrosekunde",timezoneText:"Vremenska zona",currentText:"Sada",closeText:"Gotovo",timeFormat:"HH:mm",timeSuffix:"",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},a.timepicker.regional.hu={timeOnlyTitle:"Válasszon időpontot",timeText:"Idő",hourText:"Óra",minuteText:"Perc",secondText:"Másodperc",millisecText:"Milliszekundumos",microsecText:"Ezredmásodperc",timezoneText:"Időzóna",currentText:"Most",closeText:"Kész",timeFormat:"HH:mm",timeSuffix:"",amNames:["de.","AM","A"],pmNames:["du.","PM","P"],isRTL:!1},a.timepicker.regional.id={timeOnlyTitle:"Pilih Waktu",timeText:"Waktu",hourText:"Pukul",minuteText:"Menit",secondText:"Detik",millisecText:"Milidetik",microsecText:"Mikrodetik",timezoneText:"Zona Waktu",currentText:"Sekarang",closeText:"OK",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.it={timeOnlyTitle:"Scegli orario",timeText:"Orario",hourText:"Ora",minuteText:"Minuti",secondText:"Secondi",millisecText:"Millisecondi",microsecText:"Microsecondi",timezoneText:"Fuso orario",currentText:"Adesso",closeText:"Chiudi",timeFormat:"HH:mm",timeSuffix:"",amNames:["m.","AM","A"],pmNames:["p.","PM","P"],isRTL:!1},a.timepicker.regional.ja={timeOnlyTitle:"時間を選択",timeText:"時間",hourText:"時",minuteText:"分",secondText:"秒",millisecText:"ミリ秒",microsecText:"マイクロ秒",timezoneText:"タイムゾーン",currentText:"現時刻",closeText:"閉じる",timeFormat:"HH:mm",timeSuffix:"",amNames:["午前","AM","A"],pmNames:["午後","PM","P"],isRTL:!1},a.timepicker.regional.ko={timeOnlyTitle:"시간 선택",timeText:"시간",hourText:"시",minuteText:"분",secondText:"초",millisecText:"밀리초",microsecText:"마이크로",timezoneText:"표준 시간대",currentText:"현재 시각",closeText:"닫기",timeFormat:"tt h:mm",timeSuffix:"",amNames:["오전","AM","A"],pmNames:["오후","PM","P"],isRTL:!1},a.timepicker.regional.lt={timeOnlyTitle:"Pasirinkite laiką",timeText:"Laikas",hourText:"Valandos",minuteText:"Minutės",secondText:"Sekundės",millisecText:"Milisekundės",microsecText:"Mikrosekundės",timezoneText:"Laiko zona",currentText:"Dabar",closeText:"Uždaryti",timeFormat:"HH:mm",timeSuffix:"",amNames:["priešpiet","AM","A"],pmNames:["popiet","PM","P"],isRTL:!1},a.timepicker.regional.lv={timeOnlyTitle:"Ievadiet laiku",timeText:"Laiks",hourText:"Stundas",minuteText:"Minūtes",secondText:"Sekundes",millisecText:"Milisekundes",microsecText:"Mikrosekundes",timezoneText:"Laika josla",currentText:"Tagad",closeText:"Aizvērt",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","AM","A"],pmNames:["PM","PM","P"],isRTL:!1},a.timepicker.regional.mk={timeOnlyTitle:"Одберете време",timeText:"Време",hourText:"Час",minuteText:"Минути",secondText:"Секунди",millisecText:"Милисекунди",microsecText:"Микросекунди",timezoneText:"Временска зона",currentText:"Сега",closeText:"Затвори",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.nl={timeOnlyTitle:"Tijdstip",timeText:"Tijd",hourText:"Uur",minuteText:"Minuut",secondText:"Seconde",millisecText:"Milliseconde",microsecText:"Microseconde",timezoneText:"Tijdzone",currentText:"Vandaag",closeText:"Sluiten",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.no={timeOnlyTitle:"Velg tid",timeText:"Tid",hourText:"Time",minuteText:"Minutt",secondText:"Sekund",millisecText:"Millisekund",microsecText:"mikrosekund",timezoneText:"Tidssone",currentText:"Nå",closeText:"Lukk",timeFormat:"HH:mm",timeSuffix:"",amNames:["am","AM","A"],pmNames:["pm","PM","P"],isRTL:!1},a.timepicker.regional.pl={timeOnlyTitle:"Wybierz godzinę",timeText:"Czas",hourText:"Godzina",minuteText:"Minuta",secondText:"Sekunda",millisecText:"Milisekunda",microsecText:"Mikrosekunda",timezoneText:"Strefa czasowa",currentText:"Teraz",closeText:"Gotowe",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional["pt-BR"]={timeOnlyTitle:"Escolha o horário",timeText:"Horário",hourText:"Hora",minuteText:"Minutos",secondText:"Segundos",millisecText:"Milissegundos",microsecText:"Microssegundos",timezoneText:"Fuso horário",currentText:"Agora",closeText:"Fechar",timeFormat:"HH:mm",timeSuffix:"",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},a.timepicker.regional.pt={timeOnlyTitle:"Escolha uma hora",timeText:"Hora",hourText:"Horas",minuteText:"Minutos",secondText:"Segundos",millisecText:"Milissegundos",microsecText:"Microssegundos",timezoneText:"Fuso horário",currentText:"Agora",closeText:"Fechar",timeFormat:"HH:mm",timeSuffix:"",amNames:["a.m.","AM","A"],pmNames:["p.m.","PM","P"],isRTL:!1},a.timepicker.regional.ro={timeOnlyTitle:"Alegeţi o oră",timeText:"Timp",hourText:"Ore",minuteText:"Minute",secondText:"Secunde",millisecText:"Milisecunde",microsecText:"Microsecunde",timezoneText:"Fus orar",currentText:"Acum",closeText:"Închide",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.ru={timeOnlyTitle:"Выберите время",timeText:"Время",hourText:"Часы",minuteText:"Минуты",secondText:"Секунды",millisecText:"Миллисекунды",microsecText:"Микросекунды",timezoneText:"Часовой пояс",currentText:"Сейчас",closeText:"Закрыть",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.sk={timeOnlyTitle:"Zvoľte čas",timeText:"Čas",hourText:"Hodiny",minuteText:"Minúty",secondText:"Sekundy",millisecText:"Milisekundy",microsecText:"Mikrosekundy",timezoneText:"Časové pásmo",currentText:"Teraz",closeText:"Zavrieť",timeFormat:"H:m",timeSuffix:"",amNames:["dop.","AM","A"],pmNames:["pop.","PM","P"],isRTL:!1},a.timepicker.regional.sl={timeOnlyTitle:"Izberite čas",timeText:"Čas",hourText:"Ura",minuteText:"Minute",secondText:"Sekunde",millisecText:"Milisekunde",microsecText:"Mikrosekunde",timezoneText:"Časovni pas",currentText:"Sedaj",closeText:"Zapri",timeFormat:"HH:mm",timeSuffix:"",amNames:["dop.","AM","A"],pmNames:["pop.","PM","P"],isRTL:!1},a.timepicker.regional.sq={timeOnlyTitle:"Zgjidh orarin",timeText:"Orari",hourText:"Ora",minuteText:"Minuta",secondText:"Sekonda",millisecText:"Minisekonda",microsecText:"Mikrosekonda",timezoneText:"Zona kohore",currentText:"Tani",closeText:"Mbyll",timeFormat:"HH:mm",timeSuffix:"",amNames:["m.","AM","A"],pmNames:["p.","PM","P"],isRTL:!1},a.timepicker.regional["sr-RS"]={timeOnlyTitle:"Одаберите време",timeText:"Време",hourText:"Сати",minuteText:"Минути",secondText:"Секунде",millisecText:"Милисекунде",microsecText:"Микросекунде",timezoneText:"Временска зона",currentText:"Сада",closeText:"Затвори",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional["sr-YU"]={timeOnlyTitle:"Odaberite vreme",timeText:"Vreme",hourText:"Sati",minuteText:"Minuti",secondText:"Sekunde",millisecText:"Milisekunde",microsecText:"Mikrosekunde",timezoneText:"Vremenska zona",currentText:"Sada",closeText:"Zatvori",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.sv={timeOnlyTitle:"Välj en tid",timeText:"Tid",hourText:"Timme",minuteText:"Minut",secondText:"Sekund",millisecText:"Millisekund",microsecText:"Mikrosekund",timezoneText:"Tidszon",currentText:"Nu",closeText:"Stäng",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.th={timeOnlyTitle:"เลือกเวลา",timeText:"เวลา ",hourText:"ชั่วโมง ",minuteText:"นาที",secondText:"วินาที",millisecText:"มิลลิวินาที",microsecText:"ไมโคริวินาที",timezoneText:"เขตเวลา",currentText:"เวลาปัจจุบัน",closeText:"ปิด",timeFormat:"hh:mm tt",timeSuffix:""},a.timepicker.regional.tr={timeOnlyTitle:"Zaman Seçiniz",timeText:"Zaman",hourText:"Saat",minuteText:"Dakika",secondText:"Saniye",millisecText:"Milisaniye",microsecText:"Mikrosaniye",timezoneText:"Zaman Dilimi",currentText:"Şu an",closeText:"Tamam",timeFormat:"HH:mm",timeSuffix:"",amNames:["ÖÖ","Ö"],pmNames:["ÖS","S"],isRTL:!1},a.timepicker.regional.uk={timeOnlyTitle:"Виберіть час",timeText:"Час",hourText:"Години",minuteText:"Хвилини",secondText:"Секунди",millisecText:"Мілісекунди",microsecText:"Мікросекунди",timezoneText:"Часовий пояс",currentText:"Зараз",closeText:"Закрити",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional.vi={timeOnlyTitle:"Chọn giờ",timeText:"Thời gian",hourText:"Giờ",minuteText:"Phút",secondText:"Giây",millisecText:"Mili giây",microsecText:"Micrô giây",timezoneText:"Múi giờ",currentText:"Hiện thời",closeText:"Đóng",timeFormat:"HH:mm",timeSuffix:"",amNames:["SA","S"],pmNames:["CH","C"],isRTL:!1},a.timepicker.regional["zh-CN"]={timeOnlyTitle:"选择时间",timeText:"时间",hourText:"小时",minuteText:"分钟",secondText:"秒钟",millisecText:"毫秒",microsecText:"微秒",timezoneText:"时区",currentText:"现在时间",closeText:"关闭",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM","A"],pmNames:["PM","P"],isRTL:!1},a.timepicker.regional["zh-TW"]={timeOnlyTitle:"選擇時分秒",timeText:"時間",hourText:"時",minuteText:"分",secondText:"秒",millisecText:"毫秒",microsecText:"微秒",timezoneText:"時區",currentText:"現在時間",closeText:"確定",timeFormat:"HH:mm",timeSuffix:"",amNames:["上午","AM","A"],pmNames:["下午","PM","P"],isRTL:!1}}(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-af.js: -------------------------------------------------------------------------------- 1 | /* Afrikaans translation for the jQuery Timepicker Addon */ 2 | /* Written by Deon Heyns */ 3 | (function($) { 4 | $.timepicker.regional['af'] = { 5 | timeOnlyTitle: 'Kies Tyd', 6 | timeText: 'Tyd ', 7 | hourText: 'Ure ', 8 | minuteText: 'Minute', 9 | secondText: 'Sekondes', 10 | millisecText: 'Millisekondes', 11 | microsecText: 'Mikrosekondes', 12 | timezoneText: 'Tydsone', 13 | currentText: 'Huidige Tyd', 14 | closeText: 'Klaar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['af']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-am.js: -------------------------------------------------------------------------------- 1 | /* Armenian translation for the jQuery Timepicker Addon */ 2 | /* Written by Artavazd Avetisyan artavazda@hotmail.com */ 3 | (function($) { 4 | $.timepicker.regional['am'] = { 5 | timeOnlyTitle: 'Ընտրեք ժամանակը', 6 | timeText: 'Ժամանակը', 7 | hourText: 'Ժամ', 8 | minuteText: 'Րոպե', 9 | secondText: 'Վարկյան', 10 | millisecText: 'Միլիվարկյան', 11 | microsecText: 'Միկրովարկյան', 12 | timezoneText: 'Ժամային գոտին', 13 | currentText: 'Այժմ', 14 | closeText: 'Փակել', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['am']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-bg.js: -------------------------------------------------------------------------------- 1 | /* Bulgarian translation for the jQuery Timepicker Addon */ 2 | /* Written by Plamen Kovandjiev */ 3 | (function($) { 4 | $.timepicker.regional['bg'] = { 5 | timeOnlyTitle: 'Изберете време', 6 | timeText: 'Време', 7 | hourText: 'Час', 8 | minuteText: 'Минути', 9 | secondText: 'Секунди', 10 | millisecText: 'Милисекунди', 11 | microsecText: 'Микросекунди', 12 | timezoneText: 'Часови пояс', 13 | currentText: 'Сега', 14 | closeText: 'Затвори', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['bg']); 22 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-ca.js: -------------------------------------------------------------------------------- 1 | /* Catalan translation for the jQuery Timepicker Addon */ 2 | /* Written by Sergi Faber */ 3 | (function($) { 4 | $.timepicker.regional['ca'] = { 5 | timeOnlyTitle: 'Escollir una hora', 6 | timeText: 'Hora', 7 | hourText: 'Hores', 8 | minuteText: 'Minuts', 9 | secondText: 'Segons', 10 | millisecText: 'Milisegons', 11 | microsecText: 'Microsegons', 12 | timezoneText: 'Fus horari', 13 | currentText: 'Ara', 14 | closeText: 'Tancar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ca']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-cs.js: -------------------------------------------------------------------------------- 1 | /* Czech translation for the jQuery Timepicker Addon */ 2 | /* Written by Ondřej Vodáček */ 3 | (function($) { 4 | $.timepicker.regional['cs'] = { 5 | timeOnlyTitle: 'Vyberte čas', 6 | timeText: 'Čas', 7 | hourText: 'Hodiny', 8 | minuteText: 'Minuty', 9 | secondText: 'Vteřiny', 10 | millisecText: 'Milisekundy', 11 | microsecText: 'Mikrosekundy', 12 | timezoneText: 'Časové pásmo', 13 | currentText: 'Nyní', 14 | closeText: 'Zavřít', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['dop.', 'AM', 'A'], 18 | pmNames: ['odp.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['cs']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-da.js: -------------------------------------------------------------------------------- 1 | /* Danish translation for the jQuery Timepicker Addon */ 2 | /* Written by Lars H. Jensen (http://www.larshj.dk) */ 3 | (function ($) { 4 | $.timepicker.regional['da'] = { 5 | timeOnlyTitle: 'Vælg tid', 6 | timeText: 'Tid', 7 | hourText: 'Time', 8 | minuteText: 'Minut', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekund', 11 | microsecText: 'Mikrosekund', 12 | timezoneText: 'Tidszone', 13 | currentText: 'Nu', 14 | closeText: 'Luk', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['am', 'AM', 'A'], 18 | pmNames: ['pm', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['da']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-de.js: -------------------------------------------------------------------------------- 1 | /* German translation for the jQuery Timepicker Addon */ 2 | /* Written by Marvin */ 3 | (function($) { 4 | $.timepicker.regional['de'] = { 5 | timeOnlyTitle: 'Zeit wählen', 6 | timeText: 'Zeit', 7 | hourText: 'Stunde', 8 | minuteText: 'Minute', 9 | secondText: 'Sekunde', 10 | millisecText: 'Millisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Zeitzone', 13 | currentText: 'Jetzt', 14 | closeText: 'Fertig', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['vorm.', 'AM', 'A'], 18 | pmNames: ['nachm.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['de']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-el.js: -------------------------------------------------------------------------------- 1 | /* Hellenic translation for the jQuery Timepicker Addon */ 2 | /* Written by Christos Pontikis */ 3 | (function($) { 4 | $.timepicker.regional['el'] = { 5 | timeOnlyTitle: 'Επιλογή ώρας', 6 | timeText: 'Ώρα', 7 | hourText: 'Ώρες', 8 | minuteText: 'Λεπτά', 9 | secondText: 'Δευτερόλεπτα', 10 | millisecText: 'Χιλιοστοδευτερόλεπτα', 11 | microsecText: 'Μικροδευτερόλεπτα', 12 | timezoneText: 'Ζώνη ώρας', 13 | currentText: 'Τώρα', 14 | closeText: 'Κλείσιμο', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['π.μ.', 'AM', 'A'], 18 | pmNames: ['μ.μ.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['el']); 22 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Spanish translation for the jQuery Timepicker Addon */ 2 | /* Written by Ianaré Sévi */ 3 | /* Modified by Carlos Martínez */ 4 | (function($) { 5 | $.timepicker.regional['es'] = { 6 | timeOnlyTitle: 'Elegir una hora', 7 | timeText: 'Hora', 8 | hourText: 'Horas', 9 | minuteText: 'Minutos', 10 | secondText: 'Segundos', 11 | millisecText: 'Milisegundos', 12 | microsecText: 'Microsegundos', 13 | timezoneText: 'Uso horario', 14 | currentText: 'Hoy', 15 | closeText: 'Cerrar', 16 | timeFormat: 'HH:mm', 17 | timeSuffix: '', 18 | amNames: ['a.m.', 'AM', 'A'], 19 | pmNames: ['p.m.', 'PM', 'P'], 20 | isRTL: false 21 | }; 22 | $.timepicker.setDefaults($.timepicker.regional['es']); 23 | })(jQuery); 24 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-et.js: -------------------------------------------------------------------------------- 1 | /* Estonian translation for the jQuery Timepicker Addon */ 2 | /* Written by Karl Sutt (karl@sutt.ee) */ 3 | (function($) { 4 | $.timepicker.regional['et'] = { 5 | timeOnlyTitle: 'Vali aeg', 6 | timeText: 'Aeg', 7 | hourText: 'Tund', 8 | minuteText: 'Minut', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekundis', 11 | microsecText: 'Mikrosekundis', 12 | timezoneText: 'Ajavöönd', 13 | currentText: 'Praegu', 14 | closeText: 'Valmis', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['et']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-eu.js: -------------------------------------------------------------------------------- 1 | /* Basque trannslation for JQuery Timepicker Addon */ 2 | /* Translated by Xabi Fer */ 3 | /* Fixed by Asier Iturralde Sarasola - iametza interaktiboa */ 4 | (function($) { 5 | $.timepicker.regional['eu'] = { 6 | timeOnlyTitle: 'Aukeratu ordua', 7 | timeText: 'Ordua', 8 | hourText: 'Orduak', 9 | minuteText: 'Minutuak', 10 | secondText: 'Segundoak', 11 | millisecText: 'Milisegundoak', 12 | microsecText: 'Mikrosegundoak', 13 | timezoneText: 'Ordu-eremua', 14 | currentText: 'Orain', 15 | closeText: 'Itxi', 16 | timeFormat: 'HH:mm', 17 | timeSuffix: '', 18 | amNames: ['a.m.', 'AM', 'A'], 19 | pmNames: ['p.m.', 'PM', 'P'], 20 | isRTL: false 21 | }; 22 | $.timepicker.setDefaults($.timepicker.regional['eu']); 23 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-fa.js: -------------------------------------------------------------------------------- 1 | /* Persian translation for the jQuery Timepicker Addon */ 2 | /* Written by Meysam Pour Ganji */ 3 | (function($) { 4 | $.timepicker.regional['fa'] = { 5 | timeOnlyTitle: 'انتخاب زمان', 6 | timeText: 'زمان', 7 | hourText: 'ساعت', 8 | minuteText: 'دقیقه', 9 | secondText: 'ثانیه', 10 | millisecText: 'میلی ثانیه', 11 | microsecText: 'میکرو ثانیه', 12 | timezoneText: 'منطقه زمانی', 13 | currentText: 'الان', 14 | closeText: 'انتخاب', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['قبل ظهر', 'AM', 'A'], 18 | pmNames: ['بعد ظهر', 'PM', 'P'], 19 | isRTL: true 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['fa']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-fi.js: -------------------------------------------------------------------------------- 1 | /* Finnish translation for the jQuery Timepicker Addon */ 2 | /* Written by Juga Paazmaya (http://github.com/paazmaya) */ 3 | (function($) { 4 | $.timepicker.regional['fi'] = { 5 | timeOnlyTitle: 'Valitse aika', 6 | timeText: 'Aika', 7 | hourText: 'Tunti', 8 | minuteText: 'Minuutti', 9 | secondText: 'Sekunti', 10 | millisecText: 'Millisekunnin', 11 | microsecText: 'Mikrosekuntia', 12 | timezoneText: 'Aikavyöhyke', 13 | currentText: 'Nyt', 14 | closeText: 'Sulje', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['ap.', 'AM', 'A'], 18 | pmNames: ['ip.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['fi']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-fr.js: -------------------------------------------------------------------------------- 1 | /* French translation for the jQuery Timepicker Addon */ 2 | /* Written by Thomas Lété */ 3 | (function($) { 4 | $.timepicker.regional['fr'] = { 5 | timeOnlyTitle: 'Choisir une heure', 6 | timeText: 'Heure', 7 | hourText: 'Heures', 8 | minuteText: 'Minutes', 9 | secondText: 'Secondes', 10 | millisecText: 'Millisecondes', 11 | microsecText: 'Microsecondes', 12 | timezoneText: 'Fuseau horaire', 13 | currentText: 'Maintenant', 14 | closeText: 'Terminé', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['fr']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-gl.js: -------------------------------------------------------------------------------- 1 | /* Galician translation for the jQuery Timepicker Addon */ 2 | /* Written by David Barral */ 3 | (function($) { 4 | $.timepicker.regional['gl'] = { 5 | timeOnlyTitle: 'Elixir unha hora', 6 | timeText: 'Hora', 7 | hourText: 'Horas', 8 | minuteText: 'Minutos', 9 | secondText: 'Segundos', 10 | millisecText: 'Milisegundos', 11 | microsecText: 'Microssegundos', 12 | timezoneText: 'Fuso horario', 13 | currentText: 'Agora', 14 | closeText: 'Pechar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['gl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-he.js: -------------------------------------------------------------------------------- 1 | /* Hebrew translation for the jQuery Timepicker Addon */ 2 | /* Written by Lior Lapid */ 3 | (function($) { 4 | $.timepicker.regional["he"] = { 5 | timeOnlyTitle: "בחירת זמן", 6 | timeText: "שעה", 7 | hourText: "שעות", 8 | minuteText: "דקות", 9 | secondText: "שניות", 10 | millisecText: "אלפית השנייה", 11 | microsecText: "מיקרו", 12 | timezoneText: "אזור זמן", 13 | currentText: "עכשיו", 14 | closeText:"סגור", 15 | timeFormat: "HH:mm", 16 | timeSuffix: '', 17 | amNames: ['לפנה"צ', 'AM', 'A'], 18 | pmNames: ['אחה"צ', 'PM', 'P'], 19 | isRTL: true 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional["he"]); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-hr.js: -------------------------------------------------------------------------------- 1 | /* Croatian translation for the jQuery Timepicker Addon */ 2 | /* Written by Mladen */ 3 | (function($) { 4 | $.timepicker.regional['hr'] = { 5 | timeOnlyTitle: 'Odaberi vrijeme', 6 | timeText: 'Vrijeme', 7 | hourText: 'Sati', 8 | minuteText: 'Minute', 9 | secondText: 'Sekunde', 10 | millisecText: 'Milisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Vremenska zona', 13 | currentText: 'Sada', 14 | closeText: 'Gotovo', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['hr']); 22 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-hu.js: -------------------------------------------------------------------------------- 1 | /* Hungarian translation for the jQuery Timepicker Addon */ 2 | /* Written by Vas Gábor */ 3 | (function($) { 4 | $.timepicker.regional['hu'] = { 5 | timeOnlyTitle: 'Válasszon időpontot', 6 | timeText: 'Idő', 7 | hourText: 'Óra', 8 | minuteText: 'Perc', 9 | secondText: 'Másodperc', 10 | millisecText: 'Milliszekundumos', 11 | microsecText: 'Ezredmásodperc', 12 | timezoneText: 'Időzóna', 13 | currentText: 'Most', 14 | closeText: 'Kész', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['de.', 'AM', 'A'], 18 | pmNames: ['du.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['hu']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-id.js: -------------------------------------------------------------------------------- 1 | /* Indonesian translation for the jQuery Timepicker Addon */ 2 | /* Written by Nia */ 3 | (function($) { 4 | $.timepicker.regional['id'] = { 5 | timeOnlyTitle: 'Pilih Waktu', 6 | timeText: 'Waktu', 7 | hourText: 'Pukul', 8 | minuteText: 'Menit', 9 | secondText: 'Detik', 10 | millisecText: 'Milidetik', 11 | microsecText: 'Mikrodetik', 12 | timezoneText: 'Zona Waktu', 13 | currentText: 'Sekarang', 14 | closeText: 'OK', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['id']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-it.js: -------------------------------------------------------------------------------- 1 | /* Italian translation for the jQuery Timepicker Addon */ 2 | /* Written by Marco "logicoder" Del Tongo */ 3 | (function($) { 4 | $.timepicker.regional['it'] = { 5 | timeOnlyTitle: 'Scegli orario', 6 | timeText: 'Orario', 7 | hourText: 'Ora', 8 | minuteText: 'Minuti', 9 | secondText: 'Secondi', 10 | millisecText: 'Millisecondi', 11 | microsecText: 'Microsecondi', 12 | timezoneText: 'Fuso orario', 13 | currentText: 'Adesso', 14 | closeText: 'Chiudi', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['m.', 'AM', 'A'], 18 | pmNames: ['p.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['it']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-ja.js: -------------------------------------------------------------------------------- 1 | /* Japanese translation for the jQuery Timepicker Addon */ 2 | /* Written by Jun Omae */ 3 | (function($) { 4 | $.timepicker.regional['ja'] = { 5 | timeOnlyTitle: '時間を選択', 6 | timeText: '時間', 7 | hourText: '時', 8 | minuteText: '分', 9 | secondText: '秒', 10 | millisecText: 'ミリ秒', 11 | microsecText: 'マイクロ秒', 12 | timezoneText: 'タイムゾーン', 13 | currentText: '現時刻', 14 | closeText: '閉じる', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['午前', 'AM', 'A'], 18 | pmNames: ['午後', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ja']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-ko.js: -------------------------------------------------------------------------------- 1 | /* Korean translation for the jQuery Timepicker Addon */ 2 | /* Written by Genie */ 3 | (function($) { 4 | $.timepicker.regional['ko'] = { 5 | timeOnlyTitle: '시간 선택', 6 | timeText: '시간', 7 | hourText: '시', 8 | minuteText: '분', 9 | secondText: '초', 10 | millisecText: '밀리초', 11 | microsecText: '마이크로', 12 | timezoneText: '표준 시간대', 13 | currentText: '현재 시각', 14 | closeText: '닫기', 15 | timeFormat: 'tt h:mm', 16 | timeSuffix: '', 17 | amNames: ['오전', 'AM', 'A'], 18 | pmNames: ['오후', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ko']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-lt.js: -------------------------------------------------------------------------------- 1 | /* Lithuanian translation for the jQuery Timepicker Addon */ 2 | /* Written by Irmantas Šiupšinskas */ 3 | (function($) { 4 | $.timepicker.regional['lt'] = { 5 | timeOnlyTitle: 'Pasirinkite laiką', 6 | timeText: 'Laikas', 7 | hourText: 'Valandos', 8 | minuteText: 'Minutės', 9 | secondText: 'Sekundės', 10 | millisecText: 'Milisekundės', 11 | microsecText: 'Mikrosekundės', 12 | timezoneText: 'Laiko zona', 13 | currentText: 'Dabar', 14 | closeText: 'Uždaryti', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['priešpiet', 'AM', 'A'], 18 | pmNames: ['popiet', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['lt']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-lv.js: -------------------------------------------------------------------------------- 1 | /* Latvian translation for the jQuery Timepicker Addon */ 2 | /* Written by Dmitry Bogatykh */ 3 | (function($) { 4 | $.timepicker.regional['lv'] = { 5 | timeOnlyTitle: 'Ievadiet laiku', 6 | timeText: 'Laiks', 7 | hourText: 'Stundas', 8 | minuteText: 'Minūtes', 9 | secondText: 'Sekundes', 10 | millisecText: 'Milisekundes', 11 | microsecText: 'Mikrosekundes', 12 | timezoneText: 'Laika josla', 13 | currentText: 'Tagad', 14 | closeText: 'Aizvērt', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'AM', 'A'], 18 | pmNames: ['PM', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['lv']); 22 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-mk.js: -------------------------------------------------------------------------------- 1 | /* Macedonian cyrilic translation for the jQuery Timepicker Addon */ 2 | /* Written by Vlatko Ristovski */ 3 | (function($) { 4 | $.timepicker.regional['mk'] = { 5 | timeOnlyTitle: 'Одберете време', 6 | timeText: 'Време', 7 | hourText: 'Час', 8 | minuteText: 'Минути', 9 | secondText: 'Секунди', 10 | millisecText: 'Милисекунди', 11 | microsecText: 'Микросекунди', 12 | timezoneText: 'Временска зона', 13 | currentText: 'Сега', 14 | closeText: 'Затвори', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['mk']); 22 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-nl.js: -------------------------------------------------------------------------------- 1 | /* Dutch translation for the jQuery Timepicker Addon */ 2 | /* Written by Martijn van der Lee */ 3 | (function($) { 4 | $.timepicker.regional['nl'] = { 5 | timeOnlyTitle: 'Tijdstip', 6 | timeText: 'Tijd', 7 | hourText: 'Uur', 8 | minuteText: 'Minuut', 9 | secondText: 'Seconde', 10 | millisecText: 'Milliseconde', 11 | microsecText: 'Microseconde', 12 | timezoneText: 'Tijdzone', 13 | currentText: 'Vandaag', 14 | closeText: 'Sluiten', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['nl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-no.js: -------------------------------------------------------------------------------- 1 | /* Norwegian translation for the jQuery Timepicker Addon */ 2 | /* Written by Morten Hauan (http://hauan.me) */ 3 | (function($) { 4 | $.timepicker.regional['no'] = { 5 | timeOnlyTitle: 'Velg tid', 6 | timeText: 'Tid', 7 | hourText: 'Time', 8 | minuteText: 'Minutt', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekund', 11 | microsecText: 'mikrosekund', 12 | timezoneText: 'Tidssone', 13 | currentText: 'Nå', 14 | closeText: 'Lukk', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['am', 'AM', 'A'], 18 | pmNames: ['pm', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['no']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-pl.js: -------------------------------------------------------------------------------- 1 | /* Polish translation for the jQuery Timepicker Addon */ 2 | /* Written by Michał Pena */ 3 | (function($) { 4 | $.timepicker.regional['pl'] = { 5 | timeOnlyTitle: 'Wybierz godzinę', 6 | timeText: 'Czas', 7 | hourText: 'Godzina', 8 | minuteText: 'Minuta', 9 | secondText: 'Sekunda', 10 | millisecText: 'Milisekunda', 11 | microsecText: 'Mikrosekunda', 12 | timezoneText: 'Strefa czasowa', 13 | currentText: 'Teraz', 14 | closeText: 'Gotowe', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['pl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-pt-BR.js: -------------------------------------------------------------------------------- 1 | /* Brazilian Portuguese translation for the jQuery Timepicker Addon */ 2 | /* Written by Diogo Damiani (diogodamiani@gmail.com) */ 3 | (function ($) { 4 | $.timepicker.regional['pt-BR'] = { 5 | timeOnlyTitle: 'Escolha o horário', 6 | timeText: 'Horário', 7 | hourText: 'Hora', 8 | minuteText: 'Minutos', 9 | secondText: 'Segundos', 10 | millisecText: 'Milissegundos', 11 | microsecText: 'Microssegundos', 12 | timezoneText: 'Fuso horário', 13 | currentText: 'Agora', 14 | closeText: 'Fechar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['pt-BR']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-pt.js: -------------------------------------------------------------------------------- 1 | /* Portuguese translation for the jQuery Timepicker Addon */ 2 | /* Written by Luan Almeida */ 3 | (function($) { 4 | $.timepicker.regional['pt'] = { 5 | timeOnlyTitle: 'Escolha uma hora', 6 | timeText: 'Hora', 7 | hourText: 'Horas', 8 | minuteText: 'Minutos', 9 | secondText: 'Segundos', 10 | millisecText: 'Milissegundos', 11 | microsecText: 'Microssegundos', 12 | timezoneText: 'Fuso horário', 13 | currentText: 'Agora', 14 | closeText: 'Fechar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['pt']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-ro.js: -------------------------------------------------------------------------------- 1 | /* Romanian translation for the jQuery Timepicker Addon */ 2 | /* Written by Romeo Adrian Cioaba */ 3 | (function($) { 4 | $.timepicker.regional['ro'] = { 5 | timeOnlyTitle: 'Alegeţi o oră', 6 | timeText: 'Timp', 7 | hourText: 'Ore', 8 | minuteText: 'Minute', 9 | secondText: 'Secunde', 10 | millisecText: 'Milisecunde', 11 | microsecText: 'Microsecunde', 12 | timezoneText: 'Fus orar', 13 | currentText: 'Acum', 14 | closeText: 'Închide', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ro']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-ru.js: -------------------------------------------------------------------------------- 1 | /* Russian translation for the jQuery Timepicker Addon */ 2 | /* Written by Trent Richardson */ 3 | (function($) { 4 | $.timepicker.regional['ru'] = { 5 | timeOnlyTitle: 'Выберите время', 6 | timeText: 'Время', 7 | hourText: 'Часы', 8 | minuteText: 'Минуты', 9 | secondText: 'Секунды', 10 | millisecText: 'Миллисекунды', 11 | microsecText: 'Микросекунды', 12 | timezoneText: 'Часовой пояс', 13 | currentText: 'Сейчас', 14 | closeText: 'Закрыть', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ru']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-sk.js: -------------------------------------------------------------------------------- 1 | /* Slovak translation for the jQuery Timepicker Addon */ 2 | /* Written by David Vallner */ 3 | (function($) { 4 | $.timepicker.regional['sk'] = { 5 | timeOnlyTitle: 'Zvoľte čas', 6 | timeText: 'Čas', 7 | hourText: 'Hodiny', 8 | minuteText: 'Minúty', 9 | secondText: 'Sekundy', 10 | millisecText: 'Milisekundy', 11 | microsecText: 'Mikrosekundy', 12 | timezoneText: 'Časové pásmo', 13 | currentText: 'Teraz', 14 | closeText: 'Zavrieť', 15 | timeFormat: 'H:m', 16 | timeSuffix: '', 17 | amNames: ['dop.', 'AM', 'A'], 18 | pmNames: ['pop.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sk']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-sl.js: -------------------------------------------------------------------------------- 1 | /* Slovenian translation for the jQuery Timepicker Addon */ 2 | /* Written by Hadalin (https://github.com/hadalin) */ 3 | (function($) { 4 | $.timepicker.regional['sl'] = { 5 | timeOnlyTitle: 'Izberite čas', 6 | timeText: 'Čas', 7 | hourText: 'Ura', 8 | minuteText: 'Minute', 9 | secondText: 'Sekunde', 10 | millisecText: 'Milisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Časovni pas', 13 | currentText: 'Sedaj', 14 | closeText: 'Zapri', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['dop.', 'AM', 'A'], 18 | pmNames: ['pop.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-sq.js: -------------------------------------------------------------------------------- 1 | /* Albanian translation for the jQuery Timepicker Addon */ 2 | /* Written by Olti Buzi */ 3 | (function($) { 4 | $.timepicker.regional['sq'] = { 5 | timeOnlyTitle: 'Zgjidh orarin', 6 | timeText: 'Orari', 7 | hourText: 'Ora', 8 | minuteText: 'Minuta', 9 | secondText: 'Sekonda', 10 | millisecText: 'Minisekonda', 11 | microsecText: 'Mikrosekonda', 12 | timezoneText: 'Zona kohore', 13 | currentText: 'Tani', 14 | closeText: 'Mbyll', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['m.', 'AM', 'A'], 18 | pmNames: ['p.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sq']); 22 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-sr-RS.js: -------------------------------------------------------------------------------- 1 | /* Serbian cyrilic translation for the jQuery Timepicker Addon */ 2 | /* Written by Vladimir Jelovac */ 3 | (function($) { 4 | $.timepicker.regional['sr-RS'] = { 5 | timeOnlyTitle: 'Одаберите време', 6 | timeText: 'Време', 7 | hourText: 'Сати', 8 | minuteText: 'Минути', 9 | secondText: 'Секунде', 10 | millisecText: 'Милисекунде', 11 | microsecText: 'Микросекунде', 12 | timezoneText: 'Временска зона', 13 | currentText: 'Сада', 14 | closeText: 'Затвори', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sr-RS']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-sr-YU.js: -------------------------------------------------------------------------------- 1 | /* Serbian latin translation for the jQuery Timepicker Addon */ 2 | /* Written by Vladimir Jelovac */ 3 | (function($) { 4 | $.timepicker.regional['sr-YU'] = { 5 | timeOnlyTitle: 'Odaberite vreme', 6 | timeText: 'Vreme', 7 | hourText: 'Sati', 8 | minuteText: 'Minuti', 9 | secondText: 'Sekunde', 10 | millisecText: 'Milisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Vremenska zona', 13 | currentText: 'Sada', 14 | closeText: 'Zatvori', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sr-YU']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-sv.js: -------------------------------------------------------------------------------- 1 | /* Swedish translation for the jQuery Timepicker Addon */ 2 | /* Written by Nevon */ 3 | (function($) { 4 | $.timepicker.regional['sv'] = { 5 | timeOnlyTitle: 'Välj en tid', 6 | timeText: 'Tid', 7 | hourText: 'Timme', 8 | minuteText: 'Minut', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekund', 11 | microsecText: 'Mikrosekund', 12 | timezoneText: 'Tidszon', 13 | currentText: 'Nu', 14 | closeText: 'Stäng', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sv']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-th.js: -------------------------------------------------------------------------------- 1 | /* Thai translation for the jQuery Timepicker Addon */ 2 | /* Written by Yote Wachirapornpongsa */ 3 | (function($) { 4 | $.timepicker.regional['th'] = { 5 | timeOnlyTitle: 'เลือกเวลา', 6 | timeText: 'เวลา ', 7 | hourText: 'ชั่วโมง ', 8 | minuteText: 'นาที', 9 | secondText: 'วินาที', 10 | millisecText: 'มิลลิวินาที', 11 | microsecText: 'ไมโคริวินาที', 12 | timezoneText: 'เขตเวลา', 13 | currentText: 'เวลาปัจจุบัน', 14 | closeText: 'ปิด', 15 | timeFormat: 'hh:mm tt', 16 | timeSuffix: '' 17 | }; 18 | $.timepicker.setDefaults($.timepicker.regional['th']); 19 | })(jQuery); -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-tr.js: -------------------------------------------------------------------------------- 1 | /* Turkish translation for the jQuery Timepicker Addon */ 2 | /* Written by Fehmi Can Saglam, Edited by Goktug Ozturk */ 3 | (function($) { 4 | $.timepicker.regional['tr'] = { 5 | timeOnlyTitle: 'Zaman Seçiniz', 6 | timeText: 'Zaman', 7 | hourText: 'Saat', 8 | minuteText: 'Dakika', 9 | secondText: 'Saniye', 10 | millisecText: 'Milisaniye', 11 | microsecText: 'Mikrosaniye', 12 | timezoneText: 'Zaman Dilimi', 13 | currentText: 'Şu an', 14 | closeText: 'Tamam', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['ÖÖ', 'Ö'], 18 | pmNames: ['ÖS', 'S'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['tr']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-uk.js: -------------------------------------------------------------------------------- 1 | /* Ukrainian translation for the jQuery Timepicker Addon */ 2 | /* Written by Sergey Noskov */ 3 | (function($) { 4 | $.timepicker.regional['uk'] = { 5 | timeOnlyTitle: 'Виберіть час', 6 | timeText: 'Час', 7 | hourText: 'Години', 8 | minuteText: 'Хвилини', 9 | secondText: 'Секунди', 10 | millisecText: 'Мілісекунди', 11 | microsecText: 'Мікросекунди', 12 | timezoneText: 'Часовий пояс', 13 | currentText: 'Зараз', 14 | closeText: 'Закрити', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['uk']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-vi.js: -------------------------------------------------------------------------------- 1 | /* Vietnamese translation for the jQuery Timepicker Addon */ 2 | /* Written by Nguyen Dinh Trung */ 3 | (function($) { 4 | $.timepicker.regional['vi'] = { 5 | timeOnlyTitle: 'Chọn giờ', 6 | timeText: 'Thời gian', 7 | hourText: 'Giờ', 8 | minuteText: 'Phút', 9 | secondText: 'Giây', 10 | millisecText: 'Mili giây', 11 | microsecText: 'Micrô giây', 12 | timezoneText: 'Múi giờ', 13 | currentText: 'Hiện thời', 14 | closeText: 'Đóng', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['SA', 'S'], 18 | pmNames: ['CH', 'C'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['vi']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-zh-CN.js: -------------------------------------------------------------------------------- 1 | /* Simplified Chinese translation for the jQuery Timepicker Addon / 2 | / Written by Will Lu */ 3 | (function($) { 4 | $.timepicker.regional['zh-CN'] = { 5 | timeOnlyTitle: '选择时间', 6 | timeText: '时间', 7 | hourText: '小时', 8 | minuteText: '分钟', 9 | secondText: '秒钟', 10 | millisecText: '毫秒', 11 | microsecText: '微秒', 12 | timezoneText: '时区', 13 | currentText: '现在时间', 14 | closeText: '关闭', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['zh-CN']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/i18n/jquery-ui-timepicker-zh-TW.js: -------------------------------------------------------------------------------- 1 | /* Chinese translation for the jQuery Timepicker Addon */ 2 | /* Written by Alang.lin */ 3 | (function($) { 4 | $.timepicker.regional['zh-TW'] = { 5 | timeOnlyTitle: '選擇時分秒', 6 | timeText: '時間', 7 | hourText: '時', 8 | minuteText: '分', 9 | secondText: '秒', 10 | millisecText: '毫秒', 11 | microsecText: '微秒', 12 | timezoneText: '時區', 13 | currentText: '現在時間', 14 | closeText: '確定', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['上午', 'AM', 'A'], 18 | pmNames: ['下午', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['zh-TW']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /dist/jquery-ui-sliderAccess.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI Slider Access 3 | * By: Trent Richardson [http://trentrichardson.com] 4 | * Version 0.3 5 | * Last Modified: 10/20/2012 6 | * 7 | * Copyright 2011 Trent Richardson 8 | * Dual licensed under the MIT and GPL licenses. 9 | * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt 10 | * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt 11 | * 12 | */ 13 | (function($){ 14 | 15 | $.fn.extend({ 16 | sliderAccess: function(options){ 17 | options = options || {}; 18 | options.touchonly = options.touchonly !== undefined? options.touchonly : true; // by default only show it if touch device 19 | 20 | if(options.touchonly === true && !("ontouchend" in document)){ 21 | return $(this); 22 | } 23 | 24 | return $(this).each(function(i,obj){ 25 | var $t = $(this), 26 | o = $.extend({},{ 27 | where: 'after', 28 | step: $t.slider('option','step'), 29 | upIcon: 'ui-icon-plus', 30 | downIcon: 'ui-icon-minus', 31 | text: false, 32 | upText: '+', 33 | downText: '-', 34 | buttonset: true, 35 | buttonsetTag: 'span', 36 | isRTL: false 37 | }, options), 38 | $buttons = $('<'+ o.buttonsetTag +' class="ui-slider-access">'+ 39 | ''+ 40 | ''+ 41 | ''); 42 | 43 | $buttons.children('button').each(function(j, jobj){ 44 | var $jt = $(this); 45 | $jt.button({ 46 | text: o.text, 47 | icons: { primary: $jt.data('icon') } 48 | }) 49 | .click(function(e){ 50 | var step = $jt.data('step'), 51 | curr = $t.slider('value'), 52 | newval = curr += step*1, 53 | minval = $t.slider('option','min'), 54 | maxval = $t.slider('option','max'), 55 | slidee = $t.slider("option", "slide") || function(){}, 56 | stope = $t.slider("option", "stop") || function(){}; 57 | 58 | e.preventDefault(); 59 | 60 | if(newval < minval || newval > maxval){ 61 | return; 62 | } 63 | 64 | $t.slider('value', newval); 65 | 66 | slidee.call($t, null, { value: newval }); 67 | stope.call($t, null, { value: newval }); 68 | }); 69 | }); 70 | 71 | // before or after 72 | $t[o.where]($buttons); 73 | 74 | if(o.buttonset){ 75 | $buttons.removeClass('ui-corner-right').removeClass('ui-corner-left').buttonset(); 76 | $buttons.eq(0).addClass('ui-corner-left'); 77 | $buttons.eq(1).addClass('ui-corner-right'); 78 | } 79 | 80 | // adjust the width so we don't break the original layout 81 | var bOuterWidth = $buttons.css({ 82 | marginLeft: ((o.where === 'after' && !o.isRTL) || (o.where === 'before' && o.isRTL)? 10:0), 83 | marginRight: ((o.where === 'before' && !o.isRTL) || (o.where === 'after' && o.isRTL)? 10:0) 84 | }).outerWidth(true) + 5; 85 | var tOuterWidth = $t.outerWidth(true); 86 | $t.css('display','inline-block').width(tOuterWidth-bOuterWidth); 87 | }); 88 | } 89 | }); 90 | 91 | })(jQuery); -------------------------------------------------------------------------------- /dist/jquery-ui-timepicker-addon.css: -------------------------------------------------------------------------------- 1 | .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } 2 | .ui-timepicker-div dl { text-align: left; } 3 | .ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; } 4 | .ui-timepicker-div dl dd { margin: 0 10px 10px 40%; } 5 | .ui-timepicker-div td { font-size: 90%; } 6 | .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } 7 | .ui-timepicker-div .ui_tpicker_unit_hide{ display: none; } 8 | 9 | .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input { background: none; color: inherit; border: none; outline: none; border-bottom: solid 1px #555; width: 95%; } 10 | .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus { border-bottom-color: #aaa; } 11 | 12 | .ui-timepicker-rtl{ direction: rtl; } 13 | .ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; } 14 | .ui-timepicker-rtl dl dt{ float: right; clear: right; } 15 | .ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; } 16 | 17 | /* Shortened version style */ 18 | .ui-timepicker-div.ui-timepicker-oneLine { padding-right: 2px; } 19 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time, 20 | .ui-timepicker-div.ui-timepicker-oneLine dt { display: none; } 21 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time_label { display: block; padding-top: 2px; } 22 | .ui-timepicker-div.ui-timepicker-oneLine dl { text-align: right; } 23 | .ui-timepicker-div.ui-timepicker-oneLine dl dd, 24 | .ui-timepicker-div.ui-timepicker-oneLine dl dd > div { display:inline-block; margin:0; } 25 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_minute:before, 26 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_second:before { content:':'; display:inline-block; } 27 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_millisec:before, 28 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_microsec:before { content:'.'; display:inline-block; } 29 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide, 30 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide:before{ display: none; } -------------------------------------------------------------------------------- /dist/jquery-ui-timepicker-addon.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20 2 | * http://trentrichardson.com/examples/timepicker 3 | * Copyright (c) 2016 Trent Richardson; Licensed MIT */ 4 | 5 | .ui-timepicker-div .ui-widget-header{margin-bottom:8px}.ui-timepicker-div dl{text-align:left}.ui-timepicker-div dl dt{float:left;clear:left;padding:0 0 0 5px}.ui-timepicker-div dl dd{margin:0 10px 10px 40%}.ui-timepicker-div td{font-size:90%}.ui-tpicker-grid-label{background:0 0;border:0;margin:0;padding:0}.ui-timepicker-div .ui_tpicker_unit_hide{display:none}.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input{background:0 0;color:inherit;border:0;outline:0;border-bottom:solid 1px #555;width:95%}.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus{border-bottom-color:#aaa}.ui-timepicker-rtl{direction:rtl}.ui-timepicker-rtl dl{text-align:right;padding:0 5px 0 0}.ui-timepicker-rtl dl dt{float:right;clear:right}.ui-timepicker-rtl dl dd{margin:0 40% 10px 10px}.ui-timepicker-div.ui-timepicker-oneLine{padding-right:2px}.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time,.ui-timepicker-div.ui-timepicker-oneLine dt{display:none}.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time_label{display:block;padding-top:2px}.ui-timepicker-div.ui-timepicker-oneLine dl{text-align:right}.ui-timepicker-div.ui-timepicker-oneLine dl dd,.ui-timepicker-div.ui-timepicker-oneLine dl dd>div{display:inline-block;margin:0}.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_minute:before,.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_second:before{content:':';display:inline-block}.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_millisec:before,.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_microsec:before{content:'.';display:inline-block}.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide,.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide:before{display:none} -------------------------------------------------------------------------------- /jquery-ui-timepicker-addon.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-ui-timepicker-addon", 3 | "title": "jQuery Timepicker Addon", 4 | "description": "A timepicker addon for jQueryUI datepicker.", 5 | "version": "1.6.3", 6 | "modified": "2016-04-20", 7 | "homepage": "http://trentrichardson.com/examples/timepicker", 8 | "author": { 9 | "name": "Trent Richardson", 10 | "email": "trentdrichardson@gmail.com", 11 | "url": "http://trentrichardson.com" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/trentrichardson/jQuery-Timepicker-Addon.git" 16 | }, 17 | "bugs": "https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues", 18 | "licenses": [ 19 | { 20 | "type": "MIT", 21 | "url": "http://trentrichardson.com/examples/jQuery-Timepicker-Addon/blob/master/LICENSE-MIT" 22 | } 23 | ], 24 | "dependencies": { 25 | "jquery": "*" 26 | }, 27 | "keywords": [] 28 | } 29 | -------------------------------------------------------------------------------- /lib/jasmine-1.3.1/MIT.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2011 Pivotal Labs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /lib/jasmine-1.3.1/jasmine-html.js: -------------------------------------------------------------------------------- 1 | jasmine.HtmlReporterHelpers = {}; 2 | 3 | jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) { 4 | var el = document.createElement(type); 5 | 6 | for (var i = 2; i < arguments.length; i++) { 7 | var child = arguments[i]; 8 | 9 | if (typeof child === 'string') { 10 | el.appendChild(document.createTextNode(child)); 11 | } else { 12 | if (child) { 13 | el.appendChild(child); 14 | } 15 | } 16 | } 17 | 18 | for (var attr in attrs) { 19 | if (attr == "className") { 20 | el[attr] = attrs[attr]; 21 | } else { 22 | el.setAttribute(attr, attrs[attr]); 23 | } 24 | } 25 | 26 | return el; 27 | }; 28 | 29 | jasmine.HtmlReporterHelpers.getSpecStatus = function(child) { 30 | var results = child.results(); 31 | var status = results.passed() ? 'passed' : 'failed'; 32 | if (results.skipped) { 33 | status = 'skipped'; 34 | } 35 | 36 | return status; 37 | }; 38 | 39 | jasmine.HtmlReporterHelpers.appendToSummary = function(child, childElement) { 40 | var parentDiv = this.dom.summary; 41 | var parentSuite = (typeof child.parentSuite == 'undefined') ? 'suite' : 'parentSuite'; 42 | var parent = child[parentSuite]; 43 | 44 | if (parent) { 45 | if (typeof this.views.suites[parent.id] == 'undefined') { 46 | this.views.suites[parent.id] = new jasmine.HtmlReporter.SuiteView(parent, this.dom, this.views); 47 | } 48 | parentDiv = this.views.suites[parent.id].element; 49 | } 50 | 51 | parentDiv.appendChild(childElement); 52 | }; 53 | 54 | 55 | jasmine.HtmlReporterHelpers.addHelpers = function(ctor) { 56 | for(var fn in jasmine.HtmlReporterHelpers) { 57 | ctor.prototype[fn] = jasmine.HtmlReporterHelpers[fn]; 58 | } 59 | }; 60 | 61 | jasmine.HtmlReporter = function(_doc) { 62 | var self = this; 63 | var doc = _doc || window.document; 64 | 65 | var reporterView; 66 | 67 | var dom = {}; 68 | 69 | // Jasmine Reporter Public Interface 70 | self.logRunningSpecs = false; 71 | 72 | self.reportRunnerStarting = function(runner) { 73 | var specs = runner.specs() || []; 74 | 75 | if (specs.length == 0) { 76 | return; 77 | } 78 | 79 | createReporterDom(runner.env.versionString()); 80 | doc.body.appendChild(dom.reporter); 81 | setExceptionHandling(); 82 | 83 | reporterView = new jasmine.HtmlReporter.ReporterView(dom); 84 | reporterView.addSpecs(specs, self.specFilter); 85 | }; 86 | 87 | self.reportRunnerResults = function(runner) { 88 | reporterView && reporterView.complete(); 89 | }; 90 | 91 | self.reportSuiteResults = function(suite) { 92 | reporterView.suiteComplete(suite); 93 | }; 94 | 95 | self.reportSpecStarting = function(spec) { 96 | if (self.logRunningSpecs) { 97 | self.log('>> Jasmine Running ' + spec.suite.description + ' ' + spec.description + '...'); 98 | } 99 | }; 100 | 101 | self.reportSpecResults = function(spec) { 102 | reporterView.specComplete(spec); 103 | }; 104 | 105 | self.log = function() { 106 | var console = jasmine.getGlobal().console; 107 | if (console && console.log) { 108 | if (console.log.apply) { 109 | console.log.apply(console, arguments); 110 | } else { 111 | console.log(arguments); // ie fix: console.log.apply doesn't exist on ie 112 | } 113 | } 114 | }; 115 | 116 | self.specFilter = function(spec) { 117 | if (!focusedSpecName()) { 118 | return true; 119 | } 120 | 121 | return spec.getFullName().indexOf(focusedSpecName()) === 0; 122 | }; 123 | 124 | return self; 125 | 126 | function focusedSpecName() { 127 | var specName; 128 | 129 | (function memoizeFocusedSpec() { 130 | if (specName) { 131 | return; 132 | } 133 | 134 | var paramMap = []; 135 | var params = jasmine.HtmlReporter.parameters(doc); 136 | 137 | for (var i = 0; i < params.length; i++) { 138 | var p = params[i].split('='); 139 | paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]); 140 | } 141 | 142 | specName = paramMap.spec; 143 | })(); 144 | 145 | return specName; 146 | } 147 | 148 | function createReporterDom(version) { 149 | dom.reporter = self.createDom('div', { id: 'HTMLReporter', className: 'jasmine_reporter' }, 150 | dom.banner = self.createDom('div', { className: 'banner' }, 151 | self.createDom('span', { className: 'title' }, "Jasmine "), 152 | self.createDom('span', { className: 'version' }, version)), 153 | 154 | dom.symbolSummary = self.createDom('ul', {className: 'symbolSummary'}), 155 | dom.alert = self.createDom('div', {className: 'alert'}, 156 | self.createDom('span', { className: 'exceptions' }, 157 | self.createDom('label', { className: 'label', 'for': 'no_try_catch' }, 'No try/catch'), 158 | self.createDom('input', { id: 'no_try_catch', type: 'checkbox' }))), 159 | dom.results = self.createDom('div', {className: 'results'}, 160 | dom.summary = self.createDom('div', { className: 'summary' }), 161 | dom.details = self.createDom('div', { id: 'details' })) 162 | ); 163 | } 164 | 165 | function noTryCatch() { 166 | return window.location.search.match(/catch=false/); 167 | } 168 | 169 | function searchWithCatch() { 170 | var params = jasmine.HtmlReporter.parameters(window.document); 171 | var removed = false; 172 | var i = 0; 173 | 174 | while (!removed && i < params.length) { 175 | if (params[i].match(/catch=/)) { 176 | params.splice(i, 1); 177 | removed = true; 178 | } 179 | i++; 180 | } 181 | if (jasmine.CATCH_EXCEPTIONS) { 182 | params.push("catch=false"); 183 | } 184 | 185 | return params.join("&"); 186 | } 187 | 188 | function setExceptionHandling() { 189 | var chxCatch = document.getElementById('no_try_catch'); 190 | 191 | if (noTryCatch()) { 192 | chxCatch.setAttribute('checked', true); 193 | jasmine.CATCH_EXCEPTIONS = false; 194 | } 195 | chxCatch.onclick = function() { 196 | window.location.search = searchWithCatch(); 197 | }; 198 | } 199 | }; 200 | jasmine.HtmlReporter.parameters = function(doc) { 201 | var paramStr = doc.location.search.substring(1); 202 | var params = []; 203 | 204 | if (paramStr.length > 0) { 205 | params = paramStr.split('&'); 206 | } 207 | return params; 208 | } 209 | jasmine.HtmlReporter.sectionLink = function(sectionName) { 210 | var link = '?'; 211 | var params = []; 212 | 213 | if (sectionName) { 214 | params.push('spec=' + encodeURIComponent(sectionName)); 215 | } 216 | if (!jasmine.CATCH_EXCEPTIONS) { 217 | params.push("catch=false"); 218 | } 219 | if (params.length > 0) { 220 | link += params.join("&"); 221 | } 222 | 223 | return link; 224 | }; 225 | jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter); 226 | jasmine.HtmlReporter.ReporterView = function(dom) { 227 | this.startedAt = new Date(); 228 | this.runningSpecCount = 0; 229 | this.completeSpecCount = 0; 230 | this.passedCount = 0; 231 | this.failedCount = 0; 232 | this.skippedCount = 0; 233 | 234 | this.createResultsMenu = function() { 235 | this.resultsMenu = this.createDom('span', {className: 'resultsMenu bar'}, 236 | this.summaryMenuItem = this.createDom('a', {className: 'summaryMenuItem', href: "#"}, '0 specs'), 237 | ' | ', 238 | this.detailsMenuItem = this.createDom('a', {className: 'detailsMenuItem', href: "#"}, '0 failing')); 239 | 240 | this.summaryMenuItem.onclick = function() { 241 | dom.reporter.className = dom.reporter.className.replace(/ showDetails/g, ''); 242 | }; 243 | 244 | this.detailsMenuItem.onclick = function() { 245 | showDetails(); 246 | }; 247 | }; 248 | 249 | this.addSpecs = function(specs, specFilter) { 250 | this.totalSpecCount = specs.length; 251 | 252 | this.views = { 253 | specs: {}, 254 | suites: {} 255 | }; 256 | 257 | for (var i = 0; i < specs.length; i++) { 258 | var spec = specs[i]; 259 | this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom, this.views); 260 | if (specFilter(spec)) { 261 | this.runningSpecCount++; 262 | } 263 | } 264 | }; 265 | 266 | this.specComplete = function(spec) { 267 | this.completeSpecCount++; 268 | 269 | if (isUndefined(this.views.specs[spec.id])) { 270 | this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom); 271 | } 272 | 273 | var specView = this.views.specs[spec.id]; 274 | 275 | switch (specView.status()) { 276 | case 'passed': 277 | this.passedCount++; 278 | break; 279 | 280 | case 'failed': 281 | this.failedCount++; 282 | break; 283 | 284 | case 'skipped': 285 | this.skippedCount++; 286 | break; 287 | } 288 | 289 | specView.refresh(); 290 | this.refresh(); 291 | }; 292 | 293 | this.suiteComplete = function(suite) { 294 | var suiteView = this.views.suites[suite.id]; 295 | if (isUndefined(suiteView)) { 296 | return; 297 | } 298 | suiteView.refresh(); 299 | }; 300 | 301 | this.refresh = function() { 302 | 303 | if (isUndefined(this.resultsMenu)) { 304 | this.createResultsMenu(); 305 | } 306 | 307 | // currently running UI 308 | if (isUndefined(this.runningAlert)) { 309 | this.runningAlert = this.createDom('a', { href: jasmine.HtmlReporter.sectionLink(), className: "runningAlert bar" }); 310 | dom.alert.appendChild(this.runningAlert); 311 | } 312 | this.runningAlert.innerHTML = "Running " + this.completeSpecCount + " of " + specPluralizedFor(this.totalSpecCount); 313 | 314 | // skipped specs UI 315 | if (isUndefined(this.skippedAlert)) { 316 | this.skippedAlert = this.createDom('a', { href: jasmine.HtmlReporter.sectionLink(), className: "skippedAlert bar" }); 317 | } 318 | 319 | this.skippedAlert.innerHTML = "Skipping " + this.skippedCount + " of " + specPluralizedFor(this.totalSpecCount) + " - run all"; 320 | 321 | if (this.skippedCount === 1 && isDefined(dom.alert)) { 322 | dom.alert.appendChild(this.skippedAlert); 323 | } 324 | 325 | // passing specs UI 326 | if (isUndefined(this.passedAlert)) { 327 | this.passedAlert = this.createDom('span', { href: jasmine.HtmlReporter.sectionLink(), className: "passingAlert bar" }); 328 | } 329 | this.passedAlert.innerHTML = "Passing " + specPluralizedFor(this.passedCount); 330 | 331 | // failing specs UI 332 | if (isUndefined(this.failedAlert)) { 333 | this.failedAlert = this.createDom('span', {href: "?", className: "failingAlert bar"}); 334 | } 335 | this.failedAlert.innerHTML = "Failing " + specPluralizedFor(this.failedCount); 336 | 337 | if (this.failedCount === 1 && isDefined(dom.alert)) { 338 | dom.alert.appendChild(this.failedAlert); 339 | dom.alert.appendChild(this.resultsMenu); 340 | } 341 | 342 | // summary info 343 | this.summaryMenuItem.innerHTML = "" + specPluralizedFor(this.runningSpecCount); 344 | this.detailsMenuItem.innerHTML = "" + this.failedCount + " failing"; 345 | }; 346 | 347 | this.complete = function() { 348 | dom.alert.removeChild(this.runningAlert); 349 | 350 | this.skippedAlert.innerHTML = "Ran " + this.runningSpecCount + " of " + specPluralizedFor(this.totalSpecCount) + " - run all"; 351 | 352 | if (this.failedCount === 0) { 353 | dom.alert.appendChild(this.createDom('span', {className: 'passingAlert bar'}, "Passing " + specPluralizedFor(this.passedCount))); 354 | } else { 355 | showDetails(); 356 | } 357 | 358 | dom.banner.appendChild(this.createDom('span', {className: 'duration'}, "finished in " + ((new Date().getTime() - this.startedAt.getTime()) / 1000) + "s")); 359 | }; 360 | 361 | return this; 362 | 363 | function showDetails() { 364 | if (dom.reporter.className.search(/showDetails/) === -1) { 365 | dom.reporter.className += " showDetails"; 366 | } 367 | } 368 | 369 | function isUndefined(obj) { 370 | return typeof obj === 'undefined'; 371 | } 372 | 373 | function isDefined(obj) { 374 | return !isUndefined(obj); 375 | } 376 | 377 | function specPluralizedFor(count) { 378 | var str = count + " spec"; 379 | if (count > 1) { 380 | str += "s" 381 | } 382 | return str; 383 | } 384 | 385 | }; 386 | 387 | jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.ReporterView); 388 | 389 | 390 | jasmine.HtmlReporter.SpecView = function(spec, dom, views) { 391 | this.spec = spec; 392 | this.dom = dom; 393 | this.views = views; 394 | 395 | this.symbol = this.createDom('li', { className: 'pending' }); 396 | this.dom.symbolSummary.appendChild(this.symbol); 397 | 398 | this.summary = this.createDom('div', { className: 'specSummary' }, 399 | this.createDom('a', { 400 | className: 'description', 401 | href: jasmine.HtmlReporter.sectionLink(this.spec.getFullName()), 402 | title: this.spec.getFullName() 403 | }, this.spec.description) 404 | ); 405 | 406 | this.detail = this.createDom('div', { className: 'specDetail' }, 407 | this.createDom('a', { 408 | className: 'description', 409 | href: '?spec=' + encodeURIComponent(this.spec.getFullName()), 410 | title: this.spec.getFullName() 411 | }, this.spec.getFullName()) 412 | ); 413 | }; 414 | 415 | jasmine.HtmlReporter.SpecView.prototype.status = function() { 416 | return this.getSpecStatus(this.spec); 417 | }; 418 | 419 | jasmine.HtmlReporter.SpecView.prototype.refresh = function() { 420 | this.symbol.className = this.status(); 421 | 422 | switch (this.status()) { 423 | case 'skipped': 424 | break; 425 | 426 | case 'passed': 427 | this.appendSummaryToSuiteDiv(); 428 | break; 429 | 430 | case 'failed': 431 | this.appendSummaryToSuiteDiv(); 432 | this.appendFailureDetail(); 433 | break; 434 | } 435 | }; 436 | 437 | jasmine.HtmlReporter.SpecView.prototype.appendSummaryToSuiteDiv = function() { 438 | this.summary.className += ' ' + this.status(); 439 | this.appendToSummary(this.spec, this.summary); 440 | }; 441 | 442 | jasmine.HtmlReporter.SpecView.prototype.appendFailureDetail = function() { 443 | this.detail.className += ' ' + this.status(); 444 | 445 | var resultItems = this.spec.results().getItems(); 446 | var messagesDiv = this.createDom('div', { className: 'messages' }); 447 | 448 | for (var i = 0; i < resultItems.length; i++) { 449 | var result = resultItems[i]; 450 | 451 | if (result.type == 'log') { 452 | messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString())); 453 | } else if (result.type == 'expect' && result.passed && !result.passed()) { 454 | messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage fail'}, result.message)); 455 | 456 | if (result.trace.stack) { 457 | messagesDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack)); 458 | } 459 | } 460 | } 461 | 462 | if (messagesDiv.childNodes.length > 0) { 463 | this.detail.appendChild(messagesDiv); 464 | this.dom.details.appendChild(this.detail); 465 | } 466 | }; 467 | 468 | jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SpecView);jasmine.HtmlReporter.SuiteView = function(suite, dom, views) { 469 | this.suite = suite; 470 | this.dom = dom; 471 | this.views = views; 472 | 473 | this.element = this.createDom('div', { className: 'suite' }, 474 | this.createDom('a', { className: 'description', href: jasmine.HtmlReporter.sectionLink(this.suite.getFullName()) }, this.suite.description) 475 | ); 476 | 477 | this.appendToSummary(this.suite, this.element); 478 | }; 479 | 480 | jasmine.HtmlReporter.SuiteView.prototype.status = function() { 481 | return this.getSpecStatus(this.suite); 482 | }; 483 | 484 | jasmine.HtmlReporter.SuiteView.prototype.refresh = function() { 485 | this.element.className += " " + this.status(); 486 | }; 487 | 488 | jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView); 489 | 490 | /* @deprecated Use jasmine.HtmlReporter instead 491 | */ 492 | jasmine.TrivialReporter = function(doc) { 493 | this.document = doc || document; 494 | this.suiteDivs = {}; 495 | this.logRunningSpecs = false; 496 | }; 497 | 498 | jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) { 499 | var el = document.createElement(type); 500 | 501 | for (var i = 2; i < arguments.length; i++) { 502 | var child = arguments[i]; 503 | 504 | if (typeof child === 'string') { 505 | el.appendChild(document.createTextNode(child)); 506 | } else { 507 | if (child) { el.appendChild(child); } 508 | } 509 | } 510 | 511 | for (var attr in attrs) { 512 | if (attr == "className") { 513 | el[attr] = attrs[attr]; 514 | } else { 515 | el.setAttribute(attr, attrs[attr]); 516 | } 517 | } 518 | 519 | return el; 520 | }; 521 | 522 | jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) { 523 | var showPassed, showSkipped; 524 | 525 | this.outerDiv = this.createDom('div', { id: 'TrivialReporter', className: 'jasmine_reporter' }, 526 | this.createDom('div', { className: 'banner' }, 527 | this.createDom('div', { className: 'logo' }, 528 | this.createDom('span', { className: 'title' }, "Jasmine"), 529 | this.createDom('span', { className: 'version' }, runner.env.versionString())), 530 | this.createDom('div', { className: 'options' }, 531 | "Show ", 532 | showPassed = this.createDom('input', { id: "__jasmine_TrivialReporter_showPassed__", type: 'checkbox' }), 533 | this.createDom('label', { "for": "__jasmine_TrivialReporter_showPassed__" }, " passed "), 534 | showSkipped = this.createDom('input', { id: "__jasmine_TrivialReporter_showSkipped__", type: 'checkbox' }), 535 | this.createDom('label', { "for": "__jasmine_TrivialReporter_showSkipped__" }, " skipped") 536 | ) 537 | ), 538 | 539 | this.runnerDiv = this.createDom('div', { className: 'runner running' }, 540 | this.createDom('a', { className: 'run_spec', href: '?' }, "run all"), 541 | this.runnerMessageSpan = this.createDom('span', {}, "Running..."), 542 | this.finishedAtSpan = this.createDom('span', { className: 'finished-at' }, "")) 543 | ); 544 | 545 | this.document.body.appendChild(this.outerDiv); 546 | 547 | var suites = runner.suites(); 548 | for (var i = 0; i < suites.length; i++) { 549 | var suite = suites[i]; 550 | var suiteDiv = this.createDom('div', { className: 'suite' }, 551 | this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"), 552 | this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description)); 553 | this.suiteDivs[suite.id] = suiteDiv; 554 | var parentDiv = this.outerDiv; 555 | if (suite.parentSuite) { 556 | parentDiv = this.suiteDivs[suite.parentSuite.id]; 557 | } 558 | parentDiv.appendChild(suiteDiv); 559 | } 560 | 561 | this.startedAt = new Date(); 562 | 563 | var self = this; 564 | showPassed.onclick = function(evt) { 565 | if (showPassed.checked) { 566 | self.outerDiv.className += ' show-passed'; 567 | } else { 568 | self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, ''); 569 | } 570 | }; 571 | 572 | showSkipped.onclick = function(evt) { 573 | if (showSkipped.checked) { 574 | self.outerDiv.className += ' show-skipped'; 575 | } else { 576 | self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, ''); 577 | } 578 | }; 579 | }; 580 | 581 | jasmine.TrivialReporter.prototype.reportRunnerResults = function(runner) { 582 | var results = runner.results(); 583 | var className = (results.failedCount > 0) ? "runner failed" : "runner passed"; 584 | this.runnerDiv.setAttribute("class", className); 585 | //do it twice for IE 586 | this.runnerDiv.setAttribute("className", className); 587 | var specs = runner.specs(); 588 | var specCount = 0; 589 | for (var i = 0; i < specs.length; i++) { 590 | if (this.specFilter(specs[i])) { 591 | specCount++; 592 | } 593 | } 594 | var message = "" + specCount + " spec" + (specCount == 1 ? "" : "s" ) + ", " + results.failedCount + " failure" + ((results.failedCount == 1) ? "" : "s"); 595 | message += " in " + ((new Date().getTime() - this.startedAt.getTime()) / 1000) + "s"; 596 | this.runnerMessageSpan.replaceChild(this.createDom('a', { className: 'description', href: '?'}, message), this.runnerMessageSpan.firstChild); 597 | 598 | this.finishedAtSpan.appendChild(document.createTextNode("Finished at " + new Date().toString())); 599 | }; 600 | 601 | jasmine.TrivialReporter.prototype.reportSuiteResults = function(suite) { 602 | var results = suite.results(); 603 | var status = results.passed() ? 'passed' : 'failed'; 604 | if (results.totalCount === 0) { // todo: change this to check results.skipped 605 | status = 'skipped'; 606 | } 607 | this.suiteDivs[suite.id].className += " " + status; 608 | }; 609 | 610 | jasmine.TrivialReporter.prototype.reportSpecStarting = function(spec) { 611 | if (this.logRunningSpecs) { 612 | this.log('>> Jasmine Running ' + spec.suite.description + ' ' + spec.description + '...'); 613 | } 614 | }; 615 | 616 | jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) { 617 | var results = spec.results(); 618 | var status = results.passed() ? 'passed' : 'failed'; 619 | if (results.skipped) { 620 | status = 'skipped'; 621 | } 622 | var specDiv = this.createDom('div', { className: 'spec ' + status }, 623 | this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"), 624 | this.createDom('a', { 625 | className: 'description', 626 | href: '?spec=' + encodeURIComponent(spec.getFullName()), 627 | title: spec.getFullName() 628 | }, spec.description)); 629 | 630 | 631 | var resultItems = results.getItems(); 632 | var messagesDiv = this.createDom('div', { className: 'messages' }); 633 | for (var i = 0; i < resultItems.length; i++) { 634 | var result = resultItems[i]; 635 | 636 | if (result.type == 'log') { 637 | messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString())); 638 | } else if (result.type == 'expect' && result.passed && !result.passed()) { 639 | messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage fail'}, result.message)); 640 | 641 | if (result.trace.stack) { 642 | messagesDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack)); 643 | } 644 | } 645 | } 646 | 647 | if (messagesDiv.childNodes.length > 0) { 648 | specDiv.appendChild(messagesDiv); 649 | } 650 | 651 | this.suiteDivs[spec.suite.id].appendChild(specDiv); 652 | }; 653 | 654 | jasmine.TrivialReporter.prototype.log = function() { 655 | var console = jasmine.getGlobal().console; 656 | if (console && console.log) { 657 | if (console.log.apply) { 658 | console.log.apply(console, arguments); 659 | } else { 660 | console.log(arguments); // ie fix: console.log.apply doesn't exist on ie 661 | } 662 | } 663 | }; 664 | 665 | jasmine.TrivialReporter.prototype.getLocation = function() { 666 | return this.document.location; 667 | }; 668 | 669 | jasmine.TrivialReporter.prototype.specFilter = function(spec) { 670 | var paramMap = {}; 671 | var params = this.getLocation().search.substring(1).split('&'); 672 | for (var i = 0; i < params.length; i++) { 673 | var p = params[i].split('='); 674 | paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]); 675 | } 676 | 677 | if (!paramMap.spec) { 678 | return true; 679 | } 680 | return spec.getFullName().indexOf(paramMap.spec) === 0; 681 | }; 682 | -------------------------------------------------------------------------------- /lib/jasmine-1.3.1/jasmine.css: -------------------------------------------------------------------------------- 1 | body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; } 2 | 3 | #HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; } 4 | #HTMLReporter a { text-decoration: none; } 5 | #HTMLReporter a:hover { text-decoration: underline; } 6 | #HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; } 7 | #HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; } 8 | #HTMLReporter #jasmine_content { position: fixed; right: 100%; } 9 | #HTMLReporter .version { color: #aaaaaa; } 10 | #HTMLReporter .banner { margin-top: 14px; } 11 | #HTMLReporter .duration { color: #aaaaaa; float: right; } 12 | #HTMLReporter .symbolSummary { overflow: hidden; *zoom: 1; margin: 14px 0; } 13 | #HTMLReporter .symbolSummary li { display: block; float: left; height: 7px; width: 14px; margin-bottom: 7px; font-size: 16px; } 14 | #HTMLReporter .symbolSummary li.passed { font-size: 14px; } 15 | #HTMLReporter .symbolSummary li.passed:before { color: #5e7d00; content: "\02022"; } 16 | #HTMLReporter .symbolSummary li.failed { line-height: 9px; } 17 | #HTMLReporter .symbolSummary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; } 18 | #HTMLReporter .symbolSummary li.skipped { font-size: 14px; } 19 | #HTMLReporter .symbolSummary li.skipped:before { color: #bababa; content: "\02022"; } 20 | #HTMLReporter .symbolSummary li.pending { line-height: 11px; } 21 | #HTMLReporter .symbolSummary li.pending:before { color: #aaaaaa; content: "-"; } 22 | #HTMLReporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; } 23 | #HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; } 24 | #HTMLReporter .runningAlert { background-color: #666666; } 25 | #HTMLReporter .skippedAlert { background-color: #aaaaaa; } 26 | #HTMLReporter .skippedAlert:first-child { background-color: #333333; } 27 | #HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; } 28 | #HTMLReporter .passingAlert { background-color: #a6b779; } 29 | #HTMLReporter .passingAlert:first-child { background-color: #5e7d00; } 30 | #HTMLReporter .failingAlert { background-color: #cf867e; } 31 | #HTMLReporter .failingAlert:first-child { background-color: #b03911; } 32 | #HTMLReporter .results { margin-top: 14px; } 33 | #HTMLReporter #details { display: none; } 34 | #HTMLReporter .resultsMenu, #HTMLReporter .resultsMenu a { background-color: #fff; color: #333333; } 35 | #HTMLReporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; } 36 | #HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; } 37 | #HTMLReporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; } 38 | #HTMLReporter.showDetails .summary { display: none; } 39 | #HTMLReporter.showDetails #details { display: block; } 40 | #HTMLReporter .summaryMenuItem { font-weight: bold; text-decoration: underline; } 41 | #HTMLReporter .summary { margin-top: 14px; } 42 | #HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; } 43 | #HTMLReporter .summary .specSummary.passed a { color: #5e7d00; } 44 | #HTMLReporter .summary .specSummary.failed a { color: #b03911; } 45 | #HTMLReporter .description + .suite { margin-top: 0; } 46 | #HTMLReporter .suite { margin-top: 14px; } 47 | #HTMLReporter .suite a { color: #333333; } 48 | #HTMLReporter #details .specDetail { margin-bottom: 28px; } 49 | #HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; } 50 | #HTMLReporter .resultMessage { padding-top: 14px; color: #333333; } 51 | #HTMLReporter .resultMessage span.result { display: block; } 52 | #HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; } 53 | 54 | #TrivialReporter { padding: 8px 13px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: scroll; background-color: white; font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif; /*.resultMessage {*/ /*white-space: pre;*/ /*}*/ } 55 | #TrivialReporter a:visited, #TrivialReporter a { color: #303; } 56 | #TrivialReporter a:hover, #TrivialReporter a:active { color: blue; } 57 | #TrivialReporter .run_spec { float: right; padding-right: 5px; font-size: .8em; text-decoration: none; } 58 | #TrivialReporter .banner { color: #303; background-color: #fef; padding: 5px; } 59 | #TrivialReporter .logo { float: left; font-size: 1.1em; padding-left: 5px; } 60 | #TrivialReporter .logo .version { font-size: .6em; padding-left: 1em; } 61 | #TrivialReporter .runner.running { background-color: yellow; } 62 | #TrivialReporter .options { text-align: right; font-size: .8em; } 63 | #TrivialReporter .suite { border: 1px outset gray; margin: 5px 0; padding-left: 1em; } 64 | #TrivialReporter .suite .suite { margin: 5px; } 65 | #TrivialReporter .suite.passed { background-color: #dfd; } 66 | #TrivialReporter .suite.failed { background-color: #fdd; } 67 | #TrivialReporter .spec { margin: 5px; padding-left: 1em; clear: both; } 68 | #TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped { padding-bottom: 5px; border: 1px solid gray; } 69 | #TrivialReporter .spec.failed { background-color: #fbb; border-color: red; } 70 | #TrivialReporter .spec.passed { background-color: #bfb; border-color: green; } 71 | #TrivialReporter .spec.skipped { background-color: #bbb; } 72 | #TrivialReporter .messages { border-left: 1px dashed gray; padding-left: 1em; padding-right: 1em; } 73 | #TrivialReporter .passed { background-color: #cfc; display: none; } 74 | #TrivialReporter .failed { background-color: #fbb; } 75 | #TrivialReporter .skipped { color: #777; background-color: #eee; display: none; } 76 | #TrivialReporter .resultMessage span.result { display: block; line-height: 2em; color: black; } 77 | #TrivialReporter .resultMessage .mismatch { color: black; } 78 | #TrivialReporter .stackTrace { white-space: pre; font-size: .8em; margin-left: 10px; max-height: 5em; overflow: auto; border: 1px inset red; padding: 1em; background: #eef; } 79 | #TrivialReporter .finished-at { padding-left: 1em; font-size: .6em; } 80 | #TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped { display: block; } 81 | #TrivialReporter #jasmine_content { position: fixed; right: 100%; } 82 | #TrivialReporter .runner { border: 1px solid gray; display: block; margin: 5px 0; padding: 2px 0 2px 10px; } 83 | -------------------------------------------------------------------------------- /lib/jasmine-jquery.js: -------------------------------------------------------------------------------- 1 | /*! 2 | Jasmine-jQuery: a set of jQuery helpers for Jasmine tests. 3 | 4 | Version 1.5.2 5 | 6 | https://github.com/velesin/jasmine-jquery 7 | 8 | Copyright (c) 2010-2013 Wojciech Zawistowski, Travis Jeffery 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining 11 | a copy of this software and associated documentation files (the 12 | "Software"), to deal in the Software without restriction, including 13 | without limitation the rights to use, copy, modify, merge, publish, 14 | distribute, sublicense, and/or sell copies of the Software, and to 15 | permit persons to whom the Software is furnished to do so, subject to 16 | the following conditions: 17 | 18 | The above copyright notice and this permission notice shall be 19 | included in all copies or substantial portions of the Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 25 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 26 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 27 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28 | */ 29 | var readFixtures = function() { 30 | return jasmine.getFixtures().proxyCallTo_('read', arguments) 31 | } 32 | 33 | var preloadFixtures = function() { 34 | jasmine.getFixtures().proxyCallTo_('preload', arguments) 35 | } 36 | 37 | var loadFixtures = function() { 38 | jasmine.getFixtures().proxyCallTo_('load', arguments) 39 | } 40 | 41 | var appendLoadFixtures = function() { 42 | jasmine.getFixtures().proxyCallTo_('appendLoad', arguments) 43 | } 44 | 45 | var setFixtures = function(html) { 46 | jasmine.getFixtures().proxyCallTo_('set', arguments) 47 | } 48 | 49 | var appendSetFixtures = function() { 50 | jasmine.getFixtures().proxyCallTo_('appendSet', arguments) 51 | } 52 | 53 | var sandbox = function(attributes) { 54 | return jasmine.getFixtures().sandbox(attributes) 55 | } 56 | 57 | var spyOnEvent = function(selector, eventName) { 58 | return jasmine.JQuery.events.spyOn(selector, eventName) 59 | } 60 | 61 | var preloadStyleFixtures = function() { 62 | jasmine.getStyleFixtures().proxyCallTo_('preload', arguments) 63 | } 64 | 65 | var loadStyleFixtures = function() { 66 | jasmine.getStyleFixtures().proxyCallTo_('load', arguments) 67 | } 68 | 69 | var appendLoadStyleFixtures = function() { 70 | jasmine.getStyleFixtures().proxyCallTo_('appendLoad', arguments) 71 | } 72 | 73 | var setStyleFixtures = function(html) { 74 | jasmine.getStyleFixtures().proxyCallTo_('set', arguments) 75 | } 76 | 77 | var appendSetStyleFixtures = function(html) { 78 | jasmine.getStyleFixtures().proxyCallTo_('appendSet', arguments) 79 | } 80 | 81 | var loadJSONFixtures = function() { 82 | return jasmine.getJSONFixtures().proxyCallTo_('load', arguments) 83 | } 84 | 85 | var getJSONFixture = function(url) { 86 | return jasmine.getJSONFixtures().proxyCallTo_('read', arguments)[url] 87 | } 88 | 89 | jasmine.spiedEventsKey = function (selector, eventName) { 90 | return [$(selector).selector, eventName].toString() 91 | } 92 | 93 | jasmine.getFixtures = function() { 94 | return jasmine.currentFixtures_ = jasmine.currentFixtures_ || new jasmine.Fixtures() 95 | } 96 | 97 | jasmine.getStyleFixtures = function() { 98 | return jasmine.currentStyleFixtures_ = jasmine.currentStyleFixtures_ || new jasmine.StyleFixtures() 99 | } 100 | 101 | jasmine.Fixtures = function() { 102 | this.containerId = 'jasmine-fixtures' 103 | this.fixturesCache_ = {} 104 | this.fixturesPath = 'spec/javascripts/fixtures' 105 | } 106 | 107 | jasmine.Fixtures.prototype.set = function(html) { 108 | this.cleanUp() 109 | this.createContainer_(html) 110 | } 111 | 112 | jasmine.Fixtures.prototype.appendSet= function(html) { 113 | this.addToContainer_(html) 114 | } 115 | 116 | jasmine.Fixtures.prototype.preload = function() { 117 | this.read.apply(this, arguments) 118 | } 119 | 120 | jasmine.Fixtures.prototype.load = function() { 121 | this.cleanUp() 122 | this.createContainer_(this.read.apply(this, arguments)) 123 | } 124 | 125 | jasmine.Fixtures.prototype.appendLoad = function() { 126 | this.addToContainer_(this.read.apply(this, arguments)) 127 | } 128 | 129 | jasmine.Fixtures.prototype.read = function() { 130 | var htmlChunks = [] 131 | 132 | var fixtureUrls = arguments 133 | for(var urlCount = fixtureUrls.length, urlIndex = 0; urlIndex < urlCount; urlIndex++) { 134 | htmlChunks.push(this.getFixtureHtml_(fixtureUrls[urlIndex])) 135 | } 136 | 137 | return htmlChunks.join('') 138 | } 139 | 140 | jasmine.Fixtures.prototype.clearCache = function() { 141 | this.fixturesCache_ = {} 142 | } 143 | 144 | jasmine.Fixtures.prototype.cleanUp = function() { 145 | $('#' + this.containerId).remove() 146 | } 147 | 148 | jasmine.Fixtures.prototype.sandbox = function(attributes) { 149 | var attributesToSet = attributes || {} 150 | return $('
').attr(attributesToSet) 151 | } 152 | 153 | jasmine.Fixtures.prototype.createContainer_ = function(html) { 154 | var container 155 | if(html instanceof $) { 156 | container = $('
') 157 | container.html(html) 158 | } else { 159 | container = '
' + html + '
' 160 | } 161 | $(document.body).append(container) 162 | } 163 | 164 | jasmine.Fixtures.prototype.addToContainer_ = function(html){ 165 | var container = $(document.body).find('#'+this.containerId).append(html) 166 | if(!container.length){ 167 | this.createContainer_(html) 168 | } 169 | } 170 | 171 | jasmine.Fixtures.prototype.getFixtureHtml_ = function(url) { 172 | if (typeof this.fixturesCache_[url] === 'undefined') { 173 | this.loadFixtureIntoCache_(url) 174 | } 175 | return this.fixturesCache_[url] 176 | } 177 | 178 | jasmine.Fixtures.prototype.loadFixtureIntoCache_ = function(relativeUrl) { 179 | var url = this.makeFixtureUrl_(relativeUrl) 180 | var request = $.ajax({ 181 | type: "GET", 182 | url: url + "?" + new Date().getTime(), 183 | async: false 184 | }) 185 | this.fixturesCache_[relativeUrl] = request.responseText 186 | } 187 | 188 | jasmine.Fixtures.prototype.makeFixtureUrl_ = function(relativeUrl){ 189 | return this.fixturesPath.match('/$') ? this.fixturesPath + relativeUrl : this.fixturesPath + '/' + relativeUrl 190 | } 191 | 192 | jasmine.Fixtures.prototype.proxyCallTo_ = function(methodName, passedArguments) { 193 | return this[methodName].apply(this, passedArguments) 194 | } 195 | 196 | 197 | jasmine.StyleFixtures = function() { 198 | this.fixturesCache_ = {} 199 | this.fixturesNodes_ = [] 200 | this.fixturesPath = 'spec/javascripts/fixtures' 201 | } 202 | 203 | jasmine.StyleFixtures.prototype.set = function(css) { 204 | this.cleanUp() 205 | this.createStyle_(css) 206 | } 207 | 208 | jasmine.StyleFixtures.prototype.appendSet = function(css) { 209 | this.createStyle_(css) 210 | } 211 | 212 | jasmine.StyleFixtures.prototype.preload = function() { 213 | this.read_.apply(this, arguments) 214 | } 215 | 216 | jasmine.StyleFixtures.prototype.load = function() { 217 | this.cleanUp() 218 | this.createStyle_(this.read_.apply(this, arguments)) 219 | } 220 | 221 | jasmine.StyleFixtures.prototype.appendLoad = function() { 222 | this.createStyle_(this.read_.apply(this, arguments)) 223 | } 224 | 225 | jasmine.StyleFixtures.prototype.cleanUp = function() { 226 | while(this.fixturesNodes_.length) { 227 | this.fixturesNodes_.pop().remove() 228 | } 229 | } 230 | 231 | jasmine.StyleFixtures.prototype.createStyle_ = function(html) { 232 | var styleText = $('
').html(html).text(), 233 | style = $('') 234 | 235 | this.fixturesNodes_.push(style) 236 | 237 | $('head').append(style) 238 | } 239 | 240 | jasmine.StyleFixtures.prototype.clearCache = jasmine.Fixtures.prototype.clearCache 241 | 242 | jasmine.StyleFixtures.prototype.read_ = jasmine.Fixtures.prototype.read 243 | 244 | jasmine.StyleFixtures.prototype.getFixtureHtml_ = jasmine.Fixtures.prototype.getFixtureHtml_ 245 | 246 | jasmine.StyleFixtures.prototype.loadFixtureIntoCache_ = jasmine.Fixtures.prototype.loadFixtureIntoCache_ 247 | 248 | jasmine.StyleFixtures.prototype.makeFixtureUrl_ = jasmine.Fixtures.prototype.makeFixtureUrl_ 249 | 250 | jasmine.StyleFixtures.prototype.proxyCallTo_ = jasmine.Fixtures.prototype.proxyCallTo_ 251 | 252 | jasmine.getJSONFixtures = function() { 253 | return jasmine.currentJSONFixtures_ = jasmine.currentJSONFixtures_ || new jasmine.JSONFixtures() 254 | } 255 | 256 | jasmine.JSONFixtures = function() { 257 | this.fixturesCache_ = {} 258 | this.fixturesPath = 'spec/javascripts/fixtures/json' 259 | } 260 | 261 | jasmine.JSONFixtures.prototype.load = function() { 262 | this.read.apply(this, arguments) 263 | return this.fixturesCache_ 264 | } 265 | 266 | jasmine.JSONFixtures.prototype.read = function() { 267 | var fixtureUrls = arguments 268 | for(var urlCount = fixtureUrls.length, urlIndex = 0; urlIndex < urlCount; urlIndex++) { 269 | this.getFixtureData_(fixtureUrls[urlIndex]) 270 | } 271 | return this.fixturesCache_ 272 | } 273 | 274 | jasmine.JSONFixtures.prototype.clearCache = function() { 275 | this.fixturesCache_ = {} 276 | } 277 | 278 | jasmine.JSONFixtures.prototype.getFixtureData_ = function(url) { 279 | this.loadFixtureIntoCache_(url) 280 | return this.fixturesCache_[url] 281 | } 282 | 283 | jasmine.JSONFixtures.prototype.loadFixtureIntoCache_ = function(relativeUrl) { 284 | var self = this 285 | var url = this.fixturesPath.match('/$') ? this.fixturesPath + relativeUrl : this.fixturesPath + '/' + relativeUrl 286 | $.ajax({ 287 | async: false, // must be synchronous to guarantee that no tests are run before fixture is loaded 288 | cache: false, 289 | dataType: 'json', 290 | url: url, 291 | success: function(data) { 292 | self.fixturesCache_[relativeUrl] = data 293 | }, 294 | error: function(jqXHR, status, errorThrown) { 295 | throw Error('JSONFixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + errorThrown.message + ')') 296 | } 297 | }) 298 | } 299 | 300 | jasmine.JSONFixtures.prototype.proxyCallTo_ = function(methodName, passedArguments) { 301 | return this[methodName].apply(this, passedArguments) 302 | } 303 | 304 | jasmine.JQuery = function() {} 305 | 306 | jasmine.JQuery.browserTagCaseIndependentHtml = function(html) { 307 | return $('
').append(html).html() 308 | } 309 | 310 | jasmine.JQuery.elementToString = function(element) { 311 | var domEl = $(element).get(0) 312 | if (domEl == undefined || domEl.cloneNode) 313 | return $('
').append($(element).clone()).html() 314 | else 315 | return element.toString() 316 | } 317 | 318 | jasmine.JQuery.matchersClass = {} 319 | 320 | !function(namespace) { 321 | var data = { 322 | spiedEvents: {}, 323 | handlers: [] 324 | } 325 | 326 | namespace.events = { 327 | spyOn: function(selector, eventName) { 328 | var handler = function(e) { 329 | data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)] = jasmine.util.argsToArray(arguments) 330 | } 331 | $(selector).on(eventName, handler) 332 | data.handlers.push(handler) 333 | return { 334 | selector: selector, 335 | eventName: eventName, 336 | handler: handler, 337 | reset: function(){ 338 | delete data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)] 339 | } 340 | } 341 | }, 342 | 343 | args: function(selector, eventName) { 344 | var actualArgs = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)]; 345 | 346 | if (!actualArgs) { 347 | throw "There is no spy for " + eventName + " on " + selector.toString() + ". Make sure to create a spy using spyOnEvent."; 348 | } 349 | 350 | return actualArgs; 351 | }, 352 | 353 | wasTriggered: function(selector, eventName) { 354 | return !!(data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)]) 355 | }, 356 | 357 | wasTriggeredWith: function(selector, eventName, expectedArgs, env) { 358 | var actualArgs = jasmine.JQuery.events.args(selector, eventName).slice(1); 359 | if (Object.prototype.toString.call(expectedArgs) !== '[object Array]') { 360 | actualArgs = actualArgs[0]; 361 | } 362 | return env.equals_(expectedArgs, actualArgs); 363 | }, 364 | 365 | wasPrevented: function(selector, eventName) { 366 | var args = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)], 367 | e = args ? args[0] : undefined; 368 | return e && e.isDefaultPrevented() 369 | }, 370 | 371 | wasStopped: function(selector, eventName) { 372 | var args = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)], 373 | e = args ? args[0] : undefined; 374 | return e && e.isPropagationStopped() 375 | }, 376 | 377 | cleanUp: function() { 378 | data.spiedEvents = {} 379 | data.handlers = [] 380 | } 381 | } 382 | }(jasmine.JQuery) 383 | 384 | !function(){ 385 | var jQueryMatchers = { 386 | toHaveClass: function(className) { 387 | return this.actual.hasClass(className) 388 | }, 389 | 390 | toHaveCss: function(css){ 391 | for (var prop in css){ 392 | if (this.actual.css(prop) !== css[prop]) return false 393 | } 394 | return true 395 | }, 396 | 397 | toBeVisible: function() { 398 | return this.actual.is(':visible') 399 | }, 400 | 401 | toBeHidden: function() { 402 | return this.actual.is(':hidden') 403 | }, 404 | 405 | toBeSelected: function() { 406 | return this.actual.is(':selected') 407 | }, 408 | 409 | toBeChecked: function() { 410 | return this.actual.is(':checked') 411 | }, 412 | 413 | toBeEmpty: function() { 414 | return this.actual.is(':empty') 415 | }, 416 | 417 | toExist: function() { 418 | return $(document).find(this.actual).length 419 | }, 420 | 421 | toHaveLength: function(length) { 422 | return this.actual.length === length 423 | }, 424 | 425 | toHaveAttr: function(attributeName, expectedAttributeValue) { 426 | return hasProperty(this.actual.attr(attributeName), expectedAttributeValue) 427 | }, 428 | 429 | toHaveProp: function(propertyName, expectedPropertyValue) { 430 | return hasProperty(this.actual.prop(propertyName), expectedPropertyValue) 431 | }, 432 | 433 | toHaveId: function(id) { 434 | return this.actual.attr('id') == id 435 | }, 436 | 437 | toHaveHtml: function(html) { 438 | return this.actual.html() == jasmine.JQuery.browserTagCaseIndependentHtml(html) 439 | }, 440 | 441 | toContainHtml: function(html){ 442 | var actualHtml = this.actual.html() 443 | var expectedHtml = jasmine.JQuery.browserTagCaseIndependentHtml(html) 444 | return (actualHtml.indexOf(expectedHtml) >= 0) 445 | }, 446 | 447 | toHaveText: function(text) { 448 | var trimmedText = $.trim(this.actual.text()) 449 | if (text && $.isFunction(text.test)) { 450 | return text.test(trimmedText) 451 | } else { 452 | return trimmedText == text 453 | } 454 | }, 455 | 456 | toContainText: function(text) { 457 | var trimmedText = $.trim(this.actual.text()) 458 | if (text && $.isFunction(text.test)) { 459 | return text.test(trimmedText) 460 | } else { 461 | return trimmedText.indexOf(text) != -1; 462 | } 463 | }, 464 | 465 | toHaveValue: function(value) { 466 | return this.actual.val() === value 467 | }, 468 | 469 | toHaveData: function(key, expectedValue) { 470 | return hasProperty(this.actual.data(key), expectedValue) 471 | }, 472 | 473 | toBe: function(selector) { 474 | return this.actual.is(selector) 475 | }, 476 | 477 | toContain: function(selector) { 478 | return this.actual.find(selector).length 479 | }, 480 | 481 | toBeDisabled: function(selector){ 482 | return this.actual.is(':disabled') 483 | }, 484 | 485 | toBeFocused: function(selector) { 486 | return this.actual[0] === this.actual[0].ownerDocument.activeElement 487 | }, 488 | 489 | toHandle: function(event) { 490 | 491 | var events = $._data(this.actual.get(0), "events") 492 | 493 | if(!events || !event || typeof event !== "string") { 494 | return false 495 | } 496 | 497 | var namespaces = event.split(".") 498 | var eventType = namespaces.shift() 499 | var sortedNamespaces = namespaces.slice(0).sort() 500 | var namespaceRegExp = new RegExp("(^|\\.)" + sortedNamespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") 501 | 502 | if(events[eventType] && namespaces.length) { 503 | for(var i = 0; i < events[eventType].length; i++) { 504 | var namespace = events[eventType][i].namespace 505 | if(namespaceRegExp.test(namespace)) { 506 | return true 507 | } 508 | } 509 | } else { 510 | return events[eventType] && events[eventType].length > 0 511 | } 512 | }, 513 | 514 | // tests the existence of a specific event binding + handler 515 | toHandleWith: function(eventName, eventHandler) { 516 | var stack = $._data(this.actual.get(0), "events")[eventName] 517 | for (var i = 0; i < stack.length; i++) { 518 | if (stack[i].handler == eventHandler) return true 519 | } 520 | return false 521 | } 522 | } 523 | 524 | var hasProperty = function(actualValue, expectedValue) { 525 | if (expectedValue === undefined) return actualValue !== undefined 526 | return actualValue == expectedValue 527 | } 528 | 529 | var bindMatcher = function(methodName) { 530 | var builtInMatcher = jasmine.Matchers.prototype[methodName] 531 | 532 | jasmine.JQuery.matchersClass[methodName] = function() { 533 | if (this.actual 534 | && (this.actual instanceof $ 535 | || jasmine.isDomNode(this.actual))) { 536 | this.actual = $(this.actual) 537 | var result = jQueryMatchers[methodName].apply(this, arguments) 538 | var element 539 | if (this.actual.get && (element = this.actual.get()[0]) && !$.isWindow(element) && element.tagName !== "HTML") 540 | this.actual = jasmine.JQuery.elementToString(this.actual) 541 | return result 542 | } 543 | 544 | if (builtInMatcher) { 545 | return builtInMatcher.apply(this, arguments) 546 | } 547 | 548 | return false 549 | } 550 | } 551 | 552 | for(var methodName in jQueryMatchers) { 553 | bindMatcher(methodName) 554 | } 555 | }() 556 | 557 | beforeEach(function() { 558 | this.addMatchers(jasmine.JQuery.matchersClass) 559 | this.addMatchers({ 560 | toHaveBeenTriggeredOn: function(selector) { 561 | this.message = function() { 562 | return [ 563 | "Expected event " + this.actual + " to have been triggered on " + selector, 564 | "Expected event " + this.actual + " not to have been triggered on " + selector 565 | ] 566 | } 567 | return jasmine.JQuery.events.wasTriggered(selector, this.actual) 568 | } 569 | }) 570 | this.addMatchers({ 571 | toHaveBeenTriggered: function(){ 572 | var eventName = this.actual.eventName, 573 | selector = this.actual.selector 574 | this.message = function() { 575 | return [ 576 | "Expected event " + eventName + " to have been triggered on " + selector, 577 | "Expected event " + eventName + " not to have been triggered on " + selector 578 | ] 579 | } 580 | return jasmine.JQuery.events.wasTriggered(selector, eventName) 581 | } 582 | }) 583 | this.addMatchers({ 584 | toHaveBeenTriggeredOnAndWith: function() { 585 | var selector = arguments[0], 586 | expectedArgs = arguments[1], 587 | wasTriggered = jasmine.JQuery.events.wasTriggered(selector, this.actual); 588 | this.message = function() { 589 | if (wasTriggered) { 590 | var actualArgs = jasmine.JQuery.events.args(selector, this.actual, expectedArgs)[1]; 591 | return [ 592 | "Expected event " + this.actual + " to have been triggered with " + jasmine.pp(expectedArgs) + " but it was triggered with " + jasmine.pp(actualArgs), 593 | "Expected event " + this.actual + " not to have been triggered with " + jasmine.pp(expectedArgs) + " but it was triggered with " + jasmine.pp(actualArgs) 594 | ] 595 | } else { 596 | return [ 597 | "Expected event " + this.actual + " to have been triggered on " + selector, 598 | "Expected event " + this.actual + " not to have been triggered on " + selector 599 | ] 600 | } 601 | } 602 | return wasTriggered && jasmine.JQuery.events.wasTriggeredWith(selector, this.actual, expectedArgs, this.env); 603 | } 604 | }) 605 | this.addMatchers({ 606 | toHaveBeenPreventedOn: function(selector) { 607 | this.message = function() { 608 | return [ 609 | "Expected event " + this.actual + " to have been prevented on " + selector, 610 | "Expected event " + this.actual + " not to have been prevented on " + selector 611 | ] 612 | } 613 | return jasmine.JQuery.events.wasPrevented(selector, this.actual) 614 | } 615 | }) 616 | this.addMatchers({ 617 | toHaveBeenPrevented: function() { 618 | var eventName = this.actual.eventName, 619 | selector = this.actual.selector 620 | this.message = function() { 621 | return [ 622 | "Expected event " + eventName + " to have been prevented on " + selector, 623 | "Expected event " + eventName + " not to have been prevented on " + selector 624 | ] 625 | } 626 | return jasmine.JQuery.events.wasPrevented(selector, eventName) 627 | } 628 | }) 629 | this.addMatchers({ 630 | toHaveBeenStoppedOn: function(selector) { 631 | this.message = function() { 632 | return [ 633 | "Expected event " + this.actual + " to have been stopped on " + selector, 634 | "Expected event " + this.actual + " not to have been stopped on " + selector 635 | ] 636 | } 637 | return jasmine.JQuery.events.wasStopped(selector, this.actual) 638 | } 639 | }) 640 | this.addMatchers({ 641 | toHaveBeenStopped: function() { 642 | var eventName = this.actual.eventName, 643 | selector = this.actual.selector 644 | this.message = function() { 645 | return [ 646 | "Expected event " + eventName + " to have been stopped on " + selector, 647 | "Expected event " + eventName + " not to have been stopped on " + selector 648 | ] 649 | } 650 | return jasmine.JQuery.events.wasStopped(selector, eventName) 651 | } 652 | }) 653 | }) 654 | 655 | afterEach(function() { 656 | jasmine.getFixtures().cleanUp() 657 | jasmine.getStyleFixtures().cleanUp() 658 | jasmine.JQuery.events.cleanUp() 659 | }) 660 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-ui-timepicker-addon", 3 | "version": "1.6.3", 4 | "engines": { 5 | "node": ">= 0.8.0" 6 | }, 7 | "keywords": [ 8 | "timepicker", "jquery", "datetime", "jquery-ui" 9 | ], 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/trentrichardson/jQuery-Timepicker-Addon.git" 13 | }, 14 | "licenses": [ 15 | { 16 | "type": "MIT", 17 | "url": "https://raw.github.com/trentrichardson/jQuery-Timepicker-Addon/master/LICENSE-MIT" 18 | } 19 | ], 20 | "homepage": "http://trentrichardson.com/examples/timepicker", 21 | "main": "./dist/jquery-ui-timepicker-addon.js", 22 | "browser": "./dist/jquery-ui-timepicker-addon.js", 23 | "scripts": { 24 | "start": "grunt", 25 | "test": "grunt test" 26 | }, 27 | "dependencies": {}, 28 | "devDependencies": { 29 | "grunt-contrib-jshint": "~0.1.1", 30 | "grunt-contrib-jasmine": "~0.5.1", 31 | "grunt-contrib-concat": "~0.4.0", 32 | "grunt-contrib-uglify": "~0.9.1", 33 | "grunt-contrib-watch": "~0.2.0", 34 | "grunt-contrib-clean": "~0.4.0", 35 | "grunt-contrib-copy": "~0.4.0", 36 | "grunt-contrib-cssmin": "~0.6.0", 37 | "grunt-replace": "~0.4.4", 38 | "grunt": "~0.4.1" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "evil": true, 3 | "curly": true, 4 | "eqeqeq": true, 5 | "immed": true, 6 | "latedef": true, 7 | "newcap": true, 8 | "noarg": true, 9 | "sub": true, 10 | "undef": true, 11 | "unused": false, 12 | "loopfunc": true, 13 | "boss": true, 14 | "eqnull": true, 15 | "browser": true, 16 | "predef": ["jQuery","define"] 17 | } 18 | -------------------------------------------------------------------------------- /src/docs/examples.html: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 |

Examples

6 | 7 | 17 | 18 |

Basic Initializations

19 | 20 | 21 |
22 |

Add a simple datetimepicker to jQuery UI's datepicker

23 |
24 | 25 |
26 |
 27 | $('#basic_example_1').datetimepicker();
 28 | 
29 |
30 | 31 | 32 | 33 |
34 |

Add only a timepicker:

35 |
36 | 37 |
38 |
 39 | $('#basic_example_2').timepicker();
 40 | 
41 |
42 | 43 | 44 |
45 |

Format the time:

46 |
47 | 48 |
49 |
 50 | $('#basic_example_3').datetimepicker({
 51 | 	timeFormat: "hh:mm tt"
 52 | });
 53 | 
54 |
55 | 56 | 57 | 58 |
59 |

Timepicker comes with a collection of localization files and one combined file with all available localizations. $.timepicker.regional["your localization code here"] is a simple object with preset options:

60 |
61 | 62 |
63 |
 64 | $('#basic_example_4').timepicker(
 65 | 	$.timepicker.regional['es']
 66 | );
 67 | 
68 |
69 | 70 |

Using Timezones

71 | 72 | 73 |
74 |

Simplest timezone usage:

75 |
76 | 77 |
78 |
 79 | $('#timezone_example_1').datetimepicker({
 80 | 	timeFormat: 'hh:mm tt z'
 81 | });
 82 | 
83 |
84 | 85 | 86 |
87 |

Define your own timezone options:

88 |
89 | 90 |
91 |
 92 | $('#timezone_example_2').datetimepicker({
 93 | 	timeFormat: 'HH:mm z',
 94 | 	timezoneList: [ 
 95 | 			{ value: -300, label: 'Eastern'}, 
 96 | 			{ value: -360, label: 'Central' }, 
 97 | 			{ value: -420, label: 'Mountain' }, 
 98 | 			{ value: -480, label: 'Pacific' } 
 99 | 		]
100 | });
101 | 
102 |
103 | 104 |

Slider Modifications

105 | 106 | 107 |
108 |

Add a grid to each slider:

109 |
110 | 111 |
112 |
113 | $('#slider_example_1').timepicker({
114 | 	hourGrid: 4,
115 | 	minuteGrid: 10,
116 | 	timeFormat: 'hh:mm tt'
117 | });
118 | 
119 |
120 | 121 | 122 |
123 |

Set the interval step of sliders:

124 |
125 | 126 |
127 |
128 | $('#slider_example_2').datetimepicker({
129 | 	timeFormat: 'HH:mm:ss',
130 | 	stepHour: 2,
131 | 	stepMinute: 10,
132 | 	stepSecond: 10
133 | });
134 | 
135 |
136 | 137 | 138 |
139 |

Add sliderAccess plugin for touch devices:

140 |
141 | 142 |
143 |
144 | $('#slider_example_3').datetimepicker({
145 | 	addSliderAccess: true,
146 | 	sliderAccessArgs: { touchonly: false }
147 | });
148 |
149 | 150 | 151 |
152 |

Use dropdowns instead of sliders. By default if slider is not available dropdowns will be used.

153 |
154 | 155 |
156 |
157 | $('#slider_example_4').datetimepicker({
158 | 	controlType: 'select',
159 | 	timeFormat: 'hh:mm tt'
160 | });
161 |
162 | 163 | 164 |
165 |

Uses one line dropdowns instead of sliders.

166 |
167 | 168 |
169 |
170 | $('#slider_example_4andHalf').datetimepicker({
171 | 	controlType: 'select',
172 | 	oneLine: true,
173 | 	timeFormat: 'hh:mm tt'
174 | });
175 |
176 | 177 | 178 |
179 |

Create your own control by implementing the create, options, and value methods. If you want to use your new control for all instances use the $.timepicker.setDefaults({controlType:myControl}). Here we implement jQueryUI's spinner control (jQueryUI 1.9+).

180 |
181 | 182 |
183 |
var myControl=  {
184 | 	create: function(tp_inst, obj, unit, val, min, max, step){
185 | 		$('<input class="ui-timepicker-input" value="'+val+'" style="width:50%">')
186 | 			.appendTo(obj)
187 | 			.spinner({
188 | 				min: min,
189 | 				max: max,
190 | 				step: step,
191 | 				change: function(e,ui){ // key events
192 | 						// don't call if api was used and not key press
193 | 						if(e.originalEvent !== undefined)
194 | 							tp_inst._onTimeChange();
195 | 						tp_inst._onSelectHandler();
196 | 					},
197 | 				spin: function(e,ui){ // spin events
198 | 						tp_inst.control.value(tp_inst, obj, unit, ui.value);
199 | 						tp_inst._onTimeChange();
200 | 						tp_inst._onSelectHandler();
201 | 					}
202 | 			});
203 | 		return obj;
204 | 	},
205 | 	options: function(tp_inst, obj, unit, opts, val){
206 | 		if(typeof(opts) == 'string' && val !== undefined)
207 | 			return obj.find('.ui-timepicker-input').spinner(opts, val);
208 | 		return obj.find('.ui-timepicker-input').spinner(opts);
209 | 	},
210 | 	value: function(tp_inst, obj, unit, val){
211 | 		if(val !== undefined)
212 | 			return obj.find('.ui-timepicker-input').spinner('value', val);
213 | 		return obj.find('.ui-timepicker-input').spinner('value');
214 | 	}
215 | };
216 | 
217 | $('#slider_example_5').datetimepicker({
218 | 	controlType: myControl
219 | });
220 |
221 | 222 |

Alternate Fields

223 | 224 | 225 |
226 |

Alt field in the simplest form:

227 |
228 | 229 | 230 |
231 |
232 | $('#alt_example_1').datetimepicker({
233 | 	altField: "#alt_example_1_alt"
234 | });
235 | 
236 |
237 | 238 | 239 |
240 |

With datetime in both:

241 |
242 | 243 | 244 |
245 |
246 | $('#alt_example_2').datetimepicker({
247 | 	altField: "#alt_example_2_alt",
248 | 	altFieldTimeOnly: false
249 | });
250 | 
251 |
252 | 253 | 254 |
255 |

Format the altField differently:

256 |
257 | 258 | 259 |
260 |
261 | $('#alt_example_3').datetimepicker({
262 | 	altField: "#alt_example_3_alt",
263 | 	altFieldTimeOnly: false,
264 | 	altFormat: "yy-mm-dd",
265 | 	altTimeFormat: "h:m t",
266 | 	altSeparator: " @ "
267 | });
268 | 
269 |
270 | 271 | 272 |
273 |

With inline mode using altField:

274 |
275 | 276 | 277 |
278 |
279 | $('#alt_example_4').datetimepicker({
280 | 	altField: "#alt_example_4_alt",
281 | 	altFieldTimeOnly: false
282 | });
283 | 
284 |
285 | 286 |

Time Input

287 | 288 | 289 |
290 |

Allows time displayed inside the picker to allow being typed in.

291 |
292 | 293 |
294 |
295 | $('#input_example_1').datetimepicker({
296 | 	timeInput: true,
297 | 	timeFormat: "hh:mm tt"
298 | });
299 | 
300 |
301 | 302 | 303 |
304 |

Don't show any sliders, only the time input.

305 |
306 | 307 |
308 |
309 | $('#input_example_2').datetimepicker({
310 | 	timeInput: true,
311 | 	timeFormat: "hh:mm tt",
312 | 	showHour: false,
313 | 	showMinute: false
314 | });
315 | 
316 |
317 | 318 |

Time Restraints

319 | 320 | 321 |
322 |

Set the min/max hour of every date:

323 |
324 | 325 |
326 |
327 | $('#rest_example_1').timepicker({
328 | 	hourMin: 8,
329 | 	hourMax: 16
330 | });
331 | 
332 |
333 | 334 | 335 |
336 |

Set the min/max date numerically:

337 |
338 | 339 |
340 |
341 | $('#rest_example_2').datetimepicker({
342 | 	numberOfMonths: 2,
343 | 	minDate: 0,
344 | 	maxDate: 30
345 | });
346 | 
347 |
348 | 349 | 350 |
351 |

Set the min/max date and time with a Date object:

352 |
353 | 354 |
355 |
356 | $('#rest_example_3').datetimepicker({
357 | 	minDate: new Date(2010, 11, 20, 8, 30),
358 | 	maxDate: new Date(2010, 11, 31, 17, 30)
359 | });
360 | 
361 |
362 | 363 | 364 |

Time Ranges

365 | 366 | 367 |
368 |

Restrict a start and end date by using onSelect and onClose events for more control over functionality:

369 |

For more examples and advanced usage grab the Handling Time eBook.

370 |
371 | 372 | 373 |
374 |
375 | var startDateTextBox = $('#range_example_1_start');
376 | var endDateTextBox = $('#range_example_1_end');
377 | 
378 | startDateTextBox.datetimepicker({ 
379 | 	timeFormat: 'HH:mm z',
380 | 	onClose: function(dateText, inst) {
381 | 		if (endDateTextBox.val() != '') {
382 | 			var testStartDate = startDateTextBox.datetimepicker('getDate');
383 | 			var testEndDate = endDateTextBox.datetimepicker('getDate');
384 | 			if (testStartDate > testEndDate)
385 | 				endDateTextBox.datetimepicker('setDate', testStartDate);
386 | 		}
387 | 		else {
388 | 			endDateTextBox.val(dateText);
389 | 		}
390 | 	},
391 | 	onSelect: function (selectedDateTime){
392 | 		endDateTextBox.datetimepicker('option', 'minDate', startDateTextBox.datetimepicker('getDate') );
393 | 	}
394 | });
395 | endDateTextBox.datetimepicker({ 
396 | 	timeFormat: 'HH:mm z',
397 | 	onClose: function(dateText, inst) {
398 | 		if (startDateTextBox.val() != '') {
399 | 			var testStartDate = startDateTextBox.datetimepicker('getDate');
400 | 			var testEndDate = endDateTextBox.datetimepicker('getDate');
401 | 			if (testStartDate > testEndDate)
402 | 				startDateTextBox.datetimepicker('setDate', testEndDate);
403 | 		}
404 | 		else {
405 | 			startDateTextBox.val(dateText);
406 | 		}
407 | 	},
408 | 	onSelect: function (selectedDateTime){
409 | 		startDateTextBox.datetimepicker('option', 'maxDate', endDateTextBox.datetimepicker('getDate') );
410 | 	}
411 | });
412 | 
413 |
414 | 415 | 416 |
417 |

Timepicker also includes some shortcut methods for ranges:

418 |
419 | 420 | 421 |
422 |
423 | var startDateTextBox = $('#range_example_2_start');
424 | var endDateTextBox = $('#range_example_2_end');
425 | 
426 | $.timepicker.datetimeRange(
427 | 	startDateTextBox,
428 | 	endDateTextBox,
429 | 	{
430 | 		minInterval: (1000*60*60), // 1hr
431 | 		dateFormat: 'dd M yy', 
432 | 		timeFormat: 'HH:mm',
433 | 		start: {}, // start picker options
434 | 		end: {} // end picker options					
435 | 	}
436 | );
437 | 
438 |
439 | 440 | 441 |
442 |

To use only times for a time range use $.timepicker.timeRange():

443 |
444 | 445 | 446 |
447 |
448 | var startTimeTextBox = $('#range_example_3_start');
449 | var endTimeTextBox = $('#range_example_3_end');
450 | 
451 | $.timepicker.timeRange(
452 | 	startTimeTextBox,
453 | 	endTimeTextBox,
454 | 	{
455 | 		minInterval: (1000*60*60), // 1hr
456 | 		timeFormat: 'HH:mm',
457 | 		start: {}, // start picker options
458 | 		end: {} // end picker options
459 | 	}
460 | );
461 | 
462 |
463 | 464 | 465 |
466 |

Even though this plugin focuses on datetime, it also provides a dateRange function:

467 |
468 | 469 | 470 |
471 |
472 | var startDateTextBox = $('#range_example_4_start');
473 | var endDateTextBox = $('#range_example_4_end');
474 | 
475 | $.timepicker.dateRange(
476 | 	startDateTextBox,
477 | 	endDateTextBox,
478 | 	{
479 | 		minInterval: (1000*60*60*24*4), // 4 days
480 | 		maxInterval: (1000*60*60*24*8), // 8 days
481 | 		start: {}, // start picker options
482 | 		end: {} // end picker options
483 | 	}
484 | );
485 | 
486 |
487 | 488 |

Utilities

489 | 490 | 491 |
492 |

Get and Set Datetime with the getDate and setDate methods. This example uses timezone to demonstrate the timepicker regonizes the timezones and computes the offsets when getting and setting.

493 |
494 | 495 | 496 | 497 |
498 | 499 |
500 | var ex13 = $('#utility_example_1');
501 | 
502 | ex13.datetimepicker({
503 | 	timeFormat: 'hh:mm tt z',
504 | 	separator: ' @ ',
505 | 	showTimezone: true
506 | });
507 | 
508 | $('#utility_example_1_setdt').click(function(){
509 | 	ex13.datetimepicker('setDate', (new Date()) );
510 | });
511 | 
512 | $('#utility_example_1_getdt').click(function(){
513 | 	alert(ex13.datetimepicker('getDate'));
514 | });
515 | 
516 |
517 | 518 | 519 |
520 |

Use the utility function to format your own time. $.datepicker.formatTime(format, time, options)

521 |
522 |
format
required - string represenation of the time format to use
523 |
time
required - hash: { hour, minute, second, millisecond, timezone }
524 |
options
optional - hash of any options in regional translation (ampm, amNames, pmNames..)
525 |
526 |

Returns a time string in the specified format.

527 |
528 |
529 |
530 | 531 |
532 | $('#utility_example_2').text(
533 | 	$.datepicker.formatTime('HH:mm z', { hour: 14, minute: 36, timezone: '+2000' }, {})
534 | );
535 | 
536 |
537 | 538 | 539 |
540 |

Use the utility function to parses a formatted time. $.datepicker.parseTime(format, timeString, options)

541 |
542 |
format
required - string represenation of the time format to use
543 |
time
required - time string matching the format given in parameter 1
544 |
options
optional - hash of any options in regional translation (ampm, amNames, pmNames..)
545 |
546 |

Returns an object with hours, minutes, seconds, milliseconds, timezone.

547 |
548 |
549 |
550 | 551 |
552 | $('#utility_example_3').text(JSON.stringify( 
553 | 	$.datepicker.parseTime('HH:mm:ss:l z', "14:36:21:765 +2000", {}) 
554 | ));
555 | 
556 |
557 | -------------------------------------------------------------------------------- /src/docs/footer.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 24 | 25 | 26 | 37 | 38 | -------------------------------------------------------------------------------- /src/docs/formatting.html: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 | 6 |

Formatting Your Time

7 | 8 |

The default format is "HH:mm". To use 12 hour time use something similar to: "hh:mm tt". When both "t" and lower case "h" are present in the timeFormat, 12 hour time will be used.

9 | 10 |
11 |
H
Hour with no leading 0 (24 hour)
12 |
HH
Hour with leading 0 (24 hour)
13 |
h
Hour with no leading 0 (12 hour)
14 |
hh
Hour with leading 0 (12 hour)
15 |
m
Minute with no leading 0
16 |
mm
Minute with leading 0
17 |
s
Second with no leading 0
18 |
ss
Second with leading 0
19 |
l
Milliseconds always with leading 0
20 |
c
Microseconds always with leading 0
21 |
t
a or p for AM/PM
22 |
T
A or P for AM/PM
23 |
tt
am or pm for AM/PM
24 |
TT
AM or PM for AM/PM
25 |
z
Timezone as defined by timezoneList
26 |
Z
Timezone in Iso 8601 format (+04:45)
27 |
'...'
Literal text (Uses single quotes)
28 |
29 | 30 |

Formats are used in the following ways:

31 |
    32 |
  • timeFormat option
  • 33 |
  • altTimeFormat option
  • 34 |
  • pickerTimeFormat option
  • 35 |
  • $.datepicker.formatTime(format, timeObj, options) utility method
  • 36 |
  • $.datepicker.parseTime(format, timeStr, options) utility method
  • 37 |
38 | 39 |

For help with formatting the date portion, visit the datepicker documentation for formatting dates.

40 |
41 | -------------------------------------------------------------------------------- /src/docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Adding a Timepicker to jQuery UI Datepicker 6 | 7 | 8 | 9 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
47 |

Adding a Timepicker to jQuery UI Datepicker

48 | 49 |

The timepicker addon adds a timepicker to jQuery UI Datepicker, thus the datepicker and slider components (jQueryUI) are required for using any of these. In addition all datepicker options are still available through the timepicker addon.

50 | 51 |

If you are interested in contributing to Timepicker Addon please check it out on GitHub. If you do make additions please keep in mind I enjoy tabs over spaces,.. But contributions are welcome in any form.

52 | 53 |

Back to Blog or Follow on Twitter

54 | 55 |

Donation

56 |

Has this Timepicker Addon been helpful to you?

57 |
58 |
59 | 60 | 61 | 62 | 63 |
64 |
65 | 66 |
67 | 74 | -------------------------------------------------------------------------------- /src/docs/i18n.html: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 | 6 |

Working with Localizations

7 | 8 |

Timepicker comes with many translations and localizations, thanks to all the contributors. They can be found in the i18n folder in the git repo.

9 | 10 |

The quick and cheap way to use localizations is to pass in options to a timepicker instance:

11 | 12 |
$('#example123').timepicker({
13 | 	timeOnlyTitle: 'Выберите время',
14 | 	timeText: 'Время',
15 | 	hourText: 'Часы',
16 | 	minuteText: 'Минуты',
17 | 	secondText: 'Секунды',
18 | 	currentText: 'Сейчас',
19 | 	closeText: 'Закрыть'
20 | });
21 | 
22 |

However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object.

23 |

As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any future changes within datepicker.

24 | 25 |
$.datepicker.regional['ru'] = {
26 | 	closeText: 'Закрыть',
27 | 	prevText: '<Пред',
28 | 	nextText: 'След>',
29 | 	currentText: 'Сегодня',
30 | 	monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
31 | 	'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
32 | 	monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
33 | 	'Июл','Авг','Сен','Окт','Ноя','Дек'],
34 | 	dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],
35 | 	dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],
36 | 	dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],
37 | 	weekHeader: 'Не',
38 | 	dateFormat: 'dd.mm.yy',
39 | 	firstDay: 1,
40 | 	isRTL: false,
41 | 	showMonthAfterYear: false,
42 | 	yearSuffix: ''
43 | };
44 | $.datepicker.setDefaults($.datepicker.regional['ru']);
45 | 
46 | 
47 | $.timepicker.regional['ru'] = {
48 | 	timeOnlyTitle: 'Выберите время',
49 | 	timeText: 'Время',
50 | 	hourText: 'Часы',
51 | 	minuteText: 'Минуты',
52 | 	secondText: 'Секунды',
53 | 	millisecText: 'Миллисекунды',
54 | 	timezoneText: 'Часовой пояс',
55 | 	currentText: 'Сейчас',
56 | 	closeText: 'Закрыть',
57 | 	timeFormat: 'HH:mm',
58 | 	amNames: ['AM', 'A'],
59 | 	pmNames: ['PM', 'P'],
60 | 	isRTL: false
61 | };
62 | $.timepicker.setDefaults($.timepicker.regional['ru']);
63 | 
64 | 65 |

Now all you have to do is call timepicker and the Russian localization is used. Generally you only need to include the localization file, it will setDefaults() for you.

66 |

As of version 1.4.5 a combined file of all localizations available is included. This file DOES NOT call setDefaults(), so you will need to pass, or merge with your options.

67 | 68 |
$('#example123').timepicker($.timepicker.regional['ru']);
69 | 
70 | 71 |

Localization files for datepicker are typically available in your jQueryUI downloads.

72 |
73 | -------------------------------------------------------------------------------- /src/docs/intro.html: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 |

Getting Started

6 | 7 |

Highly Recommended

8 | 9 |

Handling Time eBook

10 |
11 |

Check out the Handling Time eBook to learn from the basic setup to advanced i18n usage, and from client's javascript to the server's database.

12 | Handling Time eBook 13 |

buy eBook + Example code

14 |

buy eBook

15 |
16 |
17 | 18 |

Subscribe to Blog and Twitter

19 |

Subscribe to my blog via email and follow @PracticalWeb on Twitter. I post for nearly every new version, so you know about updates.

20 |
21 |
22 | 23 |

Download

24 |

Download Timepicker Addon and the required CSS.

25 | 26 |

Download/Contribute on GitHub (Need the entire repo? Find a bug? See if its fixed here)

27 | 28 |

If you prefer a hosted CDN there are a couple available: CDNJS, jsDelivr.

29 |
30 | 31 |

Requirements

32 |

You also need to include jQuery and jQuery UI with datepicker and slider wigits. You should include them in your page in the following order:

33 |
    34 |
  1. jQuery
  2. 35 |
  3. jQueryUI (with datepicker and slider wigits)
  4. 36 |
  5. Timepicker
  6. 37 |
38 | 39 |
40 |

Version

41 |

Version @@version

42 | 43 |

Last updated on @@timestamp

44 |

jQuery Timepicker Addon is currently available for use in all personal or commercial projects under the MIT license.

45 |

MIT License

46 | 47 |
48 | -------------------------------------------------------------------------------- /src/docs/options.html: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 |

Options

6 | 7 |

The timepicker does inherit all options from datepicker. However, there are many options that are shared by them both, and many timepicker only options:

8 | 9 |

Localization Options

10 |
11 |
currentText
12 |
Default: "Now", A Localization Setting - Text for the Now button.
13 | 14 |
closeText
15 |
Default: "Done", A Localization Setting - Text for the Close button.
16 | 17 |
amNames
18 |
Default: ['AM', 'A'], A Localization Setting - Array of strings to try and parse against to determine AM.
19 | 20 |
pmNames
21 |
Default: ['PM', 'P'], A Localization Setting - Array of strings to try and parse against to determine PM.
22 | 23 |
timeFormat
24 |
Default: "HH:mm", A Localization Setting - String of format tokens to be replaced with the time. See Formatting.
25 | 26 |
timeSuffix
27 |
Default: "", A Localization Setting - String to place after the formatted time.
28 | 29 |
timeOnlyTitle
30 |
Default: "Choose Time", A Localization Setting - Title of the wigit when using only timepicker.
31 | 32 |
timeText
33 |
Default: "Time", A Localization Setting - Label used within timepicker for the formatted time.
34 | 35 |
hourText
36 |
Default: "Hour", A Localization Setting - Label used to identify the hour slider.
37 | 38 |
minuteText
39 |
Default: "Minute", A Localization Setting - Label used to identify the minute slider.
40 | 41 |
secondText
42 |
Default: "Second", A Localization Setting - Label used to identify the second slider.
43 | 44 |
millisecText
45 |
Default: "Millisecond", A Localization Setting - Label used to identify the millisecond slider.
46 | 47 |
microsecText
48 |
Default: "Microsecond", A Localization Setting - Label used to identify the microsecond slider.
49 | 50 |
timezoneText
51 |
Default: "Timezone", A Localization Setting - Label used to identify the timezone slider.
52 | 53 |
isRTL
54 |
Default: false, A Localization Setting - Right to Left support.
55 |
56 | 57 |

Alt Field Options

58 |
59 | 60 |
altFieldTimeOnly
61 |
Default: true - When altField is used from datepicker altField will only receive the formatted time and the original field only receives date.
62 | 63 |
altSeparator
64 |
Default: (separator option) - String placed between formatted date and formatted time in the altField.
65 | 66 |
altTimeSuffix
67 |
Default: (timeSuffix option) - String always placed after the formatted time in the altField.
68 | 69 |
altTimeFormat
70 |
Default: (timeFormat option) - The time format to use with the altField.
71 | 72 |
altRedirectFocus
73 |
Default: true - Whether to immediately focus the main field whenever the altField receives focus. Effective at construction time only, changing it later has no effect.
74 |
75 | 76 |

Timezone Options

77 |
78 | 79 |
timezoneList
80 |
Default: [generated timezones] - An array of timezones used to populate the timezone select. Can be an array of values or an array of objects: { label: "EDT", value: -240 }. The value should be the offset number in minutes. So "-0400" which is the format "-hhmm", would equate to -240 minutes.
81 |
82 | 83 |

Time Field Options

84 |
85 | 86 |
controlType
87 |
Default: 'slider' - Whether to use 'slider' or 'select'. If 'slider' is unavailable through jQueryUI, 'select' will be used. For advanced usage you may pass an object which implements "create", "options", "value" methods to use controls other than sliders or selects. See the _controls property in the source code for more details. 88 |
{
 89 | 	create: function(tp_inst, obj, unit, val, min, max, step){	
 90 | 		// generate whatever controls you want here, just return obj
 91 | 	},
 92 | 	options: function(tp_inst, obj, unit, opts, val){
 93 | 		// if val==undefined return the value, else return obj
 94 | 	},
 95 | 	value: function(tp_inst, obj, unit, val){
 96 | 		// if val==undefined return the value, else return obj
 97 | 	}
 98 | }
99 |
100 | 101 |
showHour
102 |
Default: null - Whether to show the hour control. The default of null will use detection from timeFormat.
103 | 104 |
showMinute
105 |
Default: null - Whether to show the minute control. The default of null will use detection from timeFormat.
106 | 107 |
showSecond
108 |
Default: null - Whether to show the second control. The default of null will use detection from timeFormat.
109 | 110 |
showMillisec
111 |
Default: null - Whether to show the millisecond control. The default of null will use detection from timeFormat.
112 | 113 |
showMicrosec
114 |
Default: null - Whether to show the microsecond control. The default of null will use detection from timeFormat.
115 | 116 |
showTimezone
117 |
Default: null - Whether to show the timezone select.
118 | 119 |
showTime
120 |
Default: true - Whether to show the time selected within the datetimepicker.
121 | 122 |
stepHour
123 |
Default: 1 - Hours per step the slider makes.
124 | 125 |
stepMinute
126 |
Default: 1 - Minutes per step the slider makes.
127 | 128 |
stepSecond
129 |
Default: 1 - Seconds per step the slider makes.
130 | 131 |
stepMillisec
132 |
Default: 1 - Milliseconds per step the slider makes.
133 | 134 |
stepMicrosec
135 |
Default: 1 - Microseconds per step the slider makes.
136 | 137 |
hour
138 |
Default: 0 - Initial hour set.
139 | 140 |
minute
141 |
Default: 0 - Initial minute set.
142 | 143 |
second
144 |
Default: 0 - Initial second set.
145 | 146 |
millisec
147 |
Default: 0 - Initial millisecond set.
148 | 149 |
microsec
150 |
Default: 0 - Initial microsecond set. Note: Javascript's native Date object does not natively support microseconds. Timepicker adds ability to simply Date.setMicroseconds(m) and Date.getMicroseconds(). Date comparisons will not acknowledge microseconds. Use this only for display purposes.
151 | 152 |
timezone
153 |
Default: null - Initial timezone set. This is the offset in minutes. If null the browser's local timezone will be used. If you're timezone is "-0400" you would use -240. For backwards compatibility you may pass "-0400", however the timezone is stored in minutes and more reliable.
154 | 155 |
hourMin
156 |
Default: 0 - The minimum hour allowed for all dates.
157 | 158 |
minuteMin
159 |
Default: 0 - The minimum minute allowed for all dates.
160 | 161 |
secondMin
162 |
Default: 0 - The minimum second allowed for all dates.
163 | 164 |
millisecMin
165 |
Default: 0 - The minimum millisecond allowed for all dates.
166 | 167 |
microsecMin
168 |
Default: 0 - The minimum microsecond allowed for all dates.
169 | 170 |
hourMax
171 |
Default: 23 - The maximum hour allowed for all dates.
172 | 173 |
minuteMax
174 |
Default: 59 - The maximum minute allowed for all dates.
175 | 176 |
secondMax
177 |
Default: 59 - The maximum second allowed for all dates.
178 | 179 |
millisecMax
180 |
Default: 999 - The maximum millisecond allowed for all dates.
181 | 182 |
microsecMax
183 |
Default: 999 - The maximum microsecond allowed for all dates.
184 | 185 |
hourGrid
186 |
Default: 0 - When greater than 0 a label grid will be generated under the slider. This number represents the units (in hours) between labels.
187 | 188 |
minuteGrid
189 |
Default: 0 - When greater than 0 a label grid will be generated under the slider. This number represents the units (in minutes) between labels.
190 | 191 |
secondGrid
192 |
Default: 0 - When greater than 0 a label grid will be genereated under the slider. This number represents the units (in seconds) between labels.
193 | 194 |
millisecGrid
195 |
Default: 0 - When greater than 0 a label grid will be genereated under the slider. This number represents the units (in milliseconds) between labels.
196 | 197 |
microsecGrid
198 |
Default: 0 - When greater than 0 a label grid will be genereated under the slider. This number represents the units (in microseconds) between labels.
199 |
200 | 201 |

Other Options

202 |
203 |
showButtonPanel
204 |
Default: true - Whether to show the button panel at the bottom. This is generally needed.
205 | 206 |
timeInput
207 |
Default: false - Allows direct input in time field
208 | 209 |
timeOnly
210 |
Default: false - Hide the datepicker and only provide a time interface.
211 | 212 |
timeOnlyShowDate
213 |
Default: false - Show the date and time in the input, but only allow the timepicker.
214 | 215 |
afterInject
216 |
Default: null - Function to be called when the timepicker or selection control is injected or re-rendered. Called in the context of the timepicker instance.
217 | 218 |
onSelect
219 |
Default: null - Function to be called when a date is chosen or time has changed (parameters: datetimeText, datepickerInstance).
220 | 221 |
alwaysSetTime
222 |
Default: true - Always have a time set internally, even before user has chosen one.
223 | 224 |
separator
225 |
Default: " " - When formatting the time this string is placed between the formatted date and formatted time.
226 | 227 |
pickerTimeFormat
228 |
Default: (timeFormat option) - How to format the time displayed within the timepicker.
229 | 230 |
pickerTimeSuffix
231 |
Default: (timeSuffix option) - String to place after the formatted time within the timepicker.
232 | 233 |
showTimepicker
234 |
Default: true - Whether to show the timepicker within the datepicker.
235 | 236 |
oneLine
237 |
Default: false - Try to show the time dropdowns all on one line. This should be used with controlType 'select' and as few units as possible.
238 | 239 |
addSliderAccess
240 |
Default: false - Adds the sliderAccess plugin to sliders within timepicker
241 | 242 |
sliderAccessArgs
243 |
Default: null - Object to pass to sliderAccess when used.
244 | 245 |
defaultValue
246 |
Default: null - String of the default time value placed in the input on focus when the input is empty.
247 | 248 |
minDateTime
249 |
Default: null - Date object of the minimum datetime allowed. Also available as minDate.
250 | 251 |
maxDateTime
252 |
Default: null - Date object of the maximum datetime allowed. Also Available as maxDate.
253 | 254 |
minTime
255 |
Default: null - String of the minimum time allowed. '8:00 am' will restrict to times after 8am
256 | 257 |
maxTime
258 |
Default: null - String of the maximum time allowed. '8:00 pm' will restrict to times before 8pm
259 | 260 |
parse
261 |
Default: 'strict' - How to parse the time string. Two methods are provided: 'strict' which must match the timeFormat exactly, and 'loose' which uses javascript's new Date(timeString) to guess the time. You may also pass in a function(timeFormat, timeString, options) to handle the parsing yourself, returning a simple object: 262 |
{
263 | 	hour: 19,
264 | 	minute: 10,
265 | 	second: 23,
266 | 	millisec: 45,
267 | 	microsec: 23,
268 | 	timezone: '-0400'
269 | }
270 |
271 |
272 | 273 |
274 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-af.js: -------------------------------------------------------------------------------- 1 | /* Afrikaans translation for the jQuery Timepicker Addon */ 2 | /* Written by Deon Heyns */ 3 | (function($) { 4 | $.timepicker.regional['af'] = { 5 | timeOnlyTitle: 'Kies Tyd', 6 | timeText: 'Tyd ', 7 | hourText: 'Ure ', 8 | minuteText: 'Minute', 9 | secondText: 'Sekondes', 10 | millisecText: 'Millisekondes', 11 | microsecText: 'Mikrosekondes', 12 | timezoneText: 'Tydsone', 13 | currentText: 'Huidige Tyd', 14 | closeText: 'Klaar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['af']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-am.js: -------------------------------------------------------------------------------- 1 | /* Armenian translation for the jQuery Timepicker Addon */ 2 | /* Written by Artavazd Avetisyan artavazda@hotmail.com */ 3 | (function($) { 4 | $.timepicker.regional['am'] = { 5 | timeOnlyTitle: 'Ընտրեք ժամանակը', 6 | timeText: 'Ժամանակը', 7 | hourText: 'Ժամ', 8 | minuteText: 'Րոպե', 9 | secondText: 'Վարկյան', 10 | millisecText: 'Միլիվարկյան', 11 | microsecText: 'Միկրովարկյան', 12 | timezoneText: 'Ժամային գոտին', 13 | currentText: 'Այժմ', 14 | closeText: 'Փակել', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['am']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-bg.js: -------------------------------------------------------------------------------- 1 | /* Bulgarian translation for the jQuery Timepicker Addon */ 2 | /* Written by Plamen Kovandjiev */ 3 | (function($) { 4 | $.timepicker.regional['bg'] = { 5 | timeOnlyTitle: 'Изберете време', 6 | timeText: 'Време', 7 | hourText: 'Час', 8 | minuteText: 'Минути', 9 | secondText: 'Секунди', 10 | millisecText: 'Милисекунди', 11 | microsecText: 'Микросекунди', 12 | timezoneText: 'Часови пояс', 13 | currentText: 'Сега', 14 | closeText: 'Затвори', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['bg']); 22 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-ca.js: -------------------------------------------------------------------------------- 1 | /* Catalan translation for the jQuery Timepicker Addon */ 2 | /* Written by Sergi Faber */ 3 | (function($) { 4 | $.timepicker.regional['ca'] = { 5 | timeOnlyTitle: 'Escollir una hora', 6 | timeText: 'Hora', 7 | hourText: 'Hores', 8 | minuteText: 'Minuts', 9 | secondText: 'Segons', 10 | millisecText: 'Milisegons', 11 | microsecText: 'Microsegons', 12 | timezoneText: 'Fus horari', 13 | currentText: 'Ara', 14 | closeText: 'Tancar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ca']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-cs.js: -------------------------------------------------------------------------------- 1 | /* Czech translation for the jQuery Timepicker Addon */ 2 | /* Written by Ondřej Vodáček */ 3 | (function($) { 4 | $.timepicker.regional['cs'] = { 5 | timeOnlyTitle: 'Vyberte čas', 6 | timeText: 'Čas', 7 | hourText: 'Hodiny', 8 | minuteText: 'Minuty', 9 | secondText: 'Vteřiny', 10 | millisecText: 'Milisekundy', 11 | microsecText: 'Mikrosekundy', 12 | timezoneText: 'Časové pásmo', 13 | currentText: 'Nyní', 14 | closeText: 'Zavřít', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['dop.', 'AM', 'A'], 18 | pmNames: ['odp.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['cs']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-da.js: -------------------------------------------------------------------------------- 1 | /* Danish translation for the jQuery Timepicker Addon */ 2 | /* Written by Lars H. Jensen (http://www.larshj.dk) */ 3 | (function ($) { 4 | $.timepicker.regional['da'] = { 5 | timeOnlyTitle: 'Vælg tid', 6 | timeText: 'Tid', 7 | hourText: 'Time', 8 | minuteText: 'Minut', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekund', 11 | microsecText: 'Mikrosekund', 12 | timezoneText: 'Tidszone', 13 | currentText: 'Nu', 14 | closeText: 'Luk', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['am', 'AM', 'A'], 18 | pmNames: ['pm', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['da']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-de.js: -------------------------------------------------------------------------------- 1 | /* German translation for the jQuery Timepicker Addon */ 2 | /* Written by Marvin */ 3 | (function($) { 4 | $.timepicker.regional['de'] = { 5 | timeOnlyTitle: 'Zeit wählen', 6 | timeText: 'Zeit', 7 | hourText: 'Stunde', 8 | minuteText: 'Minute', 9 | secondText: 'Sekunde', 10 | millisecText: 'Millisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Zeitzone', 13 | currentText: 'Jetzt', 14 | closeText: 'Fertig', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['vorm.', 'AM', 'A'], 18 | pmNames: ['nachm.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['de']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-el.js: -------------------------------------------------------------------------------- 1 | /* Hellenic translation for the jQuery Timepicker Addon */ 2 | /* Written by Christos Pontikis */ 3 | (function($) { 4 | $.timepicker.regional['el'] = { 5 | timeOnlyTitle: 'Επιλογή ώρας', 6 | timeText: 'Ώρα', 7 | hourText: 'Ώρες', 8 | minuteText: 'Λεπτά', 9 | secondText: 'Δευτερόλεπτα', 10 | millisecText: 'Χιλιοστοδευτερόλεπτα', 11 | microsecText: 'Μικροδευτερόλεπτα', 12 | timezoneText: 'Ζώνη ώρας', 13 | currentText: 'Τώρα', 14 | closeText: 'Κλείσιμο', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['π.μ.', 'AM', 'A'], 18 | pmNames: ['μ.μ.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['el']); 22 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Spanish translation for the jQuery Timepicker Addon */ 2 | /* Written by Ianaré Sévi */ 3 | /* Modified by Carlos Martínez */ 4 | (function($) { 5 | $.timepicker.regional['es'] = { 6 | timeOnlyTitle: 'Elegir una hora', 7 | timeText: 'Hora', 8 | hourText: 'Horas', 9 | minuteText: 'Minutos', 10 | secondText: 'Segundos', 11 | millisecText: 'Milisegundos', 12 | microsecText: 'Microsegundos', 13 | timezoneText: 'Uso horario', 14 | currentText: 'Hoy', 15 | closeText: 'Cerrar', 16 | timeFormat: 'HH:mm', 17 | timeSuffix: '', 18 | amNames: ['a.m.', 'AM', 'A'], 19 | pmNames: ['p.m.', 'PM', 'P'], 20 | isRTL: false 21 | }; 22 | $.timepicker.setDefaults($.timepicker.regional['es']); 23 | })(jQuery); 24 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-et.js: -------------------------------------------------------------------------------- 1 | /* Estonian translation for the jQuery Timepicker Addon */ 2 | /* Written by Karl Sutt (karl@sutt.ee) */ 3 | (function($) { 4 | $.timepicker.regional['et'] = { 5 | timeOnlyTitle: 'Vali aeg', 6 | timeText: 'Aeg', 7 | hourText: 'Tund', 8 | minuteText: 'Minut', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekundis', 11 | microsecText: 'Mikrosekundis', 12 | timezoneText: 'Ajavöönd', 13 | currentText: 'Praegu', 14 | closeText: 'Valmis', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['et']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-eu.js: -------------------------------------------------------------------------------- 1 | /* Basque trannslation for JQuery Timepicker Addon */ 2 | /* Translated by Xabi Fer */ 3 | /* Fixed by Asier Iturralde Sarasola - iametza interaktiboa */ 4 | (function($) { 5 | $.timepicker.regional['eu'] = { 6 | timeOnlyTitle: 'Aukeratu ordua', 7 | timeText: 'Ordua', 8 | hourText: 'Orduak', 9 | minuteText: 'Minutuak', 10 | secondText: 'Segundoak', 11 | millisecText: 'Milisegundoak', 12 | microsecText: 'Mikrosegundoak', 13 | timezoneText: 'Ordu-eremua', 14 | currentText: 'Orain', 15 | closeText: 'Itxi', 16 | timeFormat: 'HH:mm', 17 | timeSuffix: '', 18 | amNames: ['a.m.', 'AM', 'A'], 19 | pmNames: ['p.m.', 'PM', 'P'], 20 | isRTL: false 21 | }; 22 | $.timepicker.setDefaults($.timepicker.regional['eu']); 23 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-fa.js: -------------------------------------------------------------------------------- 1 | /* Persian translation for the jQuery Timepicker Addon */ 2 | /* Written by Meysam Pour Ganji */ 3 | (function($) { 4 | $.timepicker.regional['fa'] = { 5 | timeOnlyTitle: 'انتخاب زمان', 6 | timeText: 'زمان', 7 | hourText: 'ساعت', 8 | minuteText: 'دقیقه', 9 | secondText: 'ثانیه', 10 | millisecText: 'میلی ثانیه', 11 | microsecText: 'میکرو ثانیه', 12 | timezoneText: 'منطقه زمانی', 13 | currentText: 'الان', 14 | closeText: 'انتخاب', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['قبل ظهر', 'AM', 'A'], 18 | pmNames: ['بعد ظهر', 'PM', 'P'], 19 | isRTL: true 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['fa']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-fi.js: -------------------------------------------------------------------------------- 1 | /* Finnish translation for the jQuery Timepicker Addon */ 2 | /* Written by Juga Paazmaya (http://github.com/paazmaya) */ 3 | (function($) { 4 | $.timepicker.regional['fi'] = { 5 | timeOnlyTitle: 'Valitse aika', 6 | timeText: 'Aika', 7 | hourText: 'Tunti', 8 | minuteText: 'Minuutti', 9 | secondText: 'Sekunti', 10 | millisecText: 'Millisekunnin', 11 | microsecText: 'Mikrosekuntia', 12 | timezoneText: 'Aikavyöhyke', 13 | currentText: 'Nyt', 14 | closeText: 'Sulje', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['ap.', 'AM', 'A'], 18 | pmNames: ['ip.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['fi']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-fr.js: -------------------------------------------------------------------------------- 1 | /* French translation for the jQuery Timepicker Addon */ 2 | /* Written by Thomas Lété */ 3 | (function($) { 4 | $.timepicker.regional['fr'] = { 5 | timeOnlyTitle: 'Choisir une heure', 6 | timeText: 'Heure', 7 | hourText: 'Heures', 8 | minuteText: 'Minutes', 9 | secondText: 'Secondes', 10 | millisecText: 'Millisecondes', 11 | microsecText: 'Microsecondes', 12 | timezoneText: 'Fuseau horaire', 13 | currentText: 'Maintenant', 14 | closeText: 'Terminé', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['fr']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-gl.js: -------------------------------------------------------------------------------- 1 | /* Galician translation for the jQuery Timepicker Addon */ 2 | /* Written by David Barral */ 3 | (function($) { 4 | $.timepicker.regional['gl'] = { 5 | timeOnlyTitle: 'Elixir unha hora', 6 | timeText: 'Hora', 7 | hourText: 'Horas', 8 | minuteText: 'Minutos', 9 | secondText: 'Segundos', 10 | millisecText: 'Milisegundos', 11 | microsecText: 'Microssegundos', 12 | timezoneText: 'Fuso horario', 13 | currentText: 'Agora', 14 | closeText: 'Pechar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['gl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-he.js: -------------------------------------------------------------------------------- 1 | /* Hebrew translation for the jQuery Timepicker Addon */ 2 | /* Written by Lior Lapid */ 3 | (function($) { 4 | $.timepicker.regional["he"] = { 5 | timeOnlyTitle: "בחירת זמן", 6 | timeText: "שעה", 7 | hourText: "שעות", 8 | minuteText: "דקות", 9 | secondText: "שניות", 10 | millisecText: "אלפית השנייה", 11 | microsecText: "מיקרו", 12 | timezoneText: "אזור זמן", 13 | currentText: "עכשיו", 14 | closeText:"סגור", 15 | timeFormat: "HH:mm", 16 | timeSuffix: '', 17 | amNames: ['לפנה"צ', 'AM', 'A'], 18 | pmNames: ['אחה"צ', 'PM', 'P'], 19 | isRTL: true 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional["he"]); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-hr.js: -------------------------------------------------------------------------------- 1 | /* Croatian translation for the jQuery Timepicker Addon */ 2 | /* Written by Mladen */ 3 | (function($) { 4 | $.timepicker.regional['hr'] = { 5 | timeOnlyTitle: 'Odaberi vrijeme', 6 | timeText: 'Vrijeme', 7 | hourText: 'Sati', 8 | minuteText: 'Minute', 9 | secondText: 'Sekunde', 10 | millisecText: 'Milisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Vremenska zona', 13 | currentText: 'Sada', 14 | closeText: 'Gotovo', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['hr']); 22 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-hu.js: -------------------------------------------------------------------------------- 1 | /* Hungarian translation for the jQuery Timepicker Addon */ 2 | /* Written by Vas Gábor */ 3 | (function($) { 4 | $.timepicker.regional['hu'] = { 5 | timeOnlyTitle: 'Válasszon időpontot', 6 | timeText: 'Idő', 7 | hourText: 'Óra', 8 | minuteText: 'Perc', 9 | secondText: 'Másodperc', 10 | millisecText: 'Milliszekundumos', 11 | microsecText: 'Ezredmásodperc', 12 | timezoneText: 'Időzóna', 13 | currentText: 'Most', 14 | closeText: 'Kész', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['de.', 'AM', 'A'], 18 | pmNames: ['du.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['hu']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-id.js: -------------------------------------------------------------------------------- 1 | /* Indonesian translation for the jQuery Timepicker Addon */ 2 | /* Written by Nia */ 3 | (function($) { 4 | $.timepicker.regional['id'] = { 5 | timeOnlyTitle: 'Pilih Waktu', 6 | timeText: 'Waktu', 7 | hourText: 'Pukul', 8 | minuteText: 'Menit', 9 | secondText: 'Detik', 10 | millisecText: 'Milidetik', 11 | microsecText: 'Mikrodetik', 12 | timezoneText: 'Zona Waktu', 13 | currentText: 'Sekarang', 14 | closeText: 'OK', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['id']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-it.js: -------------------------------------------------------------------------------- 1 | /* Italian translation for the jQuery Timepicker Addon */ 2 | /* Written by Marco "logicoder" Del Tongo */ 3 | (function($) { 4 | $.timepicker.regional['it'] = { 5 | timeOnlyTitle: 'Scegli orario', 6 | timeText: 'Orario', 7 | hourText: 'Ora', 8 | minuteText: 'Minuti', 9 | secondText: 'Secondi', 10 | millisecText: 'Millisecondi', 11 | microsecText: 'Microsecondi', 12 | timezoneText: 'Fuso orario', 13 | currentText: 'Adesso', 14 | closeText: 'Chiudi', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['m.', 'AM', 'A'], 18 | pmNames: ['p.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['it']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-ja.js: -------------------------------------------------------------------------------- 1 | /* Japanese translation for the jQuery Timepicker Addon */ 2 | /* Written by Jun Omae */ 3 | (function($) { 4 | $.timepicker.regional['ja'] = { 5 | timeOnlyTitle: '時間を選択', 6 | timeText: '時間', 7 | hourText: '時', 8 | minuteText: '分', 9 | secondText: '秒', 10 | millisecText: 'ミリ秒', 11 | microsecText: 'マイクロ秒', 12 | timezoneText: 'タイムゾーン', 13 | currentText: '現時刻', 14 | closeText: '閉じる', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['午前', 'AM', 'A'], 18 | pmNames: ['午後', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ja']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-ko.js: -------------------------------------------------------------------------------- 1 | /* Korean translation for the jQuery Timepicker Addon */ 2 | /* Written by Genie */ 3 | (function($) { 4 | $.timepicker.regional['ko'] = { 5 | timeOnlyTitle: '시간 선택', 6 | timeText: '시간', 7 | hourText: '시', 8 | minuteText: '분', 9 | secondText: '초', 10 | millisecText: '밀리초', 11 | microsecText: '마이크로', 12 | timezoneText: '표준 시간대', 13 | currentText: '현재 시각', 14 | closeText: '닫기', 15 | timeFormat: 'tt h:mm', 16 | timeSuffix: '', 17 | amNames: ['오전', 'AM', 'A'], 18 | pmNames: ['오후', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ko']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-lt.js: -------------------------------------------------------------------------------- 1 | /* Lithuanian translation for the jQuery Timepicker Addon */ 2 | /* Written by Irmantas Šiupšinskas */ 3 | (function($) { 4 | $.timepicker.regional['lt'] = { 5 | timeOnlyTitle: 'Pasirinkite laiką', 6 | timeText: 'Laikas', 7 | hourText: 'Valandos', 8 | minuteText: 'Minutės', 9 | secondText: 'Sekundės', 10 | millisecText: 'Milisekundės', 11 | microsecText: 'Mikrosekundės', 12 | timezoneText: 'Laiko zona', 13 | currentText: 'Dabar', 14 | closeText: 'Uždaryti', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['priešpiet', 'AM', 'A'], 18 | pmNames: ['popiet', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['lt']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-lv.js: -------------------------------------------------------------------------------- 1 | /* Latvian translation for the jQuery Timepicker Addon */ 2 | /* Written by Dmitry Bogatykh */ 3 | (function($) { 4 | $.timepicker.regional['lv'] = { 5 | timeOnlyTitle: 'Ievadiet laiku', 6 | timeText: 'Laiks', 7 | hourText: 'Stundas', 8 | minuteText: 'Minūtes', 9 | secondText: 'Sekundes', 10 | millisecText: 'Milisekundes', 11 | microsecText: 'Mikrosekundes', 12 | timezoneText: 'Laika josla', 13 | currentText: 'Tagad', 14 | closeText: 'Aizvērt', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'AM', 'A'], 18 | pmNames: ['PM', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['lv']); 22 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-mk.js: -------------------------------------------------------------------------------- 1 | /* Macedonian cyrilic translation for the jQuery Timepicker Addon */ 2 | /* Written by Vlatko Ristovski */ 3 | (function($) { 4 | $.timepicker.regional['mk'] = { 5 | timeOnlyTitle: 'Одберете време', 6 | timeText: 'Време', 7 | hourText: 'Час', 8 | minuteText: 'Минути', 9 | secondText: 'Секунди', 10 | millisecText: 'Милисекунди', 11 | microsecText: 'Микросекунди', 12 | timezoneText: 'Временска зона', 13 | currentText: 'Сега', 14 | closeText: 'Затвори', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['mk']); 22 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-nl.js: -------------------------------------------------------------------------------- 1 | /* Dutch translation for the jQuery Timepicker Addon */ 2 | /* Written by Martijn van der Lee */ 3 | (function($) { 4 | $.timepicker.regional['nl'] = { 5 | timeOnlyTitle: 'Tijdstip', 6 | timeText: 'Tijd', 7 | hourText: 'Uur', 8 | minuteText: 'Minuut', 9 | secondText: 'Seconde', 10 | millisecText: 'Milliseconde', 11 | microsecText: 'Microseconde', 12 | timezoneText: 'Tijdzone', 13 | currentText: 'Vandaag', 14 | closeText: 'Sluiten', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['nl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-no.js: -------------------------------------------------------------------------------- 1 | /* Norwegian translation for the jQuery Timepicker Addon */ 2 | /* Written by Morten Hauan (http://hauan.me) */ 3 | (function($) { 4 | $.timepicker.regional['no'] = { 5 | timeOnlyTitle: 'Velg tid', 6 | timeText: 'Tid', 7 | hourText: 'Time', 8 | minuteText: 'Minutt', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekund', 11 | microsecText: 'mikrosekund', 12 | timezoneText: 'Tidssone', 13 | currentText: 'Nå', 14 | closeText: 'Lukk', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['am', 'AM', 'A'], 18 | pmNames: ['pm', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['no']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-pl.js: -------------------------------------------------------------------------------- 1 | /* Polish translation for the jQuery Timepicker Addon */ 2 | /* Written by Michał Pena */ 3 | (function($) { 4 | $.timepicker.regional['pl'] = { 5 | timeOnlyTitle: 'Wybierz godzinę', 6 | timeText: 'Czas', 7 | hourText: 'Godzina', 8 | minuteText: 'Minuta', 9 | secondText: 'Sekunda', 10 | millisecText: 'Milisekunda', 11 | microsecText: 'Mikrosekunda', 12 | timezoneText: 'Strefa czasowa', 13 | currentText: 'Teraz', 14 | closeText: 'Gotowe', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['pl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-pt-BR.js: -------------------------------------------------------------------------------- 1 | /* Brazilian Portuguese translation for the jQuery Timepicker Addon */ 2 | /* Written by Diogo Damiani (diogodamiani@gmail.com) */ 3 | (function ($) { 4 | $.timepicker.regional['pt-BR'] = { 5 | timeOnlyTitle: 'Escolha o horário', 6 | timeText: 'Horário', 7 | hourText: 'Hora', 8 | minuteText: 'Minutos', 9 | secondText: 'Segundos', 10 | millisecText: 'Milissegundos', 11 | microsecText: 'Microssegundos', 12 | timezoneText: 'Fuso horário', 13 | currentText: 'Agora', 14 | closeText: 'Fechar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['pt-BR']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-pt.js: -------------------------------------------------------------------------------- 1 | /* Portuguese translation for the jQuery Timepicker Addon */ 2 | /* Written by Luan Almeida */ 3 | (function($) { 4 | $.timepicker.regional['pt'] = { 5 | timeOnlyTitle: 'Escolha uma hora', 6 | timeText: 'Hora', 7 | hourText: 'Horas', 8 | minuteText: 'Minutos', 9 | secondText: 'Segundos', 10 | millisecText: 'Milissegundos', 11 | microsecText: 'Microssegundos', 12 | timezoneText: 'Fuso horário', 13 | currentText: 'Agora', 14 | closeText: 'Fechar', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['a.m.', 'AM', 'A'], 18 | pmNames: ['p.m.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['pt']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-ro.js: -------------------------------------------------------------------------------- 1 | /* Romanian translation for the jQuery Timepicker Addon */ 2 | /* Written by Romeo Adrian Cioaba */ 3 | (function($) { 4 | $.timepicker.regional['ro'] = { 5 | timeOnlyTitle: 'Alegeţi o oră', 6 | timeText: 'Timp', 7 | hourText: 'Ore', 8 | minuteText: 'Minute', 9 | secondText: 'Secunde', 10 | millisecText: 'Milisecunde', 11 | microsecText: 'Microsecunde', 12 | timezoneText: 'Fus orar', 13 | currentText: 'Acum', 14 | closeText: 'Închide', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ro']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-ru.js: -------------------------------------------------------------------------------- 1 | /* Russian translation for the jQuery Timepicker Addon */ 2 | /* Written by Trent Richardson */ 3 | (function($) { 4 | $.timepicker.regional['ru'] = { 5 | timeOnlyTitle: 'Выберите время', 6 | timeText: 'Время', 7 | hourText: 'Часы', 8 | minuteText: 'Минуты', 9 | secondText: 'Секунды', 10 | millisecText: 'Миллисекунды', 11 | microsecText: 'Микросекунды', 12 | timezoneText: 'Часовой пояс', 13 | currentText: 'Сейчас', 14 | closeText: 'Закрыть', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['ru']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-sk.js: -------------------------------------------------------------------------------- 1 | /* Slovak translation for the jQuery Timepicker Addon */ 2 | /* Written by David Vallner */ 3 | (function($) { 4 | $.timepicker.regional['sk'] = { 5 | timeOnlyTitle: 'Zvoľte čas', 6 | timeText: 'Čas', 7 | hourText: 'Hodiny', 8 | minuteText: 'Minúty', 9 | secondText: 'Sekundy', 10 | millisecText: 'Milisekundy', 11 | microsecText: 'Mikrosekundy', 12 | timezoneText: 'Časové pásmo', 13 | currentText: 'Teraz', 14 | closeText: 'Zavrieť', 15 | timeFormat: 'H:m', 16 | timeSuffix: '', 17 | amNames: ['dop.', 'AM', 'A'], 18 | pmNames: ['pop.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sk']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-sl.js: -------------------------------------------------------------------------------- 1 | /* Slovenian translation for the jQuery Timepicker Addon */ 2 | /* Written by Hadalin (https://github.com/hadalin) */ 3 | (function($) { 4 | $.timepicker.regional['sl'] = { 5 | timeOnlyTitle: 'Izberite čas', 6 | timeText: 'Čas', 7 | hourText: 'Ura', 8 | minuteText: 'Minute', 9 | secondText: 'Sekunde', 10 | millisecText: 'Milisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Časovni pas', 13 | currentText: 'Sedaj', 14 | closeText: 'Zapri', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['dop.', 'AM', 'A'], 18 | pmNames: ['pop.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sl']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-sq.js: -------------------------------------------------------------------------------- 1 | /* Albanian translation for the jQuery Timepicker Addon */ 2 | /* Written by Olti Buzi */ 3 | (function($) { 4 | $.timepicker.regional['sq'] = { 5 | timeOnlyTitle: 'Zgjidh orarin', 6 | timeText: 'Orari', 7 | hourText: 'Ora', 8 | minuteText: 'Minuta', 9 | secondText: 'Sekonda', 10 | millisecText: 'Minisekonda', 11 | microsecText: 'Mikrosekonda', 12 | timezoneText: 'Zona kohore', 13 | currentText: 'Tani', 14 | closeText: 'Mbyll', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['m.', 'AM', 'A'], 18 | pmNames: ['p.', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sq']); 22 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-sr-RS.js: -------------------------------------------------------------------------------- 1 | /* Serbian cyrilic translation for the jQuery Timepicker Addon */ 2 | /* Written by Vladimir Jelovac */ 3 | (function($) { 4 | $.timepicker.regional['sr-RS'] = { 5 | timeOnlyTitle: 'Одаберите време', 6 | timeText: 'Време', 7 | hourText: 'Сати', 8 | minuteText: 'Минути', 9 | secondText: 'Секунде', 10 | millisecText: 'Милисекунде', 11 | microsecText: 'Микросекунде', 12 | timezoneText: 'Временска зона', 13 | currentText: 'Сада', 14 | closeText: 'Затвори', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sr-RS']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-sr-YU.js: -------------------------------------------------------------------------------- 1 | /* Serbian latin translation for the jQuery Timepicker Addon */ 2 | /* Written by Vladimir Jelovac */ 3 | (function($) { 4 | $.timepicker.regional['sr-YU'] = { 5 | timeOnlyTitle: 'Odaberite vreme', 6 | timeText: 'Vreme', 7 | hourText: 'Sati', 8 | minuteText: 'Minuti', 9 | secondText: 'Sekunde', 10 | millisecText: 'Milisekunde', 11 | microsecText: 'Mikrosekunde', 12 | timezoneText: 'Vremenska zona', 13 | currentText: 'Sada', 14 | closeText: 'Zatvori', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sr-YU']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-sv.js: -------------------------------------------------------------------------------- 1 | /* Swedish translation for the jQuery Timepicker Addon */ 2 | /* Written by Nevon */ 3 | (function($) { 4 | $.timepicker.regional['sv'] = { 5 | timeOnlyTitle: 'Välj en tid', 6 | timeText: 'Tid', 7 | hourText: 'Timme', 8 | minuteText: 'Minut', 9 | secondText: 'Sekund', 10 | millisecText: 'Millisekund', 11 | microsecText: 'Mikrosekund', 12 | timezoneText: 'Tidszon', 13 | currentText: 'Nu', 14 | closeText: 'Stäng', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['sv']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-th.js: -------------------------------------------------------------------------------- 1 | /* Thai translation for the jQuery Timepicker Addon */ 2 | /* Written by Yote Wachirapornpongsa */ 3 | (function($) { 4 | $.timepicker.regional['th'] = { 5 | timeOnlyTitle: 'เลือกเวลา', 6 | timeText: 'เวลา ', 7 | hourText: 'ชั่วโมง ', 8 | minuteText: 'นาที', 9 | secondText: 'วินาที', 10 | millisecText: 'มิลลิวินาที', 11 | microsecText: 'ไมโคริวินาที', 12 | timezoneText: 'เขตเวลา', 13 | currentText: 'เวลาปัจจุบัน', 14 | closeText: 'ปิด', 15 | timeFormat: 'hh:mm tt', 16 | timeSuffix: '' 17 | }; 18 | $.timepicker.setDefaults($.timepicker.regional['th']); 19 | })(jQuery); -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-tr.js: -------------------------------------------------------------------------------- 1 | /* Turkish translation for the jQuery Timepicker Addon */ 2 | /* Written by Fehmi Can Saglam, Edited by Goktug Ozturk */ 3 | (function($) { 4 | $.timepicker.regional['tr'] = { 5 | timeOnlyTitle: 'Zaman Seçiniz', 6 | timeText: 'Zaman', 7 | hourText: 'Saat', 8 | minuteText: 'Dakika', 9 | secondText: 'Saniye', 10 | millisecText: 'Milisaniye', 11 | microsecText: 'Mikrosaniye', 12 | timezoneText: 'Zaman Dilimi', 13 | currentText: 'Şu an', 14 | closeText: 'Tamam', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['ÖÖ', 'Ö'], 18 | pmNames: ['ÖS', 'S'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['tr']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-uk.js: -------------------------------------------------------------------------------- 1 | /* Ukrainian translation for the jQuery Timepicker Addon */ 2 | /* Written by Sergey Noskov */ 3 | (function($) { 4 | $.timepicker.regional['uk'] = { 5 | timeOnlyTitle: 'Виберіть час', 6 | timeText: 'Час', 7 | hourText: 'Години', 8 | minuteText: 'Хвилини', 9 | secondText: 'Секунди', 10 | millisecText: 'Мілісекунди', 11 | microsecText: 'Мікросекунди', 12 | timezoneText: 'Часовий пояс', 13 | currentText: 'Зараз', 14 | closeText: 'Закрити', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['uk']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-vi.js: -------------------------------------------------------------------------------- 1 | /* Vietnamese translation for the jQuery Timepicker Addon */ 2 | /* Written by Nguyen Dinh Trung */ 3 | (function($) { 4 | $.timepicker.regional['vi'] = { 5 | timeOnlyTitle: 'Chọn giờ', 6 | timeText: 'Thời gian', 7 | hourText: 'Giờ', 8 | minuteText: 'Phút', 9 | secondText: 'Giây', 10 | millisecText: 'Mili giây', 11 | microsecText: 'Micrô giây', 12 | timezoneText: 'Múi giờ', 13 | currentText: 'Hiện thời', 14 | closeText: 'Đóng', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['SA', 'S'], 18 | pmNames: ['CH', 'C'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['vi']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-zh-CN.js: -------------------------------------------------------------------------------- 1 | /* Simplified Chinese translation for the jQuery Timepicker Addon / 2 | / Written by Will Lu */ 3 | (function($) { 4 | $.timepicker.regional['zh-CN'] = { 5 | timeOnlyTitle: '选择时间', 6 | timeText: '时间', 7 | hourText: '小时', 8 | minuteText: '分钟', 9 | secondText: '秒钟', 10 | millisecText: '毫秒', 11 | microsecText: '微秒', 12 | timezoneText: '时区', 13 | currentText: '现在时间', 14 | closeText: '关闭', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['AM', 'A'], 18 | pmNames: ['PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['zh-CN']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/i18n/jquery-ui-timepicker-zh-TW.js: -------------------------------------------------------------------------------- 1 | /* Chinese translation for the jQuery Timepicker Addon */ 2 | /* Written by Alang.lin */ 3 | (function($) { 4 | $.timepicker.regional['zh-TW'] = { 5 | timeOnlyTitle: '選擇時分秒', 6 | timeText: '時間', 7 | hourText: '時', 8 | minuteText: '分', 9 | secondText: '秒', 10 | millisecText: '毫秒', 11 | microsecText: '微秒', 12 | timezoneText: '時區', 13 | currentText: '現在時間', 14 | closeText: '確定', 15 | timeFormat: 'HH:mm', 16 | timeSuffix: '', 17 | amNames: ['上午', 'AM', 'A'], 18 | pmNames: ['下午', 'PM', 'P'], 19 | isRTL: false 20 | }; 21 | $.timepicker.setDefaults($.timepicker.regional['zh-TW']); 22 | })(jQuery); 23 | -------------------------------------------------------------------------------- /src/jquery-ui-sliderAccess.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI Slider Access 3 | * By: Trent Richardson [http://trentrichardson.com] 4 | * Version 0.3 5 | * Last Modified: 10/20/2012 6 | * 7 | * Copyright 2011 Trent Richardson 8 | * Dual licensed under the MIT and GPL licenses. 9 | * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt 10 | * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt 11 | * 12 | */ 13 | (function($){ 14 | 15 | $.fn.extend({ 16 | sliderAccess: function(options){ 17 | options = options || {}; 18 | options.touchonly = options.touchonly !== undefined? options.touchonly : true; // by default only show it if touch device 19 | 20 | if(options.touchonly === true && !("ontouchend" in document)){ 21 | return $(this); 22 | } 23 | 24 | return $(this).each(function(i,obj){ 25 | var $t = $(this), 26 | o = $.extend({},{ 27 | where: 'after', 28 | step: $t.slider('option','step'), 29 | upIcon: 'ui-icon-plus', 30 | downIcon: 'ui-icon-minus', 31 | text: false, 32 | upText: '+', 33 | downText: '-', 34 | buttonset: true, 35 | buttonsetTag: 'span', 36 | isRTL: false 37 | }, options), 38 | $buttons = $('<'+ o.buttonsetTag +' class="ui-slider-access">'+ 39 | ''+ 40 | ''+ 41 | ''); 42 | 43 | $buttons.children('button').each(function(j, jobj){ 44 | var $jt = $(this); 45 | $jt.button({ 46 | text: o.text, 47 | icons: { primary: $jt.data('icon') } 48 | }) 49 | .click(function(e){ 50 | var step = $jt.data('step'), 51 | curr = $t.slider('value'), 52 | newval = curr += step*1, 53 | minval = $t.slider('option','min'), 54 | maxval = $t.slider('option','max'), 55 | slidee = $t.slider("option", "slide") || function(){}, 56 | stope = $t.slider("option", "stop") || function(){}; 57 | 58 | e.preventDefault(); 59 | 60 | if(newval < minval || newval > maxval){ 61 | return; 62 | } 63 | 64 | $t.slider('value', newval); 65 | 66 | slidee.call($t, null, { value: newval }); 67 | stope.call($t, null, { value: newval }); 68 | }); 69 | }); 70 | 71 | // before or after 72 | $t[o.where]($buttons); 73 | 74 | if(o.buttonset){ 75 | $buttons.removeClass('ui-corner-right').removeClass('ui-corner-left').buttonset(); 76 | $buttons.eq(0).addClass('ui-corner-left'); 77 | $buttons.eq(1).addClass('ui-corner-right'); 78 | } 79 | 80 | // adjust the width so we don't break the original layout 81 | var bOuterWidth = $buttons.css({ 82 | marginLeft: ((o.where === 'after' && !o.isRTL) || (o.where === 'before' && o.isRTL)? 10:0), 83 | marginRight: ((o.where === 'before' && !o.isRTL) || (o.where === 'after' && o.isRTL)? 10:0) 84 | }).outerWidth(true) + 5; 85 | var tOuterWidth = $t.outerWidth(true); 86 | $t.css('display','inline-block').width(tOuterWidth-bOuterWidth); 87 | }); 88 | } 89 | }); 90 | 91 | })(jQuery); -------------------------------------------------------------------------------- /src/jquery-ui-timepicker-addon.css: -------------------------------------------------------------------------------- 1 | .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } 2 | .ui-timepicker-div dl { text-align: left; } 3 | .ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; } 4 | .ui-timepicker-div dl dd { margin: 0 10px 10px 40%; } 5 | .ui-timepicker-div td { font-size: 90%; } 6 | .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } 7 | .ui-timepicker-div .ui_tpicker_unit_hide{ display: none; } 8 | 9 | .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input { background: none; color: inherit; border: none; outline: none; border-bottom: solid 1px #555; width: 95%; } 10 | .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus { border-bottom-color: #aaa; } 11 | 12 | .ui-timepicker-rtl{ direction: rtl; } 13 | .ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; } 14 | .ui-timepicker-rtl dl dt{ float: right; clear: right; } 15 | .ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; } 16 | 17 | /* Shortened version style */ 18 | .ui-timepicker-div.ui-timepicker-oneLine { padding-right: 2px; } 19 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time, 20 | .ui-timepicker-div.ui-timepicker-oneLine dt { display: none; } 21 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time_label { display: block; padding-top: 2px; } 22 | .ui-timepicker-div.ui-timepicker-oneLine dl { text-align: right; } 23 | .ui-timepicker-div.ui-timepicker-oneLine dl dd, 24 | .ui-timepicker-div.ui-timepicker-oneLine dl dd > div { display:inline-block; margin:0; } 25 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_minute:before, 26 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_second:before { content:':'; display:inline-block; } 27 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_millisec:before, 28 | .ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_microsec:before { content:'.'; display:inline-block; } 29 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide, 30 | .ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide:before{ display: none; } -------------------------------------------------------------------------------- /test/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "browser": true, 14 | "predef": [ 15 | "jQuery", 16 | "$", 17 | "QUnit", 18 | "jasmine", 19 | "module", 20 | "test", 21 | "asyncTest", 22 | "expect", 23 | "start", 24 | "stop", 25 | "ok", 26 | "equal", 27 | "notEqual", 28 | "deepEqual", 29 | "notDeepEqual", 30 | "strictEqual", 31 | "notStrictEqual", 32 | "throws", 33 | "describe", 34 | "it", 35 | "beforeEach", 36 | "afterEach", 37 | "spyOn", 38 | "affix", 39 | "xdescribe", 40 | "xit" 41 | ] 42 | } -------------------------------------------------------------------------------- /test/SpecRunner.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | jquery-ui-timepicker-addon Spec Runner 5 | 6 | 7 | 8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 52 | 53 | 54 | 55 | 56 | 57 | --------------------------------------------------------------------------------