Browse Source

auto commit

dev8
jfinn 4 years ago
parent
commit
bc424faae8
1 changed files with 1 additions and 161 deletions
  1. 1
    161
      ji0.html

+ 1
- 161
ji0.html View File

@@ -99,167 +99,7 @@
99 99
 
100 100
 
101 101
 
102
-    <script>
103
-        // Dynamically generate the manifest location URL. It must be served from the document origin, and we may have
104
-        // the base pointing to the CDN. This way we can generate a full URL which will bypass the base.
105
-        document.querySelector('#manifest-placeholder').setAttribute('href', window.location.origin + '/manifest.json');
106
-
107
-        document.addEventListener('DOMContentLoaded', () => {
108
-            if (!JitsiMeetJS.app) {
109
-                return;
110
-            }
111
-
112
-            JitsiMeetJS.app.renderEntryPoint({
113
-                Component: JitsiMeetJS.app.entryPoints.APP
114
-            })
115
-
116
-            const isElectron = navigator.userAgent.includes('Electron');
117
-            const shouldRegisterWorker = !isElectron && 'serviceWorker' in navigator;
118
-
119
-            if (shouldRegisterWorker) {
120
-                navigator.serviceWorker
121
-                    .register(window.location.origin + '/pwa-worker.js')
122
-                    .then(reg => {
123
-                        console.log('Service worker registered.', reg);
124
-                    })
125
-                    .catch(err => {
126
-                        console.log(err);
127
-                    });
128
-            }
129
-        });
130
-    </script>
131
-    <script>
132
-        // IE11 and earlier can be identified via their user agent and be
133
-        // redirected to a page that is known to have no newer js syntax.
134
-        if (window.navigator.userAgent.match(/(MSIE|Trident)/)) {
135
-            var roomName = encodeURIComponent(window.location.pathname);
136
-            window.location.href = "static/recommendedBrowsers.html" + "?room=" + roomName;
137
-        }
138
-
139
-        window.indexLoadedTime = window.performance.now();
140
-        console.log("(TIME) index.html loaded:\t", indexLoadedTime);
141
-        // XXX the code below listeners for errors and displays an error message
142
-        // in the document body when any of the required files fails to load.
143
-        // The intention is to prevent from displaying broken page.
144
-        var criticalFiles = [
145
-            "config.js",
146
-            "utils.js",
147
-            "do_external_connect.js",
148
-            "interface_config.js",
149
-            "logging_config.js",
150
-            "lib-jitsi-meet.min.js",
151
-            "app.bundle.min.js",
152
-            "all.css"
153
-        ];
154
-        var loadErrHandler = function(e) {
155
-            var target = e.target;
156
-            // Error on <script> and <link>(CSS)
157
-            // <script> will have .src and <link> .href
158
-            var fileRef = (target.src ? target.src : target.href);
159
-            if (("SCRIPT" === target.tagName || "LINK" === target.tagName)
160
-                && criticalFiles.some(
161
-                    function(file) { return fileRef.indexOf(file) !== -1 })) {
162
-                window.onload = function() {
163
-                    // The whole complex part below implements page reloads with
164
-                    // "exponential backoff". The retry attempt is passes as
165
-                    // "rCounter" query parameter
166
-                    var href = window.location.href;
167
-
168
-                    var retryMatch = href.match(/.+(\?|&)rCounter=(\d+)/);
169
-                    var retryCountStr = retryMatch ? retryMatch[2] : "0";
170
-                    var retryCount = Number.parseInt(retryCountStr);
171
-
172
-                    if (retryMatch == null) {
173
-                        var separator = href.indexOf("?") === -1 ? "?" : "&";
174
-                        var hashIdx = href.indexOf("#");
175
-
176
-                        if (hashIdx === -1) {
177
-                            href += separator + "rCounter=1";
178
-                        } else {
179
-                            var hashPart = href.substr(hashIdx);
180
-
181
-                            href = href.substr(0, hashIdx)
182
-                                + separator + "rCounter=1" + hashPart;
183
-                        }
184
-                    } else {
185
-                        var separator = retryMatch[1];
186
-
187
-                        href = href.replace(
188
-                            /(\?|&)rCounter=(\d+)/,
189
-                            separator + "rCounter=" + (retryCount + 1));
190
-                    }
191
-
192
-                    var delay = Math.pow(2, retryCount) * 2000;
193
-                    if (isNaN(delay) || delay < 2000 || delay > 60000)
194
-                        delay = 10000;
195
-
196
-                    var showMoreText = "show more";
197
-                    var showLessText = "show less";
198
-
199
-                    document.body.innerHTML
200
-                        = "<div style='"
201
-                        + "position: absolute;top: 50%;left: 50%;"
202
-                        + "text-align: center;"
203
-                        + "font-size: medium;"
204
-                        + "font-weight: 400;"
205
-                        + "transform: translate(-50%, -50%)'>"
206
-                        + "Uh oh! We couldn't fully download everything we needed :("
207
-                        + "<br/> "
208
-                        + "We will try again shortly. In the mean time, check for problems with your Internet connection!"
209
-                        + "<br/><br/> "
210
-                        + "<div id='moreInfo' style='"
211
-                        + "display: none;'>" + "Missing " + fileRef
212
-                        + "<br/><br/></div>"
213
-                        + "<a id='showMore' style='"
214
-                        + "text-decoration: underline;"
215
-                        + "font-size:small;"
216
-                        + "cursor: pointer'>" + showMoreText + "</a>"
217
-                        + "&nbsp;&nbsp;&nbsp;"
218
-                        + "<a id ='reloadLink' style='"
219
-                        + "text-decoration: underline;"
220
-                        + "font-size:small;"
221
-                        + "'>reload now</a>"
222
-                        + "</div>";
223
-
224
-                    var reloadLink = document.getElementById('reloadLink');
225
-                    reloadLink.setAttribute('href', href);
226
-
227
-                    var showMoreElem = document.getElementById("showMore");
228
-                    showMoreElem.addEventListener('click', function () {
229
-                            var moreInfoElem
230
-                                    = document.getElementById("moreInfo");
231
-
232
-                            if (showMoreElem.innerHTML === showMoreText) {
233
-                                moreInfoElem.setAttribute(
234
-                                    "style",
235
-                                    "display: block;"
236
-                                    + "color:#FF991F;"
237
-                                    + "font-size:small;"
238
-                                    + "user-select:text;");
239
-                                showMoreElem.innerHTML = showLessText;
240
-                            }
241
-                            else {
242
-                                moreInfoElem.setAttribute(
243
-                                    "style", "display: none;");
244
-                                showMoreElem.innerHTML = showMoreText;
245
-                            }
246
-                        });
247
-
248
-                    window.setTimeout(
249
-                        function () { window.location.replace(href); }, delay);
250
-
251
-                    // Call extra handler if defined.
252
-                    if (typeof postLoadErrorHandler === "function") {
253
-                        postLoadErrorHandler(fileRef);
254
-                    }
255
-                };
256
-                window.removeEventListener(
257
-                    'error', loadErrHandler, true /* capture phase */);
258
-            }
259
-        };
260
-        window.addEventListener(
261
-            'error', loadErrHandler, true /* capture phase type of listener */);
262
-    </script>
102
+<!--#include virtual="/ign/j8/inc/index/inline_include.html" -->
263 103
     <script><!--#include virtual="/config.js" --></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
264 104
     <!--#include virtual="connection_optimization/connection_optimization.html" -->
265 105
     <script src="libs/do_external_connect.min.js?v=1"></script>

Loading…
Cancel
Save