Last active
January 2, 2019 13:52
-
-
Save Zemnmez/4781168b6988ea8a70aa554fa6ed1e2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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