const, then vars

This commit is contained in:
Matteo Manzinello 2019-10-25 21:03:54 +02:00
parent 7e126c05f3
commit 72f21edb81

View File

@ -10,16 +10,9 @@ const CALLTO = "callto:";
const MAIL_TYPE = "mail"; const MAIL_TYPE = "mail";
const TEL_TYPE = "tel"; const TEL_TYPE = "tel";
// default href for links
const DEFAULT_BTN_HREF = "javascript:void(0);"; const DEFAULT_BTN_HREF = "javascript:void(0);";
// mailgo style (gulp)
let mailgoCSS = document.createElement("style");
mailgoCSS.id = "mailgo-style";
mailgoCSS.type = "text/css";
let mailgoCSSContent = document.createTextNode(`MAILGO_STYLE`);
mailgoCSS.appendChild(mailgoCSSContent);
document.head.appendChild(mailgoCSS);
// mailgo variables // mailgo variables
let url = "", let url = "",
mail = "", mail = "",
@ -45,6 +38,14 @@ let gmailButton,
callButton, callButton,
copyButton; copyButton;
// mailgo style (gulp)
let mailgoCSS = document.createElement("style");
mailgoCSS.id = "mailgo-style";
mailgoCSS.type = "text/css";
let mailgoCSSContent = document.createTextNode(`MAILGO_STYLE`);
mailgoCSS.appendChild(mailgoCSSContent);
document.head.appendChild(mailgoCSS);
/** /**
* mailgoInit * mailgoInit
* the function that creates the mailgo elements in DOM * the function that creates the mailgo elements in DOM