Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.html 7.3KB

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