Verified Commit 757c33f5 authored by Luc Didry's avatar Luc Didry
Browse files

Fix #22 — Missing parameters in URL

parent c6ad2296
Pipeline #90774 passed with stage
in 1 minute and 13 seconds
......@@ -1317,6 +1317,7 @@ function createUrl(url, w, wx, wy, ws, wc, wa, wf, wfs, ww, p, px, py, ps, pc, p
url.searchParams.set('wa', wa);
url.searchParams.set('wf', wf);
url.searchParams.set('wfs', wfs);
url.searchParams.set('ww', ww);
url.searchParams.set('p', p);
url.searchParams.set('px', px);
url.searchParams.set('py', py);
......@@ -1325,6 +1326,7 @@ function createUrl(url, w, wx, wy, ws, wc, wa, wf, wfs, ww, p, px, py, ps, pc, p
url.searchParams.set('pa', pa);
url.searchParams.set('pf', pf);
url.searchParams.set('pfs', pfs);
url.searchParams.set('pw', pw);
url.searchParams.set('co', co);
url.searchParams.set('ra', ra);
url.searchParams.set('gli', gli);
......
......@@ -104,7 +104,7 @@ var o="; expires="+r.toGMTString()}else var o=""
document.cookie=e+"="+a+o+"; path=/"}function readCookie(e){for(var a=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var o=t[r];" "==o.charAt(0);)o=o.substring(1,o.length)
if(0==o.indexOf(a))return o.substring(a.length,o.length)}return null}function centerText(e){e.preventDefault()
var a=$("#wemake-x"),t=$("#wemake-y"),r=$("#porn-x"),o=$("#porn-y"),s=$("#img-width").val(),l=$("#img-height").val()
a.val(s/2),t.val(l/4+3*l/20),r.val(s/2),o.val(3*l/4+l/8),refreshText()}function createUrl(e,a,t,r,o,s,l,n,i,c,g,m,d,h,v,f,u,p,$,w,b,k,P,y,x,S,C,I,T,z,R,F,L,O,U,D,A,G,B,N,E,M,W,J,j){return e.searchParams.set("w",a),e.searchParams.set("wx",t),e.searchParams.set("wy",r),e.searchParams.set("ws",o),e.searchParams.set("wc",s),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",R),e.searchParams.set("height",F),e.searchParams.set("x",L),e.searchParams.set("y",O),e.searchParams.set("s",U),e.searchParams.set("bgu",D),e.searchParams.set("r",A),e.searchParams.set("rx",G),e.searchParams.set("ry",B),e.searchParams.set("rs",N),e.searchParams.set("rr",E),e.searchParams.set("woc",M),e.searchParams.set("wos",W),e.searchParams.set("poc",J),e.searchParams.set("pos",j),e}function importData(e){var a=new FileReader
a.val(s/2),t.val(l/4+3*l/20),r.val(s/2),o.val(3*l/4+l/8),refreshText()}function createUrl(e,a,t,r,o,s,l,n,i,c,g,m,d,h,v,f,u,p,w,$,b,k,P,y,x,S,C,I,T,z,R,F,L,O,U,D,A,G,B,N,E,M,W,J,j){return e.searchParams.set("w",a),e.searchParams.set("wx",t),e.searchParams.set("wy",r),e.searchParams.set("ws",o),e.searchParams.set("wc",s),e.searchParams.set("wa",l),e.searchParams.set("wf",n),e.searchParams.set("wfs",i),e.searchParams.set("ww",c),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("pw",w),e.searchParams.set("co",$),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",R),e.searchParams.set("height",F),e.searchParams.set("x",L),e.searchParams.set("y",O),e.searchParams.set("s",U),e.searchParams.set("bgu",D),e.searchParams.set("r",A),e.searchParams.set("rx",G),e.searchParams.set("ry",B),e.searchParams.set("rs",N),e.searchParams.set("rr",E),e.searchParams.set("woc",M),e.searchParams.set("wos",W),e.searchParams.set("poc",J),e.searchParams.set("pos",j),e}function importData(e){var a=new FileReader
a.addEventListener("loadend",function(){try{var e=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(a.result))),t=localStorage.getItem("wemas")
null===t?localStorage.setItem("wemas",JSON.stringify(e)):(t=JSON.parse(t),$.extend(t,e),localStorage.setItem("wemas",JSON.stringify(t))),fillGallery(),alert(importOk)}catch(e){alert(e)}}),a.readAsArrayBuffer(e[0])}function exportData(e){e.preventDefault()
var a=$('<a id="export-data-json">')
......
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