360 degree circle range select input widget
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
2. Include input form element which should contain your circle range (format "startDegrees;endDegrees")
<input type="text" class="circle-range-select" data-auto-init value="0;360">
<link rel="stylesheet" href="dist/jquery.lcnCircleRangeSelect.css">
<script src="dist/jquery.lcnCircleRangeSelect.js"></script>
value="0;360"
data-min="0"
data-max="360"
data-unit="°"
data-single-value
The value of the input form field then only consists of a single number and not a number pair.
data-bg-image="http://..."
If you omit the data-auto-init attribute on your input tag or if you create input tags dynamically after the domReady event has fired, you need to initialize the widget manually:
<script>jQuery('input.circle-range-select').lcnCircleRangeSelect();</script>
If you update the value of the widget's input field via javascript, you need to trigger the change event in order to re-render the widget:
<script>jQuery('#my-input').val('90;270').trigger('change');</script>