Counter
opt = { //value: 1, //duration: 1000, format: true, //scale: 2, //text: '-', //prefix: 'A', //suffix: '%', cb: demo.callback };
counter1 = util.initCounter('#counter1', opt);
DEMO
counter1.setValue(
);
DEMO
counter1.setValue(0);
DEMO
counter1.setValue(1000);
DEMO
counter1.setValue(
,
);
DEMO
counter1.setValue('
');
DEMO
counter1.getValue();
DEMO
counter1.up();
DEMO
counter1.down();
DEMO
counter1.setDurationMin(
);
DEMO
counter1.setDurationMax(
);
DEMO
counter1.setDuration(
);
DEMO
opt = { value: 1, duration: {min: 1000, max: 1000}, format: true, scale: 2, text: '-', //prefix: 'A', suffix: '%', //cb: demo.callback };
counter2 = util.initCounter('#counter2', opt);
DEMO
counter2.setValue(
);
DEMO
counter2.setValue(0);
DEMO
counter2.setValue(1000);
DEMO
counter1.setValue('
');
DEMO
counter2.getValue();
DEMO
counter2.up();
DEMO
counter2.down();
DEMO
counter2.setDurationMin(
);
DEMO
counter2.setDurationMax(
);
DEMO
counter2.setDuration(
);
DEMO