Commit 43ef9dfa authored by Luc Didry's avatar Luc Didry
Browse files

Add Some Time Later font

parent 28869e53
Pipeline #28188 passed with stage
in 16 seconds
......@@ -258,6 +258,7 @@
<option value="Open Sans" selected>Open Sans</option>
<option value="Nosifer">Nosifer</option>
<option value="Amarante">Amarante</option>
<option value="Some Time Later">Some Time Later</option>
</select>
</div>
</div>
......@@ -292,6 +293,7 @@
<option value="Open Sans" selected>Open Sans</option>
<option value="Nosifer">Nosifer</option>
<option value="Amarante">Amarante</option>
<option value="Some Time Later">Some Time Later</option>
</select>
</div>
</div>
......
......@@ -41,6 +41,12 @@ var fonts = {
'italic' : 'fonts/open-sans/OpenSans-Italic.woff2',
'italic bold' : 'fonts/open-sans/OpenSans-BoldItalic.woff2'
},
'Some Time Later': {
'regular' : 'fonts/some-time-later/Some-Time-Later.woff2',
'bold' : 'fonts/some-time-later/Some-Time-Later.woff2',
'italic' : 'fonts/some-time-later/Some-Time-Later.woff2',
'italic bold' : 'fonts/some-time-later/Some-Time-Later.woff2',
},
'Nosifer': {
'regular' : 'fonts/nosifer/nosifer.woff2',
'bold' : 'fonts/nosifer/nosifer.woff2',
......
......@@ -32,14 +32,14 @@ else{new FontFace(t,"url("+fonts[t][r]+")").load().then(function(e){console.log(
a.onload=function(e){var a=new Image
a.onload=function(){var e=$("<option>"),t=$("#bg-img"),r=$('option[value="custom"]')
0!==r.length&&r.remove(),e.attr("value","custom"),e.text(customImgText),t.append(e),t.val("custom"),customImg=a,$("#custom-x").val(0),$("#custom-y").val(0),$("#custom-size").val(0),refreshText()},a.src=e.target.result},a.readAsDataURL(e.target.files[0])}function switchTextColors(){var e=$("#wemake-color"),a=$("#porn-color"),t=e.val(),r=a.val()
e.val(r),a.val(t)}function reset(){$("#wemake-x").val("400"),$("#wemake-y").val("160"),$("#wemake-size").val("150"),$("#wemake-color").val("#000000"),$("#wemake-alpha").val("0"),$("#wemake-font").val("Open Sans"),$("#wemake-font-style").val("bold"),$("#wemake-width").val("725"),$("#porn-x").val("400"),$("#porn-y").val("350"),$("#porn-size").val("220"),$("#porn-color").val("#000000"),$("#porn-alpha").val("0"),$("#porn-font").val("Open Sans"),$("#porn-font-style").val("bold"),$("#porn-width").val("725"),$("#bgu-color").val("#fcd205"),$("#rect-color").val("#000000"),$("#rect-alpha").val("0"),$("#add-glitter").prop("checked",!1),$("#bg-type").val("plain"),$("#gr-orientation").val("lr"),$("#bg-img").val("beer"),$("#corners").val("20"),$("#custom-img").val(null),$("#custom-x").val(0),$("#custom-y").val(0),$("#custom-size").val(0),$("#img-width").val(800),$("#img-height").val(400),$("#border-thickness").val(20),$("#custom-img-url").val(null),$("#add-rick").prop("checked",!1),$("#rick-x").val(0),$("#rick-y").val(0),$("#rick-size").val(100),$("#rick-rad").val(0),$("#wemake-outline-color").val("#FFFFFF"),$("#wemake-outline-size").val(0),$("#porn-outline-color").val("#FFFFFF"),$("#porn-outline-size").val(0),show("bg-color"),hide("gradient-settings"),hide("bg-img-settings"),hide("bg-custom-img-settings"),refreshText()}function refreshText(){var e=$("#wemake").val(),a=$("#wemake-x").val(),t=$("#wemake-y").val(),r=$("#wemake-size").val(),s=$("#wemake-color").val(),o=$("#wemake-alpha").val(),l=$("#wemake-font").val(),n=$("#wemake-font-style").val(),i=$("#wemake-width").val(),c=$("#porn").val(),g=$("#porn-x").val(),m=$("#porn-y").val(),d=$("#porn-size").val(),h=$("#porn-color").val(),v=$("#porn-alpha").val(),u=$("#porn-font").val(),f=$("#porn-font-style").val(),p=$("#porn-width").val(),w=$("#bgu-color").val(),b=$("#add-glitter").prop("checked"),k=$("#bg-type").val(),P=$("#rect-color").val(),y=$("#rect-alpha").val(),x=$("#bgr-color").val(),C=$("#egr-color").val(),S=$("#gr-orientation").val(),I=$("#bg-img").val(),T=$("#corners").val(),z=$("#border-thickness").val(),F=$("#custom-x").val(),R=$("#custom-y").val(),L=$("#custom-size").val(),O=$("#custom-img-url")[0].checkValidity()?$("#custom-img-url").val():"",G=$("#add-rick").prop("checked"),U=$("#rick-x").val(),A=$("#rick-y").val(),D=$("#rick-size").val(),B=$("#rick-rad").val(),N=$("#wemake-outline-color").val(),E=$("#wemake-outline-size").val(),W=$("#porn-outline-color").val(),q=$("#porn-outline-size").val(),J=$("#img-width").val(),M=$("#img-height").val()
e.val(r),a.val(t)}function reset(){$("#wemake-x").val("400"),$("#wemake-y").val("160"),$("#wemake-size").val("150"),$("#wemake-color").val("#000000"),$("#wemake-alpha").val("0"),$("#wemake-font").val("Open Sans"),$("#wemake-font-style").val("bold"),$("#wemake-width").val("725"),$("#porn-x").val("400"),$("#porn-y").val("350"),$("#porn-size").val("220"),$("#porn-color").val("#000000"),$("#porn-alpha").val("0"),$("#porn-font").val("Open Sans"),$("#porn-font-style").val("bold"),$("#porn-width").val("725"),$("#bgu-color").val("#fcd205"),$("#rect-color").val("#000000"),$("#rect-alpha").val("0"),$("#add-glitter").prop("checked",!1),$("#bg-type").val("plain"),$("#gr-orientation").val("lr"),$("#bg-img").val("beer"),$("#corners").val("20"),$("#custom-img").val(null),$("#custom-x").val(0),$("#custom-y").val(0),$("#custom-size").val(0),$("#img-width").val(800),$("#img-height").val(400),$("#border-thickness").val(20),$("#custom-img-url").val(null),$("#add-rick").prop("checked",!1),$("#rick-x").val(0),$("#rick-y").val(0),$("#rick-size").val(100),$("#rick-rad").val(0),$("#wemake-outline-color").val("#FFFFFF"),$("#wemake-outline-size").val(0),$("#porn-outline-color").val("#FFFFFF"),$("#porn-outline-size").val(0),show("bg-color"),hide("gradient-settings"),hide("bg-img-settings"),hide("bg-custom-img-settings"),refreshText()}function refreshText(){var e=$("#wemake").val(),a=$("#wemake-x").val(),t=$("#wemake-y").val(),r=$("#wemake-size").val(),s=$("#wemake-color").val(),o=$("#wemake-alpha").val(),l=$("#wemake-font").val(),n=$("#wemake-font-style").val(),i=$("#wemake-width").val(),c=$("#porn").val(),g=$("#porn-x").val(),m=$("#porn-y").val(),d=$("#porn-size").val(),h=$("#porn-color").val(),v=$("#porn-alpha").val(),f=$("#porn-font").val(),u=$("#porn-font-style").val(),p=$("#porn-width").val(),w=$("#bgu-color").val(),b=$("#add-glitter").prop("checked"),k=$("#bg-type").val(),P=$("#rect-color").val(),y=$("#rect-alpha").val(),x=$("#bgr-color").val(),S=$("#egr-color").val(),C=$("#gr-orientation").val(),I=$("#bg-img").val(),T=$("#corners").val(),z=$("#border-thickness").val(),F=$("#custom-x").val(),R=$("#custom-y").val(),L=$("#custom-size").val(),O=$("#custom-img-url")[0].checkValidity()?$("#custom-img-url").val():"",G=$("#add-rick").prop("checked"),U=$("#rick-x").val(),A=$("#rick-y").val(),D=$("#rick-size").val(),B=$("#rick-rad").val(),N=$("#wemake-outline-color").val(),E=$("#wemake-outline-size").val(),W=$("#porn-outline-color").val(),q=$("#porn-outline-size").val(),J=$("#img-width").val(),M=$("#img-height").val()
$("#canvas").remove()
var V=document.createElement("canvas")
V.id="canvas",V.classList.add("img-fluid"),V.width=J,V.height=M,document.getElementById("canvas-container").appendChild(V)
var j=V.getContext("2d"),H=$("#svg")
svg=new C2S(J,M),!1===H.hasClass("d-none")&&(j=svg)
var _=new URL(window.location)
window.history.pushState("change","WemaWema",createUrl(_,e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,w,y,b,k,P,x,C,S,I,T,z,J,M,F,R,L,O,G,U,A,D,B,N,E,W,q)),drawCtx(!1,j,P,y,r,s,o,l,n,e,a,t,d,h,v,u,f,c,g,m,b,J,M,z,k,w,T,I,L,x,C,S,F,R,O,G,U,A,D,B,i,p,N,E,W,q)}function drawCtx(e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,w,b,k,P,y,x,C,S,I,T,z,F,R,L,O,G,U,A,D,B,N,E,W,q,J,M,V,j){switch(a.clearRect(0,0,P,y),C){case"plain":a.fillStyle=S
window.history.pushState("change","WemaWema",createUrl(_,e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,w,y,b,k,P,x,S,C,I,T,z,J,M,F,R,L,O,G,U,A,D,B,N,E,W,q)),drawCtx(!1,j,P,y,r,s,o,l,n,e,a,t,d,h,v,f,u,c,g,m,b,J,M,z,k,w,T,I,L,x,S,C,F,R,O,G,U,A,D,B,i,p,N,E,W,q)}function drawCtx(e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,w,b,k,P,y,x,S,C,I,T,z,F,R,L,O,G,U,A,D,B,N,E,W,q,J,M,V,j){switch(a.clearRect(0,0,P,y),S){case"plain":a.fillStyle=C
break
case"gradient":var H
switch(L){case"lr":H=a.createLinearGradient(0,y/2,P,y/2)
......@@ -54,18 +54,18 @@ case"r":H=a.createRadialGradient(P/2,y/2,25,P/2,y/2,P/2)}H.addColorStop(0,F),H.a
break
case"img":if(!0!==e&&"custom"===T&&void 0!==customImg&&null!==customImg){var _=customImg.width,K=customImg.height,Q=scalePreserveAspectRatio(_,K,P,y)
if(0===parseFloat(z)?(z=Math.round(1e3*Q)/1e3,!0!==e&&$("#custom-size").val(z)):Q=z,!0!==e){var X=new URL(window.location)
window.history.pushState("change","WemaWema",createUrl(X,c,g,m,s,o,l,n,i,W,p,w,b,d,h,v,u,f,q,S,r,k,C,t,F,R,L,T,I,x,P,y,O,G,z,U,A,D,B,N,E,J,M,V,j))}a.drawImage(customImg,0,0,_,K,O,G,_*Q,K*Q),drawOver(a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,w,b,k,P,y,x,A,D,B,N,E,W,q,J,M,V,j)}else{""!==T&&("custom"!==T||void 0!==U&&null!==U&&""!==U)||(T="beer",!0===e||void 0!==U&&null!==U&&""!==U||$("#bg-img").val("beer"))
window.history.pushState("change","WemaWema",createUrl(X,c,g,m,s,o,l,n,i,W,p,w,b,d,h,v,f,u,q,C,r,k,S,t,F,R,L,T,I,x,P,y,O,G,z,U,A,D,B,N,E,J,M,V,j))}a.drawImage(customImg,0,0,_,K,O,G,_*Q,K*Q),drawOver(a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,w,b,k,P,y,x,A,D,B,N,E,W,q,J,M,V,j)}else{""!==T&&("custom"!==T||void 0!==U&&null!==U&&""!==U)||(T="beer",!0===e||void 0!==U&&null!==U&&""!==U||$("#bg-img").val("beer"))
var Y=new Image,Z="img/"+T
20===parseInt(I)&&(Z+="-round"),void 0===U||null===U||""===U?Z+=".png":Z=U,Y.src=Z,Y.onload=function(){var H=Y.width,_=Y.height,K=scalePreserveAspectRatio(H,_,P,y)
if(0===parseFloat(z)?(z=Math.round(1e3*K)/1e3,!0!==e&&$("#custom-size").val(z)):K=z,!0!==e){var Q=new URL(window.location)
window.history.pushState("change","WemaWema",createUrl(Q,c,g,m,s,o,l,n,i,W,p,w,b,d,h,v,u,f,q,S,r,k,C,t,F,R,L,T,I,x,P,y,O,G,z,U,A,D,B,N,E,J,M,V,j))}a.drawImage(Y,0,0,H,_,O,G,H*K,_*K),drawOver(a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,w,b,k,P,y,x,A,D,B,N,E,W,q,J,M,V,j)}}return
window.history.pushState("change","WemaWema",createUrl(Q,c,g,m,s,o,l,n,i,W,p,w,b,d,h,v,f,u,q,C,r,k,S,t,F,R,L,T,I,x,P,y,O,G,z,U,A,D,B,N,E,J,M,V,j))}a.drawImage(Y,0,0,H,_,O,G,H*K,_*K),drawOver(a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,w,b,k,P,y,x,A,D,B,N,E,W,q,J,M,V,j)}}return
case"rainbow":var H=a.createLinearGradient(P/2,0,P/2,y),ee=svg.createLinearGradient(P/2,0,P/2,y)
H.addColorStop(0,"#e50000"),H.addColorStop(.2,"#ff8d00"),H.addColorStop(.4,"#ffee00"),H.addColorStop(.6,"#008121"),H.addColorStop(.8,"#004cff"),H.addColorStop(1,"#760188"),ee.addColorStop(0,"#e50000"),ee.addColorStop(.2,"#ff8d00"),ee.addColorStop(.4,"#ffee00"),ee.addColorStop(.6,"#008121"),ee.addColorStop(.8,"#004cff"),ee.addColorStop(1,"#760188"),a.fillStyle=H,svg.fillStyle=ee}roundRect(a,0,0,P,y,parseInt(I),!0,!1),drawOver(a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,w,b,k,P,y,x,A,D,B,N,E,W,q,J,M,V,j)}function drawOver(e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,w,b,k,P,y,x,C,S,I,T,z,F,R,L,O,G){y>0&&(e.lineWidth=y,e.strokeStyle=colorToRGBA(a,t),roundRect(e,1*k/32,1*P/16,15*k/16,7*P/8,20,!1)),e.textAlign="center"
H.addColorStop(0,"#e50000"),H.addColorStop(.2,"#ff8d00"),H.addColorStop(.4,"#ffee00"),H.addColorStop(.6,"#008121"),H.addColorStop(.8,"#004cff"),H.addColorStop(1,"#760188"),ee.addColorStop(0,"#e50000"),ee.addColorStop(.2,"#ff8d00"),ee.addColorStop(.4,"#ffee00"),ee.addColorStop(.6,"#008121"),ee.addColorStop(.8,"#004cff"),ee.addColorStop(1,"#760188"),a.fillStyle=H,svg.fillStyle=ee}roundRect(a,0,0,P,y,parseInt(I),!0,!1),drawOver(a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,w,b,k,P,y,x,A,D,B,N,E,W,q,J,M,V,j)}function drawOver(e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,w,b,k,P,y,x,S,C,I,T,z,F,R,L,O,G){y>0&&(e.lineWidth=y,e.strokeStyle=colorToRGBA(a,t),roundRect(e,1*k/32,1*P/16,15*k/16,7*P/8,20,!1)),e.textAlign="center"
var U="regular"===n?"":n+" "
if(e.font=U+parseInt(r)+"px '"+l+"'",e.fillStyle=colorToRGBA(s,o),L>0&&(e.strokeStyle=R,e.lineWidth=L,e.strokeText(i,parseInt(c),parseInt(g),z)),e.fillText(i,parseInt(c),parseInt(g),z),U="regular"===u?"":u+" ",e.font=U+parseInt(m)+"px '"+v,e.fillStyle=colorToRGBA(d,h),G>0&&(e.strokeStyle=O,e.lineWidth=G,e.strokeText(f,parseInt(p),parseInt(w),F)),e.fillText(f,parseInt(p),parseInt(w),F),x){var A=new Image
A.src="img/Rick.png",A.onload=function(){C=parseInt(C),S=parseInt(S)
if(e.font=U+parseInt(r)+"px '"+l+"'",e.fillStyle=colorToRGBA(s,o),L>0&&(e.strokeStyle=R,e.lineWidth=L,e.strokeText(i,parseInt(c),parseInt(g),z)),e.fillText(i,parseInt(c),parseInt(g),z),U="regular"===f?"":f+" ",e.font=U+parseInt(m)+"px '"+v,e.fillStyle=colorToRGBA(d,h),G>0&&(e.strokeStyle=O,e.lineWidth=G,e.strokeText(u,parseInt(p),parseInt(w),F)),e.fillText(u,parseInt(p),parseInt(w),F),x){var A=new Image
A.src="img/Rick.png",A.onload=function(){S=parseInt(S),C=parseInt(C)
var a=A.width*I/100,t=A.height*I/100
if(console.log(a),console.log(t),e.translate(C+a/2,S+t/2),e.rotate(T*Math.PI/180),e.drawImage(A,-a/2,-t/2,a,t),e.rotate(-T*Math.PI/180),e.translate(-(C+a/2),-(S+t/2)),b){var r=new Image
if(console.log(a),console.log(t),e.translate(S+a/2,C+t/2),e.rotate(T*Math.PI/180),e.drawImage(A,-a/2,-t/2,a,t),e.rotate(-T*Math.PI/180),e.translate(-(S+a/2),-(C+t/2)),b){var r=new Image
r.src="img/glitter-calc.png",r.onload=function(){e.drawImage(r,0,0),$("#svg").html(svg.getSerializedSvg())}}else $("#svg").html(svg.getSerializedSvg())}}else if(b){var D=new Image
D.src="img/glitter-calc.png",D.onload=function(){e.drawImage(D,0,0),$("#svg").html(svg.getSerializedSvg())}}else $("#svg").html(svg.getSerializedSvg())}function roundRect(e,a,t,r,s,o,l,n){if(void 0===n&&(n=!0),void 0===o&&(o=5),"number"==typeof o)o={tl:o,tr:o,br:o,bl:o}
else{var i={tl:0,tr:0,br:0,bl:0}
......@@ -104,5 +104,5 @@ var s="; expires="+r.toGMTString()}else var s=""
document.cookie=e+"="+a+s+"; path=/"}function readCookie(e){for(var a=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var s=t[r];" "==s.charAt(0);)s=s.substring(1,s.length)
if(0==s.indexOf(a))return s.substring(a.length,s.length)}return null}function centerText(e){e.preventDefault()
var a=$("#wemake-x"),t=$("#wemake-y"),r=$("#porn-x"),s=$("#porn-y"),o=$("#img-width").val(),l=$("#img-height").val()
a.val(o/2),t.val(l/4+3*l/20),r.val(o/2),s.val(3*l/4+l/8),refreshText()}function createUrl(e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,u,f,p,$,w,b,k,P,y,x,C,S,I,T,z,F,R,L,O,G,U,A,D,B,N,E,W,q,J,M){return e.searchParams.set("w",a),e.searchParams.set("wx",t),e.searchParams.set("wy",r),e.searchParams.set("ws",s),e.searchParams.set("wc",o),e.searchParams.set("wa",l),e.searchParams.set("wf",n),e.searchParams.set("wfs",i),e.searchParams.set("p",g),e.searchParams.set("px",m),e.searchParams.set("py",d),e.searchParams.set("ps",h),e.searchParams.set("pc",v),e.searchParams.set("pa",u),e.searchParams.set("pf",f),e.searchParams.set("pfs",p),e.searchParams.set("co",w),e.searchParams.set("ra",b),e.searchParams.set("gli",k),e.searchParams.set("bgt",P),e.searchParams.set("rc",y),e.searchParams.set("bgr",x),e.searchParams.set("egr",C),e.searchParams.set("or",S),e.searchParams.set("bgi",I),e.searchParams.set("cor",T),e.searchParams.set("bth",z),e.searchParams.set("width",F),e.searchParams.set("height",R),e.searchParams.set("x",L),e.searchParams.set("y",O),e.searchParams.set("s",G),e.searchParams.set("bgu",U),e.searchParams.set("r",A),e.searchParams.set("rx",D),e.searchParams.set("ry",B),e.searchParams.set("rs",N),e.searchParams.set("rr",E),e.searchParams.set("woc",W),e.searchParams.set("wos",q),e.searchParams.set("poc",J),e.searchParams.set("pos",M),e}var svg,workCanvas="Work with canvas",workSvg="Work with SVG",customImgText="Custom image",sorryNoGallery="Sorry, but you haven't saved any image yet",load="Load",deleteText="Delete",download="Download",downloadClic='Please, right-click on the sticker and select "Save as" to download the sticker',customImg,fonts={Amarante:{regular:"fonts/amarante/Amarante.woff2",bold:"fonts/amarante/Amarante.woff2",italic:"fonts/amarante/Amarante.woff2","italic bold":"fonts/amarante/Amarante.woff2"},"Comic Neue":{regular:"fonts/comic-neue/ComicNeue-Regular.woff2",bold:"fonts/comic-neue/ComicNeue-Bold.woff2",italic:"fonts/comic-neue/ComicNeue-Regular-Oblique.woff2","italic bold":"fonts/comic-neue/ComicNeue-Bold-Oblique.woff2"},"Comic Spice":{regular:"fonts/comic-spice/ComicSpice.woff2",bold:"fonts/comic-spice/ComicSpice.woff2",italic:"fonts/comic-spice/ComicSpice.woff2","italic bold":"fonts/comic-spice/ComicSpice.woff2"},Hack:{regular:"fonts/hack/hack-regular-webfont.woff2",bold:"fonts/hack/hack-bold-webfont.woff2",italic:"fonts/hack/hack-italic-webfont.woff2","italic bold":"fonts/hack/hack-bolditalic-webfont.woff2"},"Open Sans":{regular:"fonts/open-sans/OpenSans-Regular.woff2",bold:"fonts/open-sans/OpenSans-Bold.woff2",italic:"fonts/open-sans/OpenSans-Italic.woff2","italic bold":"fonts/open-sans/OpenSans-BoldItalic.woff2"},Nosifer:{regular:"fonts/nosifer/nosifer.woff2",bold:"fonts/nosifer/nosifer.woff2",italic:"fonts/nosifer/nosifer.woff2","italic bold":"fonts/nosifer/nosifer.woff2"}},loadedFonts={}
a.val(o/2),t.val(l/4+3*l/20),r.val(o/2),s.val(3*l/4+l/8),refreshText()}function createUrl(e,a,t,r,s,o,l,n,i,c,g,m,d,h,v,f,u,p,$,w,b,k,P,y,x,S,C,I,T,z,F,R,L,O,G,U,A,D,B,N,E,W,q,J,M){return e.searchParams.set("w",a),e.searchParams.set("wx",t),e.searchParams.set("wy",r),e.searchParams.set("ws",s),e.searchParams.set("wc",o),e.searchParams.set("wa",l),e.searchParams.set("wf",n),e.searchParams.set("wfs",i),e.searchParams.set("p",g),e.searchParams.set("px",m),e.searchParams.set("py",d),e.searchParams.set("ps",h),e.searchParams.set("pc",v),e.searchParams.set("pa",f),e.searchParams.set("pf",u),e.searchParams.set("pfs",p),e.searchParams.set("co",w),e.searchParams.set("ra",b),e.searchParams.set("gli",k),e.searchParams.set("bgt",P),e.searchParams.set("rc",y),e.searchParams.set("bgr",x),e.searchParams.set("egr",S),e.searchParams.set("or",C),e.searchParams.set("bgi",I),e.searchParams.set("cor",T),e.searchParams.set("bth",z),e.searchParams.set("width",F),e.searchParams.set("height",R),e.searchParams.set("x",L),e.searchParams.set("y",O),e.searchParams.set("s",G),e.searchParams.set("bgu",U),e.searchParams.set("r",A),e.searchParams.set("rx",D),e.searchParams.set("ry",B),e.searchParams.set("rs",N),e.searchParams.set("rr",E),e.searchParams.set("woc",W),e.searchParams.set("wos",q),e.searchParams.set("poc",J),e.searchParams.set("pos",M),e}var svg,workCanvas="Work with canvas",workSvg="Work with SVG",customImgText="Custom image",sorryNoGallery="Sorry, but you haven't saved any image yet",load="Load",deleteText="Delete",download="Download",downloadClic='Please, right-click on the sticker and select "Save as" to download the sticker',customImg,fonts={Amarante:{regular:"fonts/amarante/Amarante.woff2",bold:"fonts/amarante/Amarante.woff2",italic:"fonts/amarante/Amarante.woff2","italic bold":"fonts/amarante/Amarante.woff2"},"Comic Neue":{regular:"fonts/comic-neue/ComicNeue-Regular.woff2",bold:"fonts/comic-neue/ComicNeue-Bold.woff2",italic:"fonts/comic-neue/ComicNeue-Regular-Oblique.woff2","italic bold":"fonts/comic-neue/ComicNeue-Bold-Oblique.woff2"},"Comic Spice":{regular:"fonts/comic-spice/ComicSpice.woff2",bold:"fonts/comic-spice/ComicSpice.woff2",italic:"fonts/comic-spice/ComicSpice.woff2","italic bold":"fonts/comic-spice/ComicSpice.woff2"},Hack:{regular:"fonts/hack/hack-regular-webfont.woff2",bold:"fonts/hack/hack-bold-webfont.woff2",italic:"fonts/hack/hack-italic-webfont.woff2","italic bold":"fonts/hack/hack-bolditalic-webfont.woff2"},"Open Sans":{regular:"fonts/open-sans/OpenSans-Regular.woff2",bold:"fonts/open-sans/OpenSans-Bold.woff2",italic:"fonts/open-sans/OpenSans-Italic.woff2","italic bold":"fonts/open-sans/OpenSans-BoldItalic.woff2"},"Some Time Later":{regular:"fonts/some-time-later/Some-Time-Later.woff2",bold:"fonts/some-time-later/Some-Time-Later.woff2",italic:"fonts/some-time-later/Some-Time-Later.woff2","italic bold":"fonts/some-time-later/Some-Time-Later.woff2"},Nosifer:{regular:"fonts/nosifer/nosifer.woff2",bold:"fonts/nosifer/nosifer.woff2",italic:"fonts/nosifer/nosifer.woff2","italic bold":"fonts/nosifer/nosifer.woff2"}},loadedFonts={}
$(document).ready(function(){detectLang(),getParameters(),bindEvents(),toggleBgSettings(),refreshFilename(),waitForfont("wemake-font",function(){waitForfont("porn-font")})})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment