diff options
| author | sostler <sbostler@gmail.com> | 2010-04-06 21:53:42 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-06 21:53:42 -0400 |
| commit | a0334eba97fb985ee290c11f6ee72196dbe889b0 (patch) | |
| tree | d348e857b04d4e47bfb7afb712c7bee70545a6cc /static/test.html | |
| parent | a514554be0b15d937959af2d52c03da7eee3d60f (diff) | |
| parent | ab5e22770ce39adc94f444de18763a4b4674113a (diff) | |
Merge RM of static/help.html
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> |
