gauge.js
v0.2.1
Published
Тестовое задание KudaGo
Downloads
198
Readme
gauge.js
Тестовое задание KudaGo (Demo)
Install
npm i -D gauge.js
bower i -D 'VovanR/gauge.js'
Usage
var foo = new Gauge({
block: document.getElementById('holder'),
actualValue: 4,
labels: [0, 1, 2, 3, 4, 5, 6],
warningValue: 75,
dangerValue: 90,
});
foo.setValue(2);
foo.setValue(6);
foo.setValue(0);
Development
Initialize
npm i
Test
In console
npm run test
In browser
open ./text/index-test.html
Lint
npm run lint
License
MIT © Vladimir Rodkin