Difference between revisions of "Circles on circles"

From JSXGraph Wiki
Jump to navigationJump to search
Line 18: Line 18:
 
value: 60,
 
value: 60,
 
slide: function(event, ui) {
 
slide: function(event, ui) {
$("#amount1").val(ui.value);
+
$("#c1").val(ui.value);
 
}
 
}
 
});
 
});
$("#amount1").val($("#slider1").slider("value"));
+
$("#c1").val($("#slider1").slider("value")/100.0);
 
});
 
});
 
</script>
 
</script>
Line 27: Line 27:
 
<div class="sliders" style="margin:5px">
 
<div class="sliders" style="margin:5px">
 
   <p>
 
   <p>
     <label for="amount1">Volume:</label>
+
     <label for="c1">c<sub>1</sub>:</label>
     <input type="text" id="amount1" style="border:0; color:#f6931f; font-weight:bold;" />
+
     <input type="text" id="c1" style="border:0; color:#f6931f; font-weight:bold;" />
 
   </p>
 
   </p>
 
   <div id="slider1" style="height:200px;"></div>
 
   <div id="slider1" style="height:200px;"></div>

Revision as of 12:34, 29 June 2009