Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timezone-picker

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-picker

Select your timezone using world map

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
92
decreased by-31.85%
Maintainers
1
Weekly downloads
 
Created
Source

timezone-picker

timezone-picker is the plugin to select and get timezone value of selected area from WorldMap.

##Just take a look at this demo:

Imgur

Installation and usage


npm install --save timezone-picker

Include the following lines of code in the section of your HTML.

<script type="text/javascript" src="[yourpath]/jquery.min.js"></script>
<script type="text/javascript" src="[yourpath]/timezone-picker.js"></script>

Select any dom element where you want to create map.

$(selector).timezonePicker();

Options


  • width : (type:number) Sets width of map.
  • height : (type:number) Sets height of map.
  • defaultCss : (type:boolean) No need to include css if it is true
  • hoverColor :(type:string) Shows color on hover
  • selectedColor :(type:string) Sets selected ** timezone** color
  • mapColor :(type:string) Sets map color
  • quickLink :(type:Array of string) Creates shortcuts to select zone ["IST","MST".......]
  • selectBox :(type:boolean) If it is set tofalse select box will not be created
  • showHoverText : (type:boolean) If it is set to false hover text will not be shown
  • hoverText: (type:function | string) text you want to show when you hover on map (works only if showHoverText is true)
  • mapHover : (type:string) by default it will show hovered polygon(area) on which mouse is pointed (value: timezone, country, zonename)
    • "timezone" : when you hover on map it will heighlight all are with same timezone
    • "country" : when you hover on map it will heighlight all are with same country code
    • "zonename" : when you hover on map it will heighlight all are with same zonename

License


It is available under the MIT LICENSE

Keywords

FAQs

Package last updated on 24 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc