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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <!--#include virtual="base.html" -->
  7. <script>
  8. window.indexLoadedTime = window.performance.now();
  9. console.log("(TIME) index.html loaded:\t", indexLoadedTime);
  10. // XXX the code below listeners for errors and displays an error message
  11. // in the document body when any of the required files fails to load.
  12. // The intention is to prevent from displaying broken page.
  13. var criticalFiles = [
  14. "config.js",
  15. "utils.js",
  16. "do_external_connect.js",
  17. "interface_config.js",
  18. "logging_config.js",
  19. "lib-jitsi-meet.min.js",
  20. "app.bundle.min.js",
  21. "all.css"
  22. ];
  23. var loadErrHandler = function(e) {
  24. var target = e.target;
  25. // Error on <script> and <link>(CSS)
  26. // <script> will have .src and <link> .href
  27. var fileRef = (target.src ? target.src : target.href);
  28. if (("SCRIPT" === target.tagName || "LINK" === target.tagName)
  29. && criticalFiles.some(
  30. function(file) { return fileRef.indexOf(file) !== -1 })) {
  31. window.onload = function() {
  32. // The whole complex part below implements page reloads with
  33. // "exponential backoff". The retry attempt is passes as
  34. // "rCounter" query parameter
  35. var href = window.location.href;
  36. var retryMatch = href.match(/.+(\?|&)rCounter=(\d+)/);
  37. var retryCountStr = retryMatch ? retryMatch[2] : "0";
  38. var retryCount = Number.parseInt(retryCountStr);
  39. if (retryMatch == null) {
  40. var separator = href.indexOf("?") === -1 ? "?" : "&";
  41. var hashIdx = href.indexOf("#");
  42. if (hashIdx === -1) {
  43. href += separator + "rCounter=1";
  44. } else {
  45. var hashPart = href.substr(hashIdx);
  46. href = href.substr(0, hashIdx)
  47. + separator + "rCounter=1" + hashPart;
  48. }
  49. } else {
  50. var separator = retryMatch[1];
  51. href = href.replace(
  52. /(\?|&)rCounter=(\d+)/,
  53. separator + "rCounter=" + (retryCount + 1));
  54. }
  55. var delay = Math.pow(2, retryCount) * 2000;
  56. if (isNaN(delay) || delay < 2000 || delay > 60000)
  57. delay = 10000;
  58. var showMoreText = "show more";
  59. var showLessText = "show less";
  60. document.body.innerHTML
  61. = "<div style='"
  62. + "position: absolute;top: 50%;left: 50%;"
  63. + "text-align: center;"
  64. + "font-size: medium;"
  65. + "font-weight: 400;"
  66. + "transform: translate(-50%, -50%)'>"
  67. + "Uh oh! We couldn't fully download everything we needed :(" // jshint ignore:line
  68. + "<br/> "
  69. + "We will try again shortly. In the mean time, check for problems with your Internet connection!" // jshint ignore:line
  70. + "<br/><br/> "
  71. + "<div id='moreInfo' style='"
  72. + "display: none;'>" + "Missing " + fileRef
  73. + "<br/><br/></div>"
  74. + "<a id='showMore' style='"
  75. + "text-decoration: underline;"
  76. + "font-size:small;"
  77. + "cursor: pointer'>" + showMoreText + "</a>"
  78. + "&nbsp;&nbsp;&nbsp;"
  79. + "<a href='" + href + "' style='"
  80. + "text-decoration: underline;"
  81. + "font-size:small;"
  82. + "'>reload now</a>"
  83. + "</div>";
  84. var showMoreElem = document.getElementById("showMore");
  85. showMoreElem.addEventListener('click', function () {
  86. var moreInfoElem
  87. = document.getElementById("moreInfo");
  88. if (showMoreElem.innerHTML === showMoreText) {
  89. moreInfoElem.setAttribute(
  90. "style",
  91. "display: block;"
  92. + "color:#FF991F;"
  93. + "font-size:small;"
  94. + "user-select:text;");
  95. showMoreElem.innerHTML = showLessText;
  96. }
  97. else {
  98. moreInfoElem.setAttribute(
  99. "style", "display: none;");
  100. showMoreElem.innerHTML = showMoreText;
  101. }
  102. });
  103. window.setTimeout(
  104. function () { window.location.replace(href); }, delay);
  105. // Call extra handler if defined.
  106. if (typeof postLoadErrorHandler === "function") {
  107. postLoadErrorHandler();
  108. }
  109. };
  110. window.removeEventListener(
  111. 'error', loadErrHandler, true /* capture phase */);
  112. }
  113. };
  114. window.addEventListener(
  115. 'error', loadErrHandler, true /* capture phase type of listener */);
  116. </script>
  117. <script><!--#include virtual="/config.js" --></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
  118. <script src="static/utils.js?v=1"></script>
  119. <!--#include virtual="connection_optimization/connection_optimization.html" -->
  120. <script src="libs/do_external_connect.min.js?v=1"></script>
  121. <script><!--#include virtual="/interface_config.js" --></script>
  122. <script><!--#include virtual="/logging_config.js" --></script>
  123. <script src="libs/lib-jitsi-meet.min.js?v=139"></script>
  124. <script src="libs/app.bundle.min.js?v=139"></script>
  125. <!--#include virtual="title.html" -->
  126. <link rel="stylesheet" href="css/all.css">
  127. <!--#include virtual="plugin.head.html" -->
  128. </head>
  129. <body>
  130. <div id="react"></div>
  131. <div id="keyboard-shortcuts" class="keyboard-shortcuts" style="display:none;">
  132. <div class="content">
  133. <ul id="keyboard-shortcuts-list" class="shortcuts-list">
  134. </ul>
  135. </div>
  136. </div>
  137. </body>
  138. </html>