Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yannickebongue/jquery-ui-pinpad

An interactive Pinpad widget for point of sale (POS) or encrypted pinpad (EPP) simulation
https://github.com/yannickebongue/jquery-ui-pinpad

jquery jquery-plugin jquery-ui pinpad ui widget

Last synced: about 2 months ago
JSON representation

An interactive Pinpad widget for point of sale (POS) or encrypted pinpad (EPP) simulation

Awesome Lists containing this project

README

        

# jQuery UI Pinpad

[![npm version][npm-badge]][npm] [![license][license-badge]][license]

The jQuery UI Pinpad is a jQuery UI widget to simulate on a web browser screen a Point Of Sale (POS) or an Encrypted PIN Pad (EPP). The aim of this widget is to display a numeric pad with optionally a decimal point key and the three basic commands Cancel, Clear and Confirm.

## Installation

Include the following Javascript and CSS:

```html

```

## Usage

### Default functionality

The jQuery UI Pinpad is tied to a standard form input field.

Insert an input text where to apply the PIN pad feature

```html

```

Create the pinpad widget for the input text

```javascript
$( "#pinpad" ).pinpad();
```

This will generate an interactive pinpad which will be initially hidden. The user just have to focus the input (click inside or use the tab key) to open the interactive pinpad in small overlay.

### Display inline

The jQuery UI Pinpad can also be displayed embedded in the page instead of an overlay.

Insert an input text where to apply the PIN pad feature

```html

```

Insert the div that will contain the interactive pinpad

```html


```

Create the pinpad widget for the input text

```javascript
$( "#pinpad" ).pinpad( {
appendTo: "#container"
} );
```

This will generate an interactive pinpad inside element specified by the `appendTo` option to use during the pinpad widget initialization.

## License

Copyright (c) 2016 Yannick Ebongue

Released under the MIT License (see [LICENSE.txt](LICENSE.txt))

[npm]: https://www.npmjs.org/package/jquery-ui-pinpad
[npm-badge]: https://img.shields.io/npm/v/jquery-ui-pinpad.svg?style=flat-square
[license]: https://opensource.org/licenses/MIT
[license-badge]: https://img.shields.io/github/license/yannickebongue/jquery-ui-pinpad.svg?style=flat-square