浏览代码

auto commit

dev8
jfinn 4 年前
父节点
当前提交
ba9d8539b4
共有 1 个文件被更改,包括 195 次插入0 次删除
  1. 195
    0
      ji0.html

+ 195
- 0
ji0.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, maximum-scale=1.0">
7
+    <meta name="theme-color" content="#2A3A4B">
8
+    <!--#include virtual="base.html" -->
9
+
10
+    <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
11
+    <link rel="stylesheet" href="css/all.css">
12
+    <link rel="manifest" id="manifest-placeholder">
13
+
14
+    <script>
15
+        // Dynamically generate the manifest location URL. It must be served from the document origin, and we may have
16
+        // the base pointing to the CDN. This way we can generate a full URL which will bypass the base.
17
+        document.querySelector('#manifest-placeholder').setAttribute('href', window.location.origin + '/manifest.json');
18
+
19
+        document.addEventListener('DOMContentLoaded', () => {
20
+            if (!JitsiMeetJS.app) {
21
+                return;
22
+            }
23
+
24
+            JitsiMeetJS.app.renderEntryPoint({
25
+                Component: JitsiMeetJS.app.entryPoints.APP
26
+            })
27
+
28
+            const isElectron = navigator.userAgent.includes('Electron');
29
+            const shouldRegisterWorker = !isElectron && 'serviceWorker' in navigator;
30
+
31
+            if (shouldRegisterWorker) {
32
+                navigator.serviceWorker
33
+                    .register(window.location.origin + '/pwa-worker.js')
34
+                    .then(reg => {
35
+                        console.log('Service worker registered.', reg);
36
+                    })
37
+                    .catch(err => {
38
+                        console.log(err);
39
+                    });
40
+            }
41
+        });
42
+    </script>
43
+    <script>
44
+        // IE11 and earlier can be identified via their user agent and be
45
+        // redirected to a page that is known to have no newer js syntax.
46
+        if (window.navigator.userAgent.match(/(MSIE|Trident)/)) {
47
+            var roomName = encodeURIComponent(window.location.pathname);
48
+            window.location.href = "static/recommendedBrowsers.html" + "?room=" + roomName;
49
+        }
50
+
51
+        window.indexLoadedTime = window.performance.now();
52
+        console.log("(TIME) index.html loaded:\t", indexLoadedTime);
53
+        // XXX the code below listeners for errors and displays an error message
54
+        // in the document body when any of the required files fails to load.
55
+        // The intention is to prevent from displaying broken page.
56
+        var criticalFiles = [
57
+            "config.js",
58
+            "utils.js",
59
+            "do_external_connect.js",
60
+            "interface_config.js",
61
+            "logging_config.js",
62
+            "lib-jitsi-meet.min.js",
63
+            "app.bundle.min.js",
64
+            "all.css"
65
+        ];
66
+        var loadErrHandler = function(e) {
67
+            var target = e.target;
68
+            // Error on <script> and <link>(CSS)
69
+            // <script> will have .src and <link> .href
70
+            var fileRef = (target.src ? target.src : target.href);
71
+            if (("SCRIPT" === target.tagName || "LINK" === target.tagName)
72
+                && criticalFiles.some(
73
+                    function(file) { return fileRef.indexOf(file) !== -1 })) {
74
+                window.onload = function() {
75
+                    // The whole complex part below implements page reloads with
76
+                    // "exponential backoff". The retry attempt is passes as
77
+                    // "rCounter" query parameter
78
+                    var href = window.location.href;
79
+
80
+                    var retryMatch = href.match(/.+(\?|&)rCounter=(\d+)/);
81
+                    var retryCountStr = retryMatch ? retryMatch[2] : "0";
82
+                    var retryCount = Number.parseInt(retryCountStr);
83
+
84
+                    if (retryMatch == null) {
85
+                        var separator = href.indexOf("?") === -1 ? "?" : "&";
86
+                        var hashIdx = href.indexOf("#");
87
+
88
+                        if (hashIdx === -1) {
89
+                            href += separator + "rCounter=1";
90
+                        } else {
91
+                            var hashPart = href.substr(hashIdx);
92
+
93
+                            href = href.substr(0, hashIdx)
94
+                                + separator + "rCounter=1" + hashPart;
95
+                        }
96
+                    } else {
97
+                        var separator = retryMatch[1];
98
+
99
+                        href = href.replace(
100
+                            /(\?|&)rCounter=(\d+)/,
101
+                            separator + "rCounter=" + (retryCount + 1));
102
+                    }
103
+
104
+                    var delay = Math.pow(2, retryCount) * 2000;
105
+                    if (isNaN(delay) || delay < 2000 || delay > 60000)
106
+                        delay = 10000;
107
+
108
+                    var showMoreText = "show more";
109
+                    var showLessText = "show less";
110
+
111
+                    document.body.innerHTML
112
+                        = "<div style='"
113
+                        + "position: absolute;top: 50%;left: 50%;"
114
+                        + "text-align: center;"
115
+                        + "font-size: medium;"
116
+                        + "font-weight: 400;"
117
+                        + "transform: translate(-50%, -50%)'>"
118
+                        + "Uh oh! We couldn't fully download everything we needed :("
119
+                        + "<br/> "
120
+                        + "We will try again shortly. In the mean time, check for problems with your Internet connection!"
121
+                        + "<br/><br/> "
122
+                        + "<div id='moreInfo' style='"
123
+                        + "display: none;'>" + "Missing " + fileRef
124
+                        + "<br/><br/></div>"
125
+                        + "<a id='showMore' style='"
126
+                        + "text-decoration: underline;"
127
+                        + "font-size:small;"
128
+                        + "cursor: pointer'>" + showMoreText + "</a>"
129
+                        + "&nbsp;&nbsp;&nbsp;"
130
+                        + "<a id ='reloadLink' style='"
131
+                        + "text-decoration: underline;"
132
+                        + "font-size:small;"
133
+                        + "'>reload now</a>"
134
+                        + "</div>";
135
+
136
+                    var reloadLink = document.getElementById('reloadLink');
137
+                    reloadLink.setAttribute('href', href);
138
+
139
+                    var showMoreElem = document.getElementById("showMore");
140
+                    showMoreElem.addEventListener('click', function () {
141
+                            var moreInfoElem
142
+                                    = document.getElementById("moreInfo");
143
+
144
+                            if (showMoreElem.innerHTML === showMoreText) {
145
+                                moreInfoElem.setAttribute(
146
+                                    "style",
147
+                                    "display: block;"
148
+                                    + "color:#FF991F;"
149
+                                    + "font-size:small;"
150
+                                    + "user-select:text;");
151
+                                showMoreElem.innerHTML = showLessText;
152
+                            }
153
+                            else {
154
+                                moreInfoElem.setAttribute(
155
+                                    "style", "display: none;");
156
+                                showMoreElem.innerHTML = showMoreText;
157
+                            }
158
+                        });
159
+
160
+                    window.setTimeout(
161
+                        function () { window.location.replace(href); }, delay);
162
+
163
+                    // Call extra handler if defined.
164
+                    if (typeof postLoadErrorHandler === "function") {
165
+                        postLoadErrorHandler(fileRef);
166
+                    }
167
+                };
168
+                window.removeEventListener(
169
+                    'error', loadErrHandler, true /* capture phase */);
170
+            }
171
+        };
172
+        window.addEventListener(
173
+            'error', loadErrHandler, true /* capture phase type of listener */);
174
+    </script>
175
+    <script><!--#include virtual="/config.js" --></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
176
+    <!--#include virtual="connection_optimization/connection_optimization.html" -->
177
+    <script src="libs/do_external_connect.min.js?v=1"></script>
178
+    <script><!--#include virtual="/interface_config.js" --></script>
179
+    <script><!--#include virtual="/logging_config.js" --></script>
180
+    <script src="libs/lib-jitsi-meet.min.js?v=139"></script>
181
+    <script src="libs/app.bundle.min.js?v=139"></script>
182
+    <!--#include virtual="title.html" -->
183
+    <!--#include virtual="plugin.head.html" -->
184
+    <!--#include virtual="static/welcomePageAdditionalContent.html" -->
185
+    <!--#include virtual="static/welcomePageAdditionalCard.html" -->
186
+    <!--#include virtual="static/settingsToolbarAdditionalContent.html" -->
187
+  </head>
188
+  <body>
189
+    <noscript aria-hidden="true">
190
+        <div>JavaScript is disabled. </br>For this site to work you have to enable JavaScript.</div>
191
+    </noscript>
192
+    <!--#include virtual="body.html" -->
193
+    <div id="react" role="main"></div>
194
+  </body>
195
+</html>

正在加载...
取消
保存