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

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