summaryrefslogtreecommitdiff
path: root/static/test.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/test.html')
-rwxr-xr-xstatic/test.html36
1 files changed, 0 insertions, 36 deletions
diff --git a/static/test.html b/static/test.html
deleted file mode 100755
index 8cffc8d..0000000
--- a/static/test.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
- <head>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
-
- <script>
- Start = new Date().getTime();
- Timestamp = new Date().getTime();
-
- function refresh() {
- var onSuccess = function(json) {
- Timestamp = json.timestamp;
- $('body').prepend('<div>' + (Timestamp - Start) + ": " + json.messages.length + " messages</div>");
- setTimeout(refresh, 1000);
- };
- var onError = function(resp, textStatus, errorThrown) {
- $('body').prepend('<div style="color: red">' + textStatus + ', ' + errorThrown + '</div>');
- setTimeout(refresh, 1000);
- };
-
- $.ajax({
- type: 'GET',
- timeout: 5000,
- url: "/refresh",
- data: { 'room': "RoomA", 'since': Timestamp },
- cache: false,
- dataType: 'json',
- success: onSuccess,
- error: onError
- });
- }
- $(document).ready(refresh);
- </script>
- </head>
- <body>
- </body>
-</html>