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