Skip to content

Commit

Permalink
docs: update README.md example (npm#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Offirmo authored and claudiahdz committed Jan 31, 2020
1 parent baa4192 commit f63c35e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Expand Up @@ -8,13 +8,16 @@ var Gauge = require("gauge")

var gauge = new Gauge()

gauge.show("test", 0.20)

gauge.pulse("this")

gauge.hide()
gauge.show("working…", 0)
setTimeout(() => { gauge.pulse(); gauge.show("working…", 0.25) }, 500)
setTimeout(() => { gauge.pulse(); gauge.show("working…", 0.50) }, 1000)
setTimeout(() => { gauge.pulse(); gauge.show("working…", 0.75) }, 1500)
setTimeout(() => { gauge.pulse(); gauge.show("working…", 0.99) }, 2000)
setTimeout(() => gauge.hide(), 2300)
```

See also the [demos](demo.js):

![](gauge-demo.gif)


Expand Down

0 comments on commit f63c35e

Please sign in to comment.