var control = $('#control').bendGauge(); control.bendGauge('set', [1,3,5,6]); $('a').click(function (e) { e.preventDefault(); }); $('.rotateCw').click(function () { control.bendGauge('rotate', 2); }); $('.rotateCcw').click(function () { control.bendGauge('rotate', -2); });
<div id="control"></div> <a href="#" class="rotateCw">rotate clockwise by two bends</a> :: <a href="#" class="rotateCcw">rotate counter clockwise by two bends</a>
body { background: #333; } a { color:#FFF } #control { width: 200px; height: 200px; }