summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorfahimkhan2016-08-23 12:02:09 +0530
committerfahimkhan2016-08-23 12:02:09 +0530
commitaf10f80e9f318f0329e477a07d540b1aee19baeb (patch)
tree05911153b9eb947ab174d3ca9254cf62d6bdf202 /views
parent9c1e0a4a5fd4099302e63144987f67f5b28b4890 (diff)
downloadOnline-NgSpice-Simulator-af10f80e9f318f0329e477a07d540b1aee19baeb.tar.gz
Online-NgSpice-Simulator-af10f80e9f318f0329e477a07d540b1aee19baeb.tar.bz2
Online-NgSpice-Simulator-af10f80e9f318f0329e477a07d540b1aee19baeb.zip
Subject: Added plots details
Description: Now user can write what voltage or current needs to plot
Diffstat (limited to 'views')
-rw-r--r--views/index.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/views/index.html b/views/index.html
index 3991361..2971225 100644
--- a/views/index.html
+++ b/views/index.html
@@ -78,6 +78,12 @@ v1 in gnd pwl(0m 0 0.5m 5 50m 5 50.5m 0 100m 0)
.endc
.end
</textarea>
+ <h3>Plots:</h3>
+ <textarea class="form-control" id="plotOption" rows="1">
+v(in) v(out)
+
+ </textarea>
+
</div>
</form>
@@ -139,12 +145,14 @@ v1 in gnd pwl(0m 0 0.5m 5 50m 5 50.5m 0 100m 0)
var clearButton = document.getElementById("doClear");
var messages = document.getElementById("messages");
var plotArea = document.getElementById("plotArea");
+ var plotVariable = document.getElementById("plotOption");
submitButton.addEventListener("click", function() {
var netlist = editorContent.value;
+ var plotOption = plotVariable.value;
console.log("Netlist :"+editorContent.value);
messages.innerHTML = "";
- socket.emit("netlist", netlist);
+ socket.emit("netlist",{"netlist":netlist,"plotOption":plotOption});
document.getElementById('plot').style.display = 'block';
});