Merge pull request #144 from DC6GF/fading

Make fading-applet more dynamic and apply proposed changes from #141
This commit is contained in:
Matthias Jung
2026-03-22 00:28:51 +01:00
committed by GitHub
+4 -2
View File
@@ -56,6 +56,7 @@
]
},
options: {
animation:false,
responsive:true,
scales: {
x: {
@@ -97,6 +98,7 @@
]
},
options: {
animation:false,
scales: {
y: {
min: -200,
@@ -125,12 +127,12 @@
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
$("#amplitude").on("change", function() {
$("#amplitude").on("input", function() {
amplitude = $(this).val();
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
});
$("#phase").on("change", function() {
$("#phase").on("input", function() {
phase = $(this).val();
generateValues(-1*Math.PI, 4*Math.PI, Math.PI/16);
});