"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-6444/index.html" (8 Aug 2022, 9413 Bytes) of package /linux/misc/jitsi-meet-6444.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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