summaryrefslogtreecommitdiff
path: root/views/script
diff options
context:
space:
mode:
authorSaloniGoyal2016-05-28 12:07:46 +0530
committerSaloniGoyal2016-05-28 12:07:46 +0530
commit228f8ac592c781a208cf2d222f5fd663406daccf (patch)
treed305dda7eaf38117517c3ec661e81126a29668ab /views/script
parent580e62658e53c4059626de70377954862fc84a00 (diff)
downloadeSimWebApp-228f8ac592c781a208cf2d222f5fd663406daccf.tar.gz
eSimWebApp-228f8ac592c781a208cf2d222f5fd663406daccf.tar.bz2
eSimWebApp-228f8ac592c781a208cf2d222f5fd663406daccf.zip
Using socket.io storing and deleting the temp netlist
Diffstat (limited to 'views/script')
-rw-r--r--views/script/form.js15
-rw-r--r--views/script/gui.js11
-rw-r--r--views/script/savenetlist.js19
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
-----------------------*/
-
});