a bit more light...

This commit is contained in:
Matteo Manzinello committed 2019-10-28 21:16:33 +01:00
1 parent 194e277690
commit 955b8635ff
5 files changed
+93 -99

No files matched your search

+1 -1
View File
@@ -1 +1 @@
.mailgo-modal{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;font-size:15px;z-index:10000}.mailgo-modal a,.mailgo-modal p,.mailgo-modal span,.mailgo-modal strong{margin:0;padding:0;font-size:100%;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"}.mailgo-modal strong{font-weight:700}.mailgo-modal .mailgo-modal-background{position:absolute;z-index:10001;top:0;right:0;bottom:0;left:0;background-color:rgba(32,35,42,.75);opacity:.8}.mailgo-modal .mailgo-modal-content{position:relative;z-index:10002;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;min-width:200px;max-width:240px;background-color:#fff;opacity:.97;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:0 3px 20px rgba(32,35,42,.5);-moz-box-shadow:0 3px 20px rgba(32,35,42,.5);box-shadow:0 3px 20px rgba(32,35,42,.5);color:#4a4a4a;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:auto;padding:20px;-webkit-transition:.5s -webkit-box-shadow;transition:.5s -webkit-box-shadow;-o-transition:.5s box-shadow;-moz-transition:.5s box-shadow,.5s -moz-box-shadow;transition:.5s box-shadow;transition:.5s box-shadow,.5s -webkit-box-shadow,.5s -moz-box-shadow}.mailgo-modal .mailgo-modal-content:hover{opacity:1;-webkit-box-shadow:0 7px 20px rgba(32,35,42,.85);-moz-box-shadow:0 7px 20px rgba(32,35,42,.85);box-shadow:0 7px 20px rgba(32,35,42,.85)}.mailgo-modal .mailgo-modal-content .mailgo-title{margin-bottom:8px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.mailgo-modal .mailgo-modal-content .mailgo-details{margin-bottom:10px}.mailgo-modal .mailgo-modal-content .mailgo-details p{font-size:12px;margin-top:3px;margin-bottom:3px}.mailgo-modal .mailgo-modal-content a{padding:10px;color:#4a4a4a;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;text-decoration:none}.mailgo-modal .mailgo-modal-content a.mailgo-gmail{color:#d44638}.mailgo-modal .mailgo-modal-content a.mailgo-outlook{color:#0072c6}.mailgo-modal .mailgo-modal-content a.mailgo-wa{color:#00bfa5}.mailgo-modal .mailgo-modal-content a.mailgo-telegram{color:#08c}.mailgo-modal .mailgo-modal-content a.mailgo-skype{color:#00aff0}.mailgo-modal .mailgo-modal-content a.mailgo-copy{padding:16px 10px;font-size:16px}.mailgo-modal .mailgo-modal-content a.mailgo-copy:hover,.mailgo-modal .mailgo-modal-content a.mailgo-default:hover{background-color:rgba(0,0,0,.08);color:#4a4a4a}.mailgo-modal .mailgo-modal-content a.mailgo-gmail:hover{background-color:rgba(212,70,56,.08);color:#d44638}.mailgo-modal .mailgo-modal-content a.mailgo-outlook:hover{background-color:rgba(0,114,198,.08);color:#0072c6}.mailgo-modal .mailgo-modal-content a.mailgo-telegram:hover{background-color:rgba(0,114,198,.08);color:#08c}.mailgo-modal .mailgo-modal-content a.mailgo-wa:hover{background-color:rgba(0,191,165,.08);color:#00bfa5}.mailgo-modal .mailgo-modal-content a.mailgo-skype:hover{background-color:rgba(0,175,240,.08);color:#00aff0}.mailgo-modal .mailgo-modal-content a.mailgo-by{font-size:8px;margin-top:.8rem;padding:5px;color:#4a4a4a;opacity:.5}.mailgo-modal .mailgo-modal-content a.mailgo-by:hover{opacity:1}.mailgo-modal .mailgo-modal-content .w-500{font-weight:500}
.m-modal{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;font-size:15px;z-index:10000}.m-modal a,.m-modal p,.m-modal span,.m-modal strong{margin:0;padding:0;font-size:100%;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"}.m-modal strong{font-weight:700}.m-modal .m-modal-back{position:absolute;z-index:10001;top:0;right:0;bottom:0;left:0;background-color:rgba(32,35,42,.75);opacity:.8}.m-modal .m-modal-content{position:relative;z-index:10002;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-align:center;min-width:200px;max-width:240px;background-color:#fff;opacity:.97;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-box-shadow:0 3px 20px rgba(32,35,42,.5);-moz-box-shadow:0 3px 20px rgba(32,35,42,.5);box-shadow:0 3px 20px rgba(32,35,42,.5);color:#4a4a4a;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:auto;padding:20px;-webkit-transition:.5s -webkit-box-shadow;transition:.5s -webkit-box-shadow;-o-transition:.5s box-shadow;-moz-transition:.5s box-shadow,.5s -moz-box-shadow;transition:.5s box-shadow;transition:.5s box-shadow,.5s -webkit-box-shadow,.5s -moz-box-shadow}.m-modal .m-modal-content:hover{opacity:1;-webkit-box-shadow:0 7px 20px rgba(32,35,42,.85);-moz-box-shadow:0 7px 20px rgba(32,35,42,.85);box-shadow:0 7px 20px rgba(32,35,42,.85)}.m-modal .m-modal-content .m-title{margin-bottom:8px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.m-modal .m-modal-content .m-details{margin-bottom:10px}.m-modal .m-modal-content .m-details p{font-size:12px;margin-top:3px;margin-bottom:3px}.m-modal .m-modal-content a{padding:10px;color:#4a4a4a;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;text-decoration:none}.m-modal .m-modal-content a.m-gmail{color:#d44638}.m-modal .m-modal-content a.m-gmail:hover{background-color:rgba(212,70,56,.08);color:#d44638}.m-modal .m-modal-content a.m-outlook{color:#0072c6}.m-modal .m-modal-content a.m-outlook:hover{background-color:rgba(0,114,198,.08);color:#0072c6}.m-modal .m-modal-content a.m-tg{color:#08c}.m-modal .m-modal-content a.m-tg:hover{background-color:rgba(0,114,198,.08);color:#08c}.m-modal .m-modal-content a.m-wa{color:#00bfa5}.m-modal .m-modal-content a.m-wa:hover{background-color:rgba(0,191,165,.08);color:#00bfa5}.m-modal .m-modal-content a.m-skype{color:#00aff0}.m-modal .m-modal-content a.m-skype:hover{background-color:rgba(0,175,240,.08);color:#00aff0}.m-modal .m-modal-content a.m-copy{padding:16px 10px;font-size:16px}.m-modal .m-modal-content a.m-copy:hover,.m-modal .m-modal-content a.m-default:hover{background-color:rgba(0,0,0,.08);color:#4a4a4a}.m-modal .m-modal-content a.m-by{font-size:8px;margin-top:.8rem;padding:5px;color:#4a4a4a;opacity:.5}.m-modal .m-modal-content a.m-by:hover{opacity:1}.m-modal .m-modal-content .w-500{font-weight:500}
+1 -1
View File
@@ -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),(_=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
"use strict";!function(){function a(){var e=document.createElement("div");e.style.display="none",e.id="mailgo",e.classList.add("m-modal");var t=document.createElement("div");t.className="m-modal-back",e.appendChild(t);var a=document.createElement("div");a.className="m-modal-content",e.appendChild(a),(_=document.createElement("strong")).id="m-title",_.className="m-title",a.appendChild(_);var o=document.createElement("div");o.id="m-details",o.className="m-details",(P=document.createElement("p")).id="m-cc";var n=document.createElement("span");n.className="w-500";var d=document.createTextNode("cc ");n.appendChild(d),(F=document.createElement("span")).id="m-cc-value",P.appendChild(n),P.appendChild(F),o.appendChild(P),(B=document.createElement("p")).id="m-bcc";var i=document.createElement("span");i.className="w-500";var c=document.createTextNode("bcc ");i.appendChild(c),(G=document.createElement("span")).id="m-bcc-value",B.appendChild(i),B.appendChild(G),o.appendChild(B),(O=document.createElement("p")).id="m-subject";var l=document.createElement("span");l.className="w-500";var m=document.createTextNode("subject ");l.appendChild(m),($=document.createElement("span")).id="m-subject-value",O.appendChild(l),O.appendChild($),o.appendChild(O),(Z=document.createElement("p")).id="m-body";var r=document.createElement("span");r.className="w-500";var s=document.createTextNode("body ");r.appendChild(s),(q=document.createElement("span")).id="m-body-value",Z.appendChild(r),Z.appendChild(q),o.appendChild(Z),a.appendChild(o),(J=document.createElement("a")).id="m-gmail",J.href=oe,J.classList.add("m-open"),J.classList.add("m-gmail");var p=document.createTextNode("open in ");J.appendChild(p);var u=document.createElement("span");u.className="w-500";var b=document.createTextNode("Gmail");u.appendChild(b),J.appendChild(u),a.appendChild(J),(K=document.createElement("a")).id="m-outlook",K.href=oe,K.classList.add("m-open"),K.classList.add("m-outlook");var h=document.createTextNode("open in ");K.appendChild(h);var f=document.createElement("span");f.className="w-500";var g=document.createTextNode("Outlook");f.appendChild(g),K.appendChild(f),a.appendChild(K),(Q=document.createElement("a")).id="m-open",Q.href=oe,Q.classList.add("m-open"),Q.classList.add("m-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),a.appendChild(Q),(te=document.createElement("a")).id="m-copy",te.href=oe,te.classList.add("m-copy"),te.classList.add("w-500");var C=document.createTextNode("copy");te.appendChild(C),a.appendChild(te),a.appendChild(de()),document.body.appendChild(e),t.addEventListener("click",ne);var k=document.createElement("div");k.style.display="none",k.id="mailgo-tel",k.classList.add("m-modal");var y=document.createElement("div");y.className="m-modal-back",k.appendChild(y);var E=document.createElement("div");E.className="m-modal-content",k.appendChild(E),(D=document.createElement("strong")).id="m-tel-title",D.className="m-title",E.appendChild(D),(V=document.createElement("a")).id="m-tg",V.href=oe,V.classList.add("m-open"),V.classList.add("m-tg"),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="m-wa",X.href=oe,X.classList.add("m-open"),X.classList.add("m-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="m-skype",Y.href=oe,Y.classList.add("m-open"),Y.classList.add("m-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="m-call",ee.href=oe,ee.classList.add("m-open"),ee.classList.add("m-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),(ae=document.createElement("a")).id="m-tel-copy",ae.href=oe,ae.classList.add("m-copy"),ae.classList.add("w-500");var H=document.createTextNode("copy");ae.appendChild(H),E.appendChild(ae),E.appendChild(de()),document.body.appendChild(k),y.addEventListener("click",ne)}function o(e,t){var a=0<arguments.length&&void 0!==e?e:m,o=1<arguments.length?t:void 0;if(a===m){if(o.href&&o.href.toLowerCase().startsWith(i)){p=decodeURIComponent(o.href.split("?")[0].split(i)[1].trim()),s=new URL(o.href);var n=new URLSearchParams(s.search);b=n.get("cc"),h=n.get("bcc"),f=n.get("subject"),g=n.get("body")}else p=o.getAttribute("datLine truncated
+1 -1
View File
@@ -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 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
!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("m-modal");var t=document.createElement("div");t.className="m-modal-back",e.appendChild(t);var o=document.createElement("div");o.className="m-modal-content",e.appendChild(o),(d=document.createElement("strong")).id="m-title",d.className="m-title",o.appendChild(d);var a=document.createElement("div");a.id="m-details",a.className="m-details",(c=document.createElement("p")).id="m-cc";var n=document.createElement("span");n.className="w-500";var E=document.createTextNode("cc ");n.appendChild(E),(s=document.createElement("span")).id="m-cc-value",c.appendChild(n),c.appendChild(s),a.appendChild(c),(l=document.createElement("p")).id="m-bcc";var L=document.createElement("span");L.className="w-500";var N=document.createTextNode("bcc ");L.appendChild(N),(p=document.createElement("span")).id="m-bcc-value",l.appendChild(L),l.appendChild(p),a.appendChild(l),(r=document.createElement("p")).id="m-subject";var T=document.createElement("span");T.className="w-500";var z=document.createTextNode("subject ");T.appendChild(z),(u=document.createElement("span")).id="m-subject-value",r.appendChild(T),r.appendChild(u),a.appendChild(r),(m=document.createElement("p")).id="m-body";var A=document.createElement("span");A.className="w-500";var S=document.createTextNode("body ");A.appendChild(S),(b=document.createElement("span")).id="m-body-value",m.appendChild(A),m.appendChild(b),a.appendChild(m),o.appendChild(a),(f=document.createElement("a")).id="m-gmail",f.href=j,f.classList.add("m-open"),f.classList.add("m-gmail");var R=document.createTextNode("open in ");f.appendChild(R);var U=document.createElement("span");U.className="w-500";var I=document.createTextNode("Gmail");U.appendChild(I),f.appendChild(U),o.appendChild(f),(h=document.createElement("a")).id="m-outlook",h.href=j,h.classList.add("m-open"),h.classList.add("m-outlook");var M=document.createTextNode("open in ");h.appendChild(M);var _=document.createElement("span");_.className="w-500";var O=document.createTextNode("Outlook");_.appendChild(O),h.appendChild(_),o.appendChild(h),(g=document.createElement("a")).id="m-open",g.href=j,g.classList.add("m-open"),g.classList.add("m-default");var P=document.createElement("span");P.className="w-500";var W=document.createTextNode("open");P.appendChild(W);var H=document.createTextNode(" default");g.appendChild(P),g.appendChild(H),o.appendChild(g),(C=document.createElement("a")).id="m-copy",C.href=j,C.classList.add("m-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("m-modal");var Z=document.createElement("div");Z.className="m-modal-back",B.appendChild(Z);var F=document.createElement("div");F.className="m-modal-content",B.appendChild(F),(i=document.createElement("strong")).id="m-tel-title",i.className="m-title",F.appendChild(i),(v=document.createElement("a")).id="m-tg",v.href=j,v.classList.add("m-open"),v.classList.add("m-tg"),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="m-wa",x.href=j,x.classList.add("m-open"),x.classList.add("m-wa");var J=document.createTextNode("open in ");x.appendChild(J);var K=document.createElement("span");K.className="w-500";var V=document.createTextNode("WhatsApp");K.appendChild(V),x.appendChild(K),F.appendChild(x),(w=document.createElement("a")).id="m-skype",w.href=j,w.classList.add("m-open"),w.classList.add("m-skype");var Y=docLine truncated
+48 -48
View File
@@ -54,73 +54,73 @@
let modal = document.createElement("div");
modal.style.display = "none";
modal.id = "mailgo";
modal.classList.add("mailgo-modal");
modal.classList.add("m-modal");
// background
let modalBackground = document.createElement("div");
modalBackground.className = "mailgo-modal-background";
modalBackground.className = "m-modal-back";
modal.appendChild(modalBackground);
// modal content
let modalContent = document.createElement("div");
modalContent.className = "mailgo-modal-content";
modalContent.className = "m-modal-content";
modal.appendChild(modalContent);
// title (email address)
title = document.createElement("strong");
title.id = "mailgo-title";
title.className = "mailgo-title";
title.id = "m-title";
title.className = "m-title";
modalContent.appendChild(title);
// details
let details = document.createElement("div");
details.id = "mailgo-details";
details.className = "mailgo-details";
details.id = "m-details";
details.className = "m-details";
detailCc = document.createElement("p");
detailCc.id = "mailgo-cc";
detailCc.id = "m-cc";
let ccSpan = document.createElement("span");
ccSpan.className = "w-500";
let ccContent = document.createTextNode("cc ");
ccSpan.appendChild(ccContent);
ccValue = document.createElement("span");
ccValue.id = "mailgo-cc-value";
ccValue.id = "m-cc-value";
detailCc.appendChild(ccSpan);
detailCc.appendChild(ccValue);
details.appendChild(detailCc);
detailBcc = document.createElement("p");
detailBcc.id = "mailgo-bcc";
detailBcc.id = "m-bcc";
let bccSpan = document.createElement("span");
bccSpan.className = "w-500";
let bccContent = document.createTextNode("bcc ");
bccSpan.appendChild(bccContent);
bccValue = document.createElement("span");
bccValue.id = "mailgo-bcc-value";
bccValue.id = "m-bcc-value";
detailBcc.appendChild(bccSpan);
detailBcc.appendChild(bccValue);
details.appendChild(detailBcc);
detailSubject = document.createElement("p");
detailSubject.id = "mailgo-subject";
detailSubject.id = "m-subject";
let subjectSpan = document.createElement("span");
subjectSpan.className = "w-500";
let subjectContent = document.createTextNode("subject ");
subjectSpan.appendChild(subjectContent);
subjectValue = document.createElement("span");
subjectValue.id = "mailgo-subject-value";
subjectValue.id = "m-subject-value";
detailSubject.appendChild(subjectSpan);
detailSubject.appendChild(subjectValue);
details.appendChild(detailSubject);
detailBody = document.createElement("p");
detailBody.id = "mailgo-body";
detailBody.id = "m-body";
let bodySpan = document.createElement("span");
bodySpan.className = "w-500";
let bodyContent = document.createTextNode("body ");
bodySpan.appendChild(bodyContent);
bodyValue = document.createElement("span");
bodyValue.id = "mailgo-body-value";
bodyValue.id = "m-body-value";
detailBody.appendChild(bodySpan);
detailBody.appendChild(bodyValue);
details.appendChild(detailBody);
@@ -129,10 +129,10 @@
// Gmail
gmail = document.createElement("a");
gmail.id = "mailgo-gmail";
gmail.id = "m-gmail";
gmail.href = DEFAULT_BTN_HREF;
gmail.classList.add("mailgo-open");
gmail.classList.add("mailgo-gmail");
gmail.classList.add("m-open");
gmail.classList.add("m-gmail");
let gmailContent = document.createTextNode("open in ");
gmail.appendChild(gmailContent);
let gmailSpan = document.createElement("span");
@@ -145,10 +145,10 @@
// Outlook
outlook = document.createElement("a");
outlook.id = "mailgo-outlook";
outlook.id = "m-outlook";
outlook.href = DEFAULT_BTN_HREF;
outlook.classList.add("mailgo-open");
outlook.classList.add("mailgo-outlook");
outlook.classList.add("m-open");
outlook.classList.add("m-outlook");
let outlookContent = document.createTextNode("open in ");
outlook.appendChild(outlookContent);
let outlookSpan = document.createElement("span");
@@ -161,10 +161,10 @@
// open default
open = document.createElement("a");
open.id = "mailgo-open";
open.id = "m-open";
open.href = DEFAULT_BTN_HREF;
open.classList.add("mailgo-open");
open.classList.add("mailgo-default");
open.classList.add("m-open");
open.classList.add("m-default");
let openSpan = document.createElement("span");
openSpan.className = "w-500";
let openSpanContent = document.createTextNode("open");
@@ -177,9 +177,9 @@
// copy
copyMail = document.createElement("a");
copyMail.id = "mailgo-copy";
copyMail.id = "m-copy";
copyMail.href = DEFAULT_BTN_HREF;
copyMail.classList.add("mailgo-copy");
copyMail.classList.add("m-copy");
copyMail.classList.add("w-500");
let copyContent = document.createTextNode("copy");
copyMail.appendChild(copyContent);
@@ -200,30 +200,30 @@
let modal = document.createElement("div");
modal.style.display = "none";
modal.id = "mailgo-tel";
modal.classList.add("mailgo-modal");
modal.classList.add("m-modal");
// background
let modalBackground = document.createElement("div");
modalBackground.className = "mailgo-modal-background";
modalBackground.className = "m-modal-back";
modal.appendChild(modalBackground);
// modal content
let modalContent = document.createElement("div");
modalContent.className = "mailgo-modal-content";
modalContent.className = "m-modal-content";
modal.appendChild(modalContent);
// title (telephone number)
titleTel = document.createElement("strong");
titleTel.id = "mailgo-tel-title";
titleTel.className = "mailgo-title";
titleTel.id = "m-tel-title";
titleTel.className = "m-title";
modalContent.appendChild(titleTel);
// Telegram
telegram = document.createElement("a");
telegram.id = "mailgo-telegram";
telegram.id = "m-tg";
telegram.href = DEFAULT_BTN_HREF;
telegram.classList.add("mailgo-open");
telegram.classList.add("mailgo-telegram");
telegram.classList.add("m-open");
telegram.classList.add("m-tg");
// by default not display
telegram.style.display = "none";
@@ -240,10 +240,10 @@
// WhatsApp
wa = document.createElement("a");
wa.id = "mailgo-wa";
wa.id = "m-wa";
wa.href = DEFAULT_BTN_HREF;
wa.classList.add("mailgo-open");
wa.classList.add("mailgo-wa");
wa.classList.add("m-open");
wa.classList.add("m-wa");
let waContent = document.createTextNode("open in ");
wa.appendChild(waContent);
let waSpan = document.createElement("span");
@@ -256,10 +256,10 @@
// Skype
skype = document.createElement("a");
skype.id = "mailgo-skype";
skype.id = "m-skype";
skype.href = DEFAULT_BTN_HREF;
skype.classList.add("mailgo-open");
skype.classList.add("mailgo-skype");
skype.classList.add("m-open");
skype.classList.add("m-skype");
let skypeContent = document.createTextNode("open in ");
skype.appendChild(skypeContent);
let skypeSpan = document.createElement("span");
@@ -272,10 +272,10 @@
// call default
call = document.createElement("a");
call.id = "mailgo-call";
call.id = "m-call";
call.href = DEFAULT_BTN_HREF;
call.classList.add("mailgo-open");
call.classList.add("mailgo-default");
call.classList.add("m-open");
call.classList.add("m-default");
let callSpan = document.createElement("span");
callSpan.className = "w-500";
let callSpanContent = document.createTextNode("call");
@@ -288,9 +288,9 @@
// copy
copyTel = document.createElement("a");
copyTel.id = "mailgo-tel-copy";
copyTel.id = "m-tel-copy";
copyTel.href = DEFAULT_BTN_HREF;
copyTel.classList.add("mailgo-copy");
copyTel.classList.add("m-copy");
copyTel.classList.add("w-500");
let copyContent = document.createTextNode("copy");
copyTel.appendChild(copyContent);
@@ -423,7 +423,7 @@
}
// information
// let titleEl = getE("mailgo-tel-title");
// let titleEl = getE("m-tel-title");
// Telegram username
if (mailgo.hasAttribute("data-telegram")) {
@@ -442,7 +442,7 @@
wa.addEventListener("click", openWhatsApp);
if (telegramUsername) {
setDisplay("mailgo-telegram", "block");
setDisplay("m-tg", "block");
telegram.addEventListener("click", openTelegram);
}
@@ -760,7 +760,7 @@
// by
let by = document.createElement("a");
by.href = "https://mailgo.js.org?ref=mailgo-modal";
by.className = "mailgo-by";
by.className = "m-by";
by.target = "_blank";
by.rel = "noopener noreferrer";
let textBy = document.createTextNode("mailgo.js.org");
+42 -48
View File
@@ -13,7 +13,7 @@ $skype-color: #00aff0;
// other vars
$default-border-radius: 8px;
.mailgo-modal {
.m-modal {
position: fixed;
top: 0;
right: 0;
@@ -41,7 +41,7 @@ $default-border-radius: 8px;
font-weight: 700;
}
.mailgo-modal-background {
.m-modal-back {
position: absolute;
z-index: 10001;
top: 0;
@@ -52,7 +52,7 @@ $default-border-radius: 8px;
opacity: 0.8;
}
.mailgo-modal-content {
.m-modal-content {
position: relative;
z-index: 10002;
box-sizing: content-box;
@@ -75,21 +75,20 @@ $default-border-radius: 8px;
box-shadow: 0px 7px 20px rgba(32, 35, 42, 0.85);
}
.mailgo-title {
.m-title {
margin-bottom: $default-border-radius;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.mailgo-details {
.m-details {
margin-bottom: 10px;
}
.mailgo-details p {
font-size: 12px;
margin-top: 3px;
margin-bottom: 3px;
p {
font-size: 12px;
margin-top: 3px;
margin-bottom: 3px;
}
}
a {
@@ -98,63 +97,58 @@ $default-border-radius: 8px;
border-radius: 5px;
text-decoration: none;
&.mailgo-gmail {
&.m-gmail {
color: $gmail-color;
&:hover {
background-color: rgba(212, 70, 56, 0.08);
color: $gmail-color;
}
}
&.mailgo-outlook {
&.m-outlook {
color: $outlook-color;
&:hover {
background-color: rgba(0, 114, 198, 0.08);
color: $outlook-color;
}
}
&.mailgo-wa {
color: $wa-color;
}
&.mailgo-telegram {
&.m-tg {
color: $telegram-color;
&:hover {
background-color: rgba(0, 114, 198, 0.08);
color: $telegram-color;
}
}
&.mailgo-skype {
&.m-wa {
color: $wa-color;
&:hover {
background-color: rgba(0, 191, 165, 0.08);
color: $wa-color;
}
}
&.m-skype {
color: $skype-color;
&:hover {
background-color: rgba(0, 175, 240, 0.08);
color: $skype-color;
}
}
&.mailgo-copy {
&.m-copy {
padding: 16px 10px;
font-size: 16px;
}
&.mailgo-default:hover,
&.mailgo-copy:hover {
&.m-default:hover,
&.m-copy:hover {
background-color: rgba(0, 0, 0, 0.08);
color: $default-color;
}
&.mailgo-gmail:hover {
background-color: rgba(212, 70, 56, 0.08);
color: $gmail-color;
}
&.mailgo-outlook:hover {
background-color: rgba(0, 114, 198, 0.08);
color: $outlook-color;
}
&.mailgo-telegram:hover {
background-color: rgba(0, 114, 198, 0.08);
color: $telegram-color;
}
&.mailgo-wa:hover {
background-color: rgba(0, 191, 165, 0.08);
color: $wa-color;
}
&.mailgo-skype:hover {
background-color: rgba(0, 175, 240, 0.08);
color: $skype-color;
}
&.mailgo-by {
&.m-by {
font-size: 8px;
margin-top: 0.8rem;
padding: 5px;