You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 4.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html">
  2. <head>
  3. <meta charset="utf-8">
  4. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  5. <!--#include virtual="base.html" -->
  6. <script>
  7. window.indexLoadedTime = window.performance.now();
  8. console.log("(TIME) index.html loaded:\t", indexLoadedTime);
  9. // XXX the code below listeners for errors and displays an error message
  10. // in the document body when any of the required files fails to load.
  11. // The intention is to prevent from displaying broken page.
  12. var criticalFiles = [
  13. "config.js",
  14. "utils.js",
  15. "do_external_connect.js",
  16. "interface_config.js",
  17. "logging_config.js",
  18. "lib-jitsi-meet.min.js",
  19. "app.bundle.min.js",
  20. "all.css"
  21. ];
  22. var loadErrHandler = function(e) {
  23. var target = e.target;
  24. // Error on <script> and <link>(CSS)
  25. // <script> will have .src and <link> .href
  26. var fileRef = (target.src ? target.src : target.href);
  27. if (("SCRIPT" === target.tagName || "LINK" === target.tagName)
  28. && criticalFiles.some(
  29. function(file) { return fileRef.indexOf(file) !== -1 })) {
  30. window.onload = function() {
  31. document.body.innerHTML
  32. = "The application failed to load, missing file: "
  33. + fileRef;
  34. // The whole complex part below implements page reloads with
  35. // "exponential backoff". The retry attempt is passes as
  36. // "rCounter" query parameter
  37. var href = window.location.href;
  38. var retryMatch = href.match(/.+(\?|&)rCounter=(\d+)/);
  39. var retryCountStr = retryMatch ? retryMatch[2] : "0";
  40. var retryCount = Number.parseInt(retryCountStr);
  41. if (retryMatch == null) {
  42. var separator = href.indexOf("?") === -1 ? "?" : "&";
  43. var hashIdx = href.indexOf("#");
  44. if (hashIdx === -1) {
  45. href += separator + "rCounter=1";
  46. } else {
  47. var hashPart = href.substr(hashIdx);
  48. href = href.substr(0, hashIdx)
  49. + separator + "rCounter=1" + hashPart;
  50. }
  51. } else {
  52. var separator = retryMatch[1];
  53. href = href.replace(
  54. /(\?|&)rCounter=(\d+)/,
  55. separator + "rCounter=" + (retryCount + 1));
  56. }
  57. var delay = Math.pow(2, retryCount) * 2000;
  58. window.setTimeout(
  59. function () { window.location.replace(href); }, delay);
  60. };
  61. window.removeEventListener(
  62. 'error', loadErrHandler, true /* capture phase */);
  63. }
  64. };
  65. window.addEventListener(
  66. 'error', loadErrHandler, true /* capture phase type of listener */);
  67. </script>
  68. <script><!--#include virtual="/config.js" --></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
  69. <script src="utils.js?v=1"></script>
  70. <!--#include virtual="connection_optimization/connection_optimization.html" -->
  71. <script src="connection_optimization/do_external_connect.js?v=1"></script>
  72. <script><!--#include virtual="/interface_config.js" --></script>
  73. <script><!--#include virtual="/logging_config.js" --></script>
  74. <script src="libs/lib-jitsi-meet.min.js?v=139"></script>
  75. <script src="libs/app.bundle.min.js?v=139"></script>
  76. <!--#include virtual="title.html" -->
  77. <link rel="stylesheet" href="css/all.css">
  78. <!--#include virtual="plugin.head.html" -->
  79. </head>
  80. <body>
  81. <div id="react"></div>
  82. <div id="keyboard-shortcuts" class="keyboard-shortcuts" style="display:none;">
  83. <div class="content">
  84. <ul id="keyboard-shortcuts-list" class="shortcuts-list">
  85. </ul>
  86. </div>
  87. </div>
  88. </body>
  89. </html>