├── .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 | ''+ o.buttonsetTag +'>'); 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 = 'Add a simple datetimepicker to jQuery UI's datepicker
23 |27 | $('#basic_example_1').datetimepicker(); 28 |29 |
Add only a timepicker:
35 |39 | $('#basic_example_2').timepicker(); 40 |41 |
Format the time:
46 |50 | $('#basic_example_3').datetimepicker({ 51 | timeFormat: "hh:mm tt" 52 | }); 53 |54 |
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 |64 | $('#basic_example_4').timepicker( 65 | $.timepicker.regional['es'] 66 | ); 67 |68 |
Simplest timezone usage:
75 |79 | $('#timezone_example_1').datetimepicker({ 80 | timeFormat: 'hh:mm tt z' 81 | }); 82 |83 |
Define your own timezone options:
88 |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 |
Add a grid to each slider:
109 |113 | $('#slider_example_1').timepicker({ 114 | hourGrid: 4, 115 | minuteGrid: 10, 116 | timeFormat: 'hh:mm tt' 117 | }); 118 |119 |
Set the interval step of sliders:
124 |128 | $('#slider_example_2').datetimepicker({ 129 | timeFormat: 'HH:mm:ss', 130 | stepHour: 2, 131 | stepMinute: 10, 132 | stepSecond: 10 133 | }); 134 |135 |
Add sliderAccess plugin for touch devices:
140 |144 | $('#slider_example_3').datetimepicker({ 145 | addSliderAccess: true, 146 | sliderAccessArgs: { touchonly: false } 147 | });148 |
Use dropdowns instead of sliders. By default if slider is not available dropdowns will be used.
153 |157 | $('#slider_example_4').datetimepicker({ 158 | controlType: 'select', 159 | timeFormat: 'hh:mm tt' 160 | });161 |
Uses one line dropdowns instead of sliders.
166 |170 | $('#slider_example_4andHalf').datetimepicker({ 171 | controlType: 'select', 172 | oneLine: true, 173 | timeFormat: 'hh:mm tt' 174 | });175 |
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 |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 |
Alt field in the simplest form:
227 |232 | $('#alt_example_1').datetimepicker({ 233 | altField: "#alt_example_1_alt" 234 | }); 235 |236 |
With datetime in both:
241 |246 | $('#alt_example_2').datetimepicker({ 247 | altField: "#alt_example_2_alt", 248 | altFieldTimeOnly: false 249 | }); 250 |251 |
Format the altField differently:
256 |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 |
With inline mode using altField:
274 |279 | $('#alt_example_4').datetimepicker({ 280 | altField: "#alt_example_4_alt", 281 | altFieldTimeOnly: false 282 | }); 283 |284 |
Allows time displayed inside the picker to allow being typed in.
291 |295 | $('#input_example_1').datetimepicker({ 296 | timeInput: true, 297 | timeFormat: "hh:mm tt" 298 | }); 299 |300 |
Don't show any sliders, only the time input.
305 |309 | $('#input_example_2').datetimepicker({ 310 | timeInput: true, 311 | timeFormat: "hh:mm tt", 312 | showHour: false, 313 | showMinute: false 314 | }); 315 |316 |
Set the min/max hour of every date:
323 |327 | $('#rest_example_1').timepicker({ 328 | hourMin: 8, 329 | hourMax: 16 330 | }); 331 |332 |
Set the min/max date numerically:
337 |341 | $('#rest_example_2').datetimepicker({ 342 | numberOfMonths: 2, 343 | minDate: 0, 344 | maxDate: 30 345 | }); 346 |347 |
Set the min/max date and time with a Date object:
352 |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 |
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 |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 |
Timepicker also includes some shortcut methods for ranges:
418 |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 |
To use only times for a time range use $.timepicker.timeRange():
443 |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 |
Even though this plugin focuses on datetime, it also provides a dateRange function:
467 |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 |
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 |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 |
Use the utility function to format your own time. $.datepicker.formatTime(format, time, options)
521 |Returns a time string in the specified format.
527 |532 | $('#utility_example_2').text( 533 | $.datepicker.formatTime('HH:mm z', { hour: 14, minute: 36, timezone: '+2000' }, {}) 534 | ); 535 |536 |
Use the utility function to parses a formatted time. $.datepicker.parseTime(format, timeString, options)
541 |Returns an object with hours, minutes, seconds, milliseconds, timezone.
547 |552 | $('#utility_example_3').text(JSON.stringify( 553 | $.datepicker.parseTime('HH:mm:ss:l z', "14:36:21:765 +2000", {}) 554 | )); 555 |556 |