Make fading-applet more dynamic and apply proposed changes from #141
This commit is contained in:
@@ -56,6 +56,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
animation:false,
|
||||||
responsive:true,
|
responsive:true,
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
@@ -97,6 +98,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
animation:false,
|
||||||
scales: {
|
scales: {
|
||||||
y: {
|
y: {
|
||||||
min: -200,
|
min: -200,
|
||||||
@@ -125,12 +127,12 @@
|
|||||||
|
|
||||||
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
|
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
|
||||||
|
|
||||||
$("#amplitude").on("change", function() {
|
$("#amplitude").on("input", function() {
|
||||||
amplitude = $(this).val();
|
amplitude = $(this).val();
|
||||||
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
|
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#phase").on("change", function() {
|
$("#phase").on("input", function() {
|
||||||
phase = $(this).val();
|
phase = $(this).val();
|
||||||
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
|
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user