Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.html 7.8KB

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