Pārlūkot izejas kodu

JS floating point fix

Vijayakrishnan 5 gadi atpakaļ
vecāks
revīzija
a9db551e86
1 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. 8 2
      resources/views/meeting.blade.php

+ 8 - 2
resources/views/meeting.blade.php

@@ -33,7 +33,11 @@
 
         <h5 class="bg-dark font-weight-bold text-white m-0 py-3 px-4 d-flex">
             <span>Meeting</span>
-            <span class="ml-auto" v-if="started"><i class="fa fa-clock mr-1 text-light"></i>
+            <span class="ml-auto" v-if="!started">
+                Connecting...
+            </span>
+            <span class="ml-auto" v-if="started">
+                <i class="fa fa-clock mr-1 text-light"></i>
                 @{{ timeDisplay() }}
             </span>
         </h5>
@@ -122,7 +126,7 @@
                     // this.time = new Date().getTime() - this.startTime;
                     var seconds = this.time / 1000,
                         minutes = parseInt(seconds / 60, 10);
-                    seconds = seconds % 60;
+                    seconds = parseInt(seconds % 60, 10);
                     return minutes + " min, " + seconds + " sec";
                 }
             },
@@ -137,6 +141,8 @@
                     self.pros[0].status = 'active';
                     self.started = true;
                     self.startTime = new Date().getTime();
+                    self.activeType = 'pro';
+                    self.activeParticipant = self.pros[0];
                     window.setInterval(function() {
                         self.time = new Date().getTime() - self.startTime;
                     }, 1000);