From a20a6377277a985fa596b0ea460d91b97f79b4a5 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 13 Jul 2012 07:09:29 -0700 Subject: merge upstream, slider work, refactor ping module, language selection work --- library/jslider/index.html | 152 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 library/jslider/index.html (limited to 'library/jslider/index.html') diff --git a/library/jslider/index.html b/library/jslider/index.html new file mode 100644 index 000000000..994b0783f --- /dev/null +++ b/library/jslider/index.html @@ -0,0 +1,152 @@ + + + + + jSlider + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ Slider in string +
+ + +
+
{
+  from: 5,
+  to: 50,
+  step: 2.5,
+  round: 1,
+  format: { format: '##.0', locale: 'de' },
+  dimension: ' €'
+}
+
+
+ +
+ + +
+
{
+  from: 5000,
+  to: 150000,
+  heterogeneity: ['50/50000'],
+  step: 1000,
+  dimension: ' $'
+}
+
+
+ +
+ + +
+
{
+  from: 0,
+  to: 500,
+  heterogeneity: ['50/100', '75/250'],
+  scale: [0, '|', 50, '|' , '100', '|', 250, '|', 500],
+  limits: false,
+  step: 1,
+  dimension: '&nbsp;m<small>2</small>'
+}
+
+
+ +
+ + +
+
{
+  from: 1,
+  to: 30,
+  heterogeneity: ['50/5', '75/15'],
+  scale: [1, '|', 3, '|', '5', '|', 15, '|', 30],
+  limits: false,
+  step: 1,
+  dimension: '',
+  skin: "blue"
+}
+
+
+ +
+ + + +
+
{
+  from: 480,
+  to: 1020,
+  step: 15,
+  dimension: '',
+  scale: ['8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00'],
+  limits: false,
+  calculate: function( value ){
+    var hours = Math.floor( value / 60 );
+    var mins = ( value - hours*60 );
+    return (hours < 10 ? "0"+hours : hours) + ":" + ( mins == 0 ? "00" : mins );
+  },
+  onstatechange: function( value ){
+    console.dir( this );
+  }
+}
+
+
+ +
+ + +
+ + + + \ No newline at end of file -- cgit v1.2.3