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

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