Skip to content

Instantly share code, notes, and snippets.

@Zemnmez
Last active January 2, 2019 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zemnmez/4781168b6988ea8a70aa554fa6ed1e2e to your computer and use it in GitHub Desktop.
Save Zemnmez/4781168b6988ea8a70aa554fa6ed1e2e to your computer and use it in GitHub Desktop.
window.theImage = () => {
const u = byid("url").value,
i = img,
c = valof("control"),
r = valof("rand"),
d = valof("data"),
t = valof("dither"),
s = Math.floor(Math.random()*1e9),
o = rotation,
x = dx
y = dy;
return "/qr/draw?" + Object.entries({i, u, m, x, y, v, c, r, d , r, s, z, o})
.map(([key, value]) => [key, value].map(encodeURIComponent).join("=")).join("&");
}
console.log("%c success! now you can close this :)", "font-size: large")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment