byElement
This commit is contained in:
1 parent
56490623aa
commit
194e277690
3 files changed
+18
-24
No files matched your search
Vendored
+1
-1
@@ -1 +1 @@
|
||||
"use strict";!function(){function t(){var e=document.createElement("div");e.style.display="none",e.id="mailgo",e.classList.add("mailgo-modal");var a=document.createElement("div");a.className="mailgo-modal-background",e.appendChild(a);var t=document.createElement("div");t.className="mailgo-modal-content",e.appendChild(t),(O=document.createElement("strong")).id="mailgo-title",O.className="mailgo-title",t.appendChild(O);var o=document.createElement("div");o.id="mailgo-details",o.className="mailgo-details",(F=document.createElement("p")).id="mailgo-cc";var n=document.createElement("span");n.className="w-500";var i=document.createTextNode("cc ");n.appendChild(i),(J=document.createElement("span")).id="mailgo-cc-value",F.appendChild(n),F.appendChild(J),o.appendChild(F),(G=document.createElement("p")).id="mailgo-bcc";var l=document.createElement("span");l.className="w-500";var d=document.createTextNode("bcc ");l.appendChild(d),(K=document.createElement("span")).id="mailgo-bcc-value",G.appendChild(l),G.appendChild(K),o.appendChild(G),($=document.createElement("p")).id="mailgo-subject";var c=document.createElement("span");c.className="w-500";var m=document.createTextNode("subject ");c.appendChild(m),(Q=document.createElement("span")).id="mailgo-subject-value",$.appendChild(c),$.appendChild(Q),o.appendChild($),(q=document.createElement("p")).id="mailgo-body";var r=document.createElement("span");r.className="w-500";var s=document.createTextNode("body ");r.appendChild(s),(V=document.createElement("span")).id="mailgo-body-value",q.appendChild(r),q.appendChild(V),o.appendChild(q),t.appendChild(o),(X=document.createElement("a")).id="mailgo-gmail",X.href=de,X.classList.add("mailgo-open"),X.classList.add("mailgo-gmail");var p=document.createTextNode("open in ");X.appendChild(p);var g=document.createElement("span");g.className="w-500";var u=document.createTextNode("Gmail");g.appendChild(u),X.appendChild(g),t.appendChild(X),(Y=document.createElement("a")).id="mailgo-outlook",Y.href=de,Y.classList.add("mailgo-open"),Y.classList.add("mailgo-outlook");var b=document.createTextNode("open in ");Y.appendChild(b);var h=document.createElement("span");h.className="w-500";var f=document.createTextNode("Outlook");h.appendChild(f),Y.appendChild(h),t.appendChild(Y),(ee=document.createElement("a")).id="mailgo-open",ee.href=de,ee.classList.add("mailgo-open"),ee.classList.add("mailgo-default");var v=document.createElement("span");v.className="w-500";var x=document.createTextNode("open");v.appendChild(x);var w=document.createTextNode(" default");ee.appendChild(v),ee.appendChild(w),t.appendChild(ee),(ie=document.createElement("a")).id="mailgo-copy",ie.href=de,ie.classList.add("mailgo-copy"),ie.classList.add("w-500");var C=document.createTextNode("copy");ie.appendChild(C),t.appendChild(ie);var k=document.createElement("a");k.id="mailgo.js.org",k.href="https://mailgo.js.org?ref=mailgo-modal",k.className="mailgo-by",k.target="_blank",k.rel="noopener noreferrer";var y=document.createTextNode("mailgo.js.org");k.appendChild(y),t.appendChild(k),document.body.appendChild(e),a.addEventListener("click",ce);var E=document.createElement("div");E.style.display="none",E.id="mailgo-tel",E.classList.add("mailgo-modal");var L=document.createElement("div");L.className="mailgo-modal-background",E.appendChild(L);var N=document.createElement("div");N.className="mailgo-modal-content",E.appendChild(N),(Z=document.createElement("strong")).id="mailgo-tel-title",Z.className="mailgo-title",N.appendChild(Z),(ae=document.createElement("a")).id="mailgo-telegram",ae.href=de,ae.classList.add("mailgo-open"),ae.classList.add("mailgo-telegram"),ae.style.display="none";var T=document.createTextNode("open in ");ae.appendChild(T);var z=document.createElement("span");z.className="w-500";var A=document.createTextNode("Telegram");z.appendChild(A),ae.appendChild(z),N.appendChild(ae),(te=document.createElement("a")).id="mailgo-wa",te.href=de,te.classList.add("mailgo-open"),te.classList.add("mailgo-wa");var j=document.createTextNode("open in ");te.appendChild(j);var R=document.createElement("span");R.className="w-500";var U=document.createTextNode("WhatsApp");R.appendChild(U),te.appendChild(R),N.appendChild(te),(oe=document.createElement("a")).id="mailgo-skype",oe.href=de,oe.classList.add("mailgo-open"),oe.classList.add("mailgo-skype");var I=document.createTextNode("open in ");oe.appendChild(I);var S=document.createElement("span");S.className="w-500";var M=document.createTextNode("Skype");S.appendChild(M),oe.appendChild(S),N.appendChild(oe),(ne=document.createElement("a")).id="mailgo-call",ne.href=de,ne.classList.add("mailgo-open"),ne.classList.add("mailgo-default");var W=document.createElement("span");W.className="w-500";var H=document.createTextNode("call");W.appendChild(H);var _=document.createTextNode(" as default");ne.appendChild(W),ne.appendChild(_),N.appendChild(ne),(le=document.createElement("a")).id="mailgo-tel-copy",le.href=de,le.classList.add("mailgo-copy"),le.classList.add("Line truncated
|
||||
"use strict";!function(){function t(){var e=document.createElement("div");e.style.display="none",e.id="mailgo",e.classList.add("mailgo-modal");var a=document.createElement("div");a.className="mailgo-modal-background",e.appendChild(a);var t=document.createElement("div");t.className="mailgo-modal-content",e.appendChild(t),(_=document.createElement("strong")).id="mailgo-title",_.className="mailgo-title",t.appendChild(_);var o=document.createElement("div");o.id="mailgo-details",o.className="mailgo-details",(P=document.createElement("p")).id="mailgo-cc";var n=document.createElement("span");n.className="w-500";var i=document.createTextNode("cc ");n.appendChild(i),(F=document.createElement("span")).id="mailgo-cc-value",P.appendChild(n),P.appendChild(F),o.appendChild(P),(B=document.createElement("p")).id="mailgo-bcc";var l=document.createElement("span");l.className="w-500";var d=document.createTextNode("bcc ");l.appendChild(d),(G=document.createElement("span")).id="mailgo-bcc-value",B.appendChild(l),B.appendChild(G),o.appendChild(B),(O=document.createElement("p")).id="mailgo-subject";var c=document.createElement("span");c.className="w-500";var m=document.createTextNode("subject ");c.appendChild(m),($=document.createElement("span")).id="mailgo-subject-value",O.appendChild(c),O.appendChild($),o.appendChild(O),(Z=document.createElement("p")).id="mailgo-body";var r=document.createElement("span");r.className="w-500";var s=document.createTextNode("body ");r.appendChild(s),(q=document.createElement("span")).id="mailgo-body-value",Z.appendChild(r),Z.appendChild(q),o.appendChild(Z),t.appendChild(o),(J=document.createElement("a")).id="mailgo-gmail",J.href=oe,J.classList.add("mailgo-open"),J.classList.add("mailgo-gmail");var p=document.createTextNode("open in ");J.appendChild(p);var g=document.createElement("span");g.className="w-500";var u=document.createTextNode("Gmail");g.appendChild(u),J.appendChild(g),t.appendChild(J),(K=document.createElement("a")).id="mailgo-outlook",K.href=oe,K.classList.add("mailgo-open"),K.classList.add("mailgo-outlook");var b=document.createTextNode("open in ");K.appendChild(b);var h=document.createElement("span");h.className="w-500";var f=document.createTextNode("Outlook");h.appendChild(f),K.appendChild(h),t.appendChild(K),(Q=document.createElement("a")).id="mailgo-open",Q.href=oe,Q.classList.add("mailgo-open"),Q.classList.add("mailgo-default");var v=document.createElement("span");v.className="w-500";var x=document.createTextNode("open");v.appendChild(x);var w=document.createTextNode(" default");Q.appendChild(v),Q.appendChild(w),t.appendChild(Q),(ae=document.createElement("a")).id="mailgo-copy",ae.href=oe,ae.classList.add("mailgo-copy"),ae.classList.add("w-500");var C=document.createTextNode("copy");ae.appendChild(C),t.appendChild(ae),t.appendChild(ie()),document.body.appendChild(e),a.addEventListener("click",ne);var k=document.createElement("div");k.style.display="none",k.id="mailgo-tel",k.classList.add("mailgo-modal");var y=document.createElement("div");y.className="mailgo-modal-background",k.appendChild(y);var E=document.createElement("div");E.className="mailgo-modal-content",k.appendChild(E),(D=document.createElement("strong")).id="mailgo-tel-title",D.className="mailgo-title",E.appendChild(D),(V=document.createElement("a")).id="mailgo-telegram",V.href=oe,V.classList.add("mailgo-open"),V.classList.add("mailgo-telegram"),V.style.display="none";var L=document.createTextNode("open in ");V.appendChild(L);var N=document.createElement("span");N.className="w-500";var T=document.createTextNode("Telegram");N.appendChild(T),V.appendChild(N),E.appendChild(V),(X=document.createElement("a")).id="mailgo-wa",X.href=oe,X.classList.add("mailgo-open"),X.classList.add("mailgo-wa");var z=document.createTextNode("open in ");X.appendChild(z);var A=document.createElement("span");A.className="w-500";var j=document.createTextNode("WhatsApp");A.appendChild(j),X.appendChild(A),E.appendChild(X),(Y=document.createElement("a")).id="mailgo-skype",Y.href=oe,Y.classList.add("mailgo-open"),Y.classList.add("mailgo-skype");var R=document.createTextNode("open in ");Y.appendChild(R);var U=document.createElement("span");U.className="w-500";var I=document.createTextNode("Skype");U.appendChild(I),Y.appendChild(U),E.appendChild(Y),(ee=document.createElement("a")).id="mailgo-call",ee.href=oe,ee.classList.add("mailgo-open"),ee.classList.add("mailgo-default");var S=document.createElement("span");S.className="w-500";var M=document.createTextNode("call");S.appendChild(M);var W=document.createTextNode(" as default");ee.appendChild(S),ee.appendChild(W),E.appendChild(ee),(te=document.createElement("a")).id="mailgo-tel-copy",te.href=oe,te.classList.add("mailgo-copy"),te.classList.add("w-500");var H=document.createTextNode("copy");te.appendChild(H),E.appendChild(te),E.appendChild(ie()),document.body.appendChild(k),y.addEventListener("click",ne)}function o(e,a){var t=0<arguments.length&&void 0!==e?e:m,o=1<arguments.length?a:void 0;if(t===m){if(oLine truncated
|
||||
@@ -1 +1 @@
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mailgo=t():e.mailgo=t()}(window,(function(){return function(e){var t={};function a(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){"use strict";!function(){function e(){var e=document.createElement("div");e.style.display="none",e.id="mailgo",e.classList.add("mailgo-modal");var t=document.createElement("div");t.className="mailgo-modal-background",e.appendChild(t);var a=document.createElement("div");a.className="mailgo-modal-content",e.appendChild(a),(i=document.createElement("strong")).id="mailgo-title",i.className="mailgo-title",a.appendChild(i);var o=document.createElement("div");o.id="mailgo-details",o.className="mailgo-details",(d=document.createElement("p")).id="mailgo-cc";var n=document.createElement("span");n.className="w-500";var E=document.createTextNode("cc ");n.appendChild(E),(s=document.createElement("span")).id="mailgo-cc-value",d.appendChild(n),d.appendChild(s),o.appendChild(d),(r=document.createElement("p")).id="mailgo-bcc";var L=document.createElement("span");L.className="w-500";var N=document.createTextNode("bcc ");L.appendChild(N),(p=document.createElement("span")).id="mailgo-bcc-value",r.appendChild(L),r.appendChild(p),o.appendChild(r),(c=document.createElement("p")).id="mailgo-subject";var T=document.createElement("span");T.className="w-500";var j=document.createTextNode("subject ");T.appendChild(j),(g=document.createElement("span")).id="mailgo-subject-value",c.appendChild(T),c.appendChild(g),o.appendChild(c),(m=document.createElement("p")).id="mailgo-body";var A=document.createElement("span");A.className="w-500";var S=document.createTextNode("body ");A.appendChild(S),(u=document.createElement("span")).id="mailgo-body-value",m.appendChild(A),m.appendChild(u),o.appendChild(m),a.appendChild(o),(b=document.createElement("a")).id="mailgo-gmail",b.href=z,b.classList.add("mailgo-open"),b.classList.add("mailgo-gmail");var R=document.createTextNode("open in ");b.appendChild(R);var U=document.createElement("span");U.className="w-500";var _=document.createTextNode("Gmail");U.appendChild(_),b.appendChild(U),a.appendChild(b),(f=document.createElement("a")).id="mailgo-outlook",f.href=z,f.classList.add("mailgo-open"),f.classList.add("mailgo-outlook");var I=document.createTextNode("open in ");f.appendChild(I);var M=document.createElement("span");M.className="w-500";var O=document.createTextNode("Outlook");M.appendChild(O),f.appendChild(M),a.appendChild(f),(h=document.createElement("a")).id="mailgo-open",h.href=z,h.classList.add("mailgo-open"),h.classList.add("mailgo-default");var P=document.createElement("span");P.className="w-500";var W=document.createTextNode("open");P.appendChild(W);var H=document.createTextNode(" default");h.appendChild(P),h.appendChild(H),a.appendChild(h),(C=document.createElement("a")).id="mailgo-copy",C.href=z,C.classList.add("mailgo-copy"),C.classList.add("w-500");var D=document.createTextNode("copy");C.appendChild(D),a.appendChild(C);var B=document.createElement("a");B.id="mailgo.js.org",B.href="https://mailgo.js.org?ref=mailgo-modal",B.className="mailgo-by",B.target="_blank",B.rel="noopener noreferrer";var Z=document.createTextNode("mailgo.js.org");B.appendChild(Z),a.appendChild(B),document.body.appendChild(e),t.addEventListener("click",Q);var F=document.createElement("div");F.style.display="none",F.id="mailgo-tel",F.classList.add("mailgo-modal");var G=document.createElement("div");G.className="mailgo-modal-background",F.appendChild(G);var $=document.createElement("div");$.className="mailgo-modal-content",F.appendChild($),(l=document.createElement("strong")).id="mailgo-tel-title",l.className="mailgo-title",$.appendChild(l),(v=document.createElement("a")).id="mailgo-telegram",v.href=z,v.classList.add("mailgo-open"),v.classList.add("mailgo-telegram"),v.style.display="none";var q=document.createTextNode("open in ");v.appendChild(q);var J=document.createElement("span");J.className="w-500";var K=document.createTextNode("Telegram");J.appendChild(K),v.appendChild(J),$.appendChild(Line truncated
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mailgo=t():e.mailgo=t()}(window,(function(){return function(e){var t={};function o(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){"use strict";!function(){function e(){var e=document.createElement("div");e.style.display="none",e.id="mailgo",e.classList.add("mailgo-modal");var t=document.createElement("div");t.className="mailgo-modal-background",e.appendChild(t);var o=document.createElement("div");o.className="mailgo-modal-content",e.appendChild(o),(i=document.createElement("strong")).id="mailgo-title",i.className="mailgo-title",o.appendChild(i);var a=document.createElement("div");a.id="mailgo-details",a.className="mailgo-details",(d=document.createElement("p")).id="mailgo-cc";var n=document.createElement("span");n.className="w-500";var E=document.createTextNode("cc ");n.appendChild(E),(s=document.createElement("span")).id="mailgo-cc-value",d.appendChild(n),d.appendChild(s),a.appendChild(d),(c=document.createElement("p")).id="mailgo-bcc";var L=document.createElement("span");L.className="w-500";var N=document.createTextNode("bcc ");L.appendChild(N),(p=document.createElement("span")).id="mailgo-bcc-value",c.appendChild(L),c.appendChild(p),a.appendChild(c),(r=document.createElement("p")).id="mailgo-subject";var T=document.createElement("span");T.className="w-500";var z=document.createTextNode("subject ");T.appendChild(z),(u=document.createElement("span")).id="mailgo-subject-value",r.appendChild(T),r.appendChild(u),a.appendChild(r),(m=document.createElement("p")).id="mailgo-body";var A=document.createElement("span");A.className="w-500";var S=document.createTextNode("body ");A.appendChild(S),(g=document.createElement("span")).id="mailgo-body-value",m.appendChild(A),m.appendChild(g),a.appendChild(m),o.appendChild(a),(b=document.createElement("a")).id="mailgo-gmail",b.href=j,b.classList.add("mailgo-open"),b.classList.add("mailgo-gmail");var R=document.createTextNode("open in ");b.appendChild(R);var U=document.createElement("span");U.className="w-500";var I=document.createTextNode("Gmail");U.appendChild(I),b.appendChild(U),o.appendChild(b),(f=document.createElement("a")).id="mailgo-outlook",f.href=j,f.classList.add("mailgo-open"),f.classList.add("mailgo-outlook");var M=document.createTextNode("open in ");f.appendChild(M);var _=document.createElement("span");_.className="w-500";var O=document.createTextNode("Outlook");_.appendChild(O),f.appendChild(_),o.appendChild(f),(h=document.createElement("a")).id="mailgo-open",h.href=j,h.classList.add("mailgo-open"),h.classList.add("mailgo-default");var P=document.createElement("span");P.className="w-500";var W=document.createTextNode("open");P.appendChild(W);var H=document.createTextNode(" default");h.appendChild(P),h.appendChild(H),o.appendChild(h),(C=document.createElement("a")).id="mailgo-copy",C.href=j,C.classList.add("mailgo-copy"),C.classList.add("w-500");var D=document.createTextNode("copy");C.appendChild(D),o.appendChild(C),o.appendChild(X()),document.body.appendChild(e),t.addEventListener("click",Q);var B=document.createElement("div");B.style.display="none",B.id="mailgo-tel",B.classList.add("mailgo-modal");var Z=document.createElement("div");Z.className="mailgo-modal-background",B.appendChild(Z);var F=document.createElement("div");F.className="mailgo-modal-content",B.appendChild(F),(l=document.createElement("strong")).id="mailgo-tel-title",l.className="mailgo-title",F.appendChild(l),(v=document.createElement("a")).id="mailgo-telegram",v.href=j,v.classList.add("mailgo-open"),v.classList.add("mailgo-telegram"),v.style.display="none";var G=document.createTextNode("open in ");v.appendChild(G);var $=document.createElement("span");$.className="w-500";var q=document.createTextNode("Telegram");$.appendChild(q),v.appendChild($),F.appendChild(v),(x=document.createElement("a")).id="mailgo-wa",x.href=j,x.classList.add("mailgo-open"),x.classList.add("mailgo-wa");var J=document.createTextNode("open in ");x.appendChild(J);var K=document.createElement("span");K.className="w-500";Line truncated
|
||||
+16
-22
@@ -40,7 +40,7 @@
|
||||
subjectValue,
|
||||
bodyValue;
|
||||
|
||||
// mailgo buttons
|
||||
// mailgo buttons (actions)
|
||||
let gmail, outlook, open, telegram, wa, skype, call, copyMail, copyTel;
|
||||
|
||||
/**
|
||||
@@ -186,17 +186,7 @@
|
||||
|
||||
modalContent.appendChild(copyMail);
|
||||
|
||||
// by
|
||||
let by = document.createElement("a");
|
||||
by.id = "mailgo.js.org";
|
||||
by.href = "https://mailgo.js.org?ref=mailgo-modal";
|
||||
by.className = "mailgo-by";
|
||||
by.target = "_blank";
|
||||
by.rel = "noopener noreferrer";
|
||||
let textBy = document.createTextNode("mailgo.js.org");
|
||||
by.appendChild(textBy);
|
||||
|
||||
modalContent.appendChild(by);
|
||||
modalContent.appendChild(byElement());
|
||||
|
||||
// add the modal at the end of the body
|
||||
document.body.appendChild(modal);
|
||||
@@ -307,16 +297,7 @@
|
||||
|
||||
modalContent.appendChild(copyTel);
|
||||
|
||||
// by
|
||||
let by = document.createElement("a");
|
||||
by.href = "https://mailgo.js.org?ref=mailgo-modal";
|
||||
by.className = "mailgo-by";
|
||||
by.target = "_blank";
|
||||
by.rel = "noopener noreferrer";
|
||||
let textBy = document.createTextNode("mailgo.js.org");
|
||||
by.appendChild(textBy);
|
||||
|
||||
modalContent.appendChild(by);
|
||||
modalContent.appendChild(byElement());
|
||||
|
||||
// add the modal at the end of the body
|
||||
document.body.appendChild(modal);
|
||||
@@ -775,6 +756,19 @@
|
||||
: false;
|
||||
};
|
||||
|
||||
const byElement = () => {
|
||||
// by
|
||||
let by = document.createElement("a");
|
||||
by.href = "https://mailgo.js.org?ref=mailgo-modal";
|
||||
by.className = "mailgo-by";
|
||||
by.target = "_blank";
|
||||
by.rel = "noopener noreferrer";
|
||||
let textBy = document.createTextNode("mailgo.js.org");
|
||||
by.appendChild(textBy);
|
||||
|
||||
return by;
|
||||
};
|
||||
|
||||
// window exists
|
||||
const windowExists = () => window && typeof window !== "undefined";
|
||||
|
||||
|
||||
Reference in new issue
Block a user