# cordova-plugin-plusonebutton

> This is a plugin for showing a native +1 button

Latest version **1.0.2** (published 2016-07-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-plusonebutton
pnpm add cordova-plugin-plusonebutton
yarn add cordova-plugin-plusonebutton
bun add cordova-plugin-plusonebutton
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-07-25 |
| First published | 2016-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | jcesarmobile |
| Maintainers | jcesarmobile |
| Keywords | ecosystem:cordova, cordova-android |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-plusonebutton
- Repository: https://github.com/jcesarmobile/plusOneButtonPlugin
- Homepage: https://github.com/jcesarmobile/plusOneButtonPlugin#readme
- Issues: https://github.com/jcesarmobile/plusOneButtonPlugin/issues
- npm.io page: https://npm.io/package/cordova-plugin-plusonebutton

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-07-25
- 1.0.1 — 2016-04-24
- 1.0.0 — 2016-03-03

## README

cordova-plugin-plusonebutton
------------------------

This is a plugin for showing a native +1 button

To install

`cordova plugin add cordova-plugin-plusonebutton`

To use it:

Show the button
===============

```
var params = {};

params.url = "http://www.example.com";

params.size = 2;

params.annotation = 1;

params.position = {x:100,y:100};

plusOneButton.show(params);
```

Or

`plusOneButton.show("http://www.example.com");`

You can use Show to move the button changing the position params.


Hide the button
===============
`plusOneButton.hide();`

Listen for click event
======================

```
document.addEventListener("plusOneButtonClicked", onOneButtonClicked, false);
function onOneButtonClicked(){
    console.log('clicked');
}
```

---
_Source: https://npm.io/package/cordova-plugin-plusonebutton · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
