This code was originally created by the creators of http://koalastothemax.com this repo is adding mobile
support since no pull requests are being accepted in the original repo.
Exploration of pixalized koalas*.
(*may include animals other than koalas)
Made with love by Vadim Ogievetsky for Annie Albagli
Powered by Mike Bostock's D3
Supported URLs are:
-
DOMAIN The just the page domain / loads one of the default files
-
DOMAIN?BA5E64== Where BA5E64== is a UTF-8 base64 encoded string of one of the following things:
-
An image URL
Example:
http://i.imgur.com/cz1Jb.jpg
Use that URL image instead of the default one.
-
A JSON string representing an array of URLs
Example:
["http://i.imgur.com/cz1Jb.jpg","http://i.imgur.com/Q5IqH.jpg"]
Pick one of the images at random and use that instead of the default one.
-
A JSON string representing an object with the keys 'images', 'background' and 'hideNote'
Example:
{"background":"#000","images":["http://i.imgur.com/cz1Jb.jpg","http://i.imgur.com/Q5IqH.jpg"]}
images (required): Pick one of the images at random and use that instead of the default one.
background (optional): Use the value of background as the page background.
hideNote (optional): Hide the mention on the bottom.
-
DOMAIN?image_url
Where image URL is an actual image URL this is for backwards compatibility.
Example: http://i.imgur.com/cz1Jb.jpg
This is how putting in a custom image used to work.
- DOMAIN#a_string
This will redirect to DOMAIN?b64(a_string)
This should be used to construct things as above.
Note: where DOMAIN is usually http://koalastothemax.com