diff --git a/index-rtl.html b/index-rtl.html new file mode 100644 index 0000000..9ddda47 --- /dev/null +++ b/index-rtl.html @@ -0,0 +1,302 @@ + + + + jQuery Knob demo + + + + + + + +
+

jQuery Knob

+
+
+

Nice, downward compatible, touchable, jQuery dial. Flattr this

+

* implemented interactions : mouse click and wheel mouse, keyboard (on focus) and fingers (touch events)

+
+
+

× Disable display input

+
+data-width="100"
+data-displayInput=false
+            
+ +
+
+

× 'cursor' mode

+
+data-width="150"
+data-cursor=true
+data-thickness=.3
+data-fgColor="#222222"
+            
+ +
+
+

× Display previous value

+
+data-displayPrevious=true
+data-min="-100"
+            
+ +
+
+
+

× Angle offset

+
+data-angleOffset=90
+data-linecap=round
+            
+ +
+
+

× Angle offset and arc

+
+data-fgColor="#66CC66"
+data-angleOffset=-125
+data-angleArc=250
+data-rotation=anticlockwise
+            
+ +
+
+

× 5-digit values, step 1000

+
+data-step="1000"
+data-min="-15000"
+data-max="15000"
+data-displayPrevious=true
+            
+ +
+
+
+

× Overloaded 'draw' method

+
+
+
+
+    data-width="75"
+    data-fgColor="#ffec03"
+    data-skin="tron"
+    data-thickness=".2"
+    data-displayPrevious=true
+                
+ +
+
+
+    data-width="150"
+    data-fgColor="#ffec03"
+    data-skin="tron"
+    data-thickness=".2"
+    data-displayPrevious=true
+                
+ +
+
+
+    data-width="150"
+    data-fgColor="#C0ffff"
+    data-skin="tron"
+    data-thickness=".1"
+    data-angleOffset="180"
+                
+ +
+
+
+
+

× Responsive

+
+data-width="80%"
+            
+
+ + Current div width is 30% of window width.
+ Knob width is 80% of current div.
+ Knob width is 80% of 30% of window width.
+ Test resizing window. +
+
+
+ +
+
+
+ +
+

× Superpose (clock)

+
+
+ +
+
+ +
+
+ +
+
+
+
+
+

× Readonly

+
+readonly (or data-readOnly=true)
+data-thickness=".4"
+data-fgColor="chartreuse"
+            
+ +
+
+

× Dynamic

+
+data-width="200"
+            
+ + +
+data-width="50"
+data-cursor=true
+            
+ + +
+
+

× Infinite || iPod click wheel

+
+
+data-width="150"
+data-cursor=true
+data-thickness=".5"
+data-fgColor="#AAAAAA"
+data-bgColor="#FFFFFF"
+data-displayInput="false"
++ some code
+                
+ +
+
+
0
+
+
+
+
+
+ +

jQuery Knob is © 2012 Anthony Terrien - MIT License

+
+ + diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 4c927f7..0cc7781 100755 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -193,7 +193,7 @@ this.$div = $('
'); + + '" dir="ltr">'); this.$.wrap(this.$div).before(this.$c); this.$div = this.$.parent();