Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
update readme for vuo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jsedlacek committed Oct 21, 2014
1 parent daaa85e commit c52903f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# Net Promoter Score widget [![Build Status](https://travis-ci.org/satismeter/nps-widget.svg?branch=master)](https://travis-ci.org/satismeter/nps-widget)


A lightweight web widget for gathering Net Promoter Score. Built on top of
[Duo](http://duojs.org) package manager.
A lightweight web widget for gathering Net Promoter Score surveys.

The widget was created for [SatisMeter](http://www.satismeter.com) SaaS app
that provides Net Promoter Score analytics.
The widget was created for [SatisMeter](http://www.satismeter.com)
Net Promoter Score analytics SaaS app.

![NPS widget](https://raw.githubusercontent.com/satismeter/nps-widget/gh-pages/rating.png)

```js
view = new View();
view.on('dismiss', function() { /* Handle dismiss */ });
view.on('submit', function() {
console.log(view.get('rating'), view.get('feedback'));
view.$on('dismiss', function() { /* Handle dismiss */ });
view.$on('submit', function() {
console.log(view.rating, view.feedback);
});
view.appendTo(document.body);
view.$appendTo(document.body);
view.show();
```

## Install

```
npm install -g duo
npm install duo
make
```

Expand All @@ -31,7 +30,7 @@ Supports all modern browsers and Internet explorer 9+.

## Testing
```
npm install -g duo-test
npm install duo-test
make test
```

Expand Down

0 comments on commit c52903f

Please sign in to comment.