[mirotalksfu] - improvements, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2025-07-25 22:06:16 +02:00
الأصل ba2df58cb1
التزام 14593fece8
6 ملفات معدلة مع 79 إضافات و41 حذوفات

عرض الملف

@@ -76,7 +76,7 @@ let BRAND = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: '<strong>WebRTC SFU v1.9.11</strong>',
title: '<strong>WebRTC SFU v1.9.12</strong>',
html: `
<button
id="support-button"

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.9.11
* @version 1.9.12
*
*/
@@ -1685,31 +1685,69 @@ function roomIsReady() {
//show(restartICEButton); // TEST
}
function elemDisplay(element, display, mode = 'block') {
const elem = document.getElementById(element);
elem ? (elem.style.display = display ? mode : 'none') : console.error('elemDisplay not found', element);
// ####################################################
// UTILS
// ####################################################
function elemDisplay(elem, display, mode = 'block') {
elem = getId(elem);
if (!elem) {
elementNotFound(elem);
return;
}
elem.style.display = display ? mode : 'none';
}
function hide(elem) {
elem = typeof elem === 'string' ? getId(elem) : elem;
if (!elem || !elem.classList) {
elementNotFound(elem);
return;
}
if (!elem.classList.contains('hidden')) elem.classList.toggle('hidden');
}
function show(elem) {
elem = typeof elem === 'string' ? getId(elem) : elem;
if (!elem || !elem.classList) {
elementNotFound(elem);
return;
}
if (elem.classList.contains('hidden')) elem.classList.toggle('hidden');
}
function disable(elem, disabled) {
elem = typeof elem === 'string' ? getId(elem) : elem;
if (!elem) {
elementNotFound(elem);
return;
}
elem.disabled = disabled;
}
function setColor(elem, color) {
elem = typeof elem === 'string' ? getId(elem) : elem;
if (!elem) {
elementNotFound(elem);
return;
}
elem.style.color = color;
}
function getColor(elem) {
elem = typeof elem === 'string' ? getId(elem) : elem;
if (!elem) {
elementNotFound(elem);
return undefined;
}
return elem.style.color;
}
function elementNotFound(element) {
console.error('Element Not Found', element);
return false;
}
// ####################################################
// SESSION TIMER
// ####################################################
@@ -5476,7 +5514,7 @@ function showAbout() {
position: 'center',
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
customClass: { image: 'img-about' },
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.9.11',
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.9.12',
html: `
<br />
<div id="about">

عرض الملف

@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.9.11
* @version 1.9.12
*
*/