From d6b2dd7ab784d405f7ed508468d466e23787a41a Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Thu, 14 Jan 2021 20:55:14 +0100 Subject: [PATCH] [mirotalk] - improve send-show msg using textarea --- www/client.js | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/www/client.js b/www/client.js index b114f871..d213d1f6 100644 --- a/www/client.js +++ b/www/client.js @@ -536,8 +536,14 @@ function sendMessage() { Swal.fire({ background: "black", position: "center", - title: "Send Message", - input: "text", + // title: "Send Message", + // input: "text", + input: "textarea", + inputLabel: "Send Message", + inputPlaceholder: "Type your message here...", + inputAttributes: { + "aria-label": "Type your message here", + }, showDenyButton: true, confirmButtonText: `Send`, denyButtonText: `Cancel`, @@ -569,8 +575,14 @@ function showMessage(msg) { background: "black", position: "center", icon: "success", - title: "New message", - text: msg, + // title: "New message", + // text: msg, + input: "textarea", + inputLabel: "New Message", + inputValue: msg, + inputAttributes: { + "aria-label": "Type your message here", + }, showClass: { popup: "animate__animated animate__fadeInDown", }, @@ -718,6 +730,7 @@ function copyRoomURL() { hideClass: { popup: "animate__animated animate__fadeOutUp", }, + timer: 4000, }); document.body.removeChild(tmpInput); }