[mirotalksfu] - add share file btn to chat

هذا الالتزام موجود في:
Miroslav Pejic
2022-06-04 19:26:09 +02:00
الأصل 3e12ad2acd
التزام c511917287
2 ملفات معدلة مع 8 إضافات و0 حذوفات

عرض الملف

@@ -108,6 +108,7 @@ function initClient() {
setTippy('chatSpeechStartButton', 'Start speech recognition', 'top');
setTippy('chatSpeechStopButton', 'Stop speech recognition', 'top');
setTippy('chatEmojiButton', 'Emoji', 'top');
setTippy('chatShareFileButton', 'Share file', 'top');
setTippy('chatCleanButton', 'Clean', 'bottom');
setTippy('chatSaveButton', 'Save', 'bottom');
setTippy('sessionTime', 'Session time', 'right');
@@ -550,6 +551,7 @@ function roomIsReady() {
show(chatButton);
show(chatSendButton);
show(chatEmojiButton);
show(chatShareFileButton);
if (isWebkitSpeechRecognitionSupported) {
show(chatSpeechStartButton);
}
@@ -719,6 +721,9 @@ function handleButtons() {
chatEmojiButton.onclick = () => {
rc.toggleChatEmoji();
};
chatShareFileButton.onclick = () => {
fileShareButton.click();
};
chatSpeechStartButton.onclick = () => {
startSpeech(true);
};

عرض الملف

@@ -364,6 +364,9 @@ access to use this app.
<button id="chatEmojiButton" class="hidden">
<i class="fas fa-smile"></i>
</button>
<button id="chatShareFileButton" class="hidden">
<i class="fas fa-file"></i>
</button>
<button id="chatSpeechStartButton" class="hidden">
<i class="fas fa-microphone-slash"></i>
</button>