diff options
author | fahimkhan | 2016-08-26 14:41:06 +0530 |
---|---|---|
committer | fahimkhan | 2016-08-26 14:41:06 +0530 |
commit | c393564dd33c6d003ae8db218dae336a35f9e5ef (patch) | |
tree | 487de076bef23fcd8b5f87bcb914bd53eeaf3b87 /views | |
parent | c634e048b6192d18eb3badda9c4c0c219dcc4ffb (diff) | |
download | Online-NgSpice-Simulator-c393564dd33c6d003ae8db218dae336a35f9e5ef.tar.gz Online-NgSpice-Simulator-c393564dd33c6d003ae8db218dae336a35f9e5ef.tar.bz2 Online-NgSpice-Simulator-c393564dd33c6d003ae8db218dae336a35f9e5ef.zip |
Plot details can be given in separate line
Diffstat (limited to 'views')
-rw-r--r-- | views/index.html | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/views/index.html b/views/index.html index 4a30753..1d45ab1 100644 --- a/views/index.html +++ b/views/index.html @@ -111,11 +111,6 @@ v(in) v(out) </div>
- <!-- <hr> -->
-
-
-
-
</div>
<footer class="footer">
<div class="container">
@@ -149,10 +144,22 @@ v(in) v(out) submitButton.addEventListener("click", function() {
var netlist = editorContent.value;
- var plotOption = plotVariable.value;
+ var plotDetails = plotVariable.value.split("\n");
+ // var plotDetails = plotOption.split("\n");
+ var plotList = [];
+ for(var i = 0;i < plotDetails.length;i++){
+ if (plotDetails[i].trim()==""){
+ continue
+ }
+ else{
+ plotList.push(plotDetails[i].trim());
+ }
+
+ }
+
console.log("Netlist :"+editorContent.value);
messages.innerHTML = "";
- socket.emit("netlist",{"netlist":netlist,"plotOption":plotOption});
+ socket.emit("netlist",{"netlist":netlist,"plotList":plotList});
document.getElementById('plot').style.display = 'block';
});
|