Make fading-applet more dynamic and apply proposed changes from #141

This commit is contained in:
DC6GF
2026-03-12 09:12:07 +01:00
parent 00706b1638
commit 5c68bdc8ec
+4 -2
View File
@@ -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);
}); });