GithubHelp home page GithubHelp logo

sigurdga / pickadate.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amsul/pickadate.js

0.0 3.0 0.0 5.2 MB

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.

Home Page: http://amsul.github.io/pickadate.js

License: MIT License

JavaScript 90.04% CSS 9.96%

pickadate.js's Introduction

pickadate v3.5.3 pickadate build status pickadate dev dependencies status

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.

To get started, check out the:

Homepage - Date picker - Time picker - API

To get it:

Download v3.5.3 or git clone git://github.com/amsul/pickadate.js.git or bower install pickadate


## Upgrading from v2 to v3

The v3 API is significantly different from v2 (all for the greater good!). So if you’re upgrading to v3, make sure to read the changelog.


## Library files

The lib folder includes the library files with a compressed folder containing the minified counter-parts. These files are minified using Grunt.

Pickers

There are currently two pickers: date and time.

File Contents Size (min & gzip)
picker.js Base * 1.76kb
picker.date.js Date picker 2.68kb
picker.time.js Time picker 1.92kb

* The base script is required for any of the pickers to function.

To support old browsers, namely IE8, also include the legacy.js file.

Themes

All themes are generated using LESS and compiled from the lib/themes-source folder into the lib/themes folder.

File Contents Size (min & gzip)
default.css Base default * 0.49kb
default.date.css Default date picker 0.75kb
default.time.css Default time picker 0.35kb
classic.css Base classic * 0.39kb
classic.date.css Classic date picker 0.75kb
classic.time.css Classic time picker 0.35kb
rtl.css RTL language stylings ** 0.10kb

* One and only one base stylesheet is required. Choose a theme then include the respective pickers as well.

** For languages with text flowing from right-to-left, also include the rtl.css stylesheet.

Translations

The translations live in the lib/translations folder. There are currently 39 language translations included.


## Building with Grunt

Grunt ~0.4.5 is used to build the project files. To get started, clone the project and then run:

  • npm install to get the required node modules.
  • grunt --verbose to confirm you have all the dependencies.

Read the Gruntfile to see the build tasks and relative directories of the source files.


## Styling with LESS

The picker themes are built using LESS with Grunt. To customize the CSS output, read the _variables.less file in the lib/themes-source folder. You can specify:

  • colors for the theme,
  • sizes for the picker,
  • media-query breakpoints,
  • and a whole bunch of other stuff.

After making any changes, run grunt less:themes to compile it into CSS.


## Versioning

To maintain some consistency in the sort of changes to expect with version bumps, Semantic Versioning guidelines will now be followed as closely as possible:

<major>.<minor>.<patch>

Constructed as such:

  • major: breaks backward compatibility (resets the minor and patch)
  • minor: new additions with backward compatibility (resets the patch)
  • patch: bug fixes and misc changes

## Bugs

Before opening a new issue, please search the existing Issues for anything similar – there might already be an answer to your problem. You might also wanna check out the Contributing guide.


## Contributing

Before contributing any code to the project, please take a look at the Contributing guide.


## Support

If you find this library useful and would like to see further development, consider supporting it.




© 2014 Amsul

Licensed under MIT

pickadate.js's People

Contributors

amsul avatar marcialca avatar theodorejb avatar andrewpthorp avatar jagooding avatar alexcesaro avatar sigurdga avatar ptolp avatar pektop avatar nriesco avatar mdeboer avatar lalitkapoor avatar ozee31 avatar ankitpokhrel avatar andrewburgess avatar amster avatar loostro avatar ardove avatar thomasklemm avatar garbas avatar ro-ka avatar p3drosola avatar r1ckye avatar julen avatar joeybaker avatar p-j avatar jensamoller avatar gperriard avatar geoffharcourt avatar erlingur avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.