GithubHelp home page GithubHelp logo

picktim's Introduction

Picktim

Basic JQuery timepicker plugin

Dependencies

Installation

Download the latest release from GitHub at https://github.com/engel-ja/picktim.

Usage

Attach the timepicker plugin to your desired document element, eg.

HTML

<head>
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="assets/css/picktim/picktim.css">
</head>
<body>
...
<div class="timepicker" id="timepicker"></div>
...
<script type="text/javascript" src="assets/js/jquery/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="assets/js/picktim/picktim.js"></script>
</body>

Javascript

$(".timepicker").picktim();

Options

$(".timepicker").picktim({
    backgroundColor: "#EEE",
    borderColor: "#DDD",
    textColor: "#333",
    symbolColor: "#333",
    appendTo: 'body',
    mode: "h24",                 // can be h12 for 12 hour format or h24 for 24 hour format
    orientation: "bottomLeft",   // camel-case combination of (top/bottom and Left/Right) or (left/right and Top/Bottom) 
    defaultValue: '00:00',       // can be set as 'now' to default to current time
    formName: '',                // specifies wether the plugin will be used as part of a form and assigns a name (leave empty for a non-form element)
    icons: {
        up: 'fa fa-chevron-up fa-fw',
        down: 'fa fa-chevron-down fa-fw',
        clear: 'fa fa-times fa-fw'
    }
    });

Useful Method(s)

$(".timepicker").picktim('value');  // returns the value of the input element in the plugin

Copyright

Copyright (c) 2018 Adriaan Engelbrecht Licensed under the MIT license.

picktim's People

Contributors

engel-ja avatar

Stargazers

 avatar  avatar  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.