Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firstandthird/timezones
A jQuery plugin to turn a select box into a timezone selector
https://github.com/firstandthird/timezones
Last synced: 14 days ago
JSON representation
A jQuery plugin to turn a select box into a timezone selector
- Host: GitHub
- URL: https://github.com/firstandthird/timezones
- Owner: firstandthird
- License: mit
- Created: 2013-06-03T14:54:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-23T17:43:13.000Z (about 8 years ago)
- Last Synced: 2025-01-10T17:44:15.097Z (23 days ago)
- Language: JavaScript
- Size: 200 KB
- Stars: 18
- Watchers: 4
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
#Timezones
A jQuery plugin to turn a select box into a timezone selector
##Installation
###Bower
`bower install timezones`
###Manual Download
- [Development]()
- [Production]()##Usage
Timezones is a simple plugin to populate a `select` element with Current Timezones.
Usage is really simple
```js
$('select').timezones();
```The plugin will try as well to guess your current timezone from [`Date.getTimezoneOffset`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FDate%2FgetTimezoneOffset)
##Development
###Requirements
- node and npm
- bower `npm install -g bower`
- grunt `npm install -g grunt-cli`###Setup
- `npm install`
- `bower install`###Run
`grunt dev`
or for just running tests on file changes:
`grunt ci`
###Tests
`grunt mocha`