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

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