|
|
@@ -249,7 +249,6 @@ ConnectionIndicator.prototype.showMore = function () {
|
|
249
|
249
|
|
|
250
|
250
|
function createIcon(classes, iconClass) {
|
|
251
|
251
|
var icon = document.createElement("span");
|
|
252
|
|
- icon.classList.add("indicatoricon");
|
|
253
|
252
|
for(var i in classes) {
|
|
254
|
253
|
icon.classList.add(classes[i]);
|
|
255
|
254
|
}
|
|
|
@@ -267,6 +266,7 @@ ConnectionIndicator.prototype.create = function () {
|
|
267
|
266
|
videoSpanId: this.videoContainer.videoSpanId,
|
|
268
|
267
|
indicatorId
|
|
269
|
268
|
});
|
|
|
269
|
+ element.classList.add('show');
|
|
270
|
270
|
this.connectionIndicatorContainer = element;
|
|
271
|
271
|
|
|
272
|
272
|
let popoverContent = (
|
|
|
@@ -289,13 +289,19 @@ ConnectionIndicator.prototype.create = function () {
|
|
289
|
289
|
origShowFunc.call(this.popover);
|
|
290
|
290
|
}.bind(this);
|
|
291
|
291
|
|
|
292
|
|
- this.emptyIcon = this.connectionIndicatorContainer.appendChild(
|
|
293
|
|
- createIcon(["connection", "connection_empty"], "icon-connection"));
|
|
294
|
|
- this.fullIcon = this.connectionIndicatorContainer.appendChild(
|
|
295
|
|
- createIcon(["connection", "connection_full"], "icon-connection"));
|
|
296
|
|
- this.interruptedIndicator = this.connectionIndicatorContainer.appendChild(
|
|
297
|
|
- createIcon(["connection", "connection_lost"],"icon-connection-lost"));
|
|
|
292
|
+ let connectionIconContainer = document.createElement('div');
|
|
|
293
|
+ connectionIconContainer.className = 'connection indicatoricon';
|
|
|
294
|
+
|
|
|
295
|
+
|
|
|
296
|
+ this.emptyIcon = connectionIconContainer.appendChild(
|
|
|
297
|
+ createIcon(["connection_empty"], "icon-connection"));
|
|
|
298
|
+ this.fullIcon = connectionIconContainer.appendChild(
|
|
|
299
|
+ createIcon(["connection_full"], "icon-connection"));
|
|
|
300
|
+ this.interruptedIndicator = connectionIconContainer.appendChild(
|
|
|
301
|
+ createIcon(["connection_lost"],"icon-connection-lost"));
|
|
|
302
|
+
|
|
298
|
303
|
$(this.interruptedIndicator).hide();
|
|
|
304
|
+ this.connectionIndicatorContainer.appendChild(connectionIconContainer);
|
|
299
|
305
|
};
|
|
300
|
306
|
|
|
301
|
307
|
/**
|