summaryrefslogtreecommitdiff
path: root/static/test.html
diff options
context:
space:
mode:
authortim b <timb@camcompu.home>2010-04-07 18:59:50 -0700
committertim b <timb@camcompu.home>2010-04-07 18:59:50 -0700
commit6440348618ade4fbcb541c40473074833a47d198 (patch)
tree537ab7e4f0af7deba51bbfb360fe490968d651f8 /static/test.html
parent4f09c8a882e8ae2ad1c7944a8c2a5939c9c9f7ad (diff)
parent42df4633bb7588e8632e45013880ee4fc2bc3d6c (diff)
fixing merge conflicts
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>