Giter Club home page Giter Club logo

lolliclock's Introduction

Lolliclock

A material design timepicker based on clockpicker

No longer maintained I'll still accept PRs. The javascript world has changed a lot in the last year! ES2015, npm3, react, webpack, and css-modules are looking like the new rulers and it just doesn't make sense to maintain a fun little project like this. For a similar component, please see the time picker in material-ui.

Autoclose false Autoclose true hour24 true

#Basics Internals are based off clockpicker, with a million tiny UX changes.

#Usage

  1. Install jquery
  2. Add the lolliclock .css and .js to your project.
  3. Extend your input field with the .lolliclock method including arguments:
<input id="pick-a-time"></input>
<script>
	$('#pick-a-time').lolliclock({autoclose:true});
</script>
  1. Optional: Run your validation and server scripts on the auto-generated datetime field, which is the name or id of your input field with a "-export" suffix
document.getElementById('pick-a-time-export')

#Features ###autoclose False (default) includes the Cancel/OK buttons at the bottom. ###hour24 False (default) change to 24 hours system.

###datetime field Most backend folks like to save times as dates because they're a breeze to work with. This timepicker creates a hidden input which is dynamically named by putting '-export' at the end of your input field. Now you can use realtime validation or push directly to a database without first converting to a JS date object. If your input has a name or Id of pick-a-time, run logic against pick-a-time-export

###animations It looks pretty great

#Versions 0.2.0 - Fixed IE/Safari date bug, added meteor pkg, added 'change' trigger on input field 0.1.0 - Initial commit

#License MIT - fork away!

lolliclock's People

Contributors

mattkrick avatar casear avatar

Watchers

James Cloos 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.