Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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