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.

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