Lukas Reschke
9 years ago
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with
5 additions and
0 deletions
-
css/style.css
-
js/webrtc.js
|
|
|
@ -1,3 +1,6 @@ |
|
|
|
.participants-2 { |
|
|
|
background-color: red; |
|
|
|
} |
|
|
|
video { |
|
|
|
width: 100%; |
|
|
|
z-index: 0; |
|
|
|
|
|
|
|
@ -22,6 +22,8 @@ function openEventSource() { |
|
|
|
users.forEach(function(user) { |
|
|
|
currentUsersInRoom.push(user['userId']); |
|
|
|
}); |
|
|
|
$('#app-content').attr('class',''); |
|
|
|
$('#app-content').addClass('participants-'+currentUsersInRoom.length); |
|
|
|
|
|
|
|
var disconnectedUsers = previousUsersInRoom.diff(currentUsersInRoom); |
|
|
|
disconnectedUsers.forEach(function(user) { |
|
|
|
|