From af10f80e9f318f0329e477a07d540b1aee19baeb Mon Sep 17 00:00:00 2001 From: fahimkhan Date: Tue, 23 Aug 2016 12:02:09 +0530 Subject: Subject: Added plots details Description: Now user can write what voltage or current needs to plot --- views/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'views') 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 +

Plots:

+ + @@ -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'; }); -- cgit