const, then vars
This commit is contained in:
parent
7e126c05f3
commit
72f21edb81
@ -10,16 +10,9 @@ const CALLTO = "callto:";
|
||||
const MAIL_TYPE = "mail";
|
||||
const TEL_TYPE = "tel";
|
||||
|
||||
// default href for links
|
||||
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
|
||||
let url = "",
|
||||
mail = "",
|
||||
@ -45,6 +38,14 @@ let gmailButton,
|
||||
callButton,
|
||||
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
|
||||
* the function that creates the mailgo elements in DOM
|
||||
|
Loading…
x
Reference in New Issue
Block a user