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