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 7.4KB

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