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

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