Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Updated method for showing/hiding elements
Ilya Daynatovicha8a6b38c2838
diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex 383b537ba7..7111ed0c6a 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -443,10 +443,10 @@ UI.start = function () {// Display notice message at the top of the toolbarif (config.noticeMessage) {$('#noticeText').text(config.noticeMessage);- $('#notice').css({display: 'block'});+ UIUtil.showElement('notice');}} else {- document.querySelector('#mainToolbarContainer').classList.add('hide');+ UIUtil.hideElement('mainToolbarContainer');FilmStrip.setupFilmStripOnly();messageHandler.enableNotifications(false);JitsiPopover.enabled = false;diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.jsindex 8e7d74fc58..708e3fb65f 100644--- a/modules/UI/util/UIUtil.js+++ b/modules/UI/util/UIUtil.js@@ -219,10 +219,17 @@ const TOOLTIP_POSITIONS = {* @param {String} the identifier of the element to show*/showElement(id) {- if ($("#"+id).hasClass("hide"))- $("#"+id).removeClass("hide");+ let element = document.getElementById(id);- $("#"+id).addClass("show");+ if (!element) {+ return;+ }++ if(element.classList.contains('hide')) {+ element.classList.remove('hide');+ }++ element.classList.add('show');},/**@@ -231,10 +238,17 @@ const TOOLTIP_POSITIONS = {* @param {String} the identifier of the element to hide*/hideElement(id) {- if ($("#"+id).hasClass("show"))- $("#"+id).removeClass("show");+ let element = document.getElementById(id);++ if (!element) {+ return;+ }++ if(element.classList.contains('show')) {+ element.classList.remove('show');+ }- $("#"+id).addClass("hide");+ element.classList.add('hide');},/**