f2b682cf7d80aa6948a659dfd79377262eca5280
[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 <!--
3
4 Copyright (C) 2020 8x8, Inc
5 Copyright (C) 2020 Free Software Foundation
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
21 -->
22 <head>
23 <!--#include virtual="head.html" -->
24 <meta charset="utf-8">
25 <meta http-equiv="content-type" content="text/html;charset=utf-8">
26 <meta name="viewport" content="width=device-width, initial-scale=1.0">
27 <!--#include virtual="base.html" -->
28
29 <link rel="stylesheet" href="css/all.css?v=3729">
30
31 <script type="text/javascript">
32 /** @licstart The following is the entire license notice for the
33 * JavaScript code in this page
34 *
35 * Copyright (C) 8x8, Inc.
36 *
37 * Licensed under the Apache License, Version 2.0 (the \"License\");
38 * you may not use this file except in compliance with the License.
39 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
40 *
41 * @licend The above is the entire license notice
42 * for the JavaScript code in this page.
43 */
44 </script>
45
46 <script>
47 // @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
48 // IE11 and earlier can be identified via their user agent and be
49 // redirected to a page that is known to have no newer js syntax.
50 if (window.navigator.userAgent.match(/(MSIE|Trident)/)) {
51 window.location.href = "static/recommendedBrowsers.html";
52 }
53
54 window.indexLoadedTime = window.performance.now();
55 console.log("(TIME) index.html loaded:\t", indexLoadedTime);
56 // XXX the code below listeners for errors and displays an error message
57 // in the document body when any of the required files fails to load.
58 // The intention is to prevent from displaying broken page.
59 var criticalFiles = [
60 "config.js",
61 "utils.js",
62 "do_external_connect.js",
63 "interface_config.js",
64 "logging_config.js",
65 "lib-jitsi-meet.min.js",
66 "app.bundle.min.js",
67 "all.css?v=3729"
68 ];
69 var loadErrHandler = function(e) {
70 var target = e.target;
71 // Error on <script> and <link>(CSS)
72 // <script> will have .src and <link> .href
73 var fileRef = (target.src ? target.src : target.href);
74 if (("SCRIPT" === target.tagName || "LINK" === target.tagName)
75 && criticalFiles.some(
76 function(file) { return fileRef.indexOf(file) !== -1 })) {
77 window.onload = function() {
78 // The whole complex part below implements page reloads with
79 // "exponential backoff". The retry attempt is passes as
80 // "rCounter" query parameter
81 var href = window.location.href;
82
83 var retryMatch = href.match(/.+(\?|&)rCounter=(\d+)/);
84 var retryCountStr = retryMatch ? retryMatch[2] : "0";
85 var retryCount = Number.parseInt(retryCountStr);
86
87 if (retryMatch == null) {
88 var separator = href.indexOf("?") === -1 ? "?" : "&";
89 var hashIdx = href.indexOf("#");
90
91 if (hashIdx === -1) {
92 href += separator + "rCounter=1";
93 } else {
94 var hashPart = href.substr(hashIdx);
95
96 href = href.substr(0, hashIdx)
97 + separator + "rCounter=1" + hashPart;
98 }
99 } else {
100 var separator = retryMatch[1];
101
102 href = href.replace(
103 /(\?|&)rCounter=(\d+)/,
104 separator + "rCounter=" + (retryCount + 1));
105 }
106
107 var delay = Math.pow(2, retryCount) * 2000;
108 if (isNaN(delay) || delay < 2000 || delay > 60000)
109 delay = 10000;
110
111 var showMoreText = "show more";
112 var showLessText = "show less";
113
114 document.body.innerHTML
115 = "<div style='"
116 + "position: absolute;top: 50%;left: 50%;"
117 + "text-align: center;"
118 + "font-size: medium;"
119 + "font-weight: 400;"
120 + "transform: translate(-50%, -50%)'>"
121 + "Uh oh! We couldn't fully download everything we needed :("
122 + "<br/> "
123 + "We will try again shortly. In the mean time, check for problems with your Internet connection!"
124 + "<br/><br/> "
125 + "<div id='moreInfo' style='"
126 + "display: none;'>" + "Missing " + fileRef
127 + "<br/><br/></div>"
128 + "<a id='showMore' style='"
129 + "text-decoration: underline;"
130 + "font-size:small;"
131 + "cursor: pointer'>" + showMoreText + "</a>"
132 + "&nbsp;&nbsp;&nbsp;"
133 + "<a id ='reloadLink' style='"
134 + "text-decoration: underline;"
135 + "font-size:small;"
136 + "'>reload now</a>"
137 + "</div>";
138
139 var reloadLink = document.getElementById('reloadLink');
140 reloadLink.setAttribute('href', href);
141
142 var showMoreElem = document.getElementById("showMore");
143 showMoreElem.addEventListener('click', function () {
144 var moreInfoElem
145 = document.getElementById("moreInfo");
146
147 if (showMoreElem.innerHTML === showMoreText) {
148 moreInfoElem.setAttribute(
149 "style",
150 "display: block;"
151 + "color:#FF991F;"
152 + "font-size:small;"
153 + "user-select:text;");
154 showMoreElem.innerHTML = showLessText;
155 }
156 else {
157 moreInfoElem.setAttribute(
158 "style", "display: none;");
159 showMoreElem.innerHTML = showMoreText;
160 }
161 });
162
163 window.setTimeout(
164 function () { window.location.replace(href); }, delay);
165
166 // Call extra handler if defined.
167 if (typeof postLoadErrorHandler === "function") {
168 postLoadErrorHandler(fileRef);
169 }
170 };
171 window.removeEventListener(
172 'error', loadErrHandler, true /* capture phase */);
173 }
174 };
175 window.addEventListener(
176 'error', loadErrHandler, true /* capture phase type of listener */);
177 // @license-end
178 </script>
179 <script><!--#include virtual="/config.js" --></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
180 <!--#include virtual="connection_optimization/connection_optimization.html" -->
181 <script src="libs/do_external_connect.min.js?v=1"></script>
182 <script><!--#include virtual="/interface_config.js" --></script>
183 <script><!--#include virtual="/logging_config.js" --></script>
184 <script src="libs/lib-jitsi-meet.min.js?v=3729"></script>
185 <script src="libs/app.bundle.min.js?v=3729"></script>
186 <!--#include virtual="title.html" -->
187 <!--#include virtual="plugin.head.html" -->
188 <!--#include virtual="static/welcomePageAdditionalContent.html" -->
189 <!--#include virtual="static/settingsToolbarAdditionalContent.html" -->
190 </head>
191 <body>
192 <!--#include virtual="body.html" -->
193 <div id="react"></div>
194
195 <div id="fsffooter">
196 <div class="content">
197 <p style="color: white">We prioritize your privacy and do not sell or distribute our contact lists. Read our full <a href="https://www.fsf.org/about/free-software-foundation-privacy-policy">privacy policy</a>.</p>
198 <p ><a href="https://weblabels.fsf.org/jitsi.member.fsf.org/CURRENT/" rel="jslicense">JavaScript license information</a></p>
199 </div>
200 </body>
201 </html>