diff options
Diffstat (limited to 'views/script')
-rw-r--r-- | views/script/form.js | 15 | ||||
-rw-r--r-- | views/script/gui.js | 11 | ||||
-rw-r--r-- | views/script/savenetlist.js | 19 |
3 files changed, 18 insertions, 27 deletions
diff --git a/views/script/form.js b/views/script/form.js new file mode 100644 index 0000000..1d2bf2a --- /dev/null +++ b/views/script/form.js @@ -0,0 +1,15 @@ +var socket = io(); + +jQuery("#websocket_form").click(function(){ + var msg = jQuery("#msgs").val(); + if(msg!=''){ + socket.emit('chat message', msg); + } + jQuery("#msgs").val(''); + return false; + }); + +socket.on('chat message', function(msg){ + console.log(msg); +}); + diff --git a/views/script/gui.js b/views/script/gui.js index e7325ae..4ba11b0 100644 --- a/views/script/gui.js +++ b/views/script/gui.js @@ -696,18 +696,13 @@ jQuery("#analysis_selectbox").change(function(){ change_val = "0";
Flag = "";
//console.log("out")
- console.log(globalVariable+" gv\n");
-
-console.log(globalVariable+" gv1\n");
-console.log(Flag+"1 s\n");
if (change_val == "0")
{
Flag = jQuery("#webtronics_netlist_text_area").val();
- console.log(Flag+"11s\n");
/*-------------------------------------------------------------------------------------------------------------------------------------
Here are the conditions concatenated to give final netlist values for dc all cases
---------------------------------------------------------------------------------------------------------------------------------------------*/
@@ -742,14 +737,14 @@ Here are the all Transiet Cases for generating final netlist values change_val = "1";
}
-console.log(Flag+"2\n");
+ socket.emit('netlist', jQuery("#webtronics_netlist_text_area").val());
}
else if( change_val == "1")
{
- console.log(Flag+"as\n");
+
jQuery("#webtronics_netlist_text_area").val("");
//console.log("if when 1")
@@ -778,7 +773,7 @@ else if( change_val == "1") change_val = "1";
}
- console.log(Flag+"as\n");
+ socket.emit('netlist', jQuery("#webtronics_netlist_text_area").val());
}
diff --git a/views/script/savenetlist.js b/views/script/savenetlist.js index 12e2cd1..bdabcfd 100644 --- a/views/script/savenetlist.js +++ b/views/script/savenetlist.js @@ -512,25 +512,6 @@ jQuery("#stop_time_selectbox").change(function(){ - - - - - - - - - - - - - - - -/*------------------------------------------------------------------------------------------------------------------------------------------------ -Netlist Generation -----------------------*/ - }); |