From 43ea9d941e389b2969bfef896b97404e79b61d13 Mon Sep 17 00:00:00 2001
From: Ramon Souza <contato@ramonsouza.com>
Date: Fri, 21 May 2021 08:23:47 -0300
Subject: [PATCH] lint

---
 .../private/static/guest-wait/guest-wait.html | 158 ++++++++++--------
 1 file changed, 87 insertions(+), 71 deletions(-)

diff --git a/bigbluebutton-html5/private/static/guest-wait/guest-wait.html b/bigbluebutton-html5/private/static/guest-wait/guest-wait.html
index 4ac128a2b9..17125df971 100755
--- a/bigbluebutton-html5/private/static/guest-wait/guest-wait.html
+++ b/bigbluebutton-html5/private/static/guest-wait/guest-wait.html
@@ -1,63 +1,79 @@
 <!DOCTYPE html>
 <html>
+
 <head>
   <title>Guest Lobby</title>
   <meta charset="UTF-8">
   <style>
-  :root{
-    --enableAnimation: 1;
-  }
-  body {
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    background: #06172A;
-    height: 100vh;
-    margin: 0;
-  }
-  #content {
-    text-align: center;
-    color: white;
-    font-weight: bold;
-    font-size: 24px;
-    font-family: arial, sans-serif;
-  }
-  .spinner {
-    margin: 20px auto;
-  }
-  .spinner .bounce1 {
-    animation-delay: -0.32s;
-  }
-  .spinner .bounce2 {
-    animation-delay: -0.16s;
-  }
-  .spinner > div {
-    width: 30px;
-    height: 30px;
-    background-color: rgb(255, 255, 255);
-    display: inline-block;
-    border-radius: 100%;
-    animation: sk-bouncedelay calc(var(--enableAnimation) * 1.4s) infinite ease-in-out both;
-  }
-  @-webkit-keyframes sk-bouncedelay {
-      0%, 80%, 100% {
-          -webkit-transform: scale(0)
+    :root {
+      --enableAnimation: 1;
+    }
+
+    body {
+      display: flex;
+      justify-content: center;
+      align-items: center;
+      background: #06172A;
+      height: 100vh;
+      margin: 0;
+    }
+
+    #content {
+      text-align: center;
+      color: white;
+      font-weight: bold;
+      font-size: 24px;
+      font-family: arial, sans-serif;
+    }
+
+    .spinner {
+      margin: 20px auto;
+    }
+
+    .spinner .bounce1 {
+      animation-delay: -0.32s;
+    }
+
+    .spinner .bounce2 {
+      animation-delay: -0.16s;
+    }
+
+    .spinner>div {
+      width: 30px;
+      height: 30px;
+      background-color: rgb(255, 255, 255);
+      display: inline-block;
+      border-radius: 100%;
+      animation: sk-bouncedelay calc(var(--enableAnimation) * 1.4s) infinite ease-in-out both;
+    }
+
+    @-webkit-keyframes sk-bouncedelay {
+
+      0%,
+      80%,
+      100% {
+        -webkit-transform: scale(0)
       }
+
       40% {
-          -webkit-transform: scale(1.0)
+        -webkit-transform: scale(1.0)
       }
-  }
+    }
+
+    @keyframes sk-bouncedelay {
 
-  @keyframes sk-bouncedelay {
-      0%, 80%, 100% {
-          -webkit-transform: scale(0);
-          transform: scale(0);
+      0%,
+      80%,
+      100% {
+        -webkit-transform: scale(0);
+        transform: scale(0);
       }
+
       40% {
-          -webkit-transform: scale(1.0);
-          transform: scale(1.0);
+        -webkit-transform: scale(1.0);
+        transform: scale(1.0);
       }
-  }
+    }
   </style>
 
   <script type="text/javascript">
@@ -89,7 +105,7 @@
       return location.search
         .substr(1)
         .split('&')
-        .find(function(item) {
+        .find(function (item) {
           return item.split('=')[0] === 'sessionToken'
         });
     };
@@ -198,7 +214,7 @@
               console.error(e);
             });
         });
-    }    
+    }
 
     function fetchGuestWait(sessionToken) {
       const GUEST_WAIT_ENDPOINT = '/bigbluebutton/api/guestWait';
@@ -218,7 +234,7 @@
 
     function pollGuestStatus(token, attempt, limit, everyMs) {
 
-      setTimeout(function() {
+      setTimeout(function () {
         if (attempt >= limit) {
           disableAnimation();
           updateMessage(_('app.guest.noModeratorResponse'));
@@ -226,34 +242,34 @@
         }
 
         fetchGuestWait(token)
-        .then(async (resp) => await resp.json())
-        .then((data) => {
-          const code = data.response.returncode;
+          .then(async (resp) => await resp.json())
+          .then((data) => {
+            const code = data.response.returncode;
 
-          if (code === 'FAILED') {
-            return redirect(_('app.guest.' + data.response.messageKey), data.response.url);
-          }
+            if (code === 'FAILED') {
+              return redirect(_('app.guest.' + data.response.messageKey), data.response.url);
+            }
 
-          const status = data.response.guestStatus;
+            const status = data.response.guestStatus;
 
-          if (status === 'DENY') {
-            return redirect(_('app.guest.' + data.response.messageKey), data.response.url);
-          }
+            if (status === 'DENY') {
+              return redirect(_('app.guest.' + data.response.messageKey), data.response.url);
+            }
 
-          if (status === 'ALLOW') {
-            disableAnimation();
-            window.location = data.response.url;
-            return;
-          }
+            if (status === 'ALLOW') {
+              disableAnimation();
+              window.location = data.response.url;
+              return;
+            }
 
-          updateLobbyMessage(data.response.lobbyMessage);
+            updateLobbyMessage(data.response.lobbyMessage);
 
-          return pollGuestStatus(token, attempt + 1, limit, everyMs);
-        });
+            return pollGuestStatus(token, attempt + 1, limit, everyMs);
+          });
       }, everyMs);
     };
 
-    function enableAnimation(){
+    function enableAnimation() {
       document.documentElement.style.setProperty('--enableAnimation', 1);
     }
 
@@ -261,7 +277,7 @@
       document.documentElement.style.setProperty('--enableAnimation', 0);
     }
 
-    window.onload = function() {
+    window.onload = function () {
       fetchLocalizedMessages();
     };
   </script>
@@ -278,4 +294,4 @@
   </div>
 </body>
 
-</html>
+</html>
\ No newline at end of file
-- 
GitLab