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

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