diff options
| author | tim b <timb@camcompu.home> | 2010-04-07 18:59:50 -0700 |
|---|---|---|
| committer | tim b <timb@camcompu.home> | 2010-04-07 18:59:50 -0700 |
| commit | 6440348618ade4fbcb541c40473074833a47d198 (patch) | |
| tree | 537ab7e4f0af7deba51bbfb360fe490968d651f8 /static/test.html | |
| parent | 4f09c8a882e8ae2ad1c7944a8c2a5939c9c9f7ad (diff) | |
| parent | 42df4633bb7588e8632e45013880ee4fc2bc3d6c (diff) | |
fixing merge conflicts
Diffstat (limited to 'static/test.html')
| -rwxr-xr-x | static/test.html | 36 |
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> |
