working on Skype!
This commit is contained in:
parent
5483cb9a7a
commit
427d550d7c
@ -30,7 +30,8 @@ let url = "",
|
|||||||
// mailgo tel variables
|
// mailgo tel variables
|
||||||
let tel = "",
|
let tel = "",
|
||||||
msg = "",
|
msg = "",
|
||||||
telegramUsername = "";
|
telegramUsername = "",
|
||||||
|
skypeUsername = "";
|
||||||
|
|
||||||
// mailgo buttons
|
// mailgo buttons
|
||||||
let gmailButton,
|
let gmailButton,
|
||||||
@ -261,6 +262,22 @@ const mailgoInit = () => {
|
|||||||
|
|
||||||
modalContent.appendChild(wa);
|
modalContent.appendChild(wa);
|
||||||
|
|
||||||
|
// Skype
|
||||||
|
let skype = document.createElement("a");
|
||||||
|
skype.id = "mailgo-skype";
|
||||||
|
skype.href = "#mailgo-skype";
|
||||||
|
skype.classList.add("mailgo-open");
|
||||||
|
skype.classList.add("mailgo-skype");
|
||||||
|
let skypeContent = document.createTextNode("open in ");
|
||||||
|
skype.appendChild(skypeContent);
|
||||||
|
let skypeSpan = document.createElement("span");
|
||||||
|
skypeSpan.className = "mailgo-weight-500";
|
||||||
|
let skypeSpanContent = document.createTextNode("Skype");
|
||||||
|
skypeSpan.appendChild(skypeSpanContent);
|
||||||
|
skype.appendChild(skypeSpan);
|
||||||
|
|
||||||
|
modalContent.appendChild(skype);
|
||||||
|
|
||||||
// call default
|
// call default
|
||||||
let call = document.createElement("a");
|
let call = document.createElement("a");
|
||||||
call.id = "mailgo-call";
|
call.id = "mailgo-call";
|
||||||
@ -528,6 +545,16 @@ const actions = {
|
|||||||
hideMailgo();
|
hideMailgo();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
openSkype: () => {
|
||||||
|
let skype = skypeUsername !== "" ? skypeUsername : tel;
|
||||||
|
// Telegram url
|
||||||
|
let skypeUrl = "skype:" + skype;
|
||||||
|
// open the url
|
||||||
|
window.open(skypeUrl, "_blank");
|
||||||
|
// hide the modal
|
||||||
|
hideMailgo();
|
||||||
|
},
|
||||||
|
|
||||||
openWhatsApp: () => {
|
openWhatsApp: () => {
|
||||||
// WhatsApp url
|
// WhatsApp url
|
||||||
let waUrl = "https://wa.me/" + tel;
|
let waUrl = "https://wa.me/" + tel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user