[mirotalk] - add about button

This commit is contained in:
Miroslav Pejic
2021-01-13 20:27:43 +01:00
parent 84ff02b9c5
commit 860e3b557d
3 changed files with 34 additions and 0 deletions
+32
View File
@@ -406,6 +406,7 @@ function manageButtons() {
swapCameraBtn();
screenShareBtn();
sendMsgBtn();
aboutBtn();
leaveRoomBtn();
buttonsOpacity();
}
@@ -488,6 +489,15 @@ function sendMsgBtn() {
});
}
// =====================================================
// about button click event
// =====================================================
function aboutBtn() {
document.getElementById("aboutBtn").addEventListener("click", (e) => {
about();
});
}
// =====================================================
// end call button click event
// =====================================================
@@ -712,6 +722,28 @@ function copyRoomURL() {
document.body.removeChild(tmpInput);
}
// =====================================================
// about info
// =====================================================
function about() {
Swal.fire({
background: "black",
position: "center",
title: 'Made with ❤️',
text: 'https://github.com/miroslavpejic85/mirotalk',
imageUrl: loaderGif,
imageWidth: 320,
imageHeight: 240,
imageAlt: 'Custom image',
showClass: {
popup: 'animate__animated animate__fadeInDown'
},
hideClass: {
popup: 'animate__animated animate__fadeOutUp'
}
})
}
// =====================================================
// Leave the Room and create a new one
// =====================================================
+1
View File
@@ -76,6 +76,7 @@
class="fas fa-desktop"
></button>
<button title="send msg" id="sendMsgBtn" class="fas fa-comment"></button>
<button title="about" id="aboutBtn" class="fas fa-question"></button>
<button
title="leave room"
id="leaveRoomBtn"
+1
View File
@@ -148,6 +148,7 @@ button:hover {
#swapCameraBtn,
#screenShareBtn,
#sendMsgBtn,
#aboutBtn,
#leaveRoomBtn {
font-size: 2rem;
cursor: pointer;