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

عرض الملف

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