diff --git a/examples/chat_html_root/favicon.ico b/examples/chat_server/web_root/favicon.ico similarity index 100% rename from examples/chat_html_root/favicon.ico rename to examples/chat_server/web_root/favicon.ico diff --git a/examples/chat_html_root/index.html b/examples/chat_server/web_root/index.html similarity index 100% rename from examples/chat_html_root/index.html rename to examples/chat_server/web_root/index.html diff --git a/examples/chat_html_root/jquery.js b/examples/chat_server/web_root/jquery.js similarity index 100% rename from examples/chat_html_root/jquery.js rename to examples/chat_server/web_root/jquery.js diff --git a/examples/chat_html_root/login.html b/examples/chat_server/web_root/login.html similarity index 100% rename from examples/chat_html_root/login.html rename to examples/chat_server/web_root/login.html diff --git a/examples/chat_html_root/logo.png b/examples/chat_server/web_root/logo.png similarity index 100% rename from examples/chat_html_root/logo.png rename to examples/chat_server/web_root/logo.png diff --git a/examples/chat_html_root/main.js b/examples/chat_server/web_root/main.js similarity index 92% rename from examples/chat_html_root/main.js rename to examples/chat_server/web_root/main.js index 6204d1ad..00c3e63f 100644 --- a/examples/chat_html_root/main.js +++ b/examples/chat_server/web_root/main.js @@ -3,7 +3,7 @@ var chat = { // Backend URL, string. // 'http://backend.address.com' or '' if backend is the same as frontend - backendUrl: '', + backendUrl: 'api.lp', maxVisibleMessages: 10, errorMessageFadeOutTimeoutMs: 2000, errorMessageFadeOutTimer: null, @@ -20,7 +20,7 @@ chat.refresh = function(data) { if (data === undefined) { return; } - + $.each(data, function(index, entry) { var row = $('