PageRenderTime 5ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/doc/example-jsunit/jsunit/app/main-loader.html

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
HTML | 45 lines | 38 code | 7 blank | 0 comment | 0 complexity | 8b29b89f66bc442deeba40088811b1db MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>jsUnit External Data Document loader</title>
  6. <script language="JavaScript" type="text/javascript">
  7. var loadStatus;
  8. var callback = function () {
  9. };
  10. function buffer() {
  11. return window.frames.documentBuffer;
  12. }
  13. function load(uri) {
  14. loadStatus = 'loading';
  15. buffer().document.location.href = uri;
  16. }
  17. function loadComplete() {
  18. top.xbDEBUG.dump('main-loader.html:loadComplete(): loadStatus = ' + loadStatus + ' href=' + buffer().document.location.href);
  19. if (loadStatus == 'loading') {
  20. loadStatus = 'complete';
  21. callback();
  22. callback = function () {
  23. };
  24. }
  25. }
  26. if (top.xbDEBUG.on) {
  27. var scopeName = 'main_loader_' + (new Date()).getTime();
  28. top[scopeName] = window;
  29. top.xbDebugTraceFunction(scopeName, 'buffer');
  30. top.xbDebugTraceFunction(scopeName, 'load');
  31. top.xbDebugTraceFunction(scopeName, 'loadComplete');
  32. }
  33. </script>
  34. </head>
  35. <body>
  36. <iframe name="documentBuffer" onload="loadComplete()"></iframe>
  37. </body>
  38. </html>