diff --git a/lib/modules/webserver/backend/index.html b/lib/modules/webserver/backend/index.html
index bfacb2bfd..f154132fd 100644
--- a/lib/modules/webserver/backend/index.html
+++ b/lib/modules/webserver/backend/index.html
@@ -1,22 +1,151 @@
-Welcome to Embark!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Embark
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+ Contract Name |
+ Address |
+ Status |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+ $tr.append(
+ $('Manage | '),
+ $(' | ')
+ );
+ $tr.appendTo('#contractsTable');
+ });
+ });
+
+
+ var ws = new WebSocket("ws://localhost:8000/embark/logs");
+ ws.onopen = function() {
+ };
+ ws.onmessage = function (evt) {
+ var received_msg = evt.data;
+ var log = JSON.parse(received_msg);
+ console.log(log);
+ $(".log").append('
[' + log.logLevel + '] ' + log.msg_clear);
+ };
+ ws.onclose = function() {
+ console.log("Connection is closed...");
+ };
+ window.onbeforeunload = function(event) {
+ ws.close();
+ };
+
+ $(".command-line input").keypress(function(e) {
+ if (e.which == 13) {
+ let value = $(".command-line input").val();
+
+ $.post( "/embark/console", { cmd: value }).done(function( data ) {
+ $(".log").append('
' + data.replace(/\n/g, '
'));
+ });
+
+ $(".command-line input").val('');
+ }
+ });
+
+
+
+
+
+
+
+
+