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

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