-
-
+
- a = 2 + 2j
- a = 2 - 2j @@ -114,11 +114,10 @@ function addNewZero() { setZplane(poles, zeros); } -// Get the input field -var allPassValue = document.getElementById("NewAllPassValue"); +// // Get the input field +// var allPassValue = document.getElementById(""); -// Execute a function when the user releases a key on the keyboard -allPassValue.addEventListener("keyup", function(event) { +$("#NewAllPassValue").keydown(function(event) { // Number 13 is the "Enter" key on the keyboard if (event.keyCode === 13) { // Cancel the default action, if needed @@ -131,6 +130,26 @@ allPassValue.addEventListener("keyup", function(event) { } }); +function addNew() { + let target = document.getElementById("allpass_lib"); + let input = document.getElementById("NewAllPassValue").value; + target.innerHTML += "
- a = "+ input + "\ + "; +} +// // Execute a function when the user releases a key on the keyboard +// allPassValue.addEventListener("keyup", function(event) { +// // Number 13 is the "Enter" key on the keyboard +// if (event.keyCode === 13) { +// // Cancel the default action, if needed +// event.preventDefault(); +// // Trigger the button element with a click +// let target = document.getElementById("allpass_lib"); +// let input = document.getElementById("NewAllPassValue").value; +// target.innerHTML += "
- a = "+ input + "\ +// "; +// } +// }); + function addNewAllPass(a) { allPass.push(math.complex(a)); allPassNum = allPassNum + 1;