diff options
-rw-r--r-- | routes/routes.js | 3 | ||||
-rw-r--r-- | views/schematic.html | 8 | ||||
-rw-r--r-- | views/script/form.js | 10 | ||||
-rw-r--r-- | views/style/schematic.css | 4 |
4 files changed, 1 insertions, 24 deletions
diff --git a/routes/routes.js b/routes/routes.js index bcba542..942960f 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -33,9 +33,6 @@ module.exports = function(express,app,io,fs,exec){ }); }); - socket.on('chat message', function(msg){ - console.log('message: ' + msg); - }); socket.on('netlist', function(msg){ var update = msg.replace('dumpv', '/tmp' + socket.id.toLowerCase() + '-dumpv'); var result = update.replace('dumpi', '/tmp' + socket.id.toLowerCase() + '-dumpi'); diff --git a/views/schematic.html b/views/schematic.html index 63e2476..b571ab8 100644 --- a/views/schematic.html +++ b/views/schematic.html @@ -71,13 +71,7 @@ toolbar <a href="http://esim.fossee.in/" target="_blank"><img src="icons/logo.png"/></a> <br> <a href="https://github.com/FOSSEE/eSimWebApp" target="_blank">Fossee</a> - <br> - <br> - <br> - <form id="websocket_form"> - <input id="msgs"> - <button id="send_to_server">Send</button> - </form> + </div> <!-- diff --git a/views/script/form.js b/views/script/form.js index 31099bc..42be640 100644 --- a/views/script/form.js +++ b/views/script/form.js @@ -1,11 +1 @@ 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; - }); - diff --git a/views/style/schematic.css b/views/style/schematic.css index 582ee1c..1a3f93f 100644 --- a/views/style/schematic.css +++ b/views/style/schematic.css @@ -317,10 +317,6 @@ float:left; } -#msgs{ - width: 85%; - height: 500% -} #webtronics_chip_display{ width:200px; |