Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.html 6.7KB

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